if you mean patches for treasurepool files that's pathing for arrays. 0 targets the first entry in an array, 1 the second. This is helpful: http://community.playstarbound.com/threads/84496/ EDIT: I looked at an actual treasurepool file. If you are talking about the first item in each pool array that value acts as an instance difficulty identification. If you look at smashable.treasurepools you can see that the "smashmoney" increases with world difficulty.
Can you explain more? I mean These "path":"/hunting/0/1/pool/-" what is 0 what is 1 what would happen if i change their place ? like place 1 then 0 and what is - at the end? i saw some patches use 1 or 2 and etc. thank you
It's basically like a "road map" that tells where to put the "value" information. There is a good website somewhere that explains it in detail. You can also use http://chbrown.github.io/rfc6902/ for easy patch creating the - at the end tells the patch to apply itself as the LAST value. that helps avoid conflicts with other patches. Basically its saying, Go to the "hunting" list. /0 tells it to go into the first array there, which (unless I am wrong) is the [1. then the /1 picks the first sub-array (I dont know what its called for certain) which is the { after the 1[. Then "pool" tells it to go into the pool section. Like I said earlier, the - tells it to go last, after the alienmeat and leather. Here is the hunting treasure pool file Code: { "hunting" : [ [1, { "pool" : [ {"weight" : 0.6, "item" : "alienmeat"}, {"weight" : 0.4, "item" : "leather"} ] } ] ], "huntingquadruped" : [ [1, { "pool" : [ {"weight" : 0.3, "item" : "alienmeat"}, {"weight" : 0.3, "item" : "rawribmeat"}, {"weight" : 0.4, "item" : "leather"} ] } ] ], "huntingflying" : [ [1, { "pool" : [ {"weight" : 1.0, "item" : "rawpoultry"} ] } ] ], "adultpoptopHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "sharpenedclaw"}, {"weight" : 0.001, "item" : "adultpoptopaf"} ] } ] ], "anglureHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "staticcell"}, {"weight" : 0.001, "item" : "anglureaf"} ] } ] ], "agrobatHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "rawpoultry"}, {"weight" : 0.400, "item" : "leather"}, {"weight" : 0.001, "item" : "agrobataf"} ] } ] ], "batongHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "rawpoultry"}, {"weight" : 0.400, "item" : "leather"}, {"weight" : 0.001, "item" : "batongaf"} ] } ] ], "bobfaeHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "hardenedcarapace"}, {"weight" : 0.001, "item" : "bobfaeaf"} ] } ] ], "bobotHunting" : [ [1, { "pool" : [ {"weight" : 0.499, "item" : "staticcell"}, {"weight" : 0.499, "item" : "stickofram"}, {"weight" : 0.002, "item" : "bobotaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "bulbopHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "livingroot"}, {"weight" : 0.002, "item" : "bulbopaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "capricoatHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "leather"}, {"weight" : 0.001, "item" : "capricoataf"} ] } ] ], "crabcanoHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.200, "item" : "scorchedcore"}, {"weight" : 0.200, "item" : "hardenedcarapace"}, {"weight" : 0.001, "item" : "crabcanoaf"} ] } ] ], "crustoiseHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "hardenedcarapace"}, {"weight" : 0.002, "item" : "crustoiseaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "crutterHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "venomsample"}, {"weight" : 0.001, "item" : "crutteraf"} ] } ] ], "fennixHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.200, "item" : "scorchedcore"}, {"weight" : 0.200, "item" : "sharpenedclaw"}, {"weight" : 0.001, "item" : "fennixaf"} ] } ] ], "gleapHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "livingroot"}, {"weight" : 0.002, "item" : "gleapaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "hemogoblinHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "rawribmeat"}, {"weight" : 0.400, "item" : "sharpenedclaw"}, {"weight" : 0.001, "item" : "hemogoblinaf"} ] } ] ], "hypnareHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "livingroot"}, {"weight" : 0.002, "item" : "hypnareaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "ignomeHunting" : [ [1, { "pool" : [ {"weight" : 0.499, "item" : "scorchedcore"}, {"weight" : 0.499, "item" : "phasematter"}, {"weight" : 0.002, "item" : "ignomeaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "iguarmorHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "hardenedcarapace"}, {"weight" : 0.001, "item" : "iguarmoraf"} ] } ] ], "lilodonHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "sharpenedclaw"}, {"weight" : 0.001, "item" : "lilodonaf"} ] } ] ], "lumothHunting" : [ [1, { "pool" : [ {"weight" : 0.499, "item" : "staticcell"}, {"weight" : 0.499, "item" : "phasematter"}, {"weight" : 0.002, "item" : "lumothaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "mandrafloraHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "livingroot"}, {"weight" : 0.002, "item" : "mandrafloraaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "miasmopHunting" : [ [1, { "pool" : [ {"weight" : 0.499, "item" : "venomsample"}, {"weight" : 0.499, "item" : "livingroot"}, {"weight" : 0.002, "item" : "miasmopaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "monopusHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "hardenedcarapace"}, {"weight" : 0.001, "item" : "monopusaf"} ] } ] ], "narfinHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "cryonicextract"}, {"weight" : 0.001, "item" : "narfinaf"} ] } ] ], "nautileechHunting" : [ [1, { "pool" : [ {"weight" : 1.00, "item" : "phasematter"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "nutmidgelingHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "livingroot"}, {"weight" : 0.002, "item" : "nutmidgeaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "oculobHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "venomsample"}, {"weight" : 0.002, "item" : "oculobaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "ooglerHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.200, "item" : "leather"}, {"weight" : 0.200, "item" : "sharpenedclaw"}, {"weight" : 0.001, "item" : "oogleraf"} ] } ] ], "orbideHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "sharpenedclaw"}, {"weight" : 0.002, "item" : "orbideaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "paraspriteHunting" : [ [1, { "pool" : [ {"weight" : 0.997, "item" : "sharpenedclaw"}, {"weight" : 0.003, "item" : "paraspriteaf"} ], "allowDuplication" : false } ] ], "paratailHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "leather"}, {"weight" : 0.001, "item" : "paratailaf"} ], "allowDuplication" : false } ] ], "peblitHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "hardenedcarapace"}, {"weight" : 0.002, "item" : "peblitaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "petricubHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "sharpenedclaw"}, {"weight" : 0.001, "item" : "petricubaf"} ] } ] ], "pipkinHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "stickofram"}, {"weight" : 0.002, "item" : "pipkinaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "poptopHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "sharpenedclaw"}, {"weight" : 0.001, "item" : "poptopaf"} ] } ] ], "pteropodHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "venomsample"}, {"weight" : 0.001, "item" : "pteropodaf"} ] } ] ], "pulpinHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "cryonicextract"}, {"weight" : 0.001, "item" : "pulpinaf"} ] } ] ], "pyromantleHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "scorchedcore"}, {"weight" : 0.002, "item" : "pyromantleaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "quagmuttHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "venomsample"}, {"weight" : 0.001, "item" : "guagmuttaf"} ] } ] ], "ringramHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "leather"}, {"weight" : 0.001, "item" : "ringramaf"} ] } ] ], "scandroidHunting" : [ [1, { "pool" : [ {"weight" : 0.499, "item" : "staticcell"}, {"weight" : 0.499, "item" : "stickofram"}, {"weight" : 0.002, "item" : "scandroidaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "scaveranHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "rawpoultry"}, {"weight" : 0.400, "item" : "sharpenedclaw"}, {"weight" : 0.001, "item" : "scaveranaf"} ] } ] ], "skimbusHunting" : [ [1, { "pool" : [ {"weight" : 0.499, "item" : "cryonicextract"}, {"weight" : 0.499, "item" : "phasematter"}, {"weight" : 0.002, "item" : "skimbusaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "smoglinHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "scorchedcore"}, {"weight" : 0.001, "item" : "smoglinaf"} ] } ] ], "snagglerHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "venomsample"}, {"weight" : 0.001, "item" : "snaggleraf"} ] } ] ], "snauntHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.200, "item" : "venomsample"}, {"weight" : 0.200, "item" : "hardenedcarapace"}, {"weight" : 0.001, "item" : "snauntaf"} ] } ] ], "spookitHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "phasematter"}, {"weight" : 0.002, "item" : "spookitaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "snuffishHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "rawfish"}, {"weight" : 0.400, "item" : "cryonicextract"}, {"weight" : 0.001, "item" : "snuffishaf"} ] } ] ], "sporgusHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "venomsample"}, {"weight" : 0.002, "item" : "sporgusaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "squeemHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "phasematter"}, {"weight" : 0.001, "item" : "squeemaf"} ] } ] ], "gosmetHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "phasematter"}, {"weight" : 0.002, "item" : "gosmetaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "taroniHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "leather"}, {"weight" : 0.001, "item" : "taroniaf"} ] } ] ], "tinticHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "hardenedcarapace"}, {"weight" : 0.002, "item" : "tinticaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "toumingoHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "rawpoultry"}, {"weight" : 0.400, "item" : "sharpenedclaw"}, {"weight" : 0.001, "item" : "toumingoaf"} ] } ] ], "trictusHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "livingroot"}, {"weight" : 0.001, "item" : "trictusaf"} ] } ] ], "triplodHunting" : [ [1, { "pool" : [ {"weight" : 0.499, "item" : "staticcell"}, {"weight" : 0.499, "item" : "stickofram"}, {"weight" : 0.002, "item" : "triplodaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "voltipHunting" : [ [1, { "pool" : [ {"weight" : 0.998, "item" : "staticcell"}, {"weight" : 0.002, "item" : "voltipaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "wisperHunting" : [ [1, { "pool" : [ {"weight" : 0.499, "item" : "cryonicextract"}, {"weight" : 0.499, "item" : "phasematter"}, {"weight" : 0.002, "item" : "wisperaf"} ], "poolRounds" : [ [0.6, 0], [0.4, 1] ], "allowDuplication" : false } ] ], "yokatHunting" : [ [1, { "pool" : [ {"weight" : 0.599, "item" : "alienmeat"}, {"weight" : 0.400, "item" : "sharpenedclaw"}, {"weight" : 0.001, "item" : "yokataf"} ], "allowDuplication" : false }] ] } Some if it can be easy, some of the files can be hard if you do it by hand. I highly suggest using the Create-A-Patch website. You just paste the original code on the left and right. Then edit the right to represent what you want it to look like. Then click the apply and create a patch button.
@amirmiked12 You might want to have a look at this post. It explains in painful details how those 0/1/4/0/3 thing works.
let's say I wanna add multiple items into a pool for example,,,, bone treasure should I do like this.. op add treasure items items items item or op add treasure item op add treasure item op add treasure item ?
Here is an example. Code: "basicTreasure" : [ [0, { "pool" : [ {"weight" : 0.32, "pool" : "chestMoney"}, {"weight" : 0.16, "pool" : "healingItem"}, {"weight" : 0.16, "pool" : "ore"}, {"weight" : 0.12, "pool" : "thrownWeapon"}, {"weight" : 0.05, "pool" : "weapon"}, {"weight" : 0.05, "pool" : "tool"}, {"weight" : 0.08, "item" : "manipulatormodule"}, {"weight" : 0.03, "item" : "techcard"}, {"weight" : 0.01, "item" : "upgrademodule"}, {"weight" : 0.01, "pool" : "instrument"}, {"weight" : 0.01, "pool" : "costume"} ] }] ] If I wanted to patch this and add a flashlight, and a guitar, it would look like this... Code: [ { "op": "add", "path": "/basicTreasure/0/1/pool/-", "value": { "weight": 0.01, "item": "flashlight" } }, { "op": "add", "path": "/basicTreasure/0/1/pool/-", "value": { "weight": 0.01, "item": "guitar" } } ] Weight is how commonly it spawns. Higher weight = higher chance.
Each "op" can handle a single "path" and a single "value". This is why we use green instead of red. Study the link we gave you, it is a trustworthy source.