Bug Reporting

Loading the game with the GG included in the GP bar still causes no interface.

Can you post your new GPUtil.py and PythonErr.log?

In the "resources" tab of the foreign advisor, in the top row, all my surplus resources are shown. . . . I'm not sure if this is a BUG feature, is it?

This is part of stock BTS. BUG hasn't changed it. I can take a look at the code and see what it's doing. It makes sense that it should include imported resources.

Is there a chance to fix this?

I assume you mean the letter index buttons overlapping the Exit button. One way: rename those top items so they start with letters instead of + and -. This will remove two index buttons. That area is rather cramped unfortunately. You could also shift the TOC and INDEX buttons along with all the letter index buttons to the left a bit. They are in SevopediaMain.
 
or you could change the 'ABCDE...' font to slightly smaller.
 
Here ya go.

View attachment GPUtil & PythonErr.rar

My changed GPUtil.py & the PythonErr.log from trying to load a game after a Wonder was built (Stonehenge in this case). I haven't made any changes to CvScreensInterface.py, but I did change the positions of the Advisor & Pedia buttons in CvMainInterface.py.

Thanks EF.
 
@draco963 - You're missing a comma between the Prophet and GG keys:

Code:
g_gpBarList = (
	"UNIT_GREAT_SPY",
	"UNIT_ENGINEER",
	"UNIT_MERCHANT",
	"UNIT_SCIENTIST",
	"UNIT_ARTIST",
	"UNIT_PROPHET"[B],[/B]                  [B]<-- comma[/B]
	"UNIT_GREAT_GENERAL"
)
 
@Emperorfool
Wow, you are quick.. quicker than me, finding my own glitch: as i had both the mod and the gamefiles on the same partition, so i had accidentally moved the config-files instead of copying them, and deleted them to 'clean' the game again. Argh. It couldn't work this way.

Having reinstalled BUG 3.5 freshly, then replacing CvModName.py with your new one DOES work now. :goodjob:

Sorry for the confusion. :blush:

I am sorry to come back to this, just can not get it to work
fresh install of BTS, 3.17 patch, followed by bug 3.5 and the new CvModName.py file. Start BTS, no interface. Cannot bring up the options screen from within the game, NOR from the start menu (advanced--> options, nothing happens)


Re-installed BTS couple of times this morning, deleting both the insstalll directory C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword and the my games directory.

installed bug using the exe as main mod or in the mods didn't make any differece. Kinda clueless on what to do, which is a pity as I just diiscovered this great mod (had a prvious version working strangely enough)
 
@voe - Try this version of BugPath.py. It goes into "Mods/BUG Mod 3.5/Assets/Python/BUG".

WB still doesn't work though.

Given the latest PythonErr.log file you sent, my guess is that it's related to the LEAGUE_OF_NATIONS building XML key/enum that isn't found. I can tell you that BUG doesn't alter WB in any way.
 
See that's what's confusing me... My mod doesn't alter the WB either (at least, not intentionally). And there is no BUILDING_LEAGUE_OF_NATIONS. Anywhere. Not in any of my files, not in of of BUG's files, not in BtS, not in Warlords, and not in Vanilla. Neither the SDK. I can't understand how the game could be trying to enumerate a string that isn't defined anywhere... :wallbash:
 
ugh... Is there something more foolish than a twerp? Whatever it is, I'm it. :crazyeye:

Got the crashing sorted EF. Was being caused by CIV4PlotLSystem.xml. At some point in the past, I had apparently tried to work in the mod that gives each civ culture a different type of city art (European, Far East, Native American, etc), and finished the CIV4PlotLSystem.xml, but has neglected to add the art files. Yeesh... I want to thank-you EF, for teaching me to atually read the log files.

Now that I am doing that, I have discovered a few remaining erros, also with art. Can you suggest someone who know how to work with the NIFs?
 
I want to thank-you EF, for teaching me to atually read the log files.

:clap: This will save you many, many hours.

Can you suggest someone who know how to work with the NIFs?

NikNaks has done several leaderhead animations, so I suppose he knows a thing or two about images. I'd suggest posting specific questions in the art-related modding forum (I'm assuming there is one).
 
