Editing Quick Stat Tweaks
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | The Tweak Units modoption can be used to modify many unit and weapon parameters. It can be used for rapidly testing balance changes or just for making a quick game mode. It has limitations and should not be used for large mod projects, see [[Mod Creation | + | The Tweak Units modoption can be used to modify many unit and weapon parameters. It can be used for rapidly testing balance changes or just for making a quick game mode. It has limitations and should not be used for large mod projects, see [[Mod Creation]] to get started on full modding. |
− | [[File: | + | [[File:Tweakunitswindow.jpg]] |
− | |||
− | |||
== Workflow == | == Workflow == | ||
− | The Tweak Units modoption overwrites unit | + | The Tweak Units modoption overwrites unit paramers (called unitDefs) as they are loaded. The modoption requires a base64 encoded lua array of differences. Here is how to use it. |
− | * Make a | + | * Make a lua table in an empty file. |
− | * For each unit you wish to modify, add an empty table indexed by the | + | * For each unit you wish to modify, add an empty table indexed by the internal name of the unit to your table. |
* Search for the units you wish to modify in the [https://github.com/ZeroK-RTS/Zero-K/blob/master/units Zero-K repository]. | * Search for the units you wish to modify in the [https://github.com/ZeroK-RTS/Zero-K/blob/master/units Zero-K repository]. | ||
* Copy the parameters you wish to modify into the table, maintaining the structure of the unitDef table. | * Copy the parameters you wish to modify into the table, maintaining the structure of the unitDef table. | ||
− | * [https://www.base64encode.org | + | * [https://www.base64encode.org/ Base 64 encode] your table. |
* Put the base 64 encoding of your table into the Tweak Units modoption. | * Put the base 64 encoding of your table into the Tweak Units modoption. | ||
* Start the game. | * Start the game. | ||
* Check infolog.txt in your install directory and fix your syntax errors. | * Check infolog.txt in your install directory and fix your syntax errors. | ||
− | Check out the [https://springrts.com/wiki/Gamedev:UnitDefs unit def] and [https://springrts.com/wiki/Gamedev:WeaponDefs weapon def] pages on the SpringRTS wiki for definitions of many of the parameters. | + | Check out the [https://springrts.com/wiki/Gamedev:UnitDefs unit def] and [https://springrts.com/wiki/Gamedev:WeaponDefs weapon def] pages on the SpringRTS wiki for definitions of many of the parameters. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Example == |