PDA

View Full Version : [Solved] Tank Game - Connection Lost



Provost
10-17-2010, 05:49 PM
Just trying to get the game samples up and running but am having a few problem. Probably just me being a n00b again but any help will be greatly appreciated.

For the tank game as soon as I launch it I get a connection lost window. Last few lines in the output window read ...

[Receiving (0) <-- [Event type="JoinZoneEvent" bubbles=false cancelable=false eventPhase=2]]
[Receiving (0) <-- [Event type="JoinRoomEvent" bubbles=false cancelable=false eventPhase=2]]
[Sending (0) --> PluginRequest]
[Receiving (0) <-- [Event type="GenericErrorResponse" bubbles=false cancelable=false eventPhase=2]]
[GenericError]
[ConnectionClosedEvent connectionId: 0, wasDefault: true, stillConnected:false]

Any ideas why this would be happening? Thanks!

tcarr
10-17-2010, 05:54 PM
TankGame requires two server level components: GMSInitializer and TimeStampPlugin. If either one is missing then the game won't work. If you didn't compile the server side of TankGame and deploy the extension, then you would get an error too. I'm not sure what error message would appear from each of these problems, but suggest that you check your ES Admin's Server Extensions tab to verify that you see the extension and both the server level components.

Provost
10-17-2010, 06:49 PM
The server extension is in place and both the GMSInitializer and TimeStampPlugiin components are server level. Still no joy.

tcarr
10-17-2010, 07:02 PM
Are you using the version from ES 5.0.1 or from 5.0.0? And are there any error messages in the server log?

Provost
10-17-2010, 07:33 PM
Running 5.0.0. Will upgrade and see if I have any more luck. Server is showing a warning reading ...

WARN com.electrotank.electroserver5.servers.gateway.Cli entIoHandler - ClientIoHandler.exceptionCaught
java.nio.BufferOverflowException
at java.nio.Buffer.nextPutIndex(Buffer.java:501)

Don't know if that is anything of interest.

tcarr
10-17-2010, 07:37 PM
There's a known bug with 5.0.0 and the TankGame that causes a BufferOverflowException. Upgrading to 5.0.1 will fix it.

Provost
10-18-2010, 09:40 AM
That did the trick. Cheers for all your help getting me up and running. Already loving it, time to dig in and see what I can do!

tcarr
10-18-2010, 12:11 PM
Excellent!