Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

8 years ago by Kurath

I've tried to make a little game server on my raspberry pi.
For this i used this project:
Game: http://commins.ca/gib/
Source: https://github.com/Joncom/gib
But i've got a few problem with the project i've got diffrent nodejs/socket.io based games on the raspberry pi and they all worked but this one didn't.


At the moment i got everything installed an i got this folder structur on my server:
tools
node_modules
-socket.io
-node-uuid
-canvas
media
lib
*start.js
*socket.io.1.0.6.js
*README.md
*package.json
*jquery-1.10.2.min.js
*index.html
*config.js

When i start the server with node start.js i've got this response:
$0: /usr/local/bin/node
$1: /home/pi/gib/start.js
$2016-05-31T22:17:20.888Z Socket server listening on port 3000.

So the server should be running, right?

http://192.168.1.111:3000/ would be the host and the port number of the server and if i go to that i got not any error instead i see the game without my own player its just the blank map and in the corner i get the message:
FPS:15
Entities count: 11
Living players:
Sockets:0
Named Clients:0
Dead:0

i don't see any error but it doesnt work at all...
Hopefully someone can help me.

8 years ago by Joncom

The server is running OK. When you go to http://192.168.1.111:3000/ you are looking at a screenshot of the game running on the server.

However, you need to run the client now. Port 3000 is already the server, so you need to host the client somewhere else, and open "index.html" in a browser.

Make sure "config.js" points to the server so that the client can connect to it.

8 years ago by Kurath

sounds maybe like a stupid question but how do i run/host the client?

8 years ago by Joncom

Quote from Kurath
sounds maybe like a stupid question but how do i run/host the client?
The following link covers how to set up a web server so that you can run local ImpactJS games in your browser.

http://impactjs.com/documentation/getting-started

Running the client just means running the game in your browser.
Page 1 of 1
« first « previous next › last »