Cultural Capital Mod

Released v12!

--------------
v12:
# Gameplay Changes:
- The first civilization to build 2 wonders forms the Cultural Committee in its capital and starts the electorial race for the Cultural Capitals for all players.
A bonus for having the Cultural Committee in your empire is that it enables you to see the progress of the election of other players.

# Theme Changes:
- Theme of Empowerment: Does not go obsolete anymore. Receive a Statue of Empowerment (=> can pick policy only once).


A short list, but with a gameplay change. :)
Also fixed some bugs with the localization.

Great - really looking forward to it!

Will see if I can start a new game with it tonight.

\Skodkim
 
D...

Using v 12 I also have no tech tree. Cleared cache and all before starting the new game.

Will look more into it tomorrow.

\Skodkim
 
Huh, i have nothing like that at all.. :think: weird!

Do you have any other mods running?

btw: thanks again, yche! Keep 'em coming :)
 
Well, it seems to be related to the combination of CC and CivUP. Lua.log provides a lot of errors that seem to be related to CivUP.

Spoiler :
[841.796] Initializing Lua 5.1.4
[1175.795] InstalledPanel: Refreshing Mods
[1175.795] InstalledPanel: GetModBrowserListings()
[1175.795] InstalledPanel: Refreshing Mods
[1175.795] InstalledPanel: GetModBrowserListings()
[1175.810] InstalledPanel: Refreshing Mods
[1175.810] InstalledPanel: GetModBrowserListings()
[1176.122] InstalledPanel: Refreshing Mods
[1176.122] InstalledPanel: GetModBrowserListings()
[1202.705] InstalledPanel: Refreshing Mods
[1202.705] InstalledPanel: GetModBrowserListings()
[1203.485] InstalledPanel: Refreshing Mods
[1203.485] InstalledPanel: GetModBrowserListings()
[1234.498] InstalledPanel: Refreshing Mods
[1234.498] InstalledPanel: GetModBrowserListings()
[1234.513] InstalledPanel: Refreshing Mods
[1234.513] InstalledPanel: GetModBrowserListings()
[1249.739] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1264.871] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1265.043] CivilopediaScreen: SetSelectedCategory(12)
[1265.043] CivilopediaScreen: CivilopediaCategory[CategoryTerrain].DisplayList
[1265.168] CivilopediaScreen: SetSelectedCategory(1)
[1265.168] CivilopediaScreen: CivilopediaCategory[CategoryHomePage].DisplayList
[1292.000] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1294.043] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1295.089] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1295.104] InfoCorner: This is InfoCorner from the 'UI - Map Pins' mod
[1296.149] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1296.461] Tutorial: Loaded Additional Tutorial checks - Assets\DLC\Expansion\Tutorial\lua\TutorialInclude_Expansion1.lua
[1297.647] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1298.723] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1298.848] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:417: attempt to call global 'GetHelpTextForBuilding' (a nil value)
[1298.848] Runtime Error: Error loading C:\Users\hollenbo\Documents\My Games\Sid Meier's Civilization 5\MODS\Civ V Unofficial Patch (GK) (v 34)\Interface\Overrides\Techs\TechTree.lua.
[1300.205] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1301.251] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1302.265] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1303.310] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1304.433] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1305.463] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1306.477] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1307.834] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1307.865] ChoosePantheonPopup: 60
[1307.865] ChoosePantheonPopup: 963
[1307.865] ChoosePantheonPopup: 1023
[1309.035] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1310.080] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1311.110] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1312.171] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1313.247] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1314.292] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1315.618] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1316.710] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1318.286] File Error: lua/CCWorldViewUI.lua
[1318.286] Runtime Error: Error loading lua/CCWorldViewUI.lua.
[1318.317] File Error: lua/CCPopup.lua
[1318.317] Runtime Error: Error loading lua/CCPopup.lua.
[1318.317] File Error: lua/CCNotifications.lua
[1318.317] Runtime Error: Error loading lua/CCNotifications.lua.
[1318.317] File Error: lua/CCOverview.lua
[1318.317] Runtime Error: Error loading lua/CCOverview.lua.
[1319.425] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1320.517] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:251: attempt to index field '?' (a nil value)
[1321.203] Demographics: Dequeuing demographics
[1321.203] Demographics: Dequeuing demographics
[1350.251] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:654: attempt to index local 'thisTechButton' (a nil value)
[1352.871] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:246: attempt to call global 'GetProductionTooltip' (a nil value)
[1352.965] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:246: attempt to call global 'GetProductionTooltip' (a nil value)
[1352.965] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:654: attempt to index local 'thisTechButton' (a nil value)
[1355.726] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:417: attempt to call global 'GetHelpTextForBuilding' (a nil value)
[1355.851] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:246: attempt to call global 'GetProductionTooltip' (a nil value)
[1360.188] CivilopediaScreen: SetSelectedCategory(2)
[1360.188] CivilopediaScreen: CivilopediaCategory[CategoryGameConcepts].DisplayList
[1360.313] CivilopediaScreen: SetSelectedCategory(12)
[1360.313] CivilopediaScreen: CivilopediaCategory[CategoryTerrain].DisplayList
[1360.359] CivilopediaScreen: SetSelectedCategory(1)
[1360.359] CivilopediaScreen: CivilopediaCategory[CategoryHomePage].DisplayList
[1361.467] CivilopediaScreen: SetSelectedCategory(14)
[1361.467] CivilopediaScreen: start CivilopediaCategory[CategoryImprovements].DisplayList
[1362.559] CivilopediaScreen: CivilopediaCategory[CategoryImprovements].SelectArticle
[1364.400] CivilopediaScreen: SetSelectedCategory(6)
[1364.400] CivilopediaScreen: CivilopediaCategory[CategoryBuildings].DisplayList
[1365.476] CivilopediaScreen: CivilopediaCategory[CategoryBuildings].SelectArticle
[1365.601] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:3235: attempt to call global 'GetHelpTextForBuilding' (a nil value)
[1366.818] CivilopediaScreen: CivilopediaCategory[CategoryTech].SelectArticle
[1366.818] CivilopediaScreen: SetSelectedCategory(3)
[1366.818] CivilopediaScreen: CivilopediaCategory[CategoryTech].DisplayList
[1366.958] CivilopediaScreen: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:2355: Cannot find key - AllowEmbassiesTradingAllowed
[1368.861] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:417: attempt to call global 'GetHelpTextForBuilding' (a nil value)
[1407.113] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:417: attempt to call global 'GetHelpTextForBuilding' (a nil value)
[1407.191] Runtime Error: [string "C:\Users\hollenbo\Documents\My Games\Sid Me..."]:246: attempt to call global 'GetProductionTooltip' (a nil value)


