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 ).
Gifts to Minor Races: Amounts and Effects
Moderator: thunderchero
-
- Captain
- Posts: 501
- Joined: Sun Aug 16, 2015 8:28 am
- Location: Finland
Re: Gifts to Minor Races: Amounts and Effects
Impress the Empress.
-
- Lieutenant-Commander
- Posts: 130
- Joined: Thu Jul 10, 2008 2:00 am
Re: Gifts to Minor Races: Amounts and Effects
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)??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.
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)
-
- Lieutenant-Commander
- Posts: 130
- Joined: Thu Jul 10, 2008 2:00 am
Re: Gifts to Minor Races: Amounts and Effects
the income value needed for this calculation is taken from the target empire.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
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.
-
- Cadet 1st Year
- Posts: 1
- Joined: Wed Aug 11, 2010 2:00 am
Re: Gifts to Minor Races: Amounts and Effects
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?
-
- Site Administrator aka Fleet Admiral
- Posts: 7970
- 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
hope this helps
You do not have the required permissions to view the files attached to this post.