Impact and Node.js Video #6
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Impact and Node.js Video #6
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
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
Re: Video 6
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
Re: Video 6 -- installation problem
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.
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.
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video 6
you dont need to run the install. That is a extra step that is not needed. Just copy the files in the right place.
Re: Video 6
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. Open a terminal and CD to your nodejs directory (C:\Program Files (x86)\nodejs for example)
2. npm install socket.io
3. ...
4. profit
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Video 6
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.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
The indelible lord of tl;dr
Re: Video 6
+1 Saves having to download socket.io from the website.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
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Video 6
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
-
- Posts: 1
- Joined: Mon Nov 26, 2012 7:27 am
Re: Impact and Node.js Video #6
getting just a black blank page http://prntscr.com/kmhhr and here is the console screenshot http://prntscr.com/kmhpi
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Impact and Node.js Video #6
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