Environ.est (habit, planboni, planspac, ppgrowth).bin

Other Projects; support/discussion/questions

Moderator: thunderchero

Post Reply
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Environ.est (habit, planboni, planspac, ppgrowth).bin

Post by Tethys »

In this topic I will be attempting to break down the environ.est file (and apparently all other files associated with planet types) I believe Environ.est is the primary file that will be adding the new planet type. Best case scenario is new planet type unable to "grow" population. Hence the other files.

No testing has been done, this is just a basic analysis.

0x0000: 0D 00 = total number of entry for all planet and atmosphere type (assumption based on 0C being last entry and 0D being numerical count) will need to be changed to add more entry (obvious)

0x0002-0x0081: unknown area, speculation is that it separate the planet type and atmosphere type

0x0082: planet types section 190h = 32h length per entry (breakdown of first and second entries below) * 8 entries for planet (label 00-07)

First Planet Entry
0x0082: 12 bytes for name (possibly more, up to 28h?)
0x008E: 1Ch length, area unknown (00's, possibly name related)
0x00AA: 00 00 = label of entry (0x0140 = 03 00 gas giant, 0x0302 = 0C 00 thin oxygen)
0x00AC: 0F D3 = -11505 or if unsigned 54031 (unknown)
0x00AE: D3 59 = 22995 (unknown)
0x00B0: C8 32 = 13000 (speculate this is some kind of unit of measurement for atmosphere)
0x00B2: 28 23 = 9000 (speculation same as above)

Second Planet Entry
0x00B4: byte-length for namespace + unknown
0x00DC: 01 00 = label of entry
0x00DE: B5 C4 = -15179 or if unsigned 50357
0x00E0: 5A 59 = 22874
0x00E2: F0 55 = 22000
0x00E4: 10 27 = 10000

0x0212-end: atmosphere types section (same breakdown per entry as above) * 5 entries

First Atmosphere Entry (methane)
0x00212: byte-length for namespace + unknown
0x0023A: 08 00 = label of entry
0x0023C: B5 46 = 18101
0x0023E: CE F1 = -3634 or if unsigned 61902
0x00240: 50 46 = 18000 (**this is the same value for all atmospheres entries)
0x00242: 10 27 = 10000 (**same as above)

First Atmos (*)Values Only (comparison) methane
18101
-3634 or if unsigned 61902
**
**

Second Atmos(*) none
-19004 or if unsigned 46532
-12579 or if unsigned 52957
**
**

Third Atmos(*) oxygen rich
5190
13051
**
**

Fourth Atmos(*) sulfuric
-12629 or if unsigned 52907
-6219 or if unsigned 59317
**
**

Fifth Atmos(*) oxygen thin
4081
1295
**
**

At this time, I am not sure how I will go about inserting new planet types. Seems there are a number of files such as habit.bin, planspac.bin, ppgrowth to be dealt with. Stellar was just one file, and I was able to add the new entry to the end of the file. I may or may not be able to put the new planets into the end of habit.bin file, as long as the ID matches in trek.exe? We will find out eventually.

Possible planet type suggestions:
Asteroid type (naturally)
Gas Super/Ultra giant (a variation between Ice, Hot, and Super giants, for new structures for a greater economic boost)
Anomaly type (wormhole mostly, maybe nebulae; cosmetic, nonfunctional for now, uninhabitable)
Brown dwarf star (edge of solar system, uninhabitable unless below)
Brown dwarf with orbiting planetoid (inhabitable)

I would say we could put our secondary stars here too, but I think unless you are making new buildings for star type planets, its best to just add a few more entry to stellar objects for different binary and trinary star types (we could have many options now with relocation table).

Naturally I'd like to make the planetary selection more robust. So of course any realistic and canon classification of planet available in my opinion should be added.
► Show Spoiler
This will probably be a longer project due to the additional files. But I remain confident :)
Last edited by Tethys on Fri Sep 15, 2023 8:59 pm, edited 5 times in total.
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2404
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Re: Environ.est (habit, planboni, planspac, ppgrowth).bin

Post by Tethys »

ppgrowth.bin

HxD at 12 lines per row.

First Row
0x0000: 0A 00 = 10
0x0002: 32 00 = 50
0x0004: 40 42 = 16960
0x0006: 0F 00 = 15
0x0008: 00 FF = -256 or if unsigned 65280
0x000A: 00 00 = unknown

First Row (*)Values Only (comparison)
10
50
16960
15
-256 or if unsigned 65280
0

Second Row(*)
50
100
-24288 or if unsigned 41248
7
-256 or if unsigned 65280
0

Third Row (*)
100
200
-15536 or if unsigned 50000
0
-255 or if unsigned 65281
0

Fourth Row(*)
200
300
-25536 or if unsigned 40000
0
-255 or if unsigned 65281
0

Fifth Row(*)
300
400
30000
0
-255 or if unsigned 65281
0

Sixth Row (*)
400
600
20000
0
-255 or if unsigned 65281
0

Seventh Row (*)
600
800
10000
0
-255 or if unsigned 65281
0

Eighth Row(*)
800
1200
5000
0
-255 or if unsigned 65281
0

Ninth Row(*)
1200
2000
2500
0
-255 or if unsigned 65281
0

Final Row(*)
2000
10000
1250
0
-255 or if unsigned 65281
0


Reserved for followup files analysis.
Not for the weak of heart...
Galaxies MOD v0.4.0 <--- GALM/Galaxies Mod latest version
Post Reply

Return to “Other Projects”