Tech 1-5 starting pop & credits

Tech 1-5 starting pop & credits; support/discussion/questions

Moderator: thunderchero

Post Reply
User avatar
Gowron
Code Master
Code Master
Posts: 304
Joined: Sat Apr 26, 2008 2:00 am
Location: 50° N, 11° E

Tech 1-5 starting pop & credits

Post by Gowron »

Some very useful information by Joker that must not be lost :)
Joker wrote: trek.exe pos
DEC 1629212
sorted by race car/fed/fer/kli/rom
all values 32bit int

1st 5 values
pop
2nd 5 values
credits
3rd 5 values
unknown
4th 5 values
unknown
Btw, the "unknown" values are still unknown ;)
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1928
Joined: Sun Apr 27, 2008 2:00 am

Post by Spocks-cuddly-tribble »

Side note w.r.t. the 'unknown' (unused) 3rd 5 values:


Starting pop of home & additional starting systems is loaded separately i.e. you can use different values via altering of the index calculations.

I always thought it is very odd if the extra starting systems starting pop is limited by exactly identical values than the home system. :?

Looking at the code and the default values it appears that this interesting feature has been broken just by a single byte coding error:

Code: Select all

450DC1    mov     eax, ds:58FE1C[edx+eax*4] -> change to ds:58FE44

i.e. in trek.exe at 0x501C4 replace: 1C with: 44
Now the starting pop of the extra starting systems will be taken from the 3rd 5 values. :)


Vanilla defaults: (T1-T5 / all empires)

100 / 150 / 200 / 250 / 300


Note that the effective starting pop is also limited by:

pop & planets limits for free- minor- & starting-systems
Terraforming Fix for Additional Starting Systems and Minors


The number of additional starting systems is limited by:

disable limit for extra starting systems
Corner check (major home systems)




Regarding the 'unknown' (unused) 4th 5 values:


I'll also provide a way of establishing custom AI starting credits using this data field, but that will go into another topic, which will contain quite a lot AI tweaks (probably this year). :)
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
Post Reply

Return to “Tech 1-5 starting pop & credits”