Page 1 of 1

Note to modders on stat name changes for next release

Posted: 13 Jun 2017, 23:22
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.


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!

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

Posted: 30 Aug 2017, 18:13
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 ... 0857eae5f9.

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