Page 2 of 2

Re: More documentation for the beginners

PostPosted: Fri May 09, 2014 1:18 pm
by Tonyeng
Hi Rob
Thanks for help. Now get port already in use error.

Yes - I have apache (httpd) running using port 80 with apache main document root ie: htdocs. Have also copied examples to same place. No other application listening on port 2000.

Have left client.js with x.x.x.x:2000, and changed server.js to port 80.

In summary (....... to avoid too much text) I get
Trace
at IgeClass.log .......IgeClass.js:75:17
at server.anonymous.........index.js:590:11
at Server.EventEmitter.emit (events.js:95:17)
at net.js:1025:12
at process._ticketCallback (node.js:415:13)
IGE * error* [NetIo.Server] : Error encountered, stopping engine to prevent spamming...

/usr/local/apache/htdocs/ige/engine/core/IgeClass.js:96
'*' [' + (this._classId.............+text);
^
IGE *error* [NetIo.Server] : Cannot start server on port because the port is already in use by another application!

Thanks for any help in advance.

Re: More documentation for the beginners

PostPosted: Fri May 09, 2014 1:25 pm
by robaldred
You need to leave the ports in the game code at 2000 they have to match. Both in client.js and server.js

Apologies for short response on the train :)

Re: More documentation for the beginners

PostPosted: Sat May 10, 2014 4:24 am
by Tonyeng
Thanks - Don't worry about shortness of your responses - material is always worthwhile thanks.

I am almost there ! Get the Loading screen with some output. Now just get an incorrect URL being passed which causes the websocket to fail.

Any ideas what the %3 is and I get the same output below whether I have or have not started the server part with the command to listen on port 2000 which means the websocket client request is failing since there is nothing on the server listening correctly I think ie:
node ./server/ige -g ./examples/24.5-multiplayer-isometric-mouse

Chrome output is:
* (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] : Texture image (../assets/textures/tiles/grassSheet.png) loaded successfully IgeClass.js:101
IGE *log* [IgeEngine:ige] : All textures have loaded 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 "x.x.x.x:2000"... IgeClass.js:101
IGE *log* [NetIo.Client] : Net.io client starting... IgeClass.js:101
IGE *log* [NetIo.Client] : Connecting to server at x.x.x.x:2000 IgeClass.js:101
Uncaught SyntaxError: Failed to construct 'WebSocket': The URL '%3x.x.x.x:2000' is invalid. index.js:87


Thanks for your help in advance, Rob.

Re: More documentation for the beginners

PostPosted: Thu May 15, 2014 8:02 am
by Tonyeng
Hi Rob

Got the examples to work but not sure why.

I removed all IGE files and installed from a clone this time. Previously I installed from a zip.

regards
tony

Re: More documentation for the beginners

PostPosted: Thu May 15, 2014 8:52 am
by rob
Ahh ok that makes sense. Github renames the ige folder when creating a zip which can be a little annoying. I wish they would remove that button with a setting so projects that want it can turn it back on.

Re: More documentation for the beginners

PostPosted: Sat Aug 09, 2014 8:26 pm
by Smoozilla
Hopefully this answers your original question.

https://web.archive.org/web/20130828225 ... -0/manual/

If the direct link is no good:

https://archive.org/web/
and enter:
http://www.isogenicengine.com/documenta ... -0/manual/

It's a little slow, but I've found it very useful!

Re: More documentation for the beginners

PostPosted: Tue Dec 30, 2014 12:45 pm
by fro
Nice Manual, thank you!