Multiplayer example troubleshooting

Post your help queries and engine programming questions here

Multiplayer example troubleshooting

Postby kris0894 » Sun Aug 17, 2014 9:48 pm

Hi,

I've set up a development environment locally in order to test the engine. I'm using Xampp as the web server on a Windows 7 box and can successfully run the non-multiplayer examples. For instance: http://localhost/isogenic/ige/examples/ ... index.html displays the rotating sprites.

I'm unable to run any multiplayer examples however. I've installed Node.js (which came with npm) and run the npm install command under the ige\server folder which created the node_modules folder. From the command line in the ige folder I'm able to successfully start the server:

Code: Select all
Executing IGE Under Node.js Version v0.10.30
------------------------------------------------------------------------------
* Isogenic Game Engine Server v1.3.1@2013-11-04.001                                          *
* (C)opyright 2012 Irrelon Software Limited                                  *
* http://www.isogenicengine.com                                              *
------------------------------------------------------------------------------
IGE *log* [IgeNode] : Starting pre-init process. IGE Game Server loading...
IGE *log* [IgeNode] : Current working directory is: C:\Temp\xampp\htdocs\isogenic\ige
IGE *log* [IgeNode] : Starting game server in path: C:\Temp\xampp\htdocs\isogenic\ige/examples\24.1-network-stream
IGE *log* [IgeNode] : Checking module paths declared in: C:\Temp\xampp\htdocs\isogenic\ige/examples\24.1-network-stream/
ServerConfig.js
IGE *log* [IgeNode] : Module paths confirmed, including 4 module(s)...
IGE *log* [IgeNode] : Module "ServerNetworkEvents" loaded from: "C:\Temp\xampp\htdocs\isogenic\ige/examples\24.1-network
-stream/./gameClasses/ServerNetworkEvents.js"
IGE *log* [IgeNode] : Module "Rotator" loaded from: "C:\Temp\xampp\htdocs\isogenic\ige/examples\24.1-network-stream/./ga
meClasses/Rotator.js"
IGE *log* [IgeNode] : Module "Rotator2" loaded from: "C:\Temp\xampp\htdocs\isogenic\ige/examples\24.1-network-stream/./g
ameClasses/Rotator2.js"
IGE *log* [IgeNode] : Module "Mover" loaded from: "C:\Temp\xampp\htdocs\isogenic\ige/examples\24.1-network-stream/./game
Classes/Mover.js"
------------------------------------------------------------------------------
* Powered by the Isogenic Game Engine v1.3.1@2013-11-04.001                  *
* (C)opyright 2013 Irrelon Software Limited                                  *
* http://www.isogenicengine.com                                              *
------------------------------------------------------------------------------
IGE *log* [IgeNetIoComponent] : Network component initiated with Net.IO version: 1.0.0
IGE *log* [IgeNetIoComponent] : Starting net.io listener on port 2000
IGE *log* [IgeNetIoComponent] : Starting client/server clock sync...
IGE *log* [NetIo.Server] : Server is listening on port 2000
IGE *log* [IgeEngine:ige] : Starting engine...
IGE *log* [IgeEngine:ige] : Engine started
IGE *log* [IgeStreamComponent] : Setting delta stream interval to 120ms
IGE *log* [IgeStreamComponent] : Starting delta stream...
IGE *log* [IgeNetIoComponent] : Server now accepting connections!


When I try to run the associated example from the Chrome/FF, the console log produces no errors:
Code: Select all
------------------------------------------------------------------------------ IgeEngine.js:29
* Powered by the Isogenic Game Engine v1.3.1@2013-11-04.001                  * IgeEngine.js:30
* (C)opyright 2013 Irrelon Software Limited                                  * IgeEngine.js:31
* http://www.isogenicengine.com                                              * IgeEngine.js:32
------------------------------------------------------------------------------ IgeEngine.js:33
IGE *log* [IgeNetIoComponent] : Network component initiated with Net.IO version: 1.0.0 IgeClass.js:101
IGE *log* [IgeInputComponent] : Setting up input event listeners... IgeClass.js:101
IGE *log* [IgeEngine:ige] : Starting engine... IgeClass.js:101
IGE *log* [IgeEngine:ige] : Engine started IgeClass.js:101
IGE *log* [IgeNetIoComponent] : Connecting to net.io server at "http://localhost:2000"... IgeClass.js:101
IGE *log* [NetIo.Client] : Net.io client starting... IgeClass.js:101
IGE *log* [NetIo.Client] : Connecting to server at http://localhost:2000 IgeClass.js:101


All I see is an empty canvas. The client state never seems to make it past 'connecting' nor does the server acknowledge any client requests. Any ideas on what the issue might be? Thanks in advance.
kris0894
 
Posts: 1
Joined: Sun Aug 17, 2014 9:32 pm

Re: Multiplayer example troubleshooting

Postby Adam » Sun Feb 05, 2017 1:46 am

kris0894,

I know this is a very old thread, but I'm curious if you ever got the multiplayer Isogenic examples to work, and if so how. I have a similar issue.

Thanks,
Adam
Adam
 
Posts: 3
Joined: Sun Feb 05, 2017 1:31 am

Re: Multiplayer example troubleshooting

Postby Adam » Wed Feb 08, 2017 4:26 am

Problem solved. It turned out to be a silly user error: I was attempting to load a different example in the browser than the one that I had started in the terminal. There were no error messages, and the terminal output showed a successful client connection, so it took me a few minutes to figure out what I'd done wrong.

Adam
Adam
 
Posts: 3
Joined: Sun Feb 05, 2017 1:31 am

Re: Multiplayer example troubleshooting

Postby rob » Sat Feb 25, 2017 1:12 pm

Yup that is usually why. You can use Chrome's websocket debugging to see frames of data and determine what communications are going across the network to see why things might not be working as well :)
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
User avatar
rob
Site Admin
 
Posts: 316
Joined: Tue Oct 22, 2013 5:08 pm


Return to Help & Questions

Who is online

Users browsing this forum: No registered users and 1 guest
cron