Note to modders on stat name changes for next release

Did you create a mod, map, music, or a tool? Present them here and earn feedback!
Note: addon requests do not belong here.
Note, everything uploaded to this forum, MUST have a license!
Post Reply
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Note to modders on stat name changes for next release

Post by Per »

There are a few changes have been committed for next release that mod makers that change the JSON stats files should be aware of.

Droid ranks are now a brain property and can be upgraded, and each brain can have its own set of rank names and level up experience thresholds.

Example:

Code: Select all

    "CommandBrain01": {
        "designable": 1,
        "hitpoints": 500,
        "id": "CommandBrain01",
        "maxDroids": 6,
        "maxDroidsMult": 2,
        "name": "Command Turret",
        "ranks": [ "Rookie", "Green", "Trained", "Regular", "Professional", "Veteran", "Elite", "Special", "Hero" ],
        "thresholds": [ 0, 8, 16, 32, 64, 128, 256, 512, 1024 ],
        "turret": "CommandTurret1"
    }
You can upgrade these settings from research.json like this:

Code: Select all

            {
             	"class": "Brain",
                "parameter": "BaseCommandLimit",
                "value": 20
            },
            {
             	"class": "Brain",
                "parameter": "CommandLimitByLevel",
                "value": 50
            },
            {
             	"class": "Brain",
                "filterParameter": "Id",
                "filterValue": "CommandBrain01",
                "parameter": "RankThresholds",
                "value": -10
            }
Finally, hitpoints calculation is now changed, and can be adjusted in many more ways than before. Each component now has two base hitpoint stats, 'hitpoints' and 'hitpointPct'. The latter increases the hitpoints of the whole droid, after summing together the hitpoint values of each component. Each can be upgraded through the scripts. Propulsions (only) also have a new 'hitpointPctOfBody' - hitpoint percentage of body - stat, to emulate the old hitpoint calculation, where propulsions are a percentage of the body hitpoints, but not the other components.

In particular for the hitpoints changes, if you have a balance mod, you may want to search&replace some stat names when the next release comes out, and perhaps consider using the new stats powers as well!
User avatar
Berserk Cyborg
Code contributor
Code contributor
Posts: 938
Joined: 26 Sep 2016, 19:56

Re: Note to modders on stat name changes for next release

Post by Berserk Cyborg »

The names of the incendiary mortar/howitzer weapons/structures/research have been fixed to remove an extra e from them. See the three file changes starting at https://github.com/Warzone2100/warzone2 ... 0857eae5f9.

Ignore that. Do not have to change incendiary mortar stats anymore.
Post Reply