Bug Reporting

Have you created your own options or altered the ones in BUG's config XML files? It seems you have an invalid character (such as a curly quote) in one of them.

I don't get this error when starting stock BUG, and I've deleted all my INI files. Deleting your INI files is what causes BUG to fill them with default values and write them when starting Civ.

In this case, there is a clean version of bug, loaded the latest svn and put it in customassets.
 
In this case, there is a clean version of bug, loaded the latest svn and put it in customassets.

I've fixed this problem by using the Latin1 encoding when writing the options. You can delete your INI files to get German comments again.
 
OK, now it works.

But it throws up errors, if Modcomps use own events, that are reflected in the dll and the strange thing is, with the "old" bug, it worked without problems.

And another strange bug:

Code:
Traceback (most recent call last):

  File "CvScreensInterface", line 353, in pediaShow

AttributeError: 'NoneType' object has no attribute 'pediaShow'
ERR: Python function pediaShow failed, module CvScreensInterface

This error only throws up, if you start the pedia from main menu after starting civ - if you call the pedia within a running game, the pedia starts without any problem.
 
But it throws up errors, if Modcomps use own events, that are reflected in the dll and the strange thing is, with the "old" bug, it worked without problems.

Please post the error. I'm not the amazing Carnac! ;)

What I can guess is that you changed the modcomps to call addBuiltinEventHandler() to add the new events from the DLL. I've changed the event manager to add the event type if it doesn't already exist.

Previously, you could pass in a third True parameter, but I figure there's not much point to doing that. It will say in the debug log when you are defining a new event.

Code:
AttributeError: 'NoneType' object has no attribute 'pediaShow'
ERR: Python function pediaShow failed, module CvScreensInterface

This error only throws up, if you start the pedia from main menu after starting civ - if you call the pedia within a running game, the pedia starts without any problem.

I've fixed this by loading "BUG Advisors.ini" if BUG hasn't been initialized yet.
 
Please post the error. I'm not the amazing Carnac! ;)

What I can guess is that you changed the modcomps to call addBuiltinEventHandler() to add the new events from the DLL. I've changed the event manager to add the event type if it doesn't already exist.

Previously, you could pass in a third True parameter, but I figure there's not much point to doing that. It will say in the debug log when you are defining a new event.

You must be a clairvoyant, now it works :)

I've fixed this by loading "BUG Advisors.ini" if BUG hasn't been initialized yet.
Thanks for this and the other fixes. :)
 
is the foreign language-replay-HoF bug fixed? and what about the MA alliance bug? if not, is there a plan to do this in time? I'm currently waiting for it and see currently no reason for a use of the new core within my mod (too much (merging) work for someone like me :D).
 
Once did the merge, and that's it.
In game there is no difference.
And that rewriting only is for the CvCustomEM, the rest of the files from other mods has not to be changed.
Just got the whole BUG/Cs merge to work.
The only critcal file is the CvMainInterface, this file made my hair turn grey ;)
But it works.
 
is the foreign language-replay-HoF bug fixed? and what about the MA alliance bug?
I just fired up Civ4, swapped to German, opened my team game and the MA sit rep worked fine. No crash, no python errors, nothing. Do you get any dump to the error log when you encounter this error?
 
so... with the new core it got fixed? I did not try the new core cause I was waiting for a fix-report.
 
I don't have the new core loaded.
 
okay my MA is working when I replace the old file with the new one from SVN. but I don't know the files I need for the HoF fix (in case it's fixed) I need a . .. .. .. .ing BUG- merging guide. :(
 
Have you created your own options or altered the ones in BUG's config XML files? It seems you have an invalid character (such as a curly quote) in one of them.

I don't get this error when starting stock BUG, and I've deleted all my INI files. Deleting your INI files is what causes BUG to fill them with default values and write them when starting Civ.

Note that this error is not so different from the one I have experienced:
http://forums.civfanatics.com/showpost.php?p=7184918&postcount=25

http://forums.civfanatics.com/showpost.php?p=7185008&postcount=26
 

Ok, after some test I can give some more info about this bug.

When BUG is started for the first time (for example after a new installation from SVN) it MUST be started in English.
If it is started in ITA, the bug is fired and the interface loading is blocked (black screen, map without interface after pressing the ESC key).
Changing the language to ENG from the mail screen is not enough, the bug is still there.
BUT if you change the language to English and restart the game, the bug disappears and the interface loads as usual.
After this, it is possible to change the language back to ITA, and restarting the game will not fire the bug anymore.

PythonErr.log:

Spoiler :
Code:
Traceback (most recent call last):

  File "CvAppInterface", line 65, in onLoad

  File "CvEventInterface", line 30, in onEvent

  File "BugEventManager", line 213, in handleEvent

  File "BugEventManager", line 258, in _handleInitBugEvent

  File "BugEventManager", line 298, in initBug

  File "BugInit", line 41, in init

  File "BugOptions", line 223, in read

  File "BugOptions", line 150, in read

  File "BugOptions", line 257, in read

  File "BugOptions", line 273, in create

  File "BugOptions", line 309, in write

  File "configobj", line 2008, in write

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 9: ordinal not in range(128)
ERR: Python function onLoad failed, module CvAppInterface
Traceback (most recent call last):

  File "CvAppInterface", line 84, in preGameStart

  File "CvScreensInterface", line 80, in showTechChooser

  File "CvTechChooser", line 122, in interfaceScreen

  File "BugOptions", line 485, in get

  File "BugOptions", line 586, in getValue

  File "BugOptions", line 1026, in getRealValue

  File "BugOptions", line 337, in getBoolean

  File "BugOptions", line 319, in exists

TypeError: iterable argument required
ERR: Python function preGameStart failed, module CvAppInterface

On a side note, the title of the advisors tab in the option screen still not uses the localized name.
 
When BUG is started for the first time (for example after a new installation from SVN) it MUST be started in English.

I just fixed this before the weekend. Are you using the latest SVN version? The problem was that I made BUG build INI files using the hover text of all the options as comments, but it's writing a plain ASCII file. So I changed it to use Latin-1 (same as the XML files are using), and I got umlauts and accents in the files just fine.

On a side note, the title of the advisors tab in the option screen still not uses the localized name.

I noticed a few that weren't being used, so perhaps I did an overly-eager search-n-replace. I'll scan through it again. :(

@Cybah - I haven't gotten to the HoF fix yet. I'll take a look at it today or tomorrow as it should be a quick fix.
 
I have rewritten the HoF Win/Loss Status code to handle multiple languages and be more fault-tolerant.
 
I just fixed this before the weekend. Are you using the latest SVN version? The problem was that I made BUG build INI files using the hover text of all the options as comments, but it's writing a plain ASCII file. So I changed it to use Latin-1 (same as the XML files are using), and I got umlauts and accents in the files just fine.

I read about it, but the problem was still there with the last SVN version available... :(
the reason for me having a newly installed BUG was that I had just downloaded it from the repo to try the new changes. :)

Anyway, I may try again this evening.
 
I read about it, but the problem was still there with the last SVN version available... :(

I have no idea why it broke, but I verified that it doesn't work (and not just for Italian but German and French as well). I have applied a new fix that should do the trick. I have verified (again) that it works; hopefully this time for good. ;)
 
I have no idea why it broke, but I verified that it doesn't work (and not just for Italian but German and French as well). I have applied a new fix that should do the trick. I have verified (again) that it works; hopefully this time for good. ;)

Now it works! :goodjob: :goodjob:
I've experienced a little increase in the loading time with a new istance of BUG, since when it has the new core, but it's ok.
 
Back
Top Bottom