Tutorial crop harvest.treasurepool

Discussion in 'Starbound Modding' started by AuroraSnowfall, Jul 18, 2017.

Thread Status:
Not open for further replies.
  1. AuroraSnowfall

    AuroraSnowfall Subatomic Cosmonaut

    i already made 10 custom crops/ and 10 items from them in produce folder,
    i want to know how to connect them
    can someone generate code for me?
    this one that i found in assets for example
    Code:
    "automatoHarvest" : [
        [0, {
          "pool" : [
            {"weight" : 0.89, "item" : "automato"},
            {"weight" : 0.01, "item" : "automatoseed"},
            {"weight" : 0.1, "item" : "plantfibre"}
          ],
          "poolRounds" : [
            [0.6, 1],
            [0.4, 2]
          ]
        } ]
      ], 
    item that i want to get from crop: sv_blueberry1 | crop seeds are sv_blueberryseeds
     
  2. IHart

    IHart Scruffy Nerf-Herder

    do you already have your .object files?
     
  3. AuroraSnowfall

    AuroraSnowfall Subatomic Cosmonaut

    stupid question
    i guess you not read that "i already made 10 custom crops and their produced items
    having problem with connecting them
    that's why i created this thread
     
  4. AuroraSnowfall

    AuroraSnowfall Subatomic Cosmonaut

    it's headache for me
     
  5. IHart

    IHart Scruffy Nerf-Herder

    well, apologies i guess. wasn't really clear on exactly what your limitation was.
    attached is an example of the patch you want.
     

    Attached Files:

  6. AuroraSnowfall

    AuroraSnowfall Subatomic Cosmonaut

    should be there full path to .object?
    Code:
    "path": "/blueberry"
    and i should put it in treasure folder i guess?
     
  7. IHart

    IHart Scruffy Nerf-Herder

    Not path to object no. Your object, assuming you copied the code from other crop objects, will have "harvestPool" : "something" towards the bottom. change the "something" to whatever you name in these paths here. I called it blueberry for the purposes of this example file, but you can call it whatever. The two strings just have to match.

    The file goes in the treasure folder yes, the filename should be cropharvest.treasurepools.patch
     
  8. AuroraSnowfall

    AuroraSnowfall Subatomic Cosmonaut

    so if the name of crop object like... sv_blueberryseed i should name it like that?
    (sorry for my stupid questions, but better ask than just keep silence) xP
     
  9. IHart

    IHart Scruffy Nerf-Herder

    This association is independent of what your crop is called. You could name it whatever you want as long as the path in this patch and the "harvestPool" in your object match eachother.
     
  10. AuroraSnowfall

    AuroraSnowfall Subatomic Cosmonaut

    omg, thanks, it's finally worked i put it in
    Code:
     "path": "/sv_blueberryHarvest",
    just need to use itemnameHarvest ^^
     
  11. AuroraSnowfall

    AuroraSnowfall Subatomic Cosmonaut

    and thee latest question, the game crashed when i tried to add another one thing to this patch, what should i do after every single item?
     
  12. IHart

    IHart Scruffy Nerf-Herder

  13. AuroraSnowfall

    AuroraSnowfall Subatomic Cosmonaut

    you are too late ^^
    i already made my own patch, found how to make it
    Code:
    [ 
    
    {"op":"add","path":"/sv_eggplantHarvest","value":[[0,{"pool":[
    {"weight": 0.4, "item": ["sv_eggplant1", 1], "count": 1},
    {"weight": 0.3, "item": ["sv_eggplant1", 1], "count": 1},
    {"weight": 0.2, "item": ["sv_eggplant1", 1], "count": 1},
    {"weight": 0.1, "item": ["sv_eggplantseeds", 1], "count": 1
    }]}]]},
    {"op":"add","path":"/sv_blueberryHarvest","value":[[0,{"pool":[
    {"weight": 0.4, "item": ["sv_blueberry1", 10], "count": 1},
    {"weight": 0.3, "item": ["sv_blueberry1", 10], "count": 1},
    {"weight": 0.2, "item": ["sv_blueberry1", 10], "count": 1},
    {"weight": 0.1, "item": ["sv_blueberryseed", 1], "count": 1
    }]}]]},
    {"op":"add","path":"/sv_coffeeHarvest","value":[[0,{"pool":[
    {"weight": 0.4, "item": ["sv_coffee1", 10], "count": 1},
    {"weight": 0.3, "item": ["sv_coffee1", 10], "count": 1},
    {"weight": 0.2, "item": ["sv_coffee1", 10], "count": 1},
    {"weight": 0.1, "item": ["sv_coffeeseed", 1], "count": 1
    }]}]]}
    
    ]
    
     
    IHart likes this.
  14. AuroraSnowfall

    AuroraSnowfall Subatomic Cosmonaut

    @Hel can you close this thread? and mark it for tutorial?
    now someone after me will know how to make it more easy
     
  15. IHart

    IHart Scruffy Nerf-Herder

    good, happy to help :)
     
  16. Hel

    Hel ✨ Johto's Finest ✨ Forum Moderator

    Locked at the OP's request
     
Thread Status:
Not open for further replies.

Share This Page