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?
It looks like you're trying to change the player spawn on the ship, which isn't possible at this moment.
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.
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.
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.