Extending the shiplist

Extending the shiplist; support/discussion/questions

Moderator: thunderchero

User avatar
EnPhreg
Lieutenant-Commander
Lieutenant-Commander
Posts: 130
Joined: Thu Jul 10, 2008 2:00 am

Re: Extending the shiplist

Post by EnPhreg »

so i've tested it. the values for number_of_cubes are a limitation value for possible cubes on map like expected.
and also the difficulty check for number of cubes in game are a limitation.
and for this difficulty check there is also a value for level 5 (impossible).
check found in trek.exe at: 0x4EA3B (default 10). tested it with vanilla (if value set to 1, no new cube spawns if a already exisiting cube assimilates a world, cause the limit is 1 and 1 cube is already in the game, tested it several times)

so i think SCT's assumption for no check on difficulty 5 wasn't right so far for this check.
Difficulty case switch 1-5 (5=impossible)
cmp number_of_cubes -> 1 / 2 / 4 / 8 / no check -> (jg ->exit no cube)
so, there are two checks for the possible number of borg cubes in the game.
number_of_cube check and the difficulty check.
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 853
Joined: Sun Apr 27, 2008 2:00 am

Re: Extending the shiplist

Post by Spocks-cuddly-tribble »

Sub_48B470 references to some ship-IDs that might also require adaptation when extending the shiplist.sst:

Code: Select all

AUTO:0048B515                 mov     cl, 73h               ; Borg cube  ship ID // 0x8A916
AUTO:0048B571                 cmp     byte ptr [ecx+1], 73h ; Borg Cube  ship ID // 0x8A974

AUTO:0048B4F3                 cmp     cl, 7Bh               ; Orbital Battery  ship ID // 0x8A8F5
AUTO:0048B62A                 cmp     cl, 7Bh               ; Orbital Battery  ship ID // 0x8AA2C

AUTO:0048B5DE                 cmp     cl, 7Dh               ; max ship ID +1   (max FF i.e. max ship ID FE) // 0x8A9E0
AUTO:0048B632                 cmp     cl, 7Dh               ; max ship ID +1   (max FF i.e. max ship ID FE) // 0x8AA34


AUTO:0048B523                 cmp     byte ptr [eax], 25h   ; Crystal Entity - Race Id
AUTO:0048B55B                 mov     bh, 25h               ; Crystal Entity - Race Id
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 “Extending the shiplist”