Pokemon emerald battle simulator with a fully functioning elo system and leaderboard Inspired by pimanrules' pokemon crystal elo world (https://github.com/jsettlem/elo_world_pokemon_crystal)
- a custom fork of pokeemerald-expansion
- copy the debug elf file
pokeemerald.elfand linker mappokeemerald.mapinto the project's res folder - i cannot provide prebuilt roms for obvious reasons. build instructions are in the fork readme
- copy the debug elf file
- devkitpro installed (recommended to also have devkitARM's gdb executable in your PATHs located in
(devkitpro dir)/devkitARM/bin/) - a build of mgba coppied into
res/mgba
- in order to add players, run
pokemon.py- there are a couple of variables that can be adjusted
SHINY_ODDS: adjusts the chance of trainer's pokemon to be a shiny(1 / SHINY_ODDS)PLAYER_COUNT: amount of players that will be added to the player poolDEFAULT_TRAINER_AI_FLAGS: the default ai flags that trainers will use- explaination of each ai flag are inside of the
__ai_flagsenum inside ofpoke_data.py, but they mostly dont need to be changed
- explaination of each ai flag are inside of the
- there are a couple of variables that can be adjusted
- once players have been added, run
main.py - saved information about the leaderboard are stored in the
dump/directory, and a viewable html page of the leaderboard is stored atwebsite/html/leaderboard.html
- remove requirement for a custom fork of pokeemerald-expansion
- prevent database from being recalculated every match, takes a lot of time if there are a lot of matches in the battle logs

