EmperorFool
Deity
Don't change the files in Assets. It makes recovering from errors more difficult. Instead, create a copy of the file you want to change under
Put it in the same folder structure as it was in Assets. Any files in CustomAssets override those in Assets as long as you're not playing a mod. This is covered in more depth in one of the stickied basic's of modding threads.
Regarding your code, it looks like you have the incorrect indentation under the last "if". In Python, whitespace indentation is important. I see a space where you should have a tab. Below, "^" should be a tab.
When the game cannot understand your Python, oftne the result is a blank interface (just a map, no buttons). You can enable logging (see the CivIV.ini file in "My Games\BtS") to have the problems in your code written to a file, PythonErr.log, in that same folder's "logs" folder.
Code:
C:\Documentss and Settings\
MyDocuments\
My Games\
Beyond the Sword\
CustomAssets\
Put it in the same folder structure as it was in Assets. Any files in CustomAssets override those in Assets as long as you're not playing a mod. This is covered in more depth in one of the stickied basic's of modding threads.
Regarding your code, it looks like you have the incorrect indentation under the last "if". In Python, whitespace indentation is important. I see a space where you should have a tab. Below, "^" should be a tab.
Code:
if gc.getPlayer(ePlayer).getStateReligion() != gc.getInfoTypeForString(religion):
^return True
When the game cannot understand your Python, oftne the result is a blank interface (just a map, no buttons). You can enable logging (see the CivIV.ini file in "My Games\BtS") to have the problems in your code written to a file, PythonErr.log, in that same folder's "logs" folder.