@voe - Try this version of BugPath.py. It goes into "Mods/BUG Mod 3.5/Assets/Python/BUG".

thanks, tried it but to no avail. Guess from the path you specified I needed to install in mods folder, not the standard install. So, did that. Folder you specified does not exist, i put it in My Games\Beyond the Sword\MODS\BUG Mod 3.5\Assets\Python\BUG

and a copy in My Games\Beyond the Sword\MODS\BUG Mod 3.5\Assets
The same issue, no interface, but this time an alert:

bug init - cannot find xml file for mod init

any help appreciated
 
@voe - Can you post the contents of Logs/PythonErr.log and Logs/PythonDbg.log? Also, what OS (XP or Vista) are you using, and is it English or another language?

You can install BUG to CustomAssets (standard install), I just thought you had said you did it as a mod. In that case, put BugPath.py into CustomAssets/Python/BUG.

If you leave it installed as a mod, what is the folder it created? There should only be one "BUG Mod 3.5" folder inside one of the two Mods folders (either install or My Games folder).
 
@voe - Can you post the contents of Logs/PythonErr.log and Logs/PythonDbg.log? Also, what OS (XP or Vista) are you using, and is it English or another language?

You can install BUG to CustomAssets (standard install), I just thought you had said you did it as a mod. In that case, put BugPath.py into CustomAssets/Python/BUG.

If you leave it installed as a mod, what is the folder it created? There should only be one "BUG Mod 3.5" folder inside one of the two Mods folders (either install or My Games folder).

sorry, cannot find these log files in my files

anyway, got it to work!
Uninstalled, installed BUG (standard, in custom assets), BugPath.py as per above, and cvmodname.py to \CustomAssets\Python\Contrib

This works! btw, XP, english, game in english, Bug in english

earlier, when I installed as a mod, it installed in the mods folder under the my games directory, not the mods folder in the standard C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword installation folder.

thanks for the help, much appreciated. Off the kill Napoleon
 
Latest SVN-Build (1531): Blank BUG options screen.
Contents of PythonErr.log:
Spoiler :
Traceback (most recent call last):
File "BugConfig", line 372, in parse
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 171, in feed
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 287, in goahead
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 697, in parse_endtag
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 730, in finish_endtag
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 751, in handle_endtag
File "BugConfig", line 440, in end_options
File "BugOptions", line 254, in read
File "BugOptions", line 268, in create
File "BugOptions", line 643, in resetValue
File "BugOptions", line 633, in setValue
File "BugOptions", line 714, in onChanged
File "BugOptions", line 742, in doDirties
File "BugOptions", line 754, in callDirtyFunctions
File "BugUtil", line 479, in __call__
File "BugUtil", line 476, in call
File "EventSigns", line 57, in enabledOptionChanged
AttributeError: 'NoneType' object has no attribute 'processSigns'
Traceback (most recent call last):
File "BugConfig", line 372, in parse
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 171, in feed
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 280, in goahead
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 666, in parse_starttag
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 703, in finish_starttag
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 747, in handle_starttag
File "BugConfig", line 411, in start_load
File "BugConfig", line 109, in loadMod
File "BugInit", line 56, in loadMod
File "BugConfig", line 372, in parse
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 171, in feed
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 287, in goahead
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 697, in parse_endtag
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 730, in finish_endtag
File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 751, in handle_endtag
File "BugConfig", line 440, in end_options
File "BugOptions", line 254, in read
File "BugOptions", line 268, in create
File "BugOptions", line 643, in resetValue
File "BugOptions", line 633, in setValue
File "BugOptions", line 714, in onChanged
File "BugOptions", line 742, in doDirties
File "BugOptions", line 754, in callDirtyFunctions
File "BugUtil", line 479, in __call__
File "BugUtil", line 476, in call
File "EventSigns", line 57, in enabledOptionChanged
AttributeError: 'NoneType' object has no attribute 'processSigns'
Traceback (most recent call last):

File "CvAppInterface", line 65, in onLoad

File "CvEventInterface", line 30, in onEvent

File "BugEventManager", line 261, in handleEvent

