How to add planets manually

Adding Planets to planet.pst; support/discussion/questions

Moderator: thunderchero

Post Reply
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

How to add planets manually

Post by Peter1981 »

to add a planet to botf manually -- this is now a feature of UE 1.0.7dev4 thanks to DCER
1 extract planet.pst from stbof.res (use UE)
2 open planet.pst with a hex editor (set view width to 76bytes)
3 go to last byte
4 add to the end of the file a name for the planet eg NEW1 etc this isn't seen in game
5 at the 41st byte enter a name of a .ani file eg eart.ani
6 byte 53 must be 10
7 byte 54 must be 59
8 bytes 55 and 56 must be the planet index number (anything between 1200-5999dec) is good here DO NOT MAKE DUPLICATE ENTRIES!! this numkber is little endian 2 byte eg 57 04 is 1111
9 byte 74 must be between 09-0c inclusive
10 check all other entries can should be 00
11 add the 00 at the end twice ie 00 00

the above should have produced 76 bytes that look similar to the other entries
12 save the planet.pst file and import it into stbof.res (with UE)
13 open Edit -> Galaxy -> Planets menu scroll to the bottom of the list your new planet should be their edit its stats to make it what you want.
Last edited by Peter1981 on Wed Apr 21, 2010 3:42 pm, edited 2 times in total.
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Post by Tethys »

Hehe thats cool i never knew that could be done good work... this doesnt crash the game in any way? :)
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
Mentat
Commander
Commander
Posts: 360
Joined: Sun May 04, 2008 2:00 am

Post by Mentat »

Awesome work Peter, thumbs up!
Dominion Wars - Scenario
to be released for UDM3.0.1a !
User avatar
jigalypuff
Past Administrator
Past Administrator
Posts: 238
Joined: Sat Apr 26, 2008 2:00 am

Post by jigalypuff »

I wonder if this would work for structures as well? Runs off to give it a try :)
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1926
Joined: Sun Apr 27, 2008 2:00 am

Post by Spocks-cuddly-tribble »

Good work Peter! :)

but don't forget to increase the two bytes index value (bytes 00/01) in planet.pst (default: 0x45D) by the nunber of added planets, otherwise BotF ignores your new planets for random selection during galaxy creation. :)
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Post by Peter1981 »

no it really work just thought I'd post the discovery --

gotta be careful though if you duplicate the id you'll crash and there are some at 6000ish!!??

@tethys -- needs more testing (as always lol)

@SCT thanks forgot this, however i think ue will do this for you?

@Jigglypuff good luck I couldn't figure that out :) let us know how you get on.
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1926
Joined: Sun Apr 27, 2008 2:00 am

Post by Spocks-cuddly-tribble »

Hmm, I didn't see a reason why UE should change this value (before the new "add/remove planets from planet.pst" feature, of course).
Anyway I hope that you tested this (for example with unique planet ani's for the newly added planets -> watching random star systems on maps) before you requested the add planet UE feature...
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Post by Peter1981 »

@SCT don't ask me why UE does this I don't know but it changes the first 2 bytes upwards when you add planets... I agree there is no reason for this as UE stand but maybe a little future proofing? Yes I did test it with planets form tethys planet pack various types gas giants volcanics etc on a 59x32 map with ~800 star systems I didn't see any missing planets! :D

As alway further testing is very wise as for every animation you can have 108 (3^3 x 4)diffrent combinations for the same graphic .ani file so given that there are in my list well over 1000 planets som could be missing!
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Post by Peter1981 »

@SCT don't ask me why UE does this I don't know but it changes the first 2 bytes upwards when you add planets... I agree there is no reason for this as UE stand but maybe a little future proofing? Yes I did test it with planets form tethys planet pack various types gas giants volcanics etc on a 59x32 map with ~800 star systems I didn't see any missing planets! :D

As alway further testing is very wise as for every animation you can have 108 (3^3 x 4)diffrent combinations for the same graphic .ani file so given that there are in my list well over 1000 planets som could be missing!
User avatar
DCER
Code Master
Code Master
Posts: 683
Joined: Sat Apr 26, 2008 2:00 am

Post by DCER »

I thought the answer would fit here better than the UE topic.

When UE reads planet.pst it reads it fully - ignoring the various counters. On save it then resets the total number of planets and the counter for each planet type.

This was meant to fix potential errors that could happen when hand modding.
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Post by Peter1981 »

@this should not be a problem as the reserved planet earth, mars Qo'noS IV et al are at 6000+ so will not be read any way.

even if these planets did turn up Kirk encountered so many just-like-earth planets is near impossible to believe! ha ha :)
KrazeeXXL
BORG Trouble Maker
BORG Trouble Maker
Posts: 2323
Joined: Sat Jan 03, 2009 3:00 am
Location: the 36th Chamber

Post by KrazeeXXL »

nice find Peter... dang I have to get into hexediting again
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Post by Peter1981 »

for those of you who whant to add planets this option has been added by DCER to UE 1.0.7dev4
Post Reply

Return to “Adding Planets to planet.pst”