HallsNode Error

Place to find latest version of HallsNode plus ask questions and get answers.
Post Reply
Anony
Posts: 7
Joined: Sat Apr 13, 2013 8:30 am

HallsNode Error

Post 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
User avatar
Elvar
Posts: 86
Joined: Sun Oct 07, 2012 7:04 pm

Re: HallsNode Error

Post by Elvar »

You may want to translate the error message, google translate gives me shit :).
Anony
Posts: 7
Joined: Sat Apr 13, 2013 8:30 am

Re: HallsNode Error

Post 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
User avatar
Jackolantern
Posts: 10893
Joined: Wed Jul 01, 2009 11:00 pm

Re: HallsNode Error

Post 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.
The indelible lord of tl;dr
Anony
Posts: 7
Joined: Sat Apr 13, 2013 8:30 am

Re: HallsNode Error

Post 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
User avatar
Jackolantern
Posts: 10893
Joined: Wed Jul 01, 2009 11:00 pm

Re: HallsNode Error

Post 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?
The indelible lord of tl;dr
User avatar
Chris
Posts: 1580
Joined: Wed Sep 30, 2009 7:22 pm

Re: HallsNode Error

Post 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
Fighting for peace is declaring war on war. If you want peace be peaceful.
Anony
Posts: 7
Joined: Sat Apr 13, 2013 8:30 am

Re: HallsNode Error

Post by Anony »

Thanks Chris its working now.
But i getting a another error, a screenshot:
Image
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: HallsNode Error

Post 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.
Anony
Posts: 7
Joined: Sat Apr 13, 2013 8:30 am

Re: HallsNode Error

Post by Anony »

I've been searching hours for the source but can not find anything.
Post Reply

Return to “HallsNode”