Hey guys, sorry this took so long, but I've finally finished the Quest online multiplayer library.
This library utilizes Quest's ability to run JavaScript functions in order to connect to WebSocket-based servers which are run by the Node.js software.
Most of it works out-of-the-box, but there are a few steps you have to take first...
[list=1]CAUTION: You should already have a basic understanding of networking and ports/port forwarding.
[*] Install Node.js from
here.[/*:m]
[*] In the Node.js command prompt, type "npm install socket.io" without the quotes.[/*:m]
[*] Once that is done, download the file attached to this post and extract it to a folder.[/*:m]
[*] Find the file called "game.js" in the extracted NodeJS folder. Open it in a text editor and find the line that says
socket = io.listen(8000);
8000 is the default port the server will be run on. Feel free to change it, just remember that your router will need to be port forwarded to whatever port you choose! (And don't forget to change the start script of the NodeJSDemo to resemble any changes)[/*:m]
[*] Navigate to the extracted "NodeJS" folder in the Node.js command prompt by using "cd path/to/NodeJS".[/*:m]
[*] Type "node game.js" into the Node.js command prompt.[/*:m]
[*] Run the NodeJSDemo game. You should connect and be able to move around and pick up objects. The Node.js command prompt will log any changes that occur.[/*:m][/list:o]
Notice how the NodeJSDemo has a function named "BeginGame" with a parameter named "empty". This is used so that after "Login" is called, the server can send back a confirmation to start the game. The parameter "empty" will always be an empty string, and is only there to act as a fake parameter to get around the JavaScript function ASLEvent limitations (You MUST specify ONE Quest function and ONE parameter).
If you have any errors or questions, post them here and I'll do my best to answer them.