Mysterious 'aigen.c' tactical combat-group feature

General Modding Information/Questions; support/discussion/questions

Moderator: thunderchero

Forum rules
:idea: Please search before starting new topic. :idea:
There is a good chance it has already been asked.
Post Reply
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1251
Joined: Sun Apr 27, 2008 2:00 am

Mysterious 'aigen.c' tactical combat-group feature

Post by Spocks-cuddly-tribble »

Of the many broken and unfinished features in trek.exe there is still one refusing to divulge it's purpose.

An unknown/unused 'aigen.c' function supposed to affect behavior of tactical combat groups with special codes for Federation, Ferengi and Klingon ships.

Sub_554574/5546D0 generates for each ship, each turn in tactical combat, two random values between 0-7. At least one of them has a subtle impact.

Last group ship's random values get copied into (a seemingly unused part of) the group data ds:597860.

Our special feature replaces the second random value (with the subtle impact for ships) in the group data with the lowest of all group ships for Ferengi, the greatest of all group ships for Klingons and the greatest of all fleet ships for Federation.

Sadly the group random values don't seem to be applied, so I wasn't able to deduce a patchable concept.

Any ideas?


Code: Select all

0x15359C 76 -> EB (disable all features) -> massive impact

0x153A11 75 -> EB (disable group race deviation special feature) -> no change

0x153B37 01 D3 -> 33 DB  +188h (random always 0) -> subtle change

0x153B64 01 D3 -> 33 DB  +184h (random always 0) -> no change
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 “General Modding Information/Questions”