Bug Reports and Technical Issues

Interesting, I've never noticed this option, thanks. What I did notice however was a more general problem with processing commands from the interface, in particular world builder commands and things like renaming cities and units. I know how to solve it but it's quite tedious, should be coming soon though.
 
The "Unlimited Civ Switching" option in the WB doesn't function. "Already Switched Civ" is enabled (but can be disabled again with a click) after switching civs, regardless of the prior option.
 
Just started a new game on the Git version (r7922), and I'm getting a Python error at the start of every turn:

Code:
Traceback (most recent call last):
  File "BugEventManager", line 378, in _handleDefaultEvent
  File "Events", line 12, in handler_func
  File "Companies", line 39, in checkCompanies
TypeError: iteration over non-sequence
 
Just started a new game on the Git version (r7922), and I'm getting a Python error at the start of every turn:

Code:
Traceback (most recent call last):
  File "BugEventManager", line 378, in _handleDefaultEvent
  File "Events", line 12, in handler_func
  File "Companies", line 39, in checkCompanies
TypeError: iteration over non-sequence
That doesn't mean anything to me, what is the full commit hash? I cannot reproduce the error and remember fixing this already, are you sure you are up to date?
 
"Leaders" in Civilopedia doesn't open correctly. Can't take a screenshot for some reason, but the error that appears is
Code:
Traceback (most recent call last):

File "CvScreensInterface", line 403, in pediaMain
File "CvPediaMain", line 326, in pediaJump
File "CvPediaMain", line 386, in showContents
File "CvPediaMain", line 431, in placeLeaders
File "RFCUtils", line 1069, in getLeaderCiv

NameError: global name 'iNumCivilizations' is not defined

Victory screen for Portugal is buggy as well.
Code:
Traceback (most recent call last):

File "CvScreensInterface", line 301, in showVictoryScreen
File "CvVictoryScreen", line 207, in interfaceScreen
File "CvVictoryScreen", line 1586, in showVictoryConditionScreen
File "Victory", line 3628, in getUHVHelp
File "Victory", line 2369, in getNumCitiesInRegions

TypeError: regions() argument after * must be a sequence

Code:
iColonies += getNumCitiesInRegions(iPlayer, plots.of(lAfrica))
iColonies += getNumCitiesInRegions(iPlayer, plots.of(lAsia))
plots.of returns an object of class Core.Plots, changing these to just lAfrica or lAsia seems to fix it but that looks like part of the code rewrite so I don't want to step on it.
 

Attachments

  • portugal-victory0000.JPG
    portugal-victory0000.JPG
    204.5 KB · Views: 102
Yes that looks like an overlap between old and new code.
 
Just a heads up, I posted a bug I found pertaining to the Great Wall in the OMG! Look what happened in DoC thread. Basically something caused the Great Wall to wrap around two mountain tiles in my territory.
 
Latest game as Persia, core zone flips appear to be not working (lucky me!)

Errors pop up instead of the prompt to hand over the city or start a war. Same popups came up after the Turks and the Byzantines spawned. Save attached is a turn before it occurs

Also, just noticed that when mousing over the name of a civilization everybody's stability is listed as "STABILITY: Collapsing".
 

Attachments

Last edited:
I'm getting a consistent crash whenever I try to start a game using the 600 AD scenario. CTDs right as autoplay would start.
 
I'm getting a consistent crash whenever I try to start a game using the 600 AD scenario. CTDs right as autoplay would start.
On the latest update?
 
On the latest update?
Correct, I experienced the crash, then went to re-pull to ensure I was using the lastest version and still experienced the crash. It proved to be consistent over many attempts to start with many civs.
 
Strange, I tried an Indonesia start without issues.
 
Playing on the latest git update, attempting to move an independent city with the worldbuilder move city function instead creates a new city and leaves the old one. Moving a non-independent city works fine. Tested with multiple civs all in the 3000bc scenario.
 
That doesn't mean anything to me, what is the full commit hash? I cannot reproduce the error and remember fixing this already, are you sure you are up to date?

After further investigation, it turns out the bug only happens on Marathon game speed.

