PDA

View Full Version : [Solved] Tank GAME in ES5



raghavneon
03-13-2012, 11:18 AM
Hi,
i am trying to set up the tank game running in my system with ES5 and i have also initialized the components GMSInitializer and timestamp plugin in the tank server extensions.But when i try to start the game, once i click submit the game just hangs and nothing happens.

My es5 log:
..a long list of esobjects and

2012-Mar-13 16:44:56:847 [worker-31 BinaryTCP-0] DEBUG Extensions.TankGame.Plugins.TankGame - userEnter: player358

My actionscript error report:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.electrotank.electroserver5.api::EsObject/toString()[/Users/jason/Projects/Electrotank/ES/client/as3/src/core/com/electrotank/electroserver5/api/EsObject.as:113]
at com.electrotank.electroserver5.api::EsObject/toString()[/Users/jason/Projects/Electrotank/ES/client/as3/src/core/com/electrotank/electroserver5/api/EsObject.as:161]
at global/trace()
at com.gamebook.tankgame::TankGame/buildMap()[C:\Program Files\ElectroServer_5_3_1\game_examples\RealtimeTa nkGame\client\as3\src\com\gamebook\tankgame\TankGa me.as:406]
at com.gamebook.tankgame::TankGame/initialize()[C:\Program Files\ElectroServer_5_3_1\game_examples\RealtimeTa nkGame\client\as3\src\com\gamebook\tankgame\TankGa me.as:186]
at com.gamebook.tankgame::GameFlow/startGame()[C:\Program Files\ElectroServer_5_3_1\game_examples\RealtimeTa nkGame\client\as3\src\com\gamebook\tankgame\GameFl ow.as:95]
at com.gamebook.tankgame::GameFlow/onClockReady()[C:\Program Files\ElectroServer_5_3_1\game_examples\RealtimeTa nkGame\client\as3\src\com\gamebook\tankgame\GameFl ow.as:81]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.gamebook.utils.network.clock::Clock/onPluginMessageEvent()[C:\Program Files\ElectroServer_5_3_1\game_examples\RealtimeTa nkGame\client\as3\src\com\gamebook\utils\network\c lock\Clock.as:142]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.electrotank.electroserver5.connection::ESEngin e/processMessage()[/Users/jason/Projects/Electrotank/ES/client/as3/src/core/com/electrotank/electroserver5/connection/ESEngine.as:1085]
at com.electrotank.electroserver5.connection::ESEngin e/checkMessageOrder()[/Users/jason/Projects/Electrotank/ES/client/as3/src/core/com/electrotank/electroserver5/connection/ESEngine.as:1024]
at com.electrotank.electroserver5.connection::ESEngin e/onDataReceived()[/Users/jason/Projects/Electrotank/ES/client/as3/src/core/com/electrotank/electroserver5/connection/ESEngine.as:997]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.electrotank.electroserver5.connection::SocketC onnection/readData()[/Users/jason/Projects/Electrotank/ES/client/as3/src/core/com/electrotank/electroserver5/connection/SocketConnection.as:186]
at com.electrotank.electroserver5.connection::SocketC onnection/onSocketData()[/Users/jason/Projects/Electrotank/ES/client/as3/src/core/com/electrotank/electroserver5/connection/SocketConnection.as:140]



Please help me!!

raghavneon
03-13-2012, 12:37 PM
this is the output i get in SOS MAX:
[Settings file loaded]
[Attempting BinaryTCP connection. Host: 127.0.0.1, Port: 9899]
[Connection established. Type: BinaryTCP]
[Receiving (0 0) <-- ConnectionResponse]
[Sending (0 0) --> LoginRequest]
[Receiving (0 1) <-- LoginResponse]
[Sending (0 0) --> PluginRequest]
[Receiving (0 2) <-- PluginMessageEvent]
[Sending (0 0) --> PluginRequest]
[Receiving (0 3) <-- PluginMessageEvent]
[Sending (0 0) --> PluginRequest]
[Receiving (0 4) <-- PluginMessageEvent]
[Sending (0 0) --> PluginRequest]
[Receiving (0 5) <-- PluginMessageEvent]
[Sending (0 0) --> PluginRequest]
[Receiving (0 6) <-- PluginMessageEvent]
[Sending (0 0) --> PluginRequest]
[Receiving (0 7) <-- PluginMessageEvent]
[Sending (0 0) --> PluginRequest]
[Receiving (0 8) <-- PluginMessageEvent]
[Sending (0 0) --> PluginRequest]
[Receiving (0 9) <-- PluginMessageEvent]
[Sending (0 0) --> PluginRequest]
[Receiving (0 10) <-- PluginMessageEvent]
[Sending (0 0) --> PluginRequest]
[Receiving (0 11) <-- PluginMessageEvent]
[Sending (0 0) --> CreateOrJoinGameRequest]


it stops here and nothing happens..what to do?

tcarr
03-13-2012, 01:01 PM
Did you compile the client with the ES5.3.1 api? If so, you need to either comment out any lines containing and EsObject's toString function (they will all be logging lines) or else recompile using the ES 5.3 swc (http://dev.electrotank.com/archiva/repository/et-public/com/electrotank/electroserver/as3-client/5.3/as3-client-5.3.swc). This bug is fixed in the upcoming release.

raghavneon
03-14-2012, 04:53 AM
it works..i had to add the new swc and recompile and also remove the toString methods to make it work ..thanks a lot tcarr..