* Move gen 8 rands code to gen8 folder * Add test data file * Remove hidden power from random-teams * Remove BDSP * Remove item selection for now * Remove ability culling for now * Remove move culling for now * Obtain allowed pokemon from random-sets.json * Add tera blast counter * linting * Remove Dynamax from random-teams * Remove unnecessary check * Add role and tera type + fix data format * remove gmax * Disable tier for now * movePool should have move ids not names * linting * Add required moves * Create an individual function for moveset generation * Return moves early if <= 4 moves available * Add counter for individual STABS, including tera * Tera Blast is tera stab * Add some moves (help with testing) * Remove culling moves from moveset * Add new hazard removing moves * Test STAB and recovery moves * Cull movepool each time a move is added * Black Sludge only if tera type is Poison * teratype and role to functions * Test some 'High Priority' items * Move ability selection to its own function * Fix ability sorting/selection * No need to go through the move adding process if number of moves in set + movepool is 4 * lint * Remove some pokemon that aren't in gen 9 randbats * Tera STAB example * Allow for forcing abilities * Silvally not in gen 9 * Move level calculation to getLevel * Tier-based levelling and doubles coverage * Sitrus Berry default item for doubles * Avoid hard-coding for species frequency * Linting + replace hail with snow * Change a comment slightly * Fix STAB moves: need to check that they do damage * minor thing * Comment out tera type requirement * comments * Add gen 9 randbats format * STAB counter * Remove setupType * Add cullMutlaExclusive() * Remove unnecessary functions * Move CC/HC to the bottom * Allow movesA and movesB to be overlapping * Initialization of fill-out * linting * Setup moveEnforcementCheckers * Type/STAB counter only updates for moves that aren't in noSTAB * Account for type changing abilities earlier * STAB enforcement * Setup moves array * linting * Revert Setup change * More fillout * move tweaks * Tera STAB enforcement * Remove rest from recovery moves * Enforce setup * Add Facade if Guts * Misc enforced moves * Enforce more moves * Enforce STAB priority * Setup forced on tera blast user * check if there are moves of the desired kind before sampling * move tweaks * Need to check if setupMoves is empty * fix brute bonnet * fix scream tail * Finish up move incompatibilities * fix scream tail harder * Formatting * Fix some things * End culling early if movepool gets too small * Paired moves: end culling early if movepool gets too small * Remove 'stop cull' for testing purposes * If 2/4 moves are filled, remove single unpaired move * Remove now unnecessary hardcodes * Use MovePairs instead of hardcoding pairs * addMove function for adding moves to moveset * Move updates * Extra check is unnecessary, moves and movePool should never have moves in common * Mach Punch required on Breloom * lint * Remove Synthesis from Brute Bonnet (5 enforced moves) * adjust oranguru tera types * finish up moves * Force abilities * Update my favorite pokemon * linting * Add shouldCullAbility * fix setup counter * Move sorting abilities below hardcoding * minor change * Add fields * fix sawsbuck typo * Improve the species generation + remove Basculegion and Houndstone as possible leads * Fix Species frequency * Linting * veluza can actually run sharpness * code all ability rejections * Update random-sets.json * EVs/IVs tinkering change * fix capitalization error * Perform small fixes * fix moves that don't exist * linting * Magnezone hardcode * Items * Update random-teams.ts * linting * prep for leveling * long list for ditto * comment out a line of text * finish individualizing levels and also melop sucks * add lokix thing * revavroom * updates from testing * komala probably shouldn't have dark as an option * tropius fix * intim mence is ok * kleavor should not get sheer force * why did we give hydre earth power lmao * why did we put leech seed on toed * forgot to sitrusify cheek pouch mons * fix enamorus * Syntax error * Change Zoroark lastmon condition to level >= 72 * Fix Zoroark-level constraint to allow for level forcing * Fix singles vs doubles definition * Use species.id as much as possible for set generation * updates from testing * allow flash fire heatran * additional sash parameters * reject stakeout if the user has zero attacks * fixes * update pawmot abilities * Change iron fist counter to a number * Force Own Tempo on Petal Dance Lilligant * Add T-wave to SD groudon set * Slush Rush guaranteed with Snowscape + possible if team has snow * Rework ability sorting: find list of non-culled abilities before sorting and selecting * Move S/V rands to The Forefront * fix regidrago * Small fix to choosing allowed abilities * update aliases * Update Arcanines * Change from forEach to for, since index is no longer being used * first impression is bug stab now * set updates from the randscord * Update /randbats to gen 9 * Add Tera Type to /randbats output * things to do with steel * Update data/random-teams.ts Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Update data/random-teams.ts Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Update data/random-teams.ts Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Update data/random-teams.ts Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Update data/random-teams.ts Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Move Battle Factory and BSS Factory to mods/gen8 folder * Remove gen8 factory sets test * Copy over random-sets.json when building * add missing heatran-based incompatibility * fix sableye not always getting Recover * set updates * start movin' cap 1v1 Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * finish movin' cap 1v1 * Update random-battles.ts * Update random-teams.ts * Update random-teams.ts Co-authored-by: livid washed <liuc.kelvin9901@hotmail.com> Co-authored-by: livid washed <115855253+livid-washed@users.noreply.github.com> Co-authored-by: Alexander B <4866817+MathyFurret@users.noreply.github.com> Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| artemis | ||
| chat-commands | ||
| chat-plugins | ||
| modlog | ||
| static | ||
| tournaments | ||
| chat-formatter.ts | ||
| chat-jsx.tsx | ||
| chat.ts | ||
| config-loader.ts | ||
| friends.ts | ||
| global-types.ts | ||
| global-variables.d.ts | ||
| index.ts | ||
| ip-tools.ts | ||
| ladders-challenges.ts | ||
| ladders-local.ts | ||
| ladders-remote.ts | ||
| ladders.ts | ||
| loginserver.ts | ||
| monitor.ts | ||
| punishments.ts | ||
| README.md | ||
| room-battle.ts | ||
| room-game.ts | ||
| room-minor-activity.ts | ||
| roomlogs.ts | ||
| rooms.ts | ||
| sockets.ts | ||
| team-validator-async.ts | ||
| user-groups.ts | ||
| users.ts | ||
| verifier.ts | ||
Pokémon Showdown Server
This repository contains the files needed to set up your own Pokémon Showdown server. Note that to set up a server, you'll also need a server computer.
You can use your own computer as a server, but for other people to connect to your computer, you'll need to expose a port (default is 8000 but you can choose a different one) to connect to, which sometimes requires [port forwarding][5]. Note that some internet providers don't let you host a server at all, in which case you'll have to rent a VPS to use as a server.
Installing
./pokemon-showdown
(Requires Node.js v14+)
If your distro package manager has an old Node.js version, the simplest way to upgrade is n – usually no root necessary:
npm install --global n
n latest
Detailed installation instructions
Pokémon Showdown requires you to have Node.js installed, v14.x or later.
Next, obtain a copy of Pokémon Showdown. If you're reading this outside of GitHub, you've probably already done this. If you're reading this in GitHub, there's a "Clone or download" button near the top right (it's green). I recommend the "Open in Desktop" method - you need to install GitHub Desktop which is more work than "Download ZIP", but it makes it much easier to update in the long run (it lets you use the /updateserver command).
Pokémon Showdown is installed and run using a command line. In Mac OS X, open Terminal (it's in Utilities). In Windows, open Command Prompt (type cmd into the Start menu and it should be the first result). Type this into the command line:
cd LOCATION
Replace LOCATION with the location Pokémon Showdown is in (ending up with, for instance, cd "~/Downloads/Pokemon-Showdown" or cd "C:\Users\Bob\Downloads\Pokemon-Showdown\").
This will set your command line's location to Pokémon Showdown's folder. You'll have to do this each time you open a command line to run commands for Pokémon Showdown.
Copy config/config-example.js into config/config.js, and edit as you please.
Congratulations, you're done setting up Pokémon Showdown.
Now, to start Pokémon Showdown, run the command:
node pokemon-showdown
(If you're not on Windows, we recommend doing ./pokemon-showdown instead.)
You can also specify a port:
node pokemon-showdown 8000
Visit your server at http://SERVER:8000
Replace SERVER with your server domain or IP. Replace 8000 with your port if it's not 8000 (the default port).
Yes, you can test even if you are behind a NAT without port forwarding: http://localhost:8000 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.
You will be redirected to http://SERVER.psim.us. The reason your server is visited through psim.us is to make it more difficult for servers to see a user's password in any form, by handling logins globally. You can embed this in an iframe in your website if the URL is a big deal with you.
If you truly want to host the client yourself, there is a repository for the Pokémon Showdown Client. It's not recommended for beginners, though.
Setting up an Administrator account
Once your server is up, you probably want to make yourself an Administrator (&) on it.
config/usergroups.csv
To become an Administrator, create a file named config/usergroups.csv containing
USER,&
Replace USER with the username that you would like to become an Administrator. Do not put a space between the comma and the ampersand.
This username must be registered. If you do not have a registered account, you can create one using the Register button in the settings menu (it looks like a gear) in the upper-right of Pokémon Showdown.
Once you're an administrator, you can promote/demote others easily with the /globaladmin, /globalmod, /globaldriver, etc commands.