This is a simple command-line tool for generating mod folder structures for Stormworks. The tool automatically creates a mod folder with subdirectories and a mod.xml file based on user-provided information, making it easier to set up and organize new mods.
- Automatically generates a mod folder with the specified name.
- Creates audio, data, graphics, and meshes subdirectories.
- Generates a mod.xml file with the mod's name, author, and description.
- There are currently 2 releases.
- Download them and using
Example Usagetry them out
To build the tool from the Python script, you need:
- Python 3.x installed on your system.
- auto-py-to-exe package to compile the .py script into an .exe file.
-
Clone or download this repository.
-
Install auto-py-to-exe (used to compile the Python script):
pip install auto_py_to_exe -
Compile the Python script into an executable:
Run
auto_py_to_exeand configure it as follows:- Select the script (ModGen.py) as the script file.
- Choose "One file" for packaging the .exe.
- Set it to "Console Based" since this is a command-line tool.
- Click "Convert .py to .exe" to generate the ModGen.exe file.
-
Locate ModGen.exe in the output directory specified in auto-py-to-exe.
After compiling, you can use ModGen.exe directly from the command line to generate mod folder structures.
ModGen.exe -o "<output_path>" -n "<mod_name>" -d "<mod_description>" [-a "<author_name>"]
-oor--output(required): The output path where the mod folder will be created.-nor--name(required): The name of the mod, which will also be the folder name.-dor--description(required): A description of the mod.-aor--author(optional): The author of the mod. Defaults to"Unknown"if not provided.-hor--help: Displays help information.
-
Basic example with required arguments:
ModGen.exe -o "%AppData%\Stormworks\data\mods" -n "NewMod" -d "Description for the mod" -
Full example including the author:
ModGen.exe -o "%AppData%\Stormworks\data\mods" -n "NewMod" -d "Description for the mod" -a "My mods author"
Running the tool will generate a folder with this structure:
<output_path>
└── NewMod
├── audio
├── data
│ └──definitions
├── graphics
├── meshes
└── mod.xml
The mod.xml file will contain the following structure:
<?xml version="1.0" encoding="UTF-8"?> <mod name="NewMod" author="My mods author" desc="Description for the mod"/>