Modding Help need help with .treasurepools

Discussion in 'Starbound Modding' started by SophieKitty, Sep 9, 2017.

  1. SophieKitty

    SophieKitty Void-Bound Voyager

    Hey again, didnt talk here for like a year, I recently started modding Starbound again and encountered a problem with the treasurepool files.

    I 'THINK' that it may be because of the .patch file trying to patch in the same location as the known RPG classes mod

    Sad thing is, I dont know how .patch files work correctly, so I had to look up other mods which change those (cant find tutorials for it, or at least all i found are very outdated), because of it, my file looks like this:

    [
    {
    "op": "test",
    "path": "/hunting/0/1/fill",
    "inverse": false
    },
    {
    "op": "add",
    "path": "/hunting/0/1/fill/-",
    "value": {
    "pool": "essenceorbpool"
    }
    }
    ],
    [
    {
    "op": "test",
    "path": "/hunting/0/1/fill",
    "inverse": true
    },
    {
    "op": "add",
    "path": "/hunting/0/1/fill",
    "value": [{
    "pool": "essenceorbpool"
    }]
    }
    ],

    and so on (added the full file in the attachments)
    its essentially the same code as another mod uses, which is supposed to add "Essence" to every monster in the game instead of the other mods "Experience Orbs"

    how do i know if it adds that code in the right spot or if the .patch files are now kinda fighting for their spot in the main file?

    also, noteworthy, the game crashes once the enemy is dead

    would be nice if anyone could help me figure this out. :)

    --------edit----------

    I tested it without the RPG mod installed, it still does that thing, but i did remember it wrong, the game doesnt crash, it just beams me to the ship (every single time)
     

    Attached Files:

  2. projectmayhem

    projectmayhem Spaceman Spiff

    http://chbrown.github.io/rfc6902/

    Take the file you want to patch and paste it in the first box. Then change the file to what you WANT it to look like, paste it in the second box. Scroll down and click "copy input and crate patch to original and patch below"

    Now you have text you can copy to your patch file.
     
    SophieKitty likes this.
  3. SophieKitty

    SophieKitty Void-Bound Voyager

    sooo, i tried that, it seemed simple, but somehow i got another error ._.

    "Wrong size for TreasurePool entry, list must be 2"

    file looks like this:

    {
    "op": "add",
    "path": "/hunting/0/-",
    "value": {
    "pool": "essenceorbpool"
    }
    },
    {
    "op": "add",
    "path": "/huntingquadruped/-",
    "value": {
    "pool": "essenceorbpool"
    }
    },

    and so on (once again, to make it easier, i uploaded the file)

    im assuming it talks about the "op": "test" which i seen in the other mods files?
    well for now i go to sleep, hope someone can help so i can fix it tomorrow
     

    Attached Files:

Share This Page