Modding Help I've met trouble when making a patch file, please help

Discussion in 'Starbound Modding' started by ExtremeLanding, Jul 20, 2021.

  1. ExtremeLanding

    ExtremeLanding Void-Bound Voyager

    I'm currently trying to make a Chinese patch for a small clothing mod, but the patch never works no matter what I do.
    Code:
    [
    {"op":"replace","value":"灵狐茉莉的尾巴,摸起来毛茸茸的。\n^green;羽落效果,+10生命^reset;","path":"/description"},
    {"op":"replace","value":"茉莉的尾巴","path":"/shortdescription"}
    ]
    This is what the code is like, you can be regardless of those Chinese words. Please check it out for me if there are any mistakes.

    Code:
    {
      "itemName" : "fhzmoriback",
      "price" : 0,
      "inventoryIcon" : "icons.png:back",
      "rarity" : "Legendary",
      "category" : "backwear",
      "description" : "Fox spirit Mori's tail. So fluffy!\n^green;Removes fall damage, HP +10^reset;",
      "shortdescription" : "Mori's Tail",
      "tooltipKind" : "back",
    
      "maleFrames" : "back.png",
      "femaleFrames" : "back.png",
      "maxStack" : 1,
     
        "statusEffects" : [
        "nofalldamage"
      ],
     
      "level" : 1,
      "leveledStatusEffects" : [
        {
          "levelFunction" : "standardArmorLevelMaxHealthMultiplier",
          "stat" : "maxHealth",
          "amount" : 10
        }
      ],
    
      "itemTags" : [ "tier1armour" ]
    }
    
    And this is the file code I want to operate on. The file locations are the same.
    If there are actually no mistakes, what will be probably wrong?
    [​IMG]

    [​IMG]
    These 2 images (might be very small) shows the location of the file, is there anything wrong?
     

    Attached Files:

  2. ramalamafizzfaj

    ramalamafizzfaj Tentacle Wrangler

    Do you mean the patch is in the same folder as the file in /assets/packed, or that it's in a folder with a matched path in your mod folder?
     
  3. bk3k

    bk3k Oxygen Tank

    It could be a load order issue, which you can correct in _metadata with one of 2 ways.
    1. "priority": 2,
    assuming the mod you are patching uses default priority, adjust accordingly if not so.
    2. "includes": [ "whatever_the_mod_name_here" ],
    that will insure your mod loads after if the other mod is present. You use the "name" listed in that mod's own _metadata file. to make sure you got it right, just copy/paste from that mod's _metadata to yours.

    I prefer method 2 myself.
     
  4. ExtremeLanding

    ExtremeLanding Void-Bound Voyager

    It's a file in the mod folder.
     

Share This Page