LoneGazebo / Community-Patch-DLL

Community Patch for Civilization V - Brave New World
Other
281 stars 155 forks source link

Third Alternative resource bonus. Just a question. #10989

Closed Punklife closed 3 weeks ago

Punklife commented 3 weeks ago

1. Mod Version (X.Y.Z). Current Version: 4.8.1

2. DirectX Version

3. List of Other Mods

4. Describe the Issue

Is there a way to reduce Autocracy Third Alternative policy resource bonus by 50% inserting something in this script? "-- Third Alternative DELETE FROM Policy_CapitalYieldChanges WHERE PolicyType = 'POLICY_THIRD_ALTERNATIVE'; UPDATE Policies SET UnitGoldMaintenanceMod = -25 WHERE Type = 'POLICY_THIRD_ALTERNATIVE';" Thanks! ______________________________________________________________________________________ _5. Save Game From 1 Turn Before (ALWAYS ATTACH THIS IF POSSIBLE)_

6. Logs (ALWAYS ATTACH THESE IF POSSIBLE)

7. CvMiniDump.dmp File (ATTACH IF REPORTING A GAME CRASH)

8. Steps to reproduce the Issue (Optional)

9. Screenshots of the Issue (Optional)

azum4roll commented 3 weeks ago

Update the StrategicResourceMod column to 150 instead of 200.

Punklife commented 3 weeks ago

Update the StrategicResourceMod column to 150 instead of 200.

In CoreTableEntries.sql?

Hokath commented 3 weeks ago

Just giving it a quick read but should it actually be set the 100 to 50? (in CoreTableEntries.sql, yes. Bit weird but at some point the table must have changed in the DLL so here it is)

Punklife commented 3 weeks ago

Just giving it a quick read but should it actually be set the 100 to 50? (in CoreTableEntries.sql, yes. Bit weird but at some point the table must have changed in the DLL so here it is)

It does not work. I had already tried changing it in CoreTableEntries.sql and Autocracy.sql, but it just didn't work. Maybe I did something wrong.

axatin commented 3 weeks ago

Just giving it a quick read but should it actually be set the 100 to 50? (in CoreTableEntries.sql, yes. Bit weird but at some point the table must have changed in the DLL so here it is)

Yes, it must be changed from 100 to 50. We redefined it in the DLL to make it consistent with the other modifiers, and to make it possible to have multiple bonuses that stack.

@Punklife Did you start a new game when you tested it? The change doesn‘t apply to existing save games

Punklife commented 3 weeks ago

Just giving it a quick read but should it actually be set the 100 to 50? (in CoreTableEntries.sql, yes. Bit weird but at some point the table must have changed in the DLL so here it is)

Yes, it must be changed from 100 to 50. We redefined it in the DLL to make it consistent with the other modifiers, and to make it possible to have multiple bonuses that stack.

@Punklife Did you start a new game when you tested it? The change doesn‘t apply to existing save games

No. Since the other changes I made work even in saved games, I didn't start a new game. I will try this. Thanks!

Punklife commented 3 weeks ago

@axatin Excuse my ignorance, but how do I know that the change has taken effect in a new game?

Hokath commented 3 weeks ago

If you have IGE enabled you could give yourself the tenet temporarily

Punklife commented 3 weeks ago

If you have IGE enabled you could give yourself the tenet temporarily

Thank you for the tip! It worked. "UPDATE Policies SET StrategicResourceMod = 50 WHERE StrategicResourceMod == 200;"

Punklife commented 3 weeks ago

@axatin @Hokath Obs: It works on saved games but it does not change de policy text, just the top panel tooltip text.

Hokath commented 3 weeks ago

Correct. To change the text you would have to go to MODS(2) Vox Populi\Database Changes\Text\en_US\Policies\PolicyTextChanges.sql and find it there

Punklife commented 3 weeks ago

Correct. To change the text you would have to go to MODS(2) Vox Populi\Database Changes\Text\en_US\Policies\PolicyTextChanges.sql and find it there

Thank you again! It worked.

"UPDATE Language_en_US SET Text = '[COLOR_POSITIVE_TEXT]Third Alternative[ENDCOLOR]: Quantity of Strategic Resources produced is increased by 50%. Reduces Unit [ICON_GOLD] Gold Maintenance costs by 25%.' WHERE Tag = 'TXT_KEY_POLICY_THIRD_ALTERNATIVE_HELP';"