A python script that enhances your SRB2 modding workflow!
View it here in github -> Raw -> Right Click -> Save as file
- Most importantly, it automates the process of saving your mod to a PK3, opening the game and loading your mod every time you want to test it
- While compressed files - such as ZIP/WAD/PK3 - can be uploaded with git, you can't keep track of development (like which files were added, removed or modified in each commit/version)
- Having your mod outside of a compressed file also allows mods to be edited more comfortably with apps other than SLADE, I personally recommend VS Code, since it can run this script AND edit your mods like SLADE.
- If your mod is in a compressed file, extract it to a folder with the
unzip
command - Drag and drop the .py file inside of the mod files, it should look something like this
- Run the .py file with Python or Visual Studio Code, a terminal should open
- If you haven't yet, tell it where your SRB2.exe is with the
set
command - Afterwards, everytime you simply press enter on the terminal (without a command), this script will automatically compile your mod and launch your game with it
What do you mean it "compiles" my mod?
- It makes a pk3 file containing the contents (excluding some files, such as git files and itself) of the directory the script is located at (it will also use that to determine the name of the file). By default, this newly made pk3 will be located in (exe's dir)/DOWNLOAD/_srb2compiled, but it can be changed with the
downloads
command - Opens your SRB2 executable
- Skips the intro
- Loads your mod (with custom parameters if you've used the
args
command) - And wishes you a happy testing session!