CyberpunkSaveEditor icon indicating copy to clipboard operation
CyberpunkSaveEditor copied to clipboard

Add support for Wannabe Edgerunner mod

Open ProphetLamb opened this issue 2 years ago • 0 comments

Description

Adds support for the Wannabe Edgerunner mod. The system counts "humanity" and inflicts debuffs, if a certain threshold is reached.

Humanity is computed by subtracting the weighted sum of installed implants added to the currentHumanityDamage (source: save) from the base humanity (source: r6\tweaks\wannabeEdgerunner.yaml).

This PR allows modifying the damage to humanity.

Problem

Currently, when loading a save with the mod the following msgbox is shown:

---------------------------
error
---------------------------
couldn't load node_t ScriptableSystemsContainer
reason: CObject::serialize_in: serial field Edgerunning.System.EdgerunningSystem::currentHumanityDamage is missing from bp fields
---------------------------
OK   
---------------------------

Solution

Add the Wannabe Edgerunner object to CObjectBPs.json:

"Edgerunning.System.EdgerunningSystem": {
    "ctypename": "edgerunningSystemEdgerunningSystem",
    "props": [
      {
        "ctypename": "Int32",
        "name": "currentHumanityDamage"
      }
    ]
  }

Result

ProphetLamb avatar Nov 06 '22 23:11 ProphetLamb