"unit:{
"mono":{
"localizedName":"Apothocary",
"weapons":[{
"type":"Weapon",
"name":"PulseCannon",
"shootSound":"shootLaser",
"bullet":{
"type":"LaserBoltBulletType",
"backColor":"8bf97aff",
"range":85.0,
"lifetime":70.0,
"healPercent":5.0,
"healAmount":10.0,
"damage":15.0,
"pierceCap":1.0,
"speed":2.0,
"width":1.0,
"height":6.0,
"collidesTeam":"true"
},
"region":"mono",
"shoot":{
"type":"ShootAlternate",
"mirror":"true",
"shotDelay":1.0
},
"reload":35.0,
"x":0.0,
"y":2.0,
"recoils":3.0
}],
"abilities":[{
"type":"RepairFieldAbility",
"percentAmount":2.0,
"amount":5.0
}],
"name":"Apothocary",
"unit":{
"mono":{
"localizedName":"Apothocary",
"weapons":[{
"type":"Weapon",
"name":"PulseCannon",
"shootSound":"shootLaser",
"bullet":{
"type":"LaserBoltBulletType",
"backColor":"8bf97aff",
"range":85.0,
"lifetime":70.0,
"healPercent":5.0,
"healAmount":10.0,
"damage":15.0,
"pierceCap":1.0,
"speed":2.0,
"width":1.0,
"height":6.0
},
"region":"mono",
"shoot":{
"type":"ShootAlternate",
"mirror":"true",
"shotDelay":1.0
},
"reload":35.0,
"x":0.0,
"y":2.0,
"recoils":3.0
}],
"abilities":[{
"type":"RepairFieldAbility",
"percentAmount":2.0,
"amount":35.0
}]
}
},
"range":70.0,
"maxRange":70.0,
"armor":1.0,
"speed":2.5,
"crashDamageMultiplier":0.0,
"buildSpeed":0.25
}
}
rn reporting an issue that happened to someone else
i dont know what causes it, but it seems that after the recent update (i assume 1.12.2, i havent kept track of releases), data patcher can rarely repeat code; an example is shown in the code below
when this code repeat happens, the datapatch becomes completely impossible to edit with patch editor, unless the repeated code is found and deleted manually with an external text editor
the issue is that (at least for this example), when the code is repeated, its repeated inside unit.mono
this causes most of the duplicated code to end up inside unit.mono.unit.mono:{}
and when patch editor tries to read this, it explodes
for some reason, it also tries to do
"name":"Apothocary",instead of"localizedName":"Apothocary", which makes the game spit out an error as unit.mono.name cannot be edited; not sure if its relevant but i think it needs to be brought upthis is the code in question (formatted with a python script)