Disabling Dilithium for Spacefaring Races

Disabling Dilithium for Spacefaring Races; 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

Disabling Dilithium for Spacefaring Races

Post by Gowron » Sat Jul 31, 2010 12:56 pm

Although it's possible to control the Dilithium probability directly by the percentage value at position 0x17D9F4 in trek.exe, the home systems of major empires and spacefaring minors will always get Dilithium.

In case you want to change that, here's the how-to:

Major Empires

Dilithium is automatically assigned to major empire home systems in subroutine 4B7A50. The easiest way to disable it is to change "01" to "00" in trek.exe at position 0xB6E85.


Spacefaring Minors

You can prevent spacefaring minors from automatically having Dilithium by changing
"80 4C 02 71 08"
to
"90 90 90 90 90"
in trek.exe at position 0x50CD7.


Note that even with both automatic assignments disabled, some majors and spacefaring minors can still have a Dilithium source if the Dilithium probability is greater than zero.
A discovery consists in seeing something everybody has seen and at the same time thinking something nobody has thought yet.

User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 773
Joined: Sun Apr 27, 2008 2:00 am

Dilithium Recource Level Fix for Spacefaring Minors (dilithium icon sometimes missing)

Post by Spocks-cuddly-tribble » Sun Dec 08, 2019 8:20 am

Code: Select all

0x50CDC change 5F 5E 59 5B C3 00 00 -> C6 44 10 6E 04 EB B4


004518DC   C64410 6E 04   MOV BYTE [EAX+EDX+6E],4 // set Dilithium Recource Level 4
004518E1  ^EB B4          JMP SHORT 00451897
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 “Disabling Dilithium for Spacefaring Races”

Who is online

Users browsing this forum: No registered users