Borg cubes in game at the same time

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
Kurn
Lieutenant-Junior Grade
Lieutenant-Junior Grade
Posts: 93
Joined: Thu Aug 12, 2010 2:00 am
Location: Germany

Borg cubes in game at the same time

Post by Kurn »

Hello,
how can I control the number of borg cubes in game at the same time?
I would like to have only one cube at the same time for all difficulty level.
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1926
Joined: Sun Apr 27, 2008 2:00 am

Re: Borg cubes in game at the same time

Post by Spocks-cuddly-tribble »

You need to modify two code sequences:


1.) Borg random event
viewtopic.php?f=194&p=10788#p10788

Difficulty case switch 1-5 (5=impossible)
cmp number_of_cubes -> 1 / 2 / 4 / 8 / no check -> (jg ->exit no cube)

Code: Select all

number_of_cubes checks:
44F324      cmp    ds: 58FDE0, 1  // 0x4E72A
44F337      cmp    ds: 58FDE0, 2  // 0x4E737
44F34A      cmp    ds: 58FDE0, 4  // 0x4E74A
44F35D      cmp    ds: 58FDE0, 8  // 0x4E75D
As told these are jg checks i.e. setting all four to 0 will work up to 'hard' but not for impossible since there is no limiting code on that level.


2.) Copies after system destruction
viewtopic.php?f=230&t=1273&p=49961#p27201

Code: Select all

44F635                 cmp    ds:58FDE0, 10h //exit if 16 or more cubes in game(redundant)
It's a jge check i.e. 0x4EA3B -> 01 will prevent any cube reproduction (the cube who just has killed the system triggers the jump to exit).



Also the new ECM patch post holds a link to the 'Keep AI Federation from declaring War on Minor Races (Fix)' you requested:
viewtopic.php?f=30&p=50938#p50911


And if you are interested here are test patches for AI to colonize more systems and building more stations:
viewtopic.php?f=3&t=3668&p=51214#p51214
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
Kurn
Lieutenant-Junior Grade
Lieutenant-Junior Grade
Posts: 93
Joined: Thu Aug 12, 2010 2:00 am
Location: Germany

Re: Borg cubes in game at the same time

Post by Kurn »

Thanks for your answer, SCT. :smile:
I modified as you recommended.

Spocks-cuddly-tribble wrote: Sun Feb 16, 2020 1:27 pm
Also the new ECM patch post holds a link to the 'Keep AI Federation from declaring War on Minor Races (Fix)' you requested:
viewtopic.php?f=30&p=50938#p50911
Wow! Great news! :grin: I'm looking forward to observe how this will work in game. :smile:
Thank you, Code Master!
Post Reply

Return to “General Modding Information/Questions”