Forum General Unity 5 - Unable to use development server

Any issues or discussions relating to Unity development are welcome here.

Unity 5 - Unable to use development server

Postby MoDDiB » October 18th, 2015, 4:49 am

Hello I'm currently in China with the last version of PlayerIOUnity3DClient ( 16th October )
And while there's no problem when I put the dll on your servers I can't use the development server.

PlayerIOClient.PlayerIO.Authenticate is ok but client.Multiplayer.CreateJoinRoom throw this error :
System.NullReferenceException: Object reference not set to an instance of an object
at PlayerIOClient.Internal.identifier950.filterEndpoints (System.Collections.Generic.List`1 endpoints) [0x00000] in <filename unknown>:0
at PlayerIOClient.Internal.identifier950+identifier953.<CreateJoinRoom>b__6 (PlayerIOClient.Internal.identifier198 result) [0x00000] in <filename unknown>:0
at PlayerIOClient.Internal.identifier115+identifier824.<CreateJoinRoom>b__16 (PlayerIOClient.Internal.identifier198 returnValue) [0x00000] in <filename unknown>:0
at PlayerIOClient.Internal.identifier115+identifier815+identifier817[PlayerIOClient.Internal.identifier115+identifier191,PlayerIOClient.Internal.identifier115+identifier198,PlayerIOClient.PlayerIOError].MoveNext () [0x00000] in <filename unknown>:0
UnityEngine.Debug:LogError(Object)
PlayerIOClient.Internal.identifier817:MoveNext()


It's a bit annoying,

Thank you !
MoDDiB
 
Posts: 30
Joined: July 13th, 2014, 8:41 pm

Re: Unity 5 - Unable to use development server

Postby Guillaume » October 18th, 2015, 1:44 pm

Another user had a similar issue. I don't know why, but it seem that some YGN accounts have this error, but when using my own, there was no problem. I don't know if there is some issue or not. Can you try to slightly modify the "public" connection if you use it, on your dashboard, and re-save it ?

One possible workaround maybe to use the debug server if you are not in production, you may try to switch the Public cluster by your Dev server cluster on the "Game Server" tab, in multiplayer.

This way, even if you use the production parameters in your game, the connection will be redirected to your live dev server, and you will be able to debug it as well.
Guillaume
 
Posts: 277
Joined: March 28th, 2014, 1:59 am
Location: France

Re: Unity 5 - Unable to use development server

Postby MoDDiB » October 18th, 2015, 4:50 pm

Than you for your answer.

Can you try to slightly modify the "public" connection if you use it, on your dashboard, and re-save it ?

I tried it : same error.

This way, even if you use the production parameters in your game, the connection will be redirected to your live dev server, and you will be able to debug it as well.

I tried it : I got a new error, but I think it's because my server is not publicly accessible on any ports, I will try again when I will be at home wednesday...
System.NullReferenceException: Object reference not set to an instance of an object
at PlayerIOClient.Internal.identifier950.connect (System.Collections.Generic.List`1 endpoints, System.String joinKey, System.Collections.Generic.Dictionary`2 joinData, PlayerIOClient.Callback`1 successCallback, PlayerIOClient.Callback`1 errorCallback) [0x00000] in <filename unknown>:0
at PlayerIOClient.Internal.identifier950+identifier953.<CreateJoinRoom>b__6 (PlayerIOClient.Internal.identifier198 result) [0x00000] in <filename unknown>:0
at PlayerIOClient.Internal.identifier115+identifier824.<CreateJoinRoom>b__16 (PlayerIOClient.Internal.identifier198 returnValue) [0x00000] in <filename unknown>:0
at PlayerIOClient.Internal.identifier115+identifier815+identifier817[PlayerIOClient.Internal.identifier115+identifier191,PlayerIOClient.Internal.identifier115+identifier198,PlayerIOClient.PlayerIOError].MoveNext () [0x00000] in <filename unknown>:0
UnityEngine.Debug:LogError(Object)
PlayerIOClient.Internal.identifier817:MoveNext()
MoDDiB
 
Posts: 30
Joined: July 13th, 2014, 8:41 pm

Re: Unity 5 - Unable to use development server

Postby MoDDiB » October 26th, 2015, 8:40 am

No problem in France ;)
MoDDiB
 
Posts: 30
Joined: July 13th, 2014, 8:41 pm

Re: Unity 5 - Unable to use development server

Postby Guillaume » October 26th, 2015, 1:19 pm

Did you just test from France ? :lol:
Guillaume
 
Posts: 277
Joined: March 28th, 2014, 1:59 am
Location: France

Re: Unity 5 - Unable to use development server

Postby Guillaume » October 26th, 2015, 1:58 pm

I'm not totally sure about your problem, because i was having this problem with the account of someone else, but not with mine, but in the 2 case, i was testing from home (in France) so...

But we can imagine, just thinking about it, maybe there is some port and/or protocal that are filered in China ?

Have you tried to connect with and/or without useSecureApiRequest ?
Have you tried the same with the MultiplayerAPI with SSLSecureConnection to false (or something like that) ?
Guillaume
 
Posts: 277
Joined: March 28th, 2014, 1:59 am
Location: France

Re: Unity 5 - Unable to use development server

Postby NachoAbril » October 26th, 2015, 4:27 pm

I have the same problem here (UK). I got the latest SDK (3.2.425) from 23/10/2015 for a test project and I got the same error:

Code: Select all
System.NullReferenceException: Object reference not set to an instance of an object
  at PlayerIOClient.Internal.identifier950.filterEndpoints (System.Collections.Generic.List`1 endpoints) [0x00000] in <filename unknown>:0
  at PlayerIOClient.Internal.identifier950+identifier953.<CreateJoinRoom>b__6 (PlayerIOClient.Internal.identifier198 result) [0x00000] in <filename unknown>:0
  at PlayerIOClient.Internal.identifier115+identifier824.<CreateJoinRoom>b__16 (PlayerIOClient.Internal.identifier198 returnValue) [0x00000] in <filename unknown>:0
  at PlayerIOClient.Internal.identifier115+identifier815+identifier817[PlayerIOClient.Internal.identifier115+identifier191,PlayerIOClient.Internal.identifier115+identifier198,PlayerIOClient.PlayerIOError].MoveNext () [0x00000] in <filename unknown>:0
