The Multi Compiler
By Swdfm 8th May 2025
What does this do?
Instructions
1) Install the Plugin as standard
2) In the PBS file, add or remove folders as preferred
3) Go to Debug -> Files options -> Compile data
4) The method get_folder in the module - Multi_Compiler page will allow you to dictate which folder is used when.
- Be careful if it depends on something in game, or even an option.
- Some examples have been given on page. Set to nil for vanilla base PBS files.
- This is hopefully the only .rb file you need to edit in the plugin.
- I recommend you link it to another method in your project, so you don't have to mess much with this plugin!
Current Drawbacks
1) May not translate everything automatically into foreign languages for INTL files, though this may be able to be done manually
2) Within each folder, you cannot add extra PBS files to the base ones, unless you also add one to the standard PBS files
eg.
PBS/
Gen 5/
pokemon.txt
pokemon_extra.txt
pokemon.txt
Would not compile pokemon_extra.txt in the new folder
But
PBS/
Gen 5/
pokemon.txt
pokemon_extra.txt
pokemon.txt
pokemon_extra.txt (*)
Would, even if this file -> (*) is empty!
I'm not sure how often people do this though anyway!
3) Though it is possible to change the data used during a playthrough, this is definitely not recommended unless done carefully.
eg. You have Gen 8 mode turned on, and the player picks Scorbunny as a starter. You then switch Gen to 5, and Scorbunny is no longer available in the PBS file, and so causes a crash.
4) The game will not automatically compile if you have changed a PBS file from inside one of the folders. Instead, you will have to do so manually by changing either a PBS file, or manually compiling (Step 3 in Instructions)
Not so much a drawback, but if you remove a folder after it compiles in the Data/ folder, it is helpful to remove it from the Data/ folder too, just to save space.
This is a new Plugin, so contact me if there's any issues
Thanks!
Swdfm
By Swdfm 8th May 2025
What does this do?
- This makes the game compile multiple folders of the necessary files as standard
- This allows you to do something like change the Pokedex mid game, or change the Gen from 5 to 8 in the same game. Moves, abilities, everything!
Instructions
1) Install the Plugin as standard
2) In the PBS file, add or remove folders as preferred
3) Go to Debug -> Files options -> Compile data
4) The method get_folder in the module - Multi_Compiler page will allow you to dictate which folder is used when.
- Be careful if it depends on something in game, or even an option.
- Some examples have been given on page. Set to nil for vanilla base PBS files.
- This is hopefully the only .rb file you need to edit in the plugin.
- I recommend you link it to another method in your project, so you don't have to mess much with this plugin!
Current Drawbacks
1) May not translate everything automatically into foreign languages for INTL files, though this may be able to be done manually
2) Within each folder, you cannot add extra PBS files to the base ones, unless you also add one to the standard PBS files
eg.
PBS/
Gen 5/
pokemon.txt
pokemon_extra.txt
pokemon.txt
Would not compile pokemon_extra.txt in the new folder
But
PBS/
Gen 5/
pokemon.txt
pokemon_extra.txt
pokemon.txt
pokemon_extra.txt (*)
Would, even if this file -> (*) is empty!
I'm not sure how often people do this though anyway!
3) Though it is possible to change the data used during a playthrough, this is definitely not recommended unless done carefully.
eg. You have Gen 8 mode turned on, and the player picks Scorbunny as a starter. You then switch Gen to 5, and Scorbunny is no longer available in the PBS file, and so causes a crash.
4) The game will not automatically compile if you have changed a PBS file from inside one of the folders. Instead, you will have to do so manually by changing either a PBS file, or manually compiling (Step 3 in Instructions)
Not so much a drawback, but if you remove a folder after it compiles in the Data/ folder, it is helpful to remove it from the Data/ folder too, just to save space.
This is a new Plugin, so contact me if there's any issues
Thanks!
Swdfm
- Credits
- Swdfm