Pokémon battle simulator.
Go to file
Marty-D e60936e185 Fix Skull Bash and Power Herb.
- Skull Bash gives +1 Defense even with Power Herb.
- Sky Drop is not affected by Power Herb.
2013-03-13 11:44:05 -04:00
config Implement pruning of User objects 2013-03-10 06:04:02 -06:00
data Fix Skull Bash and Power Herb. 2013-03-13 11:44:05 -04:00
logs Changes to logging.md 2013-02-15 18:06:44 -07:00
mods Gen I: Rest fix. One turn less 2013-03-10 12:30:39 +01:00
.gitignore .gitignore everything in /config/ 2012-07-28 15:04:02 -07:00
app.js Fix presumably accidental global youUser in app.js 2013-03-10 12:25:55 -06:00
battles.js Damage category refactor for gen 3 2013-03-08 08:36:14 -08:00
chat-commands.js Change some aliases 2013-03-07 10:37:20 -08:00
doc.txt Move braces to the same line as their control statements 2012-04-16 12:54:03 +10:00
LICENSE We are now officially MIT Licensed 2013-01-17 05:00:28 -08:00
old-doc.txt Fixed the fix 2012-04-16 14:29:07 +10:00
package.json Move socket.io to optionalDependencies 2013-01-23 23:25:07 -07:00
Procfile Make Procfile specify Heroku's desired port 2012-05-16 19:31:02 -05:00
README.md Add Cathy J. Fitzpatrick to the Developers list 2013-02-22 05:30:54 -07:00
rooms.js Clear old lobby chat with splice rather than slice 2013-03-07 19:07:04 -07:00
simulator.js Implement multiple simulator processes 2013-02-22 23:14:00 -07:00
tools.js Refactor gen 1 2013-03-08 08:59:17 -08:00
users.js Remove User.prototype.token 2013-03-10 23:50:38 -06:00
verifier.js Fix crash in verifier.js 2013-02-08 00:04:27 -07:00

Pokemon Showdown

Pokemon Showdown is a simulator of Pokemon battles. It currently supports singles battles in Generations 4-5 (HGSS, BW, BW2).

Installing

Pokemon Showdown requires Node.js and npm (which is installed by default with Node.js since v0.6.3).

Run npm install to install all necessary dependencies.

Copy config/config-example.js into config/config.js, and edit as you please.

After this, start Node:

cd <location of PS>
node app.js

You can also specify a port:

node app.js 8000

Visit your server at http://play.pokemonshowdown.com/~~SERVER:PORT/

Replace SERVER with your server domain or IP, and PORT with the server's port. You can leave off :PORT if it is 8000 (the default).

Yes, you can test even if you are behind a NAT without port forwarding: http://play.pokemonshowdown.com/~~localhost/ will connect to your local machine. Some browser setups might prevent this sort of connection, however (NoScript, for instance). If you can't get connecting locally to work in Firefox, try Chrome.

The reason your server is visited through play.pokemonshowdown.com is to make it more difficult for servers to see a user's password in any form, by handling logins globally. I realize that you might want your own login server and client hosted outside the pokemonshowdown.com domain, and I'll look more deeply into how to facilitate that when we're closer to leaving beta.

Creating an Administrator account for yourself on your server

You have two options to create an Administrator (~) account on your new server.

config/usergroups.csv

For most users, the easiest way to become an Administrator will be to create a file named config/usergroups.csv containing

User,~

where User is the user that you would like to become an Administrator.

The user account User must be registered. If you do not have a registered Pokemon Showdown account, you can create one at http://pokemonshowdown.com/forum/register

localsysop setting

Alternatively, if you do not want to use config/usergroups.csv, you can use the following method to become an Administrator. In your config/config.js file, you can set exports.localsysop = true and then any users who join from 127.0.0.1 will automatically become Administrators, even if they are unregistered.

If you are running the Pokemon Showdown server on a remote computer without a desktop environment (such as a VPS), you can still connect from 127.0.0.1 using an SSH tunnel:

ssh user@example.com -L 3000:127.0.0.1:8000 -N

Replace user by your user account on the remote computer and replace example.com by the host name of the remote computer. Replace 8000 by the port that the server is running on. You can then point your browser to http://play.pokemonshowdown.com/~~localhost:3000/ and it will connect to example.com:8000, but it will consider you to be connecting from 127.0.0.1, so you will become an Administrator.

Browser support

Showdown currently supports, in order of preference:

  • Chrome
  • Firefox
  • Safari
  • Chrome/Firefox/Safari for various mobile devices
  • Opera
  • Firefox for Android
  • IE9+

IE8 support can technically be added without too much difficulty, but it doesn't run PS fast enough to be usable.

As for older browsers (Firefox 3.6), I won't go out of my way to support them, but if there's a simple fix, you can suggest it to me and I'll implement it.

License

Pokemon Showdown's server is distributed under the terms of the MIT License.

Credits

Pokemon Showdown was created by Guangcong Luo [Zarel].

Developers

  • Guangcong Luo [Zarel]
  • Bill Meltsner [bmelts]
  • Cathy J. Fitzpatrick [cathyjf]

Contributors

  • [The Immortal]
  • [Marty-D]
  • Cody Thompson [Rising_Dusk]