Modding Help My mod is crashing my game.

Discussion in 'Starbound Modding' started by Jackomond, Dec 23, 2016.

  1. Jackomond

    Jackomond Aquatic Astronaut

    Whenever i start up my game with my mod it crashes. I am trying to have the mod replace/modify certain files, I have used the patch extension though it still crashes, though to my knowledge I may well have fucked it up.

    edit: I've isolated the problem ..../npcs/crew/crewmember.npctype.patch.... you don't need to add the patch extension to the file, that was problem 1. Problem 2 you can't remove lines (speech lines) willy nilly (fuckin' duh).
     
    Last edited: Dec 23, 2016
  2. bk3k

    bk3k Oxygen Tank

    Hmm possibly you have the wrong idea of what patching entails? If you don't have the patch extension, you aren't patching... you're replacing and that's not good because someone may have patched that file previous to your mod loading.

    Patch files don't look like the originals at all. They look like this
    Code:
    [
      {
      "op" : "add",
      "path" : "/blocksLiquidFlow",
      "value" : false
      }
    ]
    or
    Code:
    [
      [
        {
          "op" : "test",
          "path" : "/modTech",
          "inverse" : true
        },
        {
          "op" : "add",
          "path" : "/modTech",
          "value" : []
        }
      ],
      [
        {
          "op" : "add",
          "path" : "/modTech/-",
          "value" : "bk3k_dash"
        },
        {
          "op" : "add",
          "path" : "/modTech/-",
          "value" : "bk3k_doubleDash"
        },
        {
          "op" : "add",
          "path" : "/modTech/-",
          "value" : "bk3k_insaneDash"
        },
        {
          "op" : "add",
          "path" : "/modTech/-",
          "value" : "bk3k_ftlboost"
        },
        {
          "op" : "add",
          "path" : "/modTech/-",
          "value" : "bk3k_multijump"
        },
        {
          "op" : "add",
          "path" : "/scripts/-",
          "value" : "/interface/scripted/techupgrade/bk3k_addTechs.lua"
        }
      ]
    ]
    etc

    Patches are targeted edits, not replacements. That means multiple mods could patch the same file and thus apply changes to it. One mod could add to the maximum food you can eat up to, and another mod could slow the onset of hunger itself... just as an example. But if you go replacing the files, it becomes your mod OR other mods. That's why we patch.

    There are tutorials on this subject on this site(in this very forum), but if you are still confused after reading them, feel free to ask specific questions.
     

Share This Page