More documentation for the beginners

Post your help queries and engine programming questions here

Re: More documentation for the beginners

Postby Tonyeng » Fri May 09, 2014 1:18 pm

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.
Tonyeng
 
Posts: 11
Joined: Thu Apr 17, 2014 2:18 am

Re: More documentation for the beginners

Postby robaldred » Fri May 09, 2014 1:25 pm

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 :)
I don't work for Irrelon. All comments are my own.
I would strongly encourage anyone building production projects with Isogenic to buy a premium licence, it costs very little and will help towards continued development of the engine. Irrelon have spent thousands of hours developing this wonderful platform with many features found in AAA game engine.
User avatar
robaldred
 
Posts: 243
Joined: Wed Oct 23, 2013 8:09 pm
Location: Manchester, England

Re: More documentation for the beginners

Postby Tonyeng » Sat May 10, 2014 4:24 am

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.
Tonyeng
 
Posts: 11
Joined: Thu Apr 17, 2014 2:18 am

Re: More documentation for the beginners

Postby Tonyeng » Thu May 15, 2014 8:02 am

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
Tonyeng
 
Posts: 11
Joined: Thu Apr 17, 2014 2:18 am

Re: More documentation for the beginners

Postby rob » Thu May 15, 2014 8:52 am

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.
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

Re: More documentation for the beginners

Postby Smoozilla » Sat Aug 09, 2014 8:26 pm

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!
User avatar
Smoozilla
 
Posts: 10
Joined: Wed Jul 30, 2014 6:37 am

Re: More documentation for the beginners

Postby fro » Tue Dec 30, 2014 12:45 pm

Nice Manual, thank you!
fro
 
Posts: 4
Joined: Tue Feb 25, 2014 7:56 pm

Previous

Return to Help & Questions

Who is online

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