The slower game speed means that the function 'spread' (line 71 of Core.py) makes a return call to 'spread_padded' instead of 'spread_grouped', meaning that the value passed to the 'for' loop in line 39 of Companies.py:
Code:
    for iCompany in infos.corporations().periodic(iNumCorporations / 2):
        checkCompany(iCompany, iGameTurn)
will be either an int, or 'None', instead of the tuple that it expects.

Note also that even once you've fixed that, passing 'None' to 'checkCompany' will produce a further Python error:
Code:
  File "Companies", line 59, in checkCompany

  File "Companies", line 51, in getCompanyLimit

TypeError: tuple indices must be integers

Suffice it to say that, yes, I'm sure I'm up to date.
 
His name is copyrighted.
 
upload_2020-7-5_15-19-35.png


Code:
Traceback (most recent call last):

  File "CvScreensInterface", line 443, in pediaJumpToCultureLevel

  File "CvPediaMain", line 360, in pediaJump

  File "CvPediaCultureLevel", line 43, in interfaceScreen

  File "CvPediaCultureLevel", line 63, in placeInfo

NameError: global name 'game' is not defined
ERR: Python function pediaJumpToCultureLevel failed, module CvScreensInterface
Traceback (most recent call last):

  File "CvScreensInterface", line 443, in pediaJumpToCultureLevel

  File "CvPediaMain", line 360, in pediaJump

  File "CvPediaCultureLevel", line 43, in interfaceScreen

  File "CvPediaCultureLevel", line 63, in placeInfo

NameError: global name 'game' is not defined
ERR: Python function pediaJumpToCultureLevel failed, module CvScreensInterface
Traceback (most recent call last):

  File "CvScreensInterface", line 443, in pediaJumpToCultureLevel

  File "CvPediaMain", line 360, in pediaJump

  File "CvPediaCultureLevel", line 43, in interfaceScreen

  File "CvPediaCultureLevel", line 63, in placeInfo

NameError: global name 'game' is not defined
ERR: Python function pediaJumpToCultureLevel failed, module CvScreensInterface
Traceback (most recent call last):

  File "CvScreensInterface", line 443, in pediaJumpToCultureLevel

  File "CvPediaMain", line 360, in pediaJump

  File "CvPediaCultureLevel", line 43, in interfaceScreen

  File "CvPediaCultureLevel", line 63, in placeInfo

NameError: global name 'game' is not defined
ERR: Python function pediaJumpToCultureLevel failed, module CvScreensInterface
Traceback (most recent call last):

  File "CvScreensInterface", line 443, in pediaJumpToCultureLevel

  File "CvPediaMain", line 360, in pediaJump

  File "CvPediaCultureLevel", line 43, in interfaceScreen

  File "CvPediaCultureLevel", line 63, in placeInfo

NameError: global name 'game' is not defined
ERR: Python function pediaJumpToCultureLevel failed, module CvScreensInterface
Traceback (most recent call last):

  File "CvScreensInterface", line 443, in pediaJumpToCultureLevel

  File "CvPediaMain", line 360, in pediaJump

  File "CvPediaCultureLevel", line 43, in interfaceScreen

  File "CvPediaCultureLevel", line 63, in placeInfo

NameError: global name 'game' is not defined
ERR: Python function pediaJumpToCultureLevel failed, module CvScreensInterface
 
Persia game I collapsed and faced some weird behavior. Previously I would just see a "You have been defeated!" message after all my cities go independent or flip, I assume this is what's supposed to happen in DoC as civil wars are no more. From save Cyrus AD-1360 when I collapse most of my cities go barbarian but I get some error messages and weirdly some cities in Anatolia are spared. Save attached, collapse should occur next turn.

Congresses have been pretty buggy. I'm playing as America from 1700AD right now and getting inconsistent errors that I'm having difficulty reproducing. I've attached screenshots of some of the errors I've gotten - all of the files beginning with "congress" show errors that appeared after a complete round of voting. Sometimes voting goes fine though. The screenshot "world congress0000" shows an error I've gotten a few times from my America save (AutoSave_AD-1823 Turn 362) after the World Congress prompt, before voting starts, or right before the prompt where the player selects a city to request.
 

Attachments

Last edited:
Very minor errors that still derail the code. Sorry for the trouble, will iron them out asap.
 
Back
Top Bottom