Modmodding Q&A Thread

So I just found something else out. The civilopedia won't even open :lol: Everything is going wrong :lol:

When I had this problem, there was something wrong with the consts.py. IIRC, I added a unit and put that constant in the list, but I didn't change the iNumUnits, so they list and the number didn't match anymore.

What does Central Planning do to Corporations? I can't understand the code.

It disables companies to spread into a city if that city already has another company present.
 
Yeah, I don't think Python exceptions will be displayed in the game while you are in the main menu. Use the logs instead.
 
So I looked at the error log...
Spoiler :
sys.path = ['..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\email', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\encodings', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\build', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\py', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\tools', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\colourchooser', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\editor', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\floatcanvas', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\masked', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\mixins', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\ogl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\af', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\af\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\py\\tests', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\tools\\XRCed', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\tools\\XRCed\\src-images', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM']

sys.modules = {'zipimport': <module 'zipimport' (built-in)>, 'signal': <module 'signal' (built-in)>, '__builtin__': <module '__builtin__' (built-in)>, 'sys': <module 'sys' (built-in)>, '__main__': <module '__main__' (built-in)>, 'exceptions': <module 'exceptions' (built-in)>, 'CvPythonExtensions': <module 'CvPythonExtensions' (built-in)>}

sys.builtin_module_names = ('CvPythonExtensions', '__builtin__', '__main__', '_bisect', '_codecs', '_codecs_cn', '_codecs_hk', '_codecs_iso2022', '_codecs_jp', '_codecs_kr', '_codecs_tw', '_csv', '_heapq', '_hotshot', '_locale', '_multibytecodec', '_random', '_sre', '_subprocess', '_symtable', '_weakref', '_winreg', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'md5', 'mmap', 'msvcrt', 'nt', 'operator', 'parser', 'regex', 'rgbimg', 'sha', 'signal', 'strop', 'struct', 'sys', 'thread', 'time', 'xxsubtype', 'zipimport')
load_module CvEventInterface
load_module CvUtil
load_module traceback
load_module CvRFCEventManager
load_module CvEventManager
load_module CvScreensInterface
load_module CvMainInterface
load_module ScreenInput
load_module CvScreenEnums
load_module time
load_module RFCUtils
load_module PyHelpers
load_module Popup
load_module Consts
load_module StoredData
load_module cPickle
load_module WarStatus
load_module BugCore
load_module BugOptions
load_module BugConfig
load_module BugDll
load_module BugUtil
load_module ColorUtil
load_module BugInit
load_module BugPath
load_module BugConfigTracker
load_module BugTypes
load_module xmllib
..\WARLORDS\ASSETS\PYTHON\SYSTEM\xmllib.py:9: DeprecationWarning: The xmllib module is obsolete. Use xml.sax instead.
18:45:17 DEBUG: BugConfig - registering xml handler BugConfig.RootHandler
18:45:17 DEBUG: BugConfig - registering bug handler BugConfig.BugHandler
18:45:17 DEBUG: BugConfig - registering load handler BugConfig.LoadHandler
18:45:17 DEBUG: BugConfig - registering config handler BugConfig.ConfigHandler
18:45:17 DEBUG: BugConfig - registering arg handler BugConfig.ArgHandler
load_module configobj
load_module __future__
load_module codecs
load_module validate
validate import failed
18:45:17 INFO : BugCore - creating uninitialized mod MainInterface
load_module BugOptionsScreen
load_module BugErrorOptionsTab
load_module BugOptionsTab
load_module BugHelp
18:45:17 INFO : BugCore - creating uninitialized mod Core
load_module CityUtil
18:45:17 INFO : BugCore - creating uninitialized mod NJAGC
18:45:17 INFO : BugCore - creating uninitialized mod Scores
18:45:17 INFO : BugCore - creating uninitialized mod CityScreen
load_module ReligionUtil
load_module FontUtil
load_module MonkeyTools
load_module AStarTools
18:45:17 INFO : BugCore - creating uninitialized mod PLE
load_module UnitUtil
load_module PlayerUtil
load_module TradeUtil
load_module DiplomacyUtil
load_module AttitudeUtil
load_module GameUtil
load_module Scoreboard
load_module DealUtil
load_module BugUnitPlot
load_module ReminderEventManager
load_module SdToolKit
load_module BugData
load_module autolog
load_module CvModName
18:45:17 INFO : BugCore - creating uninitialized mod Autolog
18:45:17 INFO : BugCore - creating uninitialized mod Reminder
load_module CvAppInterface
load_module GGUtil
load_module GSpyUtil
load_module GPUtil
load_module ProgressBarUtil
load_module PLE
load_module RawYields
load_module CvDomesticAdvisor
load_module CvTechChooser
load_module TechPrefs
18:45:17 INFO : BugCore - creating uninitialized mod Advisors
load_module CvForeignAdvisor
load_module math
load_module CvExoticForeignAdvisor
load_module IconGrid_BUG
load_module DomPyHelpers
load_module TechTree
load_module FavoriteCivicDetector
load_module CvMilitaryAdvisor
load_module CvFinanceAdvisor
load_module CvReligionScreen
load_module CvCorporationScreen
load_module CvCivicsScreen
load_module CvVictoryScreen
load_module Victory
load_module heapq
load_module TechUtil
load_module GameSetUpCheck
load_module AutoSave
load_module MapFinder
load_module MapFinderStatusScreen
18:45:18 INFO : BugCore - creating uninitialized mod MapFinder
18:45:18 INFO : BugCore - creating uninitialized mod AutoSave
load_module Buffy
18:45:18 INFO : BugCore - creating uninitialized mod BUFFY
load_module CvEspionageAdvisor
load_module SpyUtil
load_module BugScreen
18:45:18 INFO : BugCore - creating uninitialized mod BetterEspionage
load_module CvOptionsScreen
load_module CvReplayScreen
load_module CvHallOfFameScreen
load_module CvDanQuayle
load_module CvGameUtils
load_module CvUnVictoryScreen
load_module CvDawnOfMan
load_module CvTechSplashScreen
load_module CvTopCivs
load_module random
load_module CvInfoScreen
load_module CvIntroMovieScreen
load_module CvVictoryMovieScreen
load_module CvWonderMovieScreen
load_module CvEraMovieScreen
load_module CvSpaceShipScreen
load_module SevoScreenEnums
load_module CvWorldBuilderScreen
load_module CvWorldBuilderDiplomacyScreen
load_module CvDebugTools
load_module CvDebugInfoScreen
load_module CvMapGeneratorUtil
load_module CvGFCScreen
load_module CvPopupInterface
load_module CvScreenUtilsInterface
load_module CvOverlayScreenUtils
load_module CvDotMapOverlayScreen
load_module CvStrategyOverlay
18:45:19 INFO : BugCore - creating uninitialized mod StrategyOverlay
18:45:19 INFO : BugCore - creating uninitialized mod CustDomAdv
18:45:19 INFO : BugCore - creating uninitialized mod TechWindow
load_module CityNameManager
load_module Congresses
init-ing world builder screen
load_module CvWBPopups
load_module CvCameraControls
load_module CvAdvisorUtils
load_module CvRFCEventHandler
load_module RiseAndFall
load_module CvTranslator
load_module DynamicCivs
load_module operator
load_module Stability
load_module Barbs
load_module Religions
load_module Resources
load_module UniquePowers
load_module AIWars
load_module Plague
load_module Communications
load_module Companies
load_module BugEventManager
load_module InputUtil
18:45:20 DEBUG: BugUtil - extending BugEventManager.preGameStart instead CvAppInterface
18:45:20 DEBUG: BugEventManager - adding event 'PreGameStart'
18:45:20 DEBUG: BugEventManager - adding event 'BeginActivePlayerTurn'
18:45:20 DEBUG: BugEventManager - adding event 'SwitchHotSeatPlayer'
18:45:20 DEBUG: BugEventManager - adding event 'LanguageChanged'
18:45:20 DEBUG: BugEventManager - adding event 'ResolutionChanged'
18:45:20 DEBUG: BugEventManager - adding event 'PythonReloaded'
18:45:20 DEBUG: BugEventManager - adding event 'unitUpgraded'
18:45:20 DEBUG: BugEventManager - adding event 'unitCaptured'
18:45:20 DEBUG: BugEventManager - adding event 'combatWithdrawal'
18:45:20 DEBUG: BugEventManager - adding event 'combatRetreat'
18:45:20 DEBUG: BugEventManager - adding event 'combatLogCollateral'
18:45:20 DEBUG: BugEventManager - adding event 'combatLogFlanking'
18:45:20 DEBUG: BugEventManager - adding event 'playerRevolution'
18:45:20 DEBUG: BugInit - game not fully initialized
PY:OnInit

