1. Remember to check the Simple Questions/Simple Answers , Suggestions , Bug Reports and Technical Support threads before posting. If you have something that warrants extended discussion then post a thread, but when in doubt, please use an already existing thread
  2. Welcome to Smogon! Check out the Smogon Starters Hangout for everything you need to know about starting out in the community. Don't forget to introduce yourself in the Introduction and Hangout Thread, too!
  3. Welcome to Smogon Forums! Please take a minute to read the rules.

[WIN7] How do you host a PS server?

Discussion in 'Pokémon Showdown!' started by FireRed, Aug 28, 2012.

  1. FireRed

    FireRed

    Joined:
    Aug 28, 2012
    Messages:
    2
    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
  2. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,894
  3. FireRed

    FireRed

    Joined:
    Aug 28, 2012
    Messages:
    2
    I installed node.js and npm (by default) but the node command doesnt work on Command Prompt or Node.js. :(
  4. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,894
    Well, I don't have a very good idea of what to do, then. Try opening app.js with Node?
  5. BlueCloud

    BlueCloud

    Joined:
    Sep 14, 2012
    Messages:
    1
    Even I have the same problem
    I tried everything above but not done
    can anyone help me!!!
  6. Larrisons

    Larrisons

    Joined:
    Dec 6, 2012
    Messages:
    2
    This link worked for me. I wonder why yours got stuck with Apple.
  7. Havinfun85

    Havinfun85

    Joined:
    Aug 20, 2012
    Messages:
    22
    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?
  8. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,894
    As I said: the instructions are for POSIX.

    POSIX is a family of operating systems that includes Linux, Mac OS X, BSD, Unix, etc...
  9. Havinfun85

    Havinfun85

    Joined:
    Aug 20, 2012
    Messages:
    22
    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?
  10. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,894
    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.
  11. DrVlad

    DrVlad

    Joined:
    Jan 28, 2013
    Messages:
    5
    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)
    >
  12. Raichoice

    Raichoice

    Joined:
    Jan 7, 2013
    Messages:
    47
    when i put in node app.js i get ... and then i put npm install and it keeps going ...
    im i doing something wroung?
  13. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,894
    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

Users Viewing Thread (Users: 0, Guests: 0)