The client for Pokémon Showdown
Go to file
Cathy J. Fitzpatrick 23f1b56b67 Add support for server alternative ports
If connecting to the server's main port fails, the client will
automatically attempt to connect on the alternative port. If connecting
on the alternative port is successful, this is recorded in localStorage
so that next time, the alternative port is used first.

This is mainly intended to be used by the main server, which has a
primary port of 8000 and a relatively little known alternative port
of 80.
2013-02-21 19:33:56 -07:00
backup Move notification.php to the backup directory 2013-02-20 04:10:53 -07:00
data Fix Fly and Razor Wind's messages. 2013-02-19 16:43:28 -05:00
fx Populate with current state of client 2013-01-23 16:39:14 -08:00
githooks Only use first 8 characters of MD5 hash in version 2013-01-26 13:56:41 -07:00
js Add support for server alternative ports 2013-02-21 19:33:56 -07:00
lib Populate with current state of client 2013-01-23 16:39:14 -08:00
style Fix horizontal scrolling of chat 2013-02-20 00:56:13 -07:00
.gitignore Some changes to index.php templating 2013-01-26 13:01:00 -08:00
.htaccess Disable web access to some more files 2013-02-20 04:16:42 -07:00
action.php Revert recent changes for now 2013-02-17 23:05:59 -07:00
cache.manifest Populate with current state of client 2013-01-23 16:39:14 -08:00
customcss.php Allow safe proprietary (nonstandard) CSS 2013-02-19 00:01:26 -07:00
favicon-16.png Populate with current state of client 2013-01-23 16:39:14 -08:00
favicon-32.png Populate with current state of client 2013-01-23 16:39:14 -08:00
favicon-48.png Populate with current state of client 2013-01-23 16:39:14 -08:00
favicon-128.png Populate with current state of client 2013-01-23 16:39:14 -08:00
favicon-notify.gif Populate with current state of client 2013-01-23 16:39:14 -08:00
favicon-notify.ico Populate with current state of client 2013-01-23 16:39:14 -08:00
favicon-notify2.ico Populate with current state of client 2013-01-23 16:39:14 -08:00
favicon.gif Populate with current state of client 2013-01-23 16:39:14 -08:00
favicon.ico Populate with current state of client 2013-01-23 16:39:14 -08:00
index.php.template.txt Add support for server alternative ports 2013-02-21 19:33:56 -07:00
ladder.php Populate with current state of client 2013-01-23 16:39:14 -08:00
pokedex.php pokedex.php moved - useful test page for utilichart.js 2013-02-07 16:35:33 -08:00
pokemonshowdown.png Populate with current state of client 2013-01-23 16:39:14 -08:00
pokemonshowdownbeta.png Populate with current state of client 2013-01-23 16:39:14 -08:00
README.md Add query string syntax to testclient.html 2013-02-20 03:55:26 -07:00
robots.txt Populate with current state of client 2013-01-23 16:39:14 -08:00
showdown.crx Populate with current state of client 2013-01-23 16:39:14 -08:00
showdown.webapp Populate with current state of client 2013-01-23 16:39:14 -08:00
testclient.html Add support for server alternative ports 2013-02-21 19:33:56 -07:00

Pokemon Showdown Client

This is a repository for some of the client code for Pokemon Showdown.

This is what runs play.pokemonshowdown.com.

WARNING: You probably want the Pokemon Showdown server.

Testing

You can make and test client changes simply by opening testclient.html. This will allow you to test changes to the client without setting up your own login server.

You can connect to an arbitrary server by navigating to testclient.html?~~host:port. For example, to connect to a server running locally on port 8000, you can navigate to testclient.html?~~localhost:8000.

Certain things will fail:

  • Registering
  • Changing name to a registered name other than the one you are currently logged in with (however, changing to an unregistered name will work, and you can even change back to your original registered name afterward)
  • The ladder tab
  • The /ladder command

Everything else can be tested, though.

Warning

This repository is not "batteries included". It does NOT include everything necessary to run a full Pokemon Showdown client.

In particular, it doesn't include a login/authentication server, nor does it include the database abstraction library used by the ladder library (although it's similar enough to mysqli that you can use that with minimal changes).

It also doesn't include several resource files (namely, the /audio/ and /sprites/ directories) for size reasons.

In other words, this repository is incomplete and NOT intended for people who wish to serve their own Pokemon Showdown client (you can, but it'll require you to rewrite some things). Rather, it's intended for people who wish to contribute and submit pull requests to Pokemon Showdown's client.

License

Pokemon Showdown's client is distributed under the terms of the AGPLv3.

WARNING: This is NOT the same license as Pokemon Showdown's server.