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!

Note to modders on stat name changes for next release

Postby Per » 13 Jun 2017, 23:22

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!
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
 
Posts: 3629
Joined: 03 Aug 2006, 19:39

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

Postby Berserk Cyborg » 30 Aug 2017, 18:13

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/warzone2100/commit/2ce9492056d84846a07174770cfc2c46abf44e7b#diff-e094b19464b624aeaab0540857eae5f9.

Ignore that. Do not have to change incendiary mortar stats anymore.
User avatar
Berserk Cyborg
Code contributor
Code contributor
 
Posts: 304
Joined: 26 Sep 2016, 19:56


Return to Addon discussions

cron