One other thing - I noticed I haven't had any quest events for several games. Has this unofficial patch accidentally affected quests at all?
Well, you'll note that the original was:
That's functionally equivalent to:Code:fGroupImpExpRatio = 1 / (1.0 * iTempExports)
I assume they added the "1.0" part because otherwise the result would return an integer instead of a floating point. So you might need to change the line to:Code:fGroupImpExpRatio = 1 / iTempExports
for it to work correctly.Code:fGroupImpExpRatio = iTempExports / 1.0
Bh
# Post-3.13 Patch fix - Reverse ratio to Exports/Imports
if (iTempExports > 0):
if (iTempImports == 0):
fGroupImpExpRatio = 1.0 * iTempExports
afGroupImpExpRatio.append(fGroupImpExpRatio)
else:
fGroupImpExpRatio = iTempExports / (1.0 * iTempImports)
afGroupImpExpRatio.append(fGroupImpExpRatio)
else:
# Make ratio 1 when both imports and exports are 0
if (iTempImports == 0):
fGroupImpExpRatio = 1.0
afGroupImpExpRatio.append(fGroupImpExpRatio)
else:
fGroupImpExpRatio = 1 / (1.0 * iTempImports)
afGroupImpExpRatio.append(fGroupImpExpRatio)
Well, you'll note that the original was:
That's functionally equivalent to:Code:fGroupImpExpRatio = 1 / (1.0 * iTempExports)
I assume they added the "1.0" part because otherwise the result would return an integer instead of a floating point. So you might need to change the line to:Code:fGroupImpExpRatio = 1 / iTempExports
for it to work correctly.Code:fGroupImpExpRatio = iTempExports / 1.0
Bh
1 / x is not the same as x / 1.0 (unless x = 1), so your last formula is not returning the same results as the first two (1.0 / x would).
Please point me to where it says "I am mistaken".
Too much Pre-New Years cheer.![]()