-
Notifications
You must be signed in to change notification settings - Fork 12
CLI usage
jgosar edited this page Jul 28, 2024
·
2 revisions
Instructions for using the MineCity 2000 CLI:
To run from VS Code:
- Use the "Launch CLI" command
To run from command line:
- Run MineCity2000.exe (Which is included in both
mc2k-release.rar
andmc2k-release-cli.rar
) - Usage:
MineCity2000 <SimCity2000 file> [OPTIONS]
The options are:
- -o, --output: Output directory Recommended to be something like 'C:\Users[username]\AppData\Roaming.minecraft\saves' if you want to open the city directly in minecraft). If this parameter is not used, the generated cities will be placed into the
generated
subfolder of the current directory. Each city will be saved into a subfolder of the selected path, which will be named the same as the city file. - -f, --fillUnderground Fills the underground sections of the city with sandstone, so you can't fall through when digging down. This will increase memory usage and generation time
- -g, --generateTerrain Lets Minecraft generate its own terain around the city instead creating a wall around the city with nothing outside.
- -c, --continue Continues console execution after the command is finished, instead of waiting for the user to press a key after reading the output.";
So a complete CLI call would be something like: MineCity2000 "C:\Games\Simcity 2000\SC2K\CITIES\LONDON.SC2" -o C:\Users\user\AppData\Roaming\.minecraft\saves -f -g -c
.
In this case the output would appear in C:\Users\user\AppData\Roaming\.minecraft\saves\london
.
If you want some parameters to be applied on every call without being added in the CLI call, you can add them to the file default-args.txt
.
If you correctly configure the output directory there, you can then convert cities by simply dragging and dropping them onto the MineCity2000.exe icon.