Forum Scripting Error when DevelopmentServer is set

Post your problems and discussions relating to scripting in Unity here.

Error when DevelopmentServer is set

Postby FuzzySlash » April 7th, 2020, 2:17 am

Hi,

Using the live server everything is working fine, but when I run and try to use the development server
Code: Select all
c.Multiplayer.DevelopmentServer = new ServerEndpoint("127.0.0.1", 8184);


I get the following error when calling CreateJoinRoom in Unity:
System.NullReferenceException: Object reference not set to an instance of an object
at PlayerIOClient.PlayerIO+ChannelMonitor+<>c__DisplayClass3_0`3[A,O,E].<Call>b__0 (E e) [0x00011] in <ecdd10aa70254d88a6e7db2f5d73e102>:0
at PlayerIOClient.Internal.identifier175+identifier904+identifier906[A,O,E].MoveNext () [0x000c7] in <ecdd10aa70254d88a6e7db2f5d73e102>:0
UnityEngine.Debug:LogError(Object)
PlayerIOClient.Internal.identifier906:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)

I have also tried port 80. To be honest I'm not sure what to set the port to.


Thank you,
Marco
FuzzySlash
 
Posts: 37
Joined: April 15th, 2011, 3:59 am

Re: Error when DevelopmentServer is set

Postby Tarantulka » May 7th, 2020, 7:35 pm

This is also happening on my Mac and would like to use the development server.
Tarantulka
 
Posts: 1
Joined: May 7th, 2020, 7:18 pm


Return to Scripting



cron