Go Back   Smogon Community > Site & Projects > Pokémon Showdown!
Register FAQ Social Groups Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
Old Aug 28th, 2012, 11:57:07 AM   #1
FireRed
 
Join Date: Aug 2012
Posts: 2
Default [WIN7] How do you host a PS server?

I am currently running a 64-bit operation system on Windows 7, and I was wondering how do you make a PS server? I got the source files, but all the instructions are in Apple. Please help asap! :D
FireRed is offline   Reply With Quote
Old Aug 28th, 2012, 4:39:04 PM   #2
Zarel*
>> BEGIN POSTBIT
is a member of the Smogon Site Staffis a Battle Server Administratoris a Super Moderatoris a Programmer
 
Zarel's Avatar
 
Super Moderator
Join Date: Aug 2011
Posts: 1,170
>> END POSTBIT
Default

The instructions are in POSIX, to be exact, and though I've never tried them myself, they should theoretically work on a Windows command line without any modifications.

Are you looking at these instructions?

https://github.com/Zarel/Pokemon-Sho...ster/README.md
__________________
Pokemon Showdown | Replay player | No, I am not impressed that you know that my name is Guangcong Luo. The PS website says "Copyright Guangcong Luo" at the bottom, ffs.
Zarel is offline   Reply With Quote
Old Aug 29th, 2012, 11:37:41 AM   #3
FireRed
 
Join Date: Aug 2012
Posts: 2
Default

