Quick Modding Questions Thread

Then it's a Python error, like Karadoc mentions.

To enable exceptions, go to Documents\My Games\BtS, open the Civilization4.ini, and change
PHP:
; Set to 1 for no python exception popups
HidePythonExceptions = 1

to 0.
Then start your game again and post the error message.


Oh, and you're not by any chance using BUG in the default game, are you?
 
ok i will try that when I get home.

yes I have JUST installed BUG for the default game (but it only works partially in my mod - it doesn't want to display pedia info for unit upgrades, leader traits etc), but I had this problem before.

I start to believe the source could be following: I started working on my mod BEFORE I upgraded to 3.19, so some of the files I have modded are pre-3.19 files that's what could be causing the problem... I am specifically suspicious of leaderhead xml file which i will try to replace tonight and see how it goes.
 
3.17 and 3.19 were more or less compatible, besides the .dll, so it's normal that no bugs appear.

@BUG: It's probably caused by its presence. You should disable BUG in your mods .ini file to see if this is really the cause or if another problem is hiding elsewhere.

How to deactivate: In your mods .ini file (so NOT the normal BtS .ini), change
PHP:
; Custom XML and Python from user folder are not loaded
NoCustomAssets = 0
to 1.
 
By the way, I think what The_J is saying is true. (And using anything other than the latest version of the base game is bound to cause problems.) But when I said to check the log file, I didn't mean the python exception popups. I meant the PythonErr.log file that gets written in the log files folder when there is python error. (It probably only gets written if logging is enabled inside the civ4 ini. There is a shortcut to the log files folder in the main civ4 directory. The actual folder depends on your OS and your username for the OS. eg. C:\users\ChaosSlayer\Documents\My Games\Beyond the Sword\Logs)

The exception popups are a fine alternative; and perhaps even easier to use; but it wasn't what I meant by the log file.
 
ok this is what I got now: (with BUG turned on)

Spoiler :

Civ4ScreenShot0002.JPG



and this

Spoiler :

Civ4ScreenShot0003.JPG

 
you mean like by itself without my mod?
i can test for that.

UPDATE: ok i just tested the add-on by itself - there are definitely issues in the add-on itself, as when i just run the game ONLY with add-on and base game I got a ton of those hidden errors. :(

i guess there is an issue somewhere in the add-on C code...

what I don't get why this related to Leaders - it works when i play some leaders bot not others.
 
yeah I will try to get his attention.

However I just retested this again now with BUG turned off- now everything works fine :confused:

so I got following:

-base BTS 3.19 - works
-base BTS 3.19 + BUG - works

-Base BTS 3.19 + Commerce Add-On - works!

-Base BTS 3.19 + BUG + Commerce Add-On - interface disappears for SOME leaders

-My mod (with Commerce Add-On) with or without BUG - interface disappears for SOME leaders (BUT - my mod doesn't have any C or Python by itself, only xml changes)


So if add-on is faulty, how come it works with base game?
 
You can't test anything which messes with screens together with BUG, because failure has to be expected, since BUG also messes with the screens.

And you should disable BUG in general for your mod, if you don't need it, else you should properly merge it in.
Check again if it's diabled. It can't be that you a) don't get any erros and b) the thing doesn't work. That's not really possible.
 
well i am just trying logically determine at least approximate source of problem.
BUG aside:
-add on works with base game
-add on doesn't work with my mod

-the problem somehow relates to choice of a leader - never works if i choose Caesar or Hannibal but always works for Bismark and Lincoln.

maybe somewhere in my mod I have some xml issue that is causing that when combined with add-on?
Is it possible for me to run some sort of program that will verify that I don't have xml typos or something like that?
 
You should probably try to figure out the specific differences between these leaders.

Typos in the XML file should mostley lead either to error messages during loading or to crashes. Rarely neither is the case, but these XML files should not be the ones which are affected here.
 
Back
Top Bottom