Currently trying to investigate more before the rest of my family wakes up :)

\Skodkim
 
Just tried loading CC alone and I still get the following errors from pre-version 12 in lua.log (part of file included):

Spoiler :
[2102.456] ChoosePantheonPopup: 963
[2102.456] ChoosePantheonPopup: 1023
[2102.659] File Error: lua/CCWorldViewUI.lua
[2102.659] Runtime Error: Error loading lua/CCWorldViewUI.lua.
[2102.659] File Error: lua/CCPopup.lua
[2102.659] Runtime Error: Error loading lua/CCPopup.lua.
[2102.675] File Error: lua/CCNotifications.lua
[2102.675] Runtime Error: Error loading lua/CCNotifications.lua.
[2102.675] File Error: lua/CCOverview.lua
[2102.675] Runtime Error: Error loading lua/CCOverview.lua.
[2102.955] Demographics: Dequeuing demographics
[2102.955] Demographics: Dequeuing demographics
[2112.144] TechTree: REFRESHING TECH DISPLAY


Thought these had been fixed.

Edit: But no tech tree problems

\Skodkik
 
Just tried deleting \Interface\Overrides\Techs\TechPanel.lua from CivUP (have no idea if this is "allowed" but had a feeling this file was involved) and the problems still persists if both mods are loaded. If just one of them are loaded the tech tree works fine.

Cleared cache etc. in between tests.

\Skodkim
 
Just tried loading CC alone and I still get the following errors from pre-version 12 in lua.log (part of file included):

Spoiler :
[2102.456] ChoosePantheonPopup: 963
[2102.456] ChoosePantheonPopup: 1023
[2102.659] File Error: lua/CCWorldViewUI.lua
[2102.659] Runtime Error: Error loading lua/CCWorldViewUI.lua.
[2102.659] File Error: lua/CCPopup.lua
[2102.659] Runtime Error: Error loading lua/CCPopup.lua.
[2102.675] File Error: lua/CCNotifications.lua
[2102.675] Runtime Error: Error loading lua/CCNotifications.lua.
[2102.675] File Error: lua/CCOverview.lua
[2102.675] Runtime Error: Error loading lua/CCOverview.lua.
[2102.955] Demographics: Dequeuing demographics
[2102.955] Demographics: Dequeuing demographics
[2112.144] TechTree: REFRESHING TECH DISPLAY


Thought these had been fixed.

Edit: But no tech tree problems

\Skodkik

