Pokémon battle simulator.
Go to file
Guangcong Luo 8a3ccfbd4b The last of data validation
All of the data received from the client is now validated, with the assumption that it only has JSON code (as far as I know; I may have forgotten something)
2012-04-14 14:55:04 -04:00
config PotD works correctly again 2012-04-08 22:35:25 -04:00
logs Convert logging.md to use CRLFs so Notepad can open it. 2012-02-11 02:16:25 -05:00
.gitignore remove the node_modules folder from the repository and use package.json to define dependencies 2012-02-11 12:59:19 -05:00
abilities.js Update Residual Priorities to use the new Order/SubOrder semantics. 2012-04-12 23:05:46 -04:00
aliases.js Wormadam-Ground/Steel => Wormadam-Sandy/Trash 2012-04-09 00:09:18 -04:00
app.js Even more validation 2012-04-14 12:59:32 -04:00
chat-commands.js Even more validation 2012-04-14 12:59:32 -04:00
doc.txt Add the new event documentation. 2012-03-26 01:54:25 -04:00
formats.js Fix Sleep Clause message. 2012-04-14 02:37:37 -04:00
items.js Lagging Tail Implementation 2012-04-13 23:42:35 +04:00
learnsets.js Add Missingno. 2012-04-09 20:03:42 -04:00
movedex.js Actually, just move Psycho Shift's mechanics to onHit entirely. 2012-04-13 19:55:39 -04:00
old-doc.txt Add the new event documentation. 2012-03-26 01:54:25 -04:00
package.json remove the node_modules folder from the repository and use package.json to define dependencies 2012-02-11 12:59:19 -05:00
pokedex.js Correct pokedex.js 2012-04-09 22:07:33 -04:00
README.md Mention singles only in README 2012-03-28 23:32:43 -04:00
scripts.js Update Giratina-O to Giratina-Origin in the random team generator. 2012-04-12 14:45:41 -04:00
simulator.js Order now works differently: Instead of being a negative priority, it trumps priority, and no order always goes last 2012-04-12 19:57:03 -04:00
statuses.js Move Weather Ball's weather-related effects to the move and out of the weather as well. 2012-04-13 17:00:13 -04:00
tiers.js April's tier updates. 2012-04-11 20:31:24 -04:00
tools.js The last of data validation 2012-04-14 14:55:04 -04:00
typechart.js Fix type-based weather immunities 2012-04-04 18:33:31 -04:00
users.js Name sanitization for the new protocol 2012-04-09 17:32:26 -04:00

Showdown

Showdown is a simulator of Pokemon battles. It currently only supports singles battles in Generation 5 (Pokemon Black and Pokemon White).

Installing

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.

Browser support

Showdown currently supports, in order of preference:

  • Chrome
  • Firefox 4+
  • Safari
  • Safari for iPhone/iPod/iPad
  • Firefox for Android
  • IE9+

The built-in Android browser is not supported because of socket.io bug 651, but will be when that bug is fixed. In the meantime, Firefox for Android works.

IE8 has a few teambuilder issues that will be worked out when I have time.

I haven't looked into Opera much, but support for that is planned as long as it doesn't turn out to be too difficult.

As for older browsers (Firefox 3.6, IE7), 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.