Modding Help Modding new race ship error

Discussion in 'Starbound Modding' started by Arsakes, Jan 17, 2017.

  1. Arsakes

    Arsakes Phantasmal Quasar

    Hey I'm modding in new race and I get crash - currently there are no frames for the race however the bug seems to be associated with ship (which is complete !)

    Questions:
    Do i need all 8 tiers for the ship?
    Can it work with one?
    Sending a log
     

    Attached Files:

  2. lazarus78

    lazarus78 The Waste of Time

    You have a lot of other issues too. You should resolve those first. You should strive for no errors at all so you can easily eliminate potential factors leading to a crash.

    As for your questions. Technically yes you need all 8. If you tried to progress trhough the tiers it would obviously crash. However, you could just reuse the same textures and whatnot for each tier till you decide if you want to expand them or not. Just set up all the files as though you had all 8 tiers, then just re-use the images.

    Your log clearly shows where the game crashed, but it is not very specific as to what actually caused it because we don't know what the set-up of your mod looks like. It also says there was an error in spacemarineT0.structure, which is likely a syntax error.
     
  3. Arsakes

    Arsakes Phantasmal Quasar

    Wouldn't it be possile to remove starting quest?
     
  4. lazarus78

    lazarus78 The Waste of Time

    Yes, it is possible. But that would require a bit of work. They are rather intertwined with the game so it is not as easy as clipping it out.
     
  5. bk3k

    bk3k Oxygen Tank

    Here's a question... do you actually have a ship, or are you using a vanilla ship? Because unless you have a ship, you can resolve this with a universe_server.config.patch file rather that including duplicate assets. You'd just point to that race's structure files.

    Supposing you have your own ship, this could be your file
    Code:
    [
      [
        {
          "op" : "test",
          "path" : "/speciesShips/spacemarine",
          "inverse" : true
        },
        {
          "op" : "add",
          "path" : "/speciesShips/spacemarine",
          "value" : {}
        }
      ],
      [
        {
          "op" : "replace",
          "path" : "/speciesShips/spacemarine",
          "value" : [
            "/ships/spacemarine/spacemarineT0.structure",
            "/ships/spacemarine/spacemarineT1.structure",
            "/ships/spacemarine/spacemarineT2.structure",
            "/ships/spacemarine/spacemarineT3.structure",
            "/ships/spacemarine/spacemarineT3.structure",
            "/ships/spacemarine/spacemarineT3.structure",
            "/ships/spacemarine/spacemarineT3.structure",
            "/ships/spacemarine/spacemarineT3.structure",
            "/ships/spacemarine/spacemarineT3.structure"
          ]
        }
      ]
    ]
    T0 is pre-reboot
    T1 is after reboot, teleporters enabled
    T2 is thrusters fixed(can travel to another planet in the current system)
    T3 is FTL fixed.

    You can have every subsequent upgrade just point back to T3 after that.
    You only need one blockKey and possibly only 1 blockImage if you are not actually changing your ship. So you can get by with 4 .structure files that are essentially the same but for adding in different capabilities.

    Now supposing your just had... say the apex ship, you could do this

    Code:
    [
      [
        {
          "op" : "test",
          "path" : "/speciesShips/spacemarine",
          "inverse" : true
        },
        {
          "op" : "add",
          "path" : "/speciesShips/spacemarine",
          "value" : {}
        }
      ],
      [
        {
          "op" : "replace",
          "path" : "/speciesShips/spacemarine",
          "value" : [
            "/ships/apex/apexT0.structure",
            "/ships/apex/apexT1.structure",
            "/ships/apex/apexT2.structure",
            "/ships/apex/apexT3.structure",
            "/ships/apex/apexT4.structure",
            "/ships/apex/apexT5.structure",
            "/ships/apex/apexT6.structure",
            "/ships/apex/apexT7.structure",
            "/ships/apex/apexT8.structure"
          ]
        }
      ]
    ]
    edit: one more thing. The structure file(that you didn't provide) has a JSON error according to line 157 of your log.
     
    Last edited: Jan 18, 2017

Share This Page