Forum Games Disconnected from server

Discussion relating to game development with Flash

Disconnected from server

Postby Qurious Media » March 22nd, 2017, 5:29 pm

Hi All,
I am new to playerIO. I am trying to run examples given into PlayerIO SDK.
I tried Flash - > MyGame example and made sample game on playerIO and copy - paste game into AS3 code. But after connecting to local server successfully, after sometime it disconnect automatically and player automatically left the room.

I am using macbook pro for development and visual studio express.
I am using Flash CC for development.

Logs at server side :
[21:27:43 in 'test'] Room created.
[21:27:43 in 'test'] => Game is started: test
[21:27:43 in 'test'] User 'RAVI' joined.
[21:27:47 in 'test'] User 'RAVI' left.
[21:27:47 in 'test'] => RoomId: test
[21:27:47 in 'test'] Room closed.

Log at client side :
Sucessfully connected to player.io
Sucessfully connected to the multiplayer server
Recived the message [playerio.Message]
type: hello world
length: 0
content: Id Type Value
---------------------

Player with the userid 1 just joined the room
Recived the message [playerio.Message]
type: UserJoined
length: 1
content: Id Type Value
---------------------
0 int 1

Disconnected from server


I am not getting why user left room automatically and why user get disconnected from server.

Thank you.
Qurious Media
Qurious Media
 
Posts: 5
Joined: March 22nd, 2017, 1:06 pm

Re: Disconnected from server

Postby Henrik » March 23rd, 2017, 6:08 am

Are you stopping the development server? Is it running in debug mode and hitting a breakpoint?

What are you seeing in the development server window? Does it show the room you joined in a tab? Does it ever show the user in it? When the user is being disconnected, does it still show the room tab, but saying it is closing the room?
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm

Re: Disconnected from server

Postby Qurious Media » March 23rd, 2017, 6:44 am

Hi, Henrik
Thank you for reply.

1. Are you stopping the development server?
->No

2. Is it running in debug mode and hitting a breakpoint?
->Yes i am running in debug mode, and i did not put any breakpoint yet. If i run server in release mode same problem is occurring.

3. What are you seeing in the development server window?
->I am sending logs that shows in development server window :
server logs :
[10:56:37] Starting Development Server (v2.4.0.0)
ARG!: + System.UnauthorizedAccessException: Access to the path "/usr/share/GameServerCache" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00069] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:111
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:78
at PlayerIO.ServerCore.identifier11.getCached[T] (System.String name, System.Func`1[TResult] create) [0x00043] in <809839fbed8044689b337ccb4891e752>:0
ARG!: + System.UnauthorizedAccessException: Access to the path "/usr/share/GameServerCache" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00069] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:111
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:78
at PlayerIO.ServerCore.identifier11.getCached[T] (System.String name, System.Func`1[TResult] create) [0x00043] in <809839fbed8044689b337ccb4891e752>:0
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/System.Management/4.0.0.0__b03f5f7f11d50a3a/System.Management.dll [External]
ARG!: + System.UnauthorizedAccessException: Access to the path "/usr/share/GameServerCache" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00069] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:111
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:78
at PlayerIO.ServerCore.identifier11.getCached[T] (System.String name, System.Func`1[TResult] create) [0x00043] in <809839fbed8044689b337ccb4891e752>:0
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll [External]
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll [External]
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll [External]
[10:56:37] Showing Login Dialog
[10:56:37] PolicyServer Error: Unable to start Flash policy server on port 843. Details: Access denied (Local Endpoint: 0.0.0.0:843)
[10:56:37] PolicyServer Error: Unable to start Silverlight policy server on port 943. Details: Access denied (Local Endpoint: 0.0.0.0:943)
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll [External]
Thread started: <Thread Pool> #8
[10:57:37] Logged in successfully.
Thread started: <Thread Pool> #9
ARG!: + System.UnauthorizedAccessException: Access to the path "/usr/share/GameServerCache" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00069] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:111
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:78
at PlayerIO.ServerCore.identifier11.getCached[T] (System.String name, System.Func`1[TResult] create) [0x00043] in <809839fbed8044689b337ccb4891e752>:0
ARG!: + System.UnauthorizedAccessException: Access to the path "/usr/share/GameServerCache" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00069] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:111
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:78
at PlayerIO.ServerCore.identifier11.getCached[T] (System.String name, System.Func`1[TResult] create) [0x00043] in <809839fbed8044689b337ccb4891e752>:0
ARG!: + System.UnauthorizedAccessException: Access to the path "/usr/share/GameServerCache" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00069] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:111
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:78
at PlayerIO.ServerCore.identifier11.getCached[T] (System.String name, System.Func`1[TResult] create) [0x00043] in <809839fbed8044689b337ccb4891e752>:0
[10:57:37] PolicyServer Error: Unable to start Flash policy server on port 843. Details: Access denied (Local Endpoint: 0.0.0.0:843)
[10:57:37] PolicyServer Error: Unable to start Silverlight policy server on port 943. Details: Access denied (Local Endpoint: 0.0.0.0:943)
[10:57:37] Server started. Logged in with account: Qurious Media
[10:57:58 in 'test'] Room created.
[10:57:58 in 'test'] => Game is started: test
[10:57:58 in 'test'] User 'RAVI' joined.
[10:57:58 in 'test'] User 'RAVI' left.
[10:57:58 in 'test'] => RoomId: test
[10:57:58 in 'test'] Room closed.
Client logs :
Sucessfully connected to player.io
Sucessfully connected to the multiplayer server
Recived the message [playerio.Message]
type: hello world
length: 0
content: Id Type Value
---------------------