UnityEngine.Debug:LogError(Object)
PlayerIOClient.Internal.identifier817:MoveNext()


I used to use it in an old project and it worked fine. Unfortunately that project is now lost, so I cannot check if it's still working with old SDK.

Regards,
Nacho
NachoAbril
 
Posts: 1
Joined: July 1st, 2014, 10:29 am

Re: Unity 5 - Unable to use development server

Postby Guillaume » October 26th, 2015, 5:50 pm

I made some test on my side, with old and new version, and i'm enable to reproduce the problem. My test projects are all working.
I wish this is not related to the location to the user, as it would be problematic...
Guillaume
 
Posts: 277
Joined: March 28th, 2014, 1:59 am
Location: France

Re: Unity 5 - Unable to use development server

Postby Henrik » October 30th, 2015, 7:49 am

For those of you with the problem, can you try different versions where you set, and where you don't set the client.Multiplayer.DevelopmentSErver property, and the same for the client.Multiplayer.EndpointFilter (or whatever we called the thing), and see which combination of setting those properties cause the error. I'm looking at the code and scratching my head...
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm

Re: Unity 5 - Unable to use development server

Postby Guillaume » October 30th, 2015, 1:32 pm

Henrik,

One day i had a problem when executing the code of an other user here, logged with his account. When on development server, i logged out and then logged to my account, everything worked like a charm.

Can this be related to a "Developer Account creation" problem on the PlayerIO Backend, for newly created account ?
Guillaume
 
Posts: 277
Joined: March 28th, 2014, 1:59 am
Location: France

Re: Unity 5 - Unable to use development server

Postby impersogame » October 31st, 2015, 9:00 am

Same error with latest SDK and Unity 4.x.
ServerEndpoint is set to ("localhost", 8184).
impersogame
Paid Member
 
Posts: 33
Joined: May 17th, 2013, 4:36 pm


Return to General



cron