Modding Help Need Help with Custom Station Ship Orbit Background

Discussion in 'Starbound Modding' started by ShirtyScarab554, Mar 10, 2018.

  1. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    So I'm trying to make a space station you can spawn in with a custom station transponder that has a different orbit Background, but I can't find a file that changes the stationbackground.png or the station icon.png.
    Nothing is in the celestial.config,(at least not that I saw) or the dungeon_worlds.config.

    Here's what I did edit to try and figure this out
    (with no prevail)

    the playerstation.lua itself. (renamed to *placeceresstation.lua*)
    https://pastebin.com/QUurtNjj

    the system_objects.config i put in.
    https://pastebin.com/YubEV8iP

    The instance_world.config I put in.
    https://pastebin.com/464fAWGg

    And finally the dungeon_worlds.config I put in. (it is using the current playerstation dungeon for now)
    https://pastebin.com/TtL3vkD7

    If anyone is willing to help, that would be great, because Iv'e been doing this for the past 4 hours and I'm really tired.
     
  2. bk3k

    bk3k Oxygen Tank

    Look at he vanilla /dungeon_worlds.config file
    /playerstation/biome points to the "space" biome. And that's your answer. Make a new biome file.

    /biomes/space/space.biome is only this -
    Code:
    {
      "name" : "space",
      "friendlyName" : "space",
      "airless" : true,
    
      "parallax" : "/parallax/space/space.parallax",
    
      "spawnProfile" : {
        "groups" : [],
        "monsterParameters" : {}
      },
    
      "statusEffects" : [ "biomeairless" ],
    
      "hueShiftOptions" : [0]
    }
    
    You'll also want your own parallax file for your own biome to point towards
     
  3. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    While this is very helpful for other things I am working on, this doesn't pertain to Station Celestial parallaxe code, which I cannot find for the life of me.
    I'm trying to look for a way to change what is below.

    What I want (left) vs what I have (right)
     

    Attached Files:

  4. bk3k

    bk3k Oxygen Tank

    The image you have there is "/celestial/system/spacestation/stationhorizonright.png"
    And that is referenced by
    /system_objects.config
    lines 10, 35, 60, 85, and 110. Line 110 defines playerstation/skyParameters/horizonImages/

    Now since you are making a new type of player station, you wouldn't really replace this image, but just add your own entry for your own station's unique nameSpace. That would use your own images instead, while leaving the current player stations untouched.

    While making your own station type, I do recommend going with a MUCH larger dungeon world than vanilla did. I can't understand why they made it so limited! Space is supposed to be unimaginably large. I made a mod to address this with vanilla player stations, but you might as well do it right from the start.
     
  5. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    Okay made those files and the background is still vanilla, trying to look through the Station Transponder codes to see if I missed something.

    Sorry I haven't figured this out yet.

    Heres the code I used for the system_objects.config.patch file I made
    Code:
    [
    
       // Space Stations
    
    {
      "op": "add",
        "path": "/playerceresstation",
        "value": {
    
         "warpAction" : "InstanceWorld:playerceresstation",
         "threatLevel" : 1,
         "skyParameters" : {
          "seed" : 0,
          "horizonClouds" : false,
          "horizonImages" : [ { "left": "/celestial/system/spacestation/ceres/ceresstationhorizonleft.png", "right": "/celestial/system/spacestation/ceres/ceresstationhorizonright.png" } ]
        },
    
        "permanent" : true,
    
        "moving" : false,
        "speed" : 5.0,
        "orbitRange" : [10, 10],
        "lifeTime" : [0, 0],
        "parameters" : {
          "icon" : "/celestial/system/spacestation/ceres/ceresstationicon.png",
    
          "displayName" : "Personal Space Station",
          "description" : "This personal space station was deployed by a fellow adventurer. They probably have good stuff to steal.",
    
          "bookmarkIcon" : "ceresstation"
        }
      }
    
    
    }
    ]

    Here's the dungeon_worlds.config.patch file I made (made to add a custom parallax to remove the space junk from the background and edit the world size)

    Code:
    [
    
    {
        "op": "add",
        "path": "/playerceresstation",
        "value":
        {                                            
      
        "primaryDungeon" : "playerstation",
        "threatLevel" : 6,
        "gravity" : 0,
        "airless" : true,
        "worldSize" : [3000, 3000],
        "dungeonBaseHeight" : 300,
        "dungeonSurfaceHeight" : 300,
        "ambientLightLevel" : [32, 32, 32],
        "ambientNoises" : "/sfx/environmental/space_loop4.ogg",
        // "musicTrack" : "/music/jupiter.ogg",
        "environmentStatusEffects" : ["biomeairless"],
        "worldEdgeForceRegions" : "TopAndBottom",
        "biome" : "cleanspace"
        }
        
      }
    ]
     
  6. ShirtyScarab554

    ShirtyScarab554 Subatomic Cosmonaut

    AYYYY IT WORKS NOW!!!
    turns out In my custom placestation.config I didn't name one thing correctly.

    My only issue now is that the custom bookmark picture doesn't pop up in the teleporter menu.

    Sorry about taking so long to figure this out and reply.
     
    Last edited: Mar 17, 2018

Share This Page