In the stbof.ini there is some info down yonder:
Code: Select all
CIVLEVEL1=2
CIVLEVEL2=3
CIVLEVEL3=1
CIVLEVEL4=2
CIVLEVEL5=0
4BFD80 took a while to locate because of (seemingly) duplicate entries and that's what took the longest. But alas, I have found the cookie buried deep under sand, rock, and diamond.
I tested value FE because I thought FF could be -1. It also appears this is some kind of color code system, as all the color seem to be different (note entry 254)
4BFDE6
Code: Select all
AUTO:004BFDE6 B9 05 00 00 00 mov ecx, 5
AUTO:004BFE65 BB 05 00 00 00 mov ebx, 5
And the crash log if you try to choose level greater than 5...
ST:BOF Wed Feb 23 00:20:01 2022
Version Under Test: 72
File: ..\..\source\universe\placrace.c, Line: 998, pos.row>=0 && pos.col>=0
Initialize State: 31
Player Empire: 4 Starting Seed: 1645593601
Galaxy shape: 0 Galaxy Size: 2
4BFE33
I think this compares the CivLevel to some other version of itself+bytes, which is assigned elsewhere (I've seen it I just don't remember where)
4BFE36
This jnz is already ready to jump right into relocation table to continue code structure for additional CivLevels (but more code would be needed).
4BFE3C
I think this assigns saves or alters some info for later comparison with CivLevel.
Edit: Added info (second trigger location)