Page 1 of 1

Video 2

Posted: Sun Sep 22, 2013 11:12 pm
by hallsofvallhalla

Re: Video 2

Posted: Sun Sep 22, 2013 11:41 pm
by OldRod
Yay, new videos!! :)

Thanks, Halls!!

Re: Video 2

Posted: Mon Sep 23, 2013 1:52 am
by hallsofvallhalla
got more coming tomorrow ;)

Re: Video 2

Posted: Mon Sep 23, 2013 1:54 am
by Epiales
hallsofvallhalla wrote:got more coming tomorrow ;)
Awesome. Thanks for the videos. I have done video one so far and have all that setup YAY :lol:

Re: Video 2

Posted: Mon Sep 23, 2013 3:28 am
by Epiales
On the second video, I end up with this error in my console:

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
No idea what it means :D

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 :oops:

Re: Video 2

Posted: Mon Sep 23, 2013 4:07 am
by overras
Thank you for your tuts halls ;)

Re: Video 2

Posted: Mon Sep 23, 2013 1:21 pm
by hallsofvallhalla
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

Posted: Tue Sep 24, 2013 2:30 am
by Epiales
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.
Thanks! Redid the socket IO and everything seems to be okay. Not sure why it didn't work the first time :oops:

Re: Video 2

Posted: Wed Sep 25, 2013 2:26 am
by Jackolantern
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.
Hey Halls, why do you use WAMP when you are also running node?

Re: Video 2

Posted: Wed Sep 25, 2013 1:49 pm
by hallsofvallhalla
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.