Modding Discussion Planet as your ship

Discussion in 'Starbound Modding' started by hakari, Dec 26, 2013.

  1. hakari

    hakari Subatomic Cosmonaut

    So I found that it is possible to make a planet world into your ship world as simple as copy paste and a name change. Yes it works in MP, monsters do spawn and it is actually as big as a real planet.

    However there is no fuel on your super planet ship. I've been trying to memory edit my way through but the was not able to find the address pointer for current fuel or max fuel.

    So I just wanted to see if someone smarter could find a way to make this work....

    [​IMG]
     
    Bunnky, Grugore, NerArth and 3 others like this.
  2. Ramza Wyvernjack

    Ramza Wyvernjack Subatomic Cosmonaut

    I want a planet.
    We have to make a Jenova too!
     
  3. Sethh

    Sethh Subatomic Cosmonaut

    Question.

    How did you get those modules where you wanted them?
     
  4. Sethh

    Sethh Subatomic Cosmonaut

    I am also hoping for an answer on how to get the fuel hatch to work
     
  5. Grugore

    Grugore Tentacle Wrangler

    Very nice.

    Have you tried doing the opposite? Making the planet look like a starship..

    Could be a way to make an interesting starbase spawn for multiplayer..
     
    Gniolliv likes this.
  6. Slash0mega

    Slash0mega Subatomic Cosmonaut

    i could see that working, and it would be easy to find out, just copy your ship file to your galaxy folder and rename it to a planet name. it gose without saying that that planet will be lost.
     
  7. Bunnky

    Bunnky Sandwich Man

    That's a really neat discovery there. Opens up a bunch of new possibilities..
     
  8. Slash0mega

    Slash0mega Subatomic Cosmonaut

    I am thinking that all the deferent building files share the same contents, like .shipfile and .structure
     
  9. prao060

    prao060 Void-Bound Voyager

  10. Klokinator

    Klokinator Big Damn Hero

    Wow, that's awesome! Gonna have to try this myself now :rofl:
     
  11. Ariskelis

    Ariskelis Ketchup Robot

    You may have to actually convert it to an official dropship.structure file, because max fuel is stored in there.

    \assets\ships\#race#\dropship.structure
    It's on like line 3.

    EDIT: I'm not sure how possible this would be, considering a dropship.structure file actually has to point to a .png and a specified tile placement. Perhaps it'd be possible to draw a custom ship as large as a planet, but I don't think an entire planet itself could be viable, if you want fuel.

    EDITEDIT: Well, if we could de-encrypt the code that makes up the planet and .shipworld files, we could determine exactly what portion of the code points to the .dropship file for configuration, and simply have a custom .dropship file with some alterations to allow it to use the planet's blocks (set by the new planet .shipworld) and add the code from the original .shipworld that points to the configuration file, in order to allow the new one to. Sorry if this makes absolutely no sense I'm just tired and rambling.

    But how are we going to do that? Dammit now I'm determined.

    UPDATE! I made a new character and poked around in the .shipworld file and found where it points to all of it - Player spawning, Player invincibility on the ship, max fuel, and how it determines how full the fuel is - It's on the very end of line 163 for me, and how the fuel level is determined is line 164.
    This is on an Apex ship, clean and fresh new character.
    However I have no idea where to stick all of it, I'm sure we can find a way now.

    EDIT: Avian ship appears to store it on line 959.

    GGRRRAAAAAAAAHHHHHH! <yellofanger
    Starbound doesn't seem to like you just editing the original .shipworld.. I figured, since the original has all of the data that it needs for fuel, I could copypasta the planet's data into the original .shipworld.
    Noot so much.
    Starbound deletes all of the added lines on startup >:C

    And so, I try the opposite - Take the planet, and add the original .shipworld's data to it.
    Does it work? OF COURSE NOT.
    Instead, Starbound completely regenerates the ship.
    I'm lost, I've tried everything I can think of right now.
     
    Last edited: Jan 2, 2014
  12. Sethh

    Sethh Subatomic Cosmonaut

    Very interesting find.

    We couldnt just edit the file to say something like 1000/1000 fuel?
     
  13. Ariskelis

    Ariskelis Ketchup Robot

    No, because of the way the .shipworld and .world files are written. I don't even know what exactly points to the config file - All I know is that it says fuel.max. lol.
     
  14. Sethh

    Sethh Subatomic Cosmonaut

    Well i got a ship running as the spawn world on my server..

    Now to figure out if its possible to make my ship/world/spawn fly to other planets and let you beam down
     
  15. Horizons Reach

    Horizons Reach Void-Bound Voyager

    Have you tried looking at what gives the planet its properties. (Generation etc.)
    Then tried merging it with a ship?
     
  16. Ariskelis

    Ariskelis Ketchup Robot

    Try reading my edits of my longer post :p
    Starbound just completely wipes the file and gives you a fresh new ship. I've tried both ways, adding ship data to planet, and adding planet data to ship, Starbound doesn't seem to like you editing its ship files. :c
     
  17. Odinwolfe

    Odinwolfe Void-Bound Voyager

    I feel stupid.
    So, can you travel to other planets, and beam up to this place?
    Or am I misunderstanding the purpose of this?
     
  18. Ariskelis

    Ariskelis Ketchup Robot

    I'm not entirely sure what you're asking, but it essentially replaces your ship with a planet. So... Yes? lol.
     
  19. Odinwolfe

    Odinwolfe Void-Bound Voyager

    Yeah, I worded that wrong.
    I think yes covers my question LOL
     
  20. Ariskelis

    Ariskelis Ketchup Robot

    Good because I don't know what else to tell you :rofl:
     

Share This Page