Video 2
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Video 2
[youtubehd]http://www.youtube.com/watch?v=m2oHU4goyUg[/youtubehd]
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video 2
got more coming tomorrow
Re: Video 2
Awesome. Thanks for the videos. I have done video one so far and have all that setup YAYhallsofvallhalla wrote:got more coming tomorrow
Re: Video 2
On the second video, I end up with this error in my console:
No idea what it means
I notice in your script, you have: <script src="http://localhost:8080/socket.io/socket.io.js"></script>
Am I supposed to have something in a folder somewhere? I've been to the socket.io and did u're first video and all worked, so not sure where I went wrong
Code: Select all
Uncaught ReferenceError: io is not defined index.html:14
Uncaught TypeError: Cannot call method 'emit' of undefined chat.js:5
Failed to load resource http://localhost:8080/socket.io/socket.io.js
I notice in your script, you have: <script src="http://localhost:8080/socket.io/socket.io.js"></script>
Am I supposed to have something in a folder somewhere? I've been to the socket.io and did u're first video and all worked, so not sure where I went wrong
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video 2
that means it cannot find the dependancy socket.io. Try the socket.io steps again. Also be sure that your wamp is listening on port 80, if you changed this to 8080 then you need to change the port of the game server to something else.
Re: Video 2
Thanks! Redid the socket IO and everything seems to be okay. Not sure why it didn't work the first timehallsofvallhalla wrote:that means it cannot find the dependancy socket.io. Try the socket.io steps again. Also be sure that your wamp is listening on port 80, if you changed this to 8080 then you need to change the port of the game server to something else.
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Video 2
Hey Halls, why do you use WAMP when you are also running node?hallsofvallhalla wrote:that means it cannot find the dependancy socket.io. Try the socket.io steps again. Also be sure that your wamp is listening on port 80, if you changed this to 8080 then you need to change the port of the game server to something else.
The indelible lord of tl;dr
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video 2
good question and was waiting for someone to ask me that
I had original plans to use ajax and php with mysql for the backend. After thinking about this more carefully I believe I might use mongo instead.
I had original plans to use ajax and php with mysql for the backend. After thinking about this more carefully I believe I might use mongo instead.