Page 1 of 1

HallsNode Error

Posted: Sun Apr 14, 2013 10:05 am
by Anony
Hello Everyone,
When I start I get an error server.bat of app.js
There is something with row 3, also I change something with that line I still get an error.
Here is a screenshot of the error:
Image

Sorry for my bad english I'm Dutch

Re: HallsNode Error

Posted: Sun Apr 14, 2013 11:39 am
by Elvar
You may want to translate the error message, google translate gives me shit :).

Re: HallsNode Error

Posted: Sun Apr 14, 2013 4:03 pm
by Anony
The English translation of the error is:
Script: C:\xampp\htdocs\VILLAGEWORLD\node
Row: 3
Character: 1
Error: Object expected
Code: 800A138F
Source: Runtime Error Microsoft JScript

Re: HallsNode Error

Posted: Sun Apr 14, 2013 7:49 pm
by Jackolantern
You need to actually use the "node" command to run a node script. The way you entered it, Windows is trying to run the script itself, which is not what you want. Change the "/app.js" part to "/node app.js"

EDIT: Or in your case, open the .bat file and manually change the command there.

Re: HallsNode Error

Posted: Mon Apr 15, 2013 3:41 pm
by Anony
I have now this code:
C:\xampp\htdocs\VILLAGEWORLD\node app.js

But its just crashing (closing the bat file)
C:/xampp/htdocs/VILLAGEWORLD/node app.js
Does to not working

Re: HallsNode Error

Posted: Mon Apr 15, 2013 11:24 pm
by Jackolantern
Do you have node either in that directory or added to your system path? When you go into that folder on the command line and just type "node", do you get the node prompt?

Re: HallsNode Error

Posted: Tue Apr 16, 2013 7:55 am
by Chris
You're running it wrong, I also think it's executing in the wrong environment.

try this

Image+R
(start -> run)

type in:

Code: Select all

cmd
hit enter

paste:

Code: Select all

cd C:\xampp\htdocs\VILLAGEWORLD\node
hit enter

paste:

Code: Select all

node app.js
hit enter and watch it work

Re: HallsNode Error

Posted: Tue Apr 16, 2013 2:49 pm
by Anony
Thanks Chris its working now.
But i getting a another error, a screenshot:
Image

Re: HallsNode Error

Posted: Wed Apr 17, 2013 1:38 am
by hallsofvallhalla
you need to get the branch or just download the latest nodejs code then copy it over the halls node. I need to fix the current code but someone fixed it in a branch.

Re: HallsNode Error

Posted: Wed Apr 17, 2013 1:41 pm
by Anony
I've been searching hours for the source but can not find anything.