Converts the Smogon/Pokemon Showdown team format to the format used by hg-engine
- Have python installed
- If on Linux, use your package manager to install
xclip
,xsel
, orwl-clipboard
- Clone/download repo, then navigate to the repo directory in Terminal/cmd and run
pip install -r requirements.txt
- If no arguments are provided when ran from Terminal/cmd, input is read from your clipboard and output is written in Terminal/cmd
- If ran inside an IDE, it will likely think it is being run via double-clicking. In which case, just run it from Terminal/cmd within your IDE.
- If ran by double-clicking showdownConv.py, input is read from your clipboard and output is written to your clipboard
- The input text read from your clipboard will be written to the file
last_input.txt
as a backup
- The input text read from your clipboard will be written to the file
usage: showdownConv.py [-h] [-i INPUT] [-o OUTPUT] [-co] [--whole-trainer] [-s]
showdownConv: Converts Showdown/Smogon trainer format to hg-engine trainer format
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
input file containing Smogon-format team(s) - clipboard is used as input if omitted
-o OUTPUT, --output OUTPUT
output file
-co, --clipboard-out writes Smogon format team(s) to clipboard instead of output file
--whole-trainer writes the data for the entire trainer, not just the party
-s, --silent silences output except for errors and result output if -o or -co are not used
- bug fixes as stuff is brought to my attention
- feel free to contribute by forking and making PR's!
- integration into the main hg-engine repo (idk why I didn't do that in the first place...)
- need to work on making it support specifying alt forms, right now have no way to do that. need some sort of translation table maybe...