Credits generation per turn

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
Westmensch
Ensign
Ensign
Posts: 31
Joined: Thu Dec 23, 2010 3:00 am

Credits generation per turn

Post by Westmensch »

Hey,
I have been using the Ultimate Editor to make some balancing changes to the UDM mod and the only thing I am missing is the credits generation per turn. I know that you can edit the trek.exe but my game crashes if I do that so I figured that I did not edit the content of the file properly. There is no GUI option in the UE to change that, is there ? I just wanna reduce the difference between the races so that the Dominion doesn't get 4k while the Klingons or Cardassians are stuck at not even half of that.

Thanks in advance!
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7933
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Credits generation per turn

Post by thunderchero »

Hi Westmensch,

Keep in mind pop support is based on population so if they are getting that much more they have more systems with more population.

here is pop support at turn 1, T1;
Cardassian 146 (355 population)
Federation 166 (350 population)
Dominion 183 (395 population)
Klingon 151 (330 population)
Romulan 159 (345 population)

you can change % calculation at 0x018e2a4 of trek.exe
here is current settings and hex code for each race
Cardassian -> 0.93 -> 7B 14 6E 3F
Federation -> 0.90 -> 66 66 66 3F
Dominion -> 0.94 -> D7 A3 70 3F
Klingon -> 0.95 -> 33 33 73 3F
Romulan -> 0.91 -> C3 F5 68 3F

as you see the Dominion is slightly higher but not by much.
I would not suggest lowering Dominion lower than Federation to keep balance. change D7 A3 70 3F -> 66 66 66 3F

good luck
User avatar
Westmensch
Ensign
Ensign
Posts: 31
Joined: Thu Dec 23, 2010 3:00 am

Re: Credits generation per turn

Post by Westmensch »

Thanks for the reply,
does pop support affect the number of credits gained per turn ? To be honest I have never even gotten close to my pop support in UDM.
Thanks for the example, at least I was able to find those numbers in the trek.exe :D

viewtopic.php?f=155&t=2930 says that at 0x18da58 there are the income modifiers for the races as 4 byte floats. So I figure 9A 99 is the income modification for the Cardassians ? But isn't that 154 153 in decimal numbers ? I am a bit confused by this.
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1926
Joined: Sun Apr 27, 2008 2:00 am

Re: Credits generation per turn

Post by Spocks-cuddly-tribble »

Westmensch wrote: Fri Apr 24, 2020 2:07 pmviewtopic.php?f=155&t=2930 says that at 0x18da58 there are the income modifiers for the races as 4 byte floats. So I figure 9A 99 is the income modification for the Cardassians ? But isn't that 154 153 in decimal numbers ? I am a bit confused by this.
No, a byte is two digits with a value range of 00 to FF.

And you need a Floating Point calculator (UE has one, I think). https://baseconvert.com/ieee-754-floating-point

And change the order of the bytes into little endian format: http://www.members.aon.at/zelli/shiplist.htm (UE converter should do that?)
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
Westmensch
Ensign
Ensign
Posts: 31
Joined: Thu Dec 23, 2010 3:00 am

Re: Credits generation per turn

Post by Westmensch »

Thank you,
probably would have never figured that out on my own. I'll give it another try.

Edit: Ah, now I am getting the same values as in the linked thread.
Oh, it worked and the credits seem to scale fine,too. Thank you very much, been trying to figure that out for years.
Post Reply

Return to “General Modding Information/Questions”