Satisfactory ModdingSM
Satisfactory Modding12mo ago
28 replies
SerGreen

How to CDO edit a complex data type?

I'm trying to patch the rifle ammo descriptor file using ContentLib. I successfully modified simple fields like mMagazineSize, but the damage field is inside of mDamageTypesOnImpact field, which is an array of something that has a value selected from a dropdown and without a property name, and then inside of that there's a list of fields and mDamageAmount is one of those. How do i write a JSON patch to mod the damage field?
I can do it in game using the Content Inspector mod, but i don't know how to do it in JSON patch. In docs there's no examples for such data types.

"Edits": [
    {
      "Property": "mMagazineSize",
      "Value": 100
    },
    {
      "Property": "mDamageTypesOnImpact",
      "Value": "???"
    }
  ]
image.png
Solution
Ha, what a coincidence! I was just browsing all mods at ficsit.app and found a mod that does exactly what i was trying to do yesterday here: https://ficsit.app/mod/UsefulTurboAmmo
Turns out the correct way to patch that object inside of mDamageTypesOnImpact array is to patch that file separately. The name of that class can be seen from the editor, and after that you go and create another CDO patch and target class /Game/FactoryGame/Equipment/Rifle/Ammo/Desc_CartridgeChaos.Default__Desc_CartridgeChaos_C:BP_PointDamageType_Physical_C_0 and its property mDamageAmount.
image.png
Make Turbo Rifle Ammo actually useful
Was this page helpful?