Is this normal??
 
Yes, you want PythonErr.log, that one should be empty if everything works.
 
I couldn't find PythonErr.log just PythonErr2.log
 
Is logging enabled in your config file?
 
Ah, now it is. I'll get back to you.
 
Good news, I got it to at least start up so I could choose my civ, the problem now though (one of them) is that it didn't recognize my UNIT_SETTLER and other unit tags so I had no units and lost instantly. Also the CvEventInterface module wasn't found, which I presume is pretty important.

Spoiler :
Traceback (most recent call last):
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "<string>", line 1, in ?
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "<string>", line 52, in load_module
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "CvEventInterface", line 13, in ?
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "<string>", line 52, in load_module
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "CvRFCEventManager", line 11, in ?
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "<string>", line 52, in load_module
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "CvEventManager", line 12, in ?
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "<string>", line 52, in load_module
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "CvScreensInterface", line 3, in ?
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "<string>", line 52, in load_module
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "CvMainInterface", line 11, in ?
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "<string>", line 52, in load_module
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "RFCUtils", line 9, in ?
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "<string>", line 52, in load_module
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "StoredData", line 401, in ?
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "StoredData", line 17, in __init__
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "StoredData", line 150, in setup
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
File "StoredData", line 26, in save
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
AttributeError
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
:
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
'NoneType' object has no attribute 'setScriptData'
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface

ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
Failed to load python module CvEventInterface.
ERR: Call function onEvent failed. Can't find module CvEventInterface (It said this 300+ times, I started to count and then gave up and estimated)
ERR: Call function getModPath failed. Can't find module Full_of_Resources_3_00.py
ERR: Call function getModPath failed. Can't find module Lows_Random_Maps_3_0.py
ERR: Call function getModPath failed. Can't find module Planet_Generator_0_68.py
ERR: Call function getModPath failed. Can't find module Ring_World.py
ERR: Call function getModPath failed. Can't find module Smart_Map.py
ERR: Call function getModPath failed. Can't find module Full_of_Resources_3_00.py
ERR: Call function getModPath failed. Can't find module Lows_Random_Maps_3_0.py
ERR: Call function getModPath failed. Can't find module Planet_Generator_0_68.py
ERR: Call function getModPath failed. Can't find module Ring_World.py
ERR: Call function getModPath failed. Can't find module Smart_Map.py
ERR: Call function getModPath failed. Can't find module Full_of_Resources_3_00.py
ERR: Call function getModPath failed. Can't find module Lows_Random_Maps_3_0.py
ERR: Call function getModPath failed. Can't find module Planet_Generator_0_68.py
ERR: Call function getModPath failed. Can't find module Ring_World.py
ERR: Call function getModPath failed. Can't find module Smart_Map.py
ERR: Call function getModPath failed. Can't find module Full_of_Resources_3_00.py
ERR: Call function getModPath failed. Can't find module Lows_Random_Maps_3_0.py
ERR: Call function getModPath failed. Can't find module Planet_Generator_0_68.py
ERR: Call function getModPath failed. Can't find module Ring_World.py
ERR: Call function getModPath failed. Can't find module Smart_Map.py
ERR: Call function getModPath failed. Can't find module Full_of_Resources_3_00.py
ERR: Call function getModPath failed. Can't find module Lows_Random_Maps_3_0.py
ERR: Call function getModPath failed. Can't find module Planet_Generator_0_68.py
ERR: Call function getModPath failed. Can't find module Ring_World.py
ERR: Call function getModPath failed. Can't find module Smart_Map.py
ERR: Call function pediaShow failed. Can't find module CvScreensInterface
ERR: Call function getModPath failed. Can't find module Full_of_Resources_3_00.py
ERR: Call function getModPath failed. Can't find module Lows_Random_Maps_3_0.py
ERR: Call function getModPath failed. Can't find module Planet_Generator_0_68.py
ERR: Call function getModPath failed. Can't find module Ring_World.py
ERR: Call function getModPath failed. Can't find module Smart_Map.py
ERR: Call function getModPath failed. Can't find module Full_of_Resources_3_00.py
ERR: Call function getModPath failed. Can't find module Lows_Random_Maps_3_0.py
ERR: Call function getModPath failed. Can't find module Planet_Generator_0_68.py
ERR: Call function getModPath failed. Can't find module Ring_World.py
ERR: Call function getModPath failed. Can't find module Smart_Map.py
 
