Video 2

Tutorials on real time browser based mmo/mud
Post Reply
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Video 2

Post by hallsofvallhalla »

User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Video 2

Post by OldRod »

Yay, new videos!! :)

Thanks, Halls!!
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video 2

Post by hallsofvallhalla »

got more coming tomorrow ;)
User avatar
Epiales
Posts: 1119
Joined: Thu Aug 15, 2013 1:38 am

Re: Video 2

Post 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:
Nothing fancy, but a work in progress!

http://gameplaytoday.net
User avatar
Epiales
Posts: 1119
Joined: Thu Aug 15, 2013 1:38 am

Re: Video 2

Post 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:
Nothing fancy, but a work in progress!

http://gameplaytoday.net
overras
Posts: 91
Joined: Sun Oct 03, 2010 7:25 am

Re: Video 2

Post by overras »

Thank you for your tuts halls ;)
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video 2

Post 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.
User avatar
Epiales
Posts: 1119
Joined: Thu Aug 15, 2013 1:38 am

Re: Video 2

Post 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:
Nothing fancy, but a work in progress!

http://gameplaytoday.net
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Video 2

Post 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?
The indelible lord of tl;dr
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video 2

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

Return to “Real Time Browser Based MMO”