I'm getting a python exception upon loading or starting a new game, using a clean installation of version 2.0.3w (for Warlords 2.08) to My Documents\My Games\Warlords (after deleting CustomAssets). I haven't modified anything in Program Files\Firaxis Games\Sid Meier's Civilization 4. See first screenshot below. Oddly enough, I always have to click OK exactly 13 times to clear all instances of the error dialog and get back to the game.
Also, I'm getting another python exception whenever a new tech trade opportunity occurs. (So I assume the culprit is probably related to civ4lerts). See second screenshot below. But, I'm not sure whether this is a problem with the modpack itself or just a faulty usage of it on my part. The only games I have handy for loading and testing stuff were created with a mod called "jrayUGH" loaded. So I had to port your modpack over to a (initially empty) mod folder called "jrayUGH" to be able to load the games.
Is it reasonable to expect problems such as this second one if you load a .CivWarlordsSave file created under different conditions like this?
Some additional possibly relevant info for the second problem:
- My jrayUGH mod has the CvGameCore.dll from Blake's Better AI. I tried it both with and without it, but both situations generated the same python exception.
- Specifically what I did was move the CustomAssets stuff from your modpack over to an empty MODS\jrayUGH\Assets. I kept the two config files at My Documents\My Games\Warlords and noticed that they were indeed used from there. After getting errors, I tried adding Blake's CvGameCore.dll to MODS\jrayUGH\Assets. But that didn't change anything.
EDIT: The second problem happens whether or not I have Civ4lerts enabled via the Alt-J options dialog.
EDIT #2: FYI, I see that I have DisableFileCaching=0 and DisableCaching=0 in my CivilzationIV.ini file. Might this be related? I didn't think of trying holding the <Shift> key during initialization, but I'll try that next when I get a chance.
Thanks in advance for anyone interested in helping with troubleshooting. I'd like to merge a bunch of stuff with ruff_hi's mod, and I guess first I need to work out the kinks with loading the mod correctly!
Unfortunately, Ruff deliberately never made this work if installed anywhere except CustomAssets. You would have to fix the code that figures out the path to the mod in RuffModControl.py and a few other places in order to get it to work anywhere else.
I remember dealing with quite a few path bugs when I extended his previous versions...
I guess that makes sense considering the motivation is mainly for SG gameplay, presumably with locked assets.
Is this right? I have never tried putting my mod in the progfiles mod directory so I wouldn't know one way or the other, but I would assume that if you put the config file (and the dom adv.txt file) in the 'my docs' that it would work.Unfortunately, Ruff deliberately never made this work if installed anywhere except CustomAssets. You would have to fix the code that figures out the path to the mod in RuffModControl.py and a few other places in order to get it to work anywhere else. The path is not just used for the config file, but for the autolog file and some other things too.
I remember dealing with quite a few path bugs when I extended his previous versions. It is really annoying when the mods you want to merge with Ruff's also insist on being in the Mods directory.![]()
Is this right? I have never tried putting my mod in the progfiles mod directory so I wouldn't know one way or the other, but I would assume that if you put the config file (and the dom adv.txt file) in the 'my docs' that it would work.
Ah - I see. That is correct.But your modpack only sees them if they're in CustomAssets, even when the rest of the modpack lives in MODS\jrayUGH\Assets and "jrayUGH" is loaded.
I have a slightly different method. I have lots of 'customassets-name of mod' folders and a small utility that lets me quickly rename the selected mod to 'customassets'.I always put my stuff in MODS subdirectories, since it's easier than using CustomAssets when you're doing a lot of switching back and forth among multiple test versions of things.
Please dont encourage players to put files in their custom assets directory. Since custom assets are loaded after mod files you will break any mod that has its own CvMainInterface.py file.
if not sline or sline.startswith('#') or sline.startswith(';'):
installDir = __getInstallDir()
installModsDir = os.path.join(installDir, "Mods")
installActiveModDir = os.path.join(installModsDir, "RuffMod_2w")
FileName = installActiveModDir + "\\RuffMod_2w.ini"
fp = open(RuffModControl.installActiveModDir+ "\\ModSpcDomAdvColumns.txt", 'r')
Ruff, I love this mod! Thank you so much.
I am planning on using it as a platform for future work, including the just released LookAndFeel mod. In order to do that, I had to convert it from a CustomAssets mod residing in MyDocuments to a traditional mod in Warlords\Mods. I thought others might like to know how to do this...That's it. Enjoy!
- In the Mods folder, create a folder named 'RuffMod_2w'
- Unzip Ruff's modpack in that folder.
- Change the name of CustomAssets to Assets
- Edit configobj.py, line 1299: Add an OR term to the IF statement so it is
- Edit RuffModControl.py, around line 49: Delete the line that assigns a value to the variable 'FileName' and replace it with
- Edit CvModSpecialDomesticAdvisor.py, line 308, change the assignment starting 'fp =' to read:
Eusebius
Eusebius, my hero! (and vicariously, Ruff my hero too!). I was just getting to trying to do this myself, and lo and behold you've done the legwork.