Tractor Mod

Tractor Mod

130k Downloads

[Content Patcher] reject field changes containing field delimiter

Pathoschild opened this issue ยท 1 comments

commented

Content Patcher allows patches like this:

{
    "Action": "EditData",
    "Target": "Data/Furniture",
    "Fields": {
        "536": {
            "0": "Piano/Forest Seat/Table with Typewriter"
        }
    }
}

Since Data/Furniture uses slashes as a field delimiter, that adds two new fields which breaks the format. That's usually not intended, and causes cryptic game errors that are hard to diagnose if you don't know what you're looking for.

Reject field changes containing the field delimiter.

commented

Done in develop for the upcoming Content Patcher release.