Player with the userid 1 just joined the room
Recived the message [playerio.Message]
type: UserJoined
length: 1
content: Id Type Value
---------------------
0 int 1

Disconnected from server
-------------------------------------------------------------------------
4. Does it show the room you joined in a tab?
->Yes, it show i join the room.

5.Does it ever show the user in it?
->Yes it show user in it just for few seconds.

6.When the user is being disconnected, does it still show the room tab, but saying it is closing the room?
->I do not know why and when user disconnected , i am using example of PlayerIO i.e. MyGame Example. I just enter game id in it and running the program. I even not code a single line in it. After server passing hello msg to client after that it automatically dispatch disconnect event in AS3(Flash). No it does not show the room tab and it is saying closing the room.


Please help me out to solve this problem and if i am making any mistake than let me know.

Thank you,
Qurious Media
Qurious Media
 
Posts: 5
Joined: March 22nd, 2017, 1:06 pm

Re: Disconnected from server

Postby Henrik » March 23rd, 2017, 10:07 am

Qurious Media wrote:ARG!: + System.UnauthorizedAccessException: Access to the path "/usr/share/GameServerCache" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00069] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:111
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:78
at PlayerIO.ServerCore.identifier11.getCached[T] (System.String name, System.Func`1[TResult] create) [0x00043] in <809839fbed8044689b337ccb4891e752>:0


I think that's your problem right about there...

We don't really support running the development server under anything other than Windows. We definitely want to support it in the future, but right now it doesn't work.
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm

Re: Disconnected from server

Postby Qurious Media » March 23rd, 2017, 10:50 am

Hi, Henrik

Many developers using MacBook for development and they setup visual studio on MacBook. And they use MacBook as development server and developed Multiplayer Games using PlayerIO. Right?

How they do that can you tell me please so i can also do the same for my development?


Thank you,
Qurious Media
Qurious Media
 
Posts: 5
Joined: March 22nd, 2017, 1:06 pm

Re: Disconnected from server

Postby Henrik » March 24th, 2017, 3:48 am

The only way to use a MacBook for PlayerIO development right now is to run Windows on it, either through Bootcamp or Parallells or similar.
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm

Re: Disconnected from server

Postby Qurious Media » March 24th, 2017, 6:16 am

ok Henrik.
Thank you for you guide.

Thank you.
Qurious Media
Qurious Media
 
Posts: 5
Joined: March 22nd, 2017, 1:06 pm


Return to Games