Modding Help My game crashes everytime i try to harvest a new plant i made (Solved)

Discussion in 'Starbound Modding' started by Dankmods420, Sep 4, 2017.

  1. Dankmods420

    Dankmods420 Big Damn Hero

    I tried making a flax plant based on the rice plant, but whenever i try to harvest it i get a crash and an error.

    i've narrowed it down to this being the problem in flaxseed.object

    {
    "alts" : 5,
    "harvestPool" : "flaxHarvest",
    "resetToStage" : 2
    }

    i tried to make a patch file for farmable.config

    [
    {"op" : "add",
    "path" : "/0/1/-",
    "value" : ["flaxseed", "flax"]
    }
    ]

    but i still get the error: incoming client packet has caused exception when i try to harvest it. I'm sorry if this is noobish, but i'm new to this whole modding thing thanks.

    (Update) I finally figured out the solution. I was overlooking the file treasure/cropharvest.treasurepool and added the patch:

    [
    {
    "op" : "add",
    "path" : "/flaxHarvest",
    "value" : [ [0, {
    "pool" : [
    {"weight" : 0.89, "item" : "flax"},
    {"weight" : 0.01, "item" : "flaxseed"},
    {"weight" : 0.1, "item" : "plantfibre"}],
    "poolRounds" : [ [0.6, 2], [0.2, 3] ] } ] ]
    }
    ]

    Now to add uses for it :D
     
    Last edited: Sep 4, 2017

Share This Page