I installed node.js and npm (by default) but the node command doesnt work on Command Prompt or Node.js. :(
FireRed is offline   Reply With Quote
Old Aug 29th, 2012, 3:43:50 PM   #4
Zarel*
>> BEGIN POSTBIT
is a member of the Smogon Site Staffis a Battle Server Administratoris a Super Moderatoris a Programmer
 
Zarel's Avatar
 
Super Moderator
Join Date: Aug 2011
Posts: 1,170
>> END POSTBIT
Default

Well, I don't have a very good idea of what to do, then. Try opening app.js with Node?
__________________
Pokemon Showdown | Replay player | No, I am not impressed that you know that my name is Guangcong Luo. The PS website says "Copyright Guangcong Luo" at the bottom, ffs.
Zarel is offline   Reply With Quote
Old Sep 15th, 2012, 2:10:59 AM   #5
BlueCloud
 
Join Date: Sep 2012
Posts: 1
Default

Even I have the same problem
I tried everything above but not done
can anyone help me!!!
BlueCloud is offline   Reply With Quote
Old Dec 9th, 2012, 2:55:59 AM   #6
Larrisons
 
Join Date: Dec 2012
Posts: 2
Default

Quote:
Originally Posted by Fat Zarel View Post
The instructions are in POSIX, to be exact, and though I've never tried them myself, they should theoretically work on a Windows command line without any modifications.

Are you looking at these instructions?

https://github.com/Zarel/Pokemon-Sho...ster/README.md
This link worked for me. I wonder why yours got stuck with Apple.
Larrisons is offline   Reply With Quote
Old Jan 21st, 2013, 9:41:16 PM   #7
Havinfun85
 
Havinfun85's Avatar
 
Join Date: Aug 2012
Posts: 15
Default

Hey zarel, I was looking at the link and it looked like it was made for Linux, would I be right in making that assumption? That those instructions work well for Linux distros also?
__________________
Just havinfun...
Havinfun85 is offline   Reply With Quote
Old Jan 21st, 2013, 9:47:31 PM   #8
Zarel*
>> BEGIN POSTBIT
is a member of the Smogon Site Staffis a Battle Server Administratoris a Super Moderatoris a Programmer
 
Zarel's Avatar
 
Super Moderator
Join Date: Aug 2011
Posts: 1,170
>> END POSTBIT
Default

Quote:
Originally Posted by Fat Havinfun85 View Post
Hey zarel, I was looking at the link and it looked like it was made for Linux, would I be right in making that assumption? That those instructions work well for Linux distros also?
As I said: the instructions are for POSIX.

POSIX is a family of operating systems that includes Linux, Mac OS X, BSD, Unix, etc...
__________________
Pokemon Showdown | Replay player | No, I am not impressed that you know that my name is Guangcong Luo. The PS website says "Copyright Guangcong Luo" at the bottom, ffs.
Zarel is offline   Reply With Quote
Old Jan 21st, 2013, 9:56:26 PM   #9
Havinfun85
 
Havinfun85's Avatar
 
Join Date: Aug 2012
Posts: 15
Default

Perfect.
However when i do npm install in terminal it gives me several errors.

Edit: I fixed some of the errors however where would I find and set up SockJS?
__________________
Just havinfun...

Last edited by Havinfun85; Jan 21st, 2013 at 10:19:01 PM.
Havinfun85 is offline   Reply With Quote
Old Jan 21st, 2013, 10:45:23 PM   #10
Zarel*
>> BEGIN POSTBIT
is a member of the Smogon Site Staffis a Battle Server Administratoris a Super Moderatoris a Programmer
 
Zarel's Avatar
 
Super Moderator
Join Date: Aug 2011
Posts: 1,170
>> END POSTBIT
Default

SockJS should be automatically installed when you run npm install.

The error message you PMed me makes me believe there's something wrong with npm's servers; it should work if you try again tomorrow.
__________________
Pokemon Showdown | Replay player | No, I am not impressed that you know that my name is Guangcong Luo. The PS website says "Copyright Guangcong Luo" at the bottom, ffs.
Zarel is offline   Reply With Quote
Old Feb 8th, 2013, 7:20:53 PM   #11
DrVlad
 
Join Date: Jan 2013
Posts: 4
Default Help

I keep getting this error help

> D:/Pokemon/app.js
SyntaxError: Invalid flags supplied to RegExp constructor 'app'
at new RegExp (unknown source)
at repl:1:1
at REPLServer.self.eval (repl.js:109:21)
at rli.on.self.bufferedCmd (repl.js:258:20)
at REPLServer.self.eval (repl.js:116:5)
at Interface.<anonymous> (repl.js:248:12)
at Interface.EventEmitter.emit (events.js:96:17)
at Interface._onLine (readline.js:200:10)
at Interface._line (readline.js:518:8)
at Interface._ttyWrite (readline.js:736:14)
>
DrVlad is offline   Reply With Quote
Old Feb 27th, 2013, 5:11:16 PM   #12
Raichoice
 
Raichoice's Avatar
 
Join Date: Jan 2013
Posts: 47
Under a rock
Default

when i put in node app.js i get ... and then i put npm install and it keeps going ...
im i doing something wroung?
__________________
Am I interrupting something?
~ Raichoice

Kindly gtfo
~ Raichoice
Raichoice is offline   Reply With Quote
Old Feb 28th, 2013, 1:46:37 AM   #13
Zarel*
>> BEGIN POSTBIT
is a member of the Smogon Site Staffis a Battle Server Administratoris a Super Moderatoris a Programmer
 
Zarel's Avatar
 
Super Moderator
Join Date: Aug 2011
Posts: 1,170
>> END POSTBIT
Default

Quote:
Originally Posted by Fat Raichoice View Post
when i put in node app.js i get ... and then i put npm install and it keeps going ...
im i doing something wroung?
Where are you typing that in? o_O

You should be typing it into a commandline with Pokemon Showdown's directory as its working directory.

Also, npm install goes first. :P
__________________
Pokemon Showdown | Replay player | No, I am not impressed that you know that my name is Guangcong Luo. The PS website says "Copyright Guangcong Luo" at the bottom, ffs.
Zarel is offline   Reply With Quote
Reply Smogon Community > Site & Projects > Pokémon Showdown!

« Previous Thread | Next Thread »
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 4:57:50 AM.