Modding Discussion Changing ships in-game. [IDEA/HELP NEEDED]

Discussion in 'Starbound Modding' started by TheMicroWorm, Dec 9, 2013.

  1. TheMicroWorm

    TheMicroWorm Orbital Explorer

    Today I had an idea on how to change the ship you're using, in-game.

    After considering swapping .shipworld file while game is running (obviously a bad idea, not sure if even possible with lua scripting), I came upon an idea of combining all the ships on a single map.
    It's a relatively simple process, easy to extend to work on custom ships. All I had to do was to glue together the dropshipblock files (and change the pixel responsible for teleporter) and add overlays to .structure file. Now, you'd just activate some item, which would destroy the teleporter on your current ship and spawn a new one on the other one. Beam down, beam up, boom, new ship.
    The thing is, I have no idea how the script destroying the teleporter would look like. Also, I couldn't find any function exposed to lua which would spawn objects.

    Any thoughts?
     
  2. Princeofmar5

    Princeofmar5 Scruffy Nerf-Herder

    It looks like you're trying to change the player spawn on the ship, which isn't possible at this moment.
     
  3. TheMicroWorm

    TheMicroWorm Orbital Explorer

    Mhmm... I thought the teleporter just works as a spawnpoint on the ship. Oh well. Maybe someday.
     
  4. Princeofmar5

    Princeofmar5 Scruffy Nerf-Herder

    As soon as we can figure out how to edit the save files it should theoretically be possible
     
  5. SquarelyCircle

    SquarelyCircle Cosmic Narwhal

    I bet that sooner or later, ship changing will be available. I'd really like to have an official way to upgrade a ship to a larger one. I believe this is already planned as a feature, and so I bet there'll be a way to "upgrade" your ship to basically anything.
     
  6. Princeofmar5

    Princeofmar5 Scruffy Nerf-Herder

    I was looking into that when I made my one mod, I think it would still involve save editing.
     
  7. TheMicroWorm

    TheMicroWorm Orbital Explorer

    Yeah... But editing the save file would most likely involve 3rd party tools, which would kinda ruin the immersion. I was looking for a way to do it using game scripting engine. I was hoping the spawn point isn't saved as a separate thing and the game just spawns you in the location of the teleporter.
     
  8. Princeofmar5

    Princeofmar5 Scruffy Nerf-Herder

    As soon as the save files are figured out I bet you could use a script to edit it
     
  9. SquarelyCircle

    SquarelyCircle Cosmic Narwhal

    Perhaps right now it would, but I'm saying that there will be a means of upgrading (i.e. changing) your ship that will be modable. For example, you could upgrade your ship to have a second floor... or you could upgrade it to be any custom ship design. My point is that modding this now may not be worth our time, since it should be relatively easy later on. Assuming that ship upgrades actually make it in.
     
  10. Princeofmar5

    Princeofmar5 Scruffy Nerf-Herder

    Yeah I would say wait for the upgradable ships.
     

Share This Page