Modding Help Custom ship woes

Discussion in 'Starbound Modding' started by Pfhoenix, Feb 27, 2015.

  1. Pfhoenix

    Pfhoenix Scruffy Nerf-Herder

    I thought I had this issue fixed, but it's come back. When a character upgades their ship from T0 to T1, it's an in-place swap. Right now, when upgrading, the player gets positioned outside the ship, instead of at their current place. Here are the .structure files :

    T0
    Code:
    {
        "config" : {
            "shipUpgrades" : {
              "capabilities" : [],
              "maxFuel" : 1000
            }
        },
    
        "backgroundOverlays" : [
            {
                "image" : "normandysr1_t1.png",
                "position" : [0, -1]
            }
        ],
    
        "blockKey" : "blockKey.config:blockKey",
        "blockImage" : "normandysr1_t0blocks.png"
    }
    
    T1
    Code:
    {
        "config" : {
            "shipUpgrades" : {
              "capabilities" : [],
              "maxFuel" : 1000
            }
        },
    
        "backgroundOverlays" : [
            {
                "image" : "normandysr1_t1.png",
                "position" : [0, -1]
            }
        ],
    
        "blockKey" : "blockKey.config:blockKey",
        "blockImage" : "normandysr1_t1blocks.png"
    }
    
    As you can see, the two differ only in the blockImage (just as the vanilla species' ship files). Any hints on what I'm doing wrong?
     
  2. Pfhoenix

    Pfhoenix Scruffy Nerf-Herder

    Best Answer
    Found the problem. You apparently need to ensure your teleporter objects get tagged as "anchor" in your ship's blocks.config file.
     
  3. Mackinz

    Mackinz The Waste of Time

    What are the sizes of the images of the ships?
     
  4. Pfhoenix

    Pfhoenix Scruffy Nerf-Herder

    The block images are 218x63, the ship images are 1752x512. If I set the T0 structure file to use the T1 blocks file, the player isn't moved into space. That's not a good solution, though.
     
  5. Mackinz

    Mackinz The Waste of Time

    Well... for now, you could try changing this value:

    Code:
    "position" : [0, -1]
    
    Try changing it to something like...

    Code:
    "position" : [-2000, -1]
    
    And see if that has an effect. If it doesn't, try removing the minus sign.
     
  6. Pfhoenix

    Pfhoenix Scruffy Nerf-Herder

    The player appears in the right spot on the teleporter when loading the ship.
     
  7. Pfhoenix

    Pfhoenix Scruffy Nerf-Herder

    Best Answer
    Found the problem. You apparently need to ensure your teleporter objects get tagged as "anchor" in your ship's blocks.config file.
     

Share This Page