embryodead
Caliph
How do u enable python exceptions?
Find and open your Civilization4.INI by
opening My Documents/My Games/Beyond the Sword/CivilizationIV.ini,
or opening _Civ4Config in your main Beyond the Sword folder (the same that contains Mods)
Inside the file, using Notepad:
- Find "LoggingEnabled" and change it from 0 to 1
- Find "ShowPythonDebugMsgs" and it from 0 to 1
if you can't find one of these, then add it at the end of file i.e. type:
ShowPythonDebugMsgs = 1
It's also useful to enable cheat/debug mode in the same file, as it provides you console and more useful in-game information:
Spoiler :
CheatCode = chipotle
Remember that enabling logs/exceptions slows the game down, but provides you with logs and in-game information about Python errors.
The result is that I now tend to drop those parentheses as well as semicolons while doing work in other stuff and it drives me nuts. Python is really an oddball that defies many established programming conventions.
). If I compile successfully how can I check if it's working?