modName in CvModName.py determines the name of the settings folder now and nothing else. modFolder is figured out from BTS itself and shouldn't be messed with. It's the name of the folder in the Mods folder if a mod is running or None if not.
Any INI files that are found will be used, so if you really want to store the BUG INI files in one folder and the other mods' INI files in another folder, you could create empty files where you want them to go (as long as they're on the search paths).
Here is the code that sets up the search paths:
Code:
if (userDir):
if (modName):
addIniFileSearchPath(os.path.join(userDir, modName))
addIniFileSearchPath(os.path.join(rootDir, modName))
if (modDir):
addIniFileSearchPath(os.path.join(modDir, modName))
if (modDir):
addIniFileSearchPath(os.path.join(modDir))
addIniFileSearchPath(os.path.join(rootDir))
if (appDir):
if (modName):
addIniFileSearchPath(os.path.join(appDir, modName))
addIniFileSearchPath(os.path.join(appDir))
- userDir: "My Games" folder
- rootDir: location of Civ4BeyondSword.exe
- appDir: "My Games\BTS" folder
- modName: from CvModName.py
- modDir: mod's folder (modFolder above is just the base name of the folder)