Impact and Node.js Video #6

Impact, Node, Web Sockets, Javascript, HTML5, Mysql, tons of things in this tutorial
Post Reply
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Impact and Node.js Video #6

Post by hallsofvallhalla »

Node and socket.io are here!

http://www.youtube.com/watch?v=KnQIkKHrdFY

Will post source in next video that is uploading now

source is here
http://www.mediafire.com/?tkb6b9k6185n7lh
dust1031
Posts: 92
Joined: Fri Jul 22, 2011 3:38 am

Re: Video 6

Post by dust1031 »

ive been watching these tutorials and i just downloaded the source for the first time. and im using xampp so i put it in my htdocs directory where all my game files go. and made a folder called impacttut and when i go to my browser and type in localhost/htdocs/impacttut it just comes up a black screen the browser name says impact game and the icon is the xampp symbol. but how come my map wont load
gxxaxx
Posts: 9
Joined: Mon Mar 26, 2012 4:40 am

Re: Video 6 -- installation problem

Post by gxxaxx »

I've been following along with your tutorials.
When I got to the part about installing the nodejs and socket.io I am getting the following problem:

C:\xampp\htdocs\minimulti>npm install socket.io
npm http GET https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/socket.io
npm ERR! cb() never called!
npm ERR!
npm not ok

Did a little google searching. Didn't see any obvious help :)
Do you have any clue what might be the issue?
I'm wondering if the fact that their https certificate is not recognized can be a problem.
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: Video 6

Post by hallsofvallhalla »

you dont need to run the install. That is a extra step that is not needed. Just copy the files in the right place.
ztbrown
Posts: 1
Joined: Tue Apr 03, 2012 1:14 pm

Re: Video 6

Post by ztbrown »

A better way to install socket.io:

1. Open a terminal and CD to your nodejs directory (C:\Program Files (x86)\nodejs for example)
2. npm install socket.io
3. ...
4. profit
User avatar
Jackolantern
Posts: 10893
Joined: Wed Jul 01, 2009 11:00 pm

Re: Video 6

Post by Jackolantern »

dust1031 wrote:ive been watching these tutorials and i just downloaded the source for the first time. and im using xampp so i put it in my htdocs directory where all my game files go. and made a folder called impacttut and when i go to my browser and type in localhost/htdocs/impacttut it just comes up a black screen the browser name says impact game and the icon is the xampp symbol. but how come my map wont load
Sorry I did not see this earlier, but do not put in the "htdocs" part of the URL. That is your web host root. It would just be localhost/impacttut.
The indelible lord of tl;dr
Joncom
Posts: 9
Joined: Fri Apr 20, 2012 5:00 am

Re: Video 6

Post by Joncom »

ztbrown wrote:A better way to install socket.io:

1. Open a terminal and CD to your nodejs directory (C:\Program Files (x86)\nodejs for example)
2. npm install socket.io
3. ...
4. profit
+1 Saves having to download socket.io from the website.
User avatar
Jackolantern
Posts: 10893
Joined: Wed Jul 01, 2009 11:00 pm

Re: Video 6

Post by Jackolantern »

Yes, basically all node.js modules, extensions, etc. should be installed through NPM. Many of the smaller ones are not even made publicly available outside of the repository (well, they are, but they aren't advertised, have no real website, etc.).
The indelible lord of tl;dr
atef201080
Posts: 1
Joined: Mon Nov 26, 2012 7:27 am

Re: Impact and Node.js Video #6

Post by atef201080 »

getting just a black blank page http://prntscr.com/kmhhr and here is the console screenshot http://prntscr.com/kmhpi
User avatar
Jackolantern
Posts: 10893
Joined: Wed Jul 01, 2009 11:00 pm

Re: Impact and Node.js Video #6

Post by Jackolantern »

I am no whiz with node.js, but it looks like you are connecting since the client is heartbeating. Until Halls can ask for a specific script to look at, I suggest adding some console.log() calls around the area of the code that appears to not be working, and check some of the variables involved with that operation to see if anything is missing that should be there.
The indelible lord of tl;dr
Post Reply

Return to “Impact and Node/Socket.io”