Gifts to Minor Races: Amounts and Effects

Gifts to Minor Races: Amounts and Effects + major race gifts, offers & demands !; support/discussion/questions

Moderator: thunderchero

User avatar
Axis
Commander
Commander
Posts: 489
Joined: Sun Aug 16, 2015 8:28 am
Location: Finland
Contact:

Re: Gifts to Minor Races: Amounts and Effects

Post by Axis »

No luck was needed, those numbers you gave, are even better balanced than those I thought of.

For example gifts to the Vulcans :
Federation
2000
4000
6000
8000
10000

Cardassians
4000
8000
12000
16000
20000

...and the thunder struck again! (I mean thanks ;) ).
Impress the Empress.
User avatar
EnPhreg
Lieutenant-Commander
Lieutenant-Commander
Posts: 130
Joined: Thu Jul 10, 2008 2:00 am

Re: Gifts to Minor Races: Amounts and Effects

Post by EnPhreg »

:arrow: Bribe Resistance Fix (advanced)

1.) In edifbnft.bst change "bribe resistance" to "% bribe resistance" (just cosmetics).

2.) In edifice.bst change the output value of the communication grid from 500 to (for example) 30% i.e. effect of gifts is reduced to 70%. Needless to say the max value is 100% bribe resistance.

3.) In trek.exe change code at the following 4 locations:

The multiplier is 0.0004 due to the skipped default effect divisor (25 see above) i.e. *0.04 *0.01(%). Thus e.g. to get a divisor of 50 the float value must be 0.0002.
if i want 50% bribe resistance (reduced effect of a gift) i change only via UE the output value for the new "% bribe resistance" to 50 after implementing the new codes in trek.exe and keeping the 0.0004 multiplier?? or do i have to change the multiplier as well (to 0.0002)??

also another question: you changed the old divisior with a new multiplier. so isn't the old divisor needed for this operation (trade route outputs)?:
loc_42A483: TradeRouteEffectMinorAttitude

sub_43B680 (GetTrdeInfoEntry) eax=RaceID, edx=TradeRouteID, [EmpsInfo+154h=adr_trdeInfo]

Code: Select all
42A4A2 imul ebx, 7 // effect of trade route * 7

-> used as amount value for sub_407A94 (GiftEffectsMinor) i.e. divisor at 407B75 (25dec) & [*1] multipliers (see Gifts to Minor Races: Amounts and Effects)
User avatar
EnPhreg
Lieutenant-Commander
Lieutenant-Commander
Posts: 130
Joined: Thu Jul 10, 2008 2:00 am

Re: Gifts to Minor Races: Amounts and Effects

Post by EnPhreg »

Spocks-cuddly-tribble wrote:
Amounts of (player)gifts/ offers to Majors


Code: Select all
sub_4106C0(empire_gift_offer_calculation)

41070F fild dword ptr [esp+10h] (for player from sub_4C7E48)
410713 fmul ds:576F4C (0.25)
410719 fld qword ptr [esp] (Income [EmpsInfo+9Ch] min 50)
41071C fmul ds:576F54 (0.05)
410722 fmul st, st(1)
410724 fmulp st(1), st


minimum gift/offer to empires (player/unmodded):

[40*0.25 = 10] * [50*0.05 = 2.5] * [40*0.25 = 10] = 250
the income value needed for this calculation is taken from the target empire.
so the available amounts of gifts/offers to an empire depens on the target empire's income.
is this changeable in any way? looked at the code in the original post but didn't find the right value/code segment.
User avatar
fozz78
Cadet 1st Year
Cadet 1st Year
Posts: 1
Joined: Wed Aug 11, 2010 2:00 am

Re: Gifts to Minor Races: Amounts and Effects

Post by fozz78 »

I'm trying to reduce the benefit of being the Federation for gifts and effects to minor races. I saw the part at the end of the original post, but am struggling to understand how to adjust the modifiers. When I look at the hex code in Hex Editor Neo, location 00174950 is 00 00 00 00 00 00 f8 3f. I'm not sure how that equates to the multiplier that was in the original post. I know I want to take the Fed effect modifier from 1.5 to 1 and the gift modifier from 0.5 to 1, but I'm struggling with the hex values. When I put them into the calculator in UE, the numbers just don't line up with the modifiers listed. What am I doing wrong?
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7848
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: Gifts to Minor Races: Amounts and Effects

Post by thunderchero »

hope this helps
1.jpg
1.jpg (55.56 KiB) Viewed 2091 times
Post Reply

Return to “Gifts to Minor Races: Amounts and Effects + major race gifts, offers & demands !”