Editing Custom Modes
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: | ||
− | Custom modes are mods, maps, or just a set of Adv Options that can be selected when hosting the game or in the battle room via 'Select Custom Mode' in Adv Options. Each custom mode is defined by a file in < | + | Custom modes are mods, maps, or just a set of Adv Options that can be selected when hosting the game or in the battle room via 'Select Custom Mode' in Adv Options. Each custom mode is defined by a file in <nowiki>Zero-K/CustomModes</nowiki>. The game deploys a few of these files, but players can also create their own and share them around to act as presets. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Specification == | == Specification == | ||
− | Custom modes are | + | Custom modes are json files and may have the following parameters. |
{| class="wikitable" | {| class="wikitable" | ||
Line 14: | Line 8: | ||
! Key !! Usage | ! Key !! Usage | ||
|- | |- | ||
− | + | | name || This is required to display the mode in the mode list. Bad things will happen if there is a clash. | |
− | |||
− | | name || This is required to display the mode in the mode list. Bad things will happen if there is a clash | ||
|- | |- | ||
| description || The tooltip for the mode in the 'Select Custom Mode' menu. | | description || The tooltip for the mode in the 'Select Custom Mode' menu. | ||
|- | |- | ||
− | | roomType || Optional. Can be Custom, 1v1, Team, | + | | roomType || Optional. Can be Custom, 1v1, Team, FFA, Chicken. |
|- | |- | ||
− | | map || Optional. Use this to set the map. The text must match exactly, as is written below the minimap in the | + | | map || Optional. Use this to set the map. The text must match exactly, as is written below the minimap in the battleroom. |
|- | |- | ||
| game || Optional. Set a mutator or game. It should match game name exactly, as is shown left of the map when the game is selected. | | game || Optional. Set a mutator or game. It should match game name exactly, as is shown left of the map when the game is selected. | ||
Line 30: | Line 22: | ||
| hideFromHostMenu || Optional boolean. This is used to hide a mode from the Game Type menu while hosting. | | hideFromHostMenu || Optional boolean. This is used to hide a mode from the Game Type menu while hosting. | ||
|- | |- | ||
− | | options || Optional table of Adv Option values. All the keys can be found | + | | options || Optional table of Adv Option values. All the keys can be found [https://github.com/ZeroK-RTS/Zero-K/blob/master/ModOptions.lua here]. |
|} | |} | ||
+ | == Example == | ||
+ | Here is an example that would run Zero Wars with a 2x health multiplier and the stat tweaks from [Quick Stat Tweaks]. | ||
− | + | <nowiki>{ | |
− | + | "name" : "Zero Wars with Tweaks", | |
− | < | + | "description" : "Send waves of units across the map to destory the enemy nexus", |
− | |||
− | "name" : "Zero Wars with Tweaks | ||
− | "description" : "Send waves of units across the map to | ||
"roomType" : "Team", | "roomType" : "Team", | ||
"map" : "ZeroWars v2.0.7", | "map" : "ZeroWars v2.0.7", | ||
"rapidTag" : "zk:stable", | "rapidTag" : "zk:stable", | ||
"options" : { | "options" : { | ||
− | "hpmult" : 2 | + | "hpmult" : 2, |
+ | "tweakunits" : "e2Nsb2FrcmFpZCA9IHttYXhEYW1hZ2UgPSA1MDAsbWF4VmVsb2NpdHkgPSA4LH0sc2hpZWxkcmFpZCA9IHt3ZWFwb25EZWZzID0ge0xBU0VSID0ge3JhbmdlID0gNjAwLGRhbWFnZSA9IHtkZWZhdWx0ID0gNTAsfSx9LH0sfSx9" | ||
} | } | ||
− | }</ | + | }</nowiki> |
− | |||
[[Category:Development]]{{Navbox manual}} | [[Category:Development]]{{Navbox manual}} |