No idea, doesn't look like RFC stuff though.
 
Yeah I didn't think so, so that's good, I think. :p
 
not sure if this is the right place ask this but I'd like to steal your new culture tile-coverage effects. could you tell me what files were changed?

also preventing indys from disbanding units. I tried and failed at that a few times.
 
Moderator Action: Moved your question here, it's not really a DoC modding question but that's where I answer my implementation questions.

not sure if this is the right place ask this but I'd like to steal your new culture tile-coverage effects. could you tell me what files were changed?
It's a lot of places because I had to make sure to replace the old BtS rules everywhere and adjust the interface in a lot of places, so I hope it's okay if I don't make a complete list. The bulk of it is in CvCity.cpp, right at the end of the file beginning with CvCity::calculateCultureCost, I think from the methods and fields referenced in that and the following methods you can trace the rest of the implementation. Most notably, there are also a couple of new methods in CvPlot.cpp. That should get you everything in the DLL source.

In the XML, I have edited the terrain and feature info files for a new iCultureCost tag that control how much culture it takes to cover a tile, and some entries in the define val XML for how bonus resources and distance influence that cost.

The MainInterface.py in Python\Screens contains some references to the new system for the parts of the interface that predict border expansion. Searching for getNextCoveredPlot and getEffectiveNextCoveredPlot should find those.

also preventing indys from disbanding units. I tried and failed at that a few times.
Not sure if it actually works to be honest, it was just one of those quick changes I threw out to see if it does. I used CvPlayerAI::AI_disband(), don't know if you tried there too already.
 
SVN 796 introduced the new culture mechanic. If you use the search version in the SVN log option and search for "culture", you will get almost all revisions regarding the culture changes.
 
I don't know if that's wise. I kept adjusting the mechanics and culture costs, fixing oversights and adjusting the interface over multiple subsequent revisions.
 
how do you set the ratio of real population to in game city population? I've looked but I can't find anything.
 
Do you mean CvCity::getRealPopulation()? It's an exponential function.
 
Why does the game crash whenever I try and make any small addition or modification to the city part of the Barb.xml files?
 
Back
Top Bottom