Modding Help platform on custom ship

Discussion in 'Starbound Modding' started by silenceko, Aug 2, 2016.

  1. silenceko

    silenceko Space Hobo

    Hey everyone,

    I have a problem. I am making some custom ships and everything works so far. I am currently working on the T4 version of my ship and it should come with "platforms". If I spawn the ship without any platform, it works well. So somewhere is something wrong.

    Here is my Folderstructure:
    mods/Shipmod/ships/human -> picturefile
    -> blockfile
    -> structure file

    mods/Shipmod/tiles/platforms ->apexschipplatform.material
    -> apexshipplatform.png

    I added the platformfolder recently attempting to resolve the following error:
    [14:30:53.458] [Error] UniverseServer: exception caught: (MapException) Key 'steelplatform' not found in Map::get()

    At first, I used this format:
    Code:
    {
            "value" : [128, 128, 128, 255],
            "foregroundBlock" : true,
            "backgroundBlock" : true,
            "backgroundMat" : "apexshipdetails",
            "foregroundMat" : "apexshipplatform"
        },
    While investigating the error, I found this thread, with the same error, but with a different setting (thats why I decided to open up a singel thread)
    http://community.playstarbound.com/threads/new-ship-crashing-game-client.109363/#post-2816958

    The solution there is changing "apexshipplatform" to "steelplatform", but this doesn't work for me.

    That is my actual code for the platform, as used in the above thread:
    Code:
    {
            "value" : [128, 128, 128, 255],
            "comment" : "all platforms",
            "foregroundBlock" : true,
            "backgroundBlock" : true,
            "backgroundMat" : "apexshipdetails",
            "foregroundMat" : "steelplatform"
        },
    metadata:
    Code:
    {
    "author" : "Silenceko",
    "description" : "Shipmod",
    "friendlyName" : "Shipmod",
    "name" : "file name",
    "version" : "1"
    }
    structurefile:
    Code:
    {
      "config" : {
        "shipUpgrades" : {
          "capabilities" : ["teleport", "planetTravel", "systemTravel"],
          "maxFuel" : 2000,
          "crewSize" : 4
        }
      },
    
      "backgroundOverlays" : [
        {
          "image" : "Ship.png",
          "position" : [-19.375, -22],
          "fullbright" : true
        }
       
      ],
    
      "blockKey" :
      [
          {
              "value" : [255, 255, 255, 255],
              "foregroundBlock" : false,
              "backgroundBlock" : false
          },
    
          {
              "value" : [0, 0, 0, 255],
            "anchor" : true,
            "foregroundBlock" : false,
            "backgroundBlock" : true,
            "backgroundMat" : "apexshipsupport",
            "object" : "humanteleporter",
            "flags" : [ "playerSpawn" ],
            "objectParameters" : {
                "unbreakable" : true
                }
        },
    
        {
            "value" : [255, 0, 0, 255],
            "foregroundBlock" : true,
            "backgroundBlock" : true
        },
       
        {
          "value" : [255, 102, 0, 255],
          "foregroundBlock" : false,
          "backgroundBlock" : false,
          "backgroundMat" : "apexshipwall",
          "object" : "outpostslidingdoor",
          "objectParameters" : {
                "unbreakable" : true,
                "backgroundMat" : "apexshipwall"
                },
          "objectResidual" : true
         
        },
       
        {
          "value" : [255, 200, 220],
          "foregroundBlock" : true,
          "backgroundBlock" : true,
          "foregroundMat" : "hazard",
          "foregroundResidual" : true,
          "backgroundMat" : "apexshipwall"
        },
       
        {
            "value" : [255, 117, 144, 255],
            "foregroundBlock" : true,
            "backgroundBlock" : true,
            "backgroundMat" : "apexshipsupport",
            "objectParameters" : {
                "unbreakable" : true
                }
        },
    
        {
            "value" : [255, 255, 0, 255],
            "foregroundBlock" : false,
            "backgroundBlock" : true,
            "backgroundMat" : "apexshipwall",
            "object" : "humancaptainschair",
            "objectDirection" : "right",
            "objectParameters" : {
                "unbreakable" : true
                }
        },
    
        {
            "value" : [0, 255, 255, 255],
            "foregroundBlock" : false,
            "backgroundBlock" : true,
            "object" : "humanfuelhatch",
            "objectParameters" : {
                "unbreakable" : true
                }
        },
    
        {
            "value" : [0, 255, 0, 255],
            "foregroundBlock" : false,
            "backgroundBlock" : true,
            "backgroundMat" : "apexshipwall",
            "object" : "humantechstation",
            "objectParameters" : {
                "unbreakable" : true
                },
            "objectResidual" : true
        },
    
        {
            "value" : [0, 255, 144, 255],
            "foregroundBlock" : false,
            "backgroundBlock" : true,
            "backgroundMat" : "apexshipwall",
            "flags" : [ "shipLockerPosition" ],
            "object" : "humanshiplocker",
            "objectParameters" : {
                "treasurePools" : [ "humanStarterTreasure" ],
                "level" : 0.5,
                "unbreakable" : true
                },
            "objectResidual" : true
        },
    
        {
            "value" : [243, 243, 243, 255],
            "foregroundBlock" : false,
            "backgroundBlock" : true,
            "backgroundMat" : "apexshipwall",
            "objectParameters" : {
                "unbreakable" : true
                },
            "objectResidual" : true
        },
       
        {
            "value" : [255, 144, 0, 255],
            "foregroundBlock" : false,
            "backgroundBlock" : true,
            "backgroundMat" : "apexshipwall",
            "object" : "apexshiplight",
            "objectResidual" : true
        },
       
        {
            "value" : [128, 128, 128, 255],
            "comment" : "all platforms",
            "foregroundBlock" : true,
            "backgroundBlock" : true,
            "backgroundMat" : "apexshipdetails",
            "foregroundMat" : "steelplatform"
        },
       
        {
            "value" : [255, 255, 220],
            "foregroundBlock" : true,
            "backgroundBlock" : false,
            "foregroundMat" : "hazard",
            "backgroundMat" : "apexshipwall",
            "foregroundResidual" : true
        }
           
      ],
     
      "blockImage" : "ShipBlocks.png"
    }
    Can anyone help me?
     
  2. lazarus78

    lazarus78 The Waste of Time

    Easy. "steelplatform" does not exist, unless you made a custom platform material called that.
     
  3. silenceko

    silenceko Space Hobo

    Ok, thank you for that!
    So, but why isn't the default platform working? -apexshipplatform- I guess. And is there a way to use a platform without modding it?
     
  4. lazarus78

    lazarus78 The Waste of Time

    You are also missing an opening bracket at the beginning of your ship config.
     
  5. silenceko

    silenceko Space Hobo

    the first, bold one? 3 opening, 2 closing brackets. It should be fine and it works ;)

    It just crashes with the "apexshipplatform" and I can't figure out why.. replacing that wth e.g. "hazard" works..

    Code:
    {
      "config" : {
        "shipUpgrades" : {
          "capabilities" : ["teleport", "planetTravel", "systemTravel"],
          "maxFuel" : 2000,
          "crewSize" : 4
        }
      },
     
  6. LazerRay

    LazerRay Cosmic Narwhal

    Try changing the "steelplatform" to "tungstenplatform", it worked for me when I manually updated an old ship mod.

    After the Starbound update steel was replaced with tungsten and it messed up a lot of items.
     
  7. silenceko

    silenceko Space Hobo

    Thank you, that works! :)
     
    Last edited: Aug 3, 2016

Share This Page