You can ignore these errors, these files get loaded normally (Noone has found yet a workaround so that these error messages won't occur when using contextpointers).

I'll look into it in the evening - could be that civup is trying to load files/database tables into the game with the same names that the mod uses.
 
Well I've tried a lot of things without any success so far:
  • Making CivUp depend on Cultutals Capitals to force CivUp to be laded last
  • Delete entire \Interface\Overrides\Techs\ folder
  • Delete \Interface\Overrides\Techs\TechTree.lua

Only when I play with one of the mods alone does it work.

(Posted this at Communitas bug reports too)

\Skodkim
 
I think I've got it!!!!

In Cultural Capitals v12 theres a bug in CCBuildings.xml where TERRAIN_ICE should be changed to TERRAIN_SNOW. This is (based on a test) what causes the Tech tree to disappear when using Cultural Capitals together with CivUP. I changed the line and everything worked fine.

As you'll se from Database.log there is however also other CC related bugs but at least these don't cause disappearing tech trees:
Spoiler :
[1245.933] Validating Foreign Key Constraints...
[1245.948] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[1245.948] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[1245.948] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[1246.182] Invalid Reference on Building_TerrainYieldChanges.TerrainType - "TERRAIN_ICE" does not exist in Terrains
[1247.196] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_HITTITE_WARCHARIOT" does not exist in Units
[1247.196] Invalid Reference on UnitGameplay2DScripts.UnitType - "UNIT_SUMERIAN_PHALANX" does not exist in Units
[1247.321] Invalid Reference on CCAIViabilityContexts.Type - "NOT_VIABLE" does not exist in CCTypes
[1247.321] Invalid Reference on CCAIViabilityContexts.Type - "CONTROVERSY_CHECK" does not exist in CCTypes
[1247.321] Invalid Reference on CCAIViabilityContexts.Type - "EXCHANGE_CHECK" does not exist in CCTypes
[1247.321] Invalid Reference on CCAIViabilityContexts.Type - "ECOLOGY_CHECK" does not exist in CCTypes
[1247.321] Invalid Reference on CCAIViabilityContexts.Type - "ARCHITECTURE_CHECK" does not exist in CCTypes
[1247.321] Invalid Reference on CCAIViabilityContexts.Type - "GEOLOGY_CHECK" does not exist in CCTypes
[1247.321] Failed Validation.
[1247.820]


\Skodkim
 
Ah thanks skodkim for finding that! :goodjob:

Although it's weird that i don't get any error messages regarding this in the database.log... seems like someone forgot to set a flag somewhere in a civ ini file. :mischief:

I'll release a hotfix this evening (with the new translations).

BR,
Moaf

edit:
Hm... database logging should occur, although i still don't get any database errors regarding this when i use my mod... weird :think:
 
ok, released now the new version!

v13 Changelog:

# Misc:
- Fixed database errors.
- Updated German and Chinese localizations.

Thanks for all your help, especially skodkim, really appreciated! :goodjob:
 
Great Moaf

First little test shown no errors. I'll actually try to start a game right now.

\Skodkim
 
Hi Moaf

Just had the strangest thing happen to me.

In my current game I've progressed to about turn 150 and had just completed my second wonders therey gaining the Cultural Capital. All was fine and I chose my theme and progressed to the next turn. I was very surprised to see that another player won the CC when I did that. I'v estill got the theme bonus (non temporary building) in my city but I dont appear on the past winners tab anymore.

I'm also using other mods, e.g. CivUP and GEM.

Edit: And according to InfoAddict the new winner had only build one wonder.
\Skodkim
 
Hi Moaf Just tried this again with a new game. Used the Fire tuner to give myself a couple of engineers and hurry wonders. This time there was no new winner the next turn but A) I still didn't appear in the list of previous winners and B) It looked as though an election had been started when I was the first to complete two wonders. I got to choose a theme, but CC started a count down to find a new winner. I think the "winner on next turn" from the previous game was propably just an effect of a civ gathering so much culture that they won in one turn.

Speaking of which: Is there any way to change CC points from Culture during elections ? In thals mods culture yields from buildings, etc have been doubled and this (i think) must have an effect on the elections. If you could tell me where in the files whis is I could propably do it myself...

\Skodkim
 
Hmmm.. sounds like a bug from the CC mod.

If you want the change the threshold i'd say it would be the easiest to increase just the ThresholdModifier for every game speed in the CCSpeedScales table in CCMisc.xml.
Otherwise in CC.lua at line 322 you can change the base bonus
Code:
baseBonus = player:GetTotalJONSCulturePerTurn();
maybe to something like
Code:
baseBonus = player:GetTotalJONSCulturePerTurn() / 2.0;

BR,
Moaf
 
Any news on the bug - Can you reproduce it and if so do you have an ETA on a fix?

\Skodkim
 
Just wanted to say that I just tested this with only CC (no other mods) and the bug is still there.

\Skodkim
 
Top Bottom