Modding Help how to change files

Discussion in 'Starbound Modding' started by iamyoyoman, Aug 2, 2018.

Tags:
  1. iamyoyoman

    iamyoyoman Star Wrangler

    i want to change something inside some files, i think i can do it with .patch but i know only how to add stuff but not delete or change.
     
  2. Nexus Of Chaos

    Nexus Of Chaos Parsec Taste Tester

    https://json-patch-builder-online.github.io/
    generate a patch by putting what you want to change on the left and how you want the final version to look like on the right.
    start (left box):
    Code:
    {
        "Message":"",
        "Message2":"Hi"
    }
    end (right box):
    Code:
    {
        "Message":"Hello World!",
        "Message3":"Bye"
    }
    patch (bottom box):
    Code:
    [
        {
            "op": "remove",
            "path": "/Message2"
        },
        {
            "op": "replace",
            "path": "/Message",
            "value": "Hello World!"
        },
        {
            "op": "add",
            "path": "/Message3",
            "value": "Bye"
        }
    ]
     
    iamyoyoman likes this.
  3. iamyoyoman

    iamyoyoman Star Wrangler

    ty very usefull!
     

Share This Page