File "BugEventManager", line 306, in _handleInitBugEvent

File "BugEventManager", line 370, in initBug

File "BugInit", line 39, in init

File "BugInit", line 56, in loadMod

File "BugConfig", line 372, in parse

File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 171, in feed

File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 280, in goahead

File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 666, in parse_starttag

File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 703, in finish_starttag

File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 747, in handle_starttag

File "BugConfig", line 411, in start_load

File "BugConfig", line 109, in loadMod

File "BugInit", line 56, in loadMod

File "BugConfig", line 372, in parse

File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 171, in feed

File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 287, in goahead

File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 697, in parse_endtag

File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 730, in finish_endtag

File "e:/main/civilization4/warlords/assets/python/system\xmllib.py", line 751, in handle_endtag

File "BugConfig", line 440, in end_options

File "BugOptions", line 254, in read

File "BugOptions", line 268, in create

File "BugOptions", line 643, in resetValue

File "BugOptions", line 633, in setValue

File "BugOptions", line 714, in onChanged

File "BugOptions", line 742, in doDirties

File "BugOptions", line 754, in callDirtyFunctions

File "BugUtil", line 479, in __call__

File "BugUtil", line 476, in call

File "EventSigns", line 57, in enabledOptionChanged

AttributeError: 'NoneType' object has no attribute 'processSigns'
ERR: Python function onLoad failed, module CvAppInterface

The message "BugInit - init() already running" appears right after loading a game.
 
Okay, that would be my fault. Can you tell me what the status of the EventSigns option was when you loaded that game and whether the game was saved with the previous version of EventSigns active?

The PythonDbg.log from when that happened might be handy too.


EDIT: I've committed a change which should prevent that, but I'd still like the old debug log so I can figure out why it happened to begin with.
 
attachment.php
 
Okay, that would be my fault. Can you tell me what the status of the EventSigns option was when you loaded that game and whether the game was saved with the previous version of EventSigns active?

The PythonDbg.log from when that happened might be handy too.


EDIT: I've committed a change which should prevent that, but I'd still like the old debug log so I can figure out why it happened to begin with.

It was a clean install from SVN. So I guess, it was on by default.
No, the game wasn't saved with EventSigns active. There weren't any signs present in the game before loading.
I guess, you want this part of PythonDbg.log:
17:44:24 INFO : BugCore - creating uninitialized mod EventSigns
load_module EventSigns

17:44:24 TRACE: BugConfig - failure parsing C:\Dokumente und Einstellungen\User\Eigene Dateien\My Games\Beyond the Sword\Mods\BUG Mod\Assets\Config\EventSigns.xml at line 23
17:44:24 'NoneType' object has no attribute 'processSigns'
17:44:24 TRACE: BugConfig - failure parsing C:\Dokumente und Einstellungen\User\Eigene Dateien\My Games\Beyond the Sword\Mods\BUG Mod\Assets\Config\init.xml at line 145
17:44:24 'NoneType' object has no attribute 'processSigns'
17:44:25 WARN : BugInit - init() already running
But I can post the whole file if you need it.
 
Code:
  File "BugConfig", line 440, in end_options
  File "BugOptions", line 254, in read
  File "BugOptions", line 268, in create
  File "BugOptions", line 643, in [B]resetValue[/B]
  File "BugOptions", line 633, in setValue
  File "BugOptions", line 714, in [B]onChanged[/B]
  File "BugOptions", line 742, in doDirties
  File "BugOptions", line 754, in callDirtyFunctions

Ahh, I see the problem. When BUG starts and finds no INI files, it resets all the options to their default values as part of creating the INI file. I was thinking this would write the defaults to the file, but since I check for a new value and only write to the file if it's different, that's pointless.

The problem is that it is calling the dirty function when resetting the value, and clearly the EventSigns module hasn't yet been initialized. My bad. I'll remove the reset() calls and hopefully solve the problem. Actually, I'll add an initialize() function the Option that sets to the default value forcefully and doesn't call the dirty function.

I'll do that later this afternoon and post the result. For now you can simply create EventSigns.ini (check the XML file for the exact name) as a blank text file. That should get you able to play.
 
Back
Top Bottom