1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Post Feb 1st 2013 - bugs - Single Player

Discussion in 'Bugs and Crashes' started by Dancing Hoskuld, Jan 28, 2013.

Thread Status:
Not open for further replies.
  1. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,549
    Gender:
    Male
    Location:
    Canberra, Australia
    Can't be done since the mine may cause obsidian to be discovered. Been that way since RoM:AND.

    Third person to report the error, answer is the same as before. There is a building with a human readable name that is not acceptable to Python. When I am well enough I will get to it. The tooth came out yesterday, I slept all day today and I am going back to bed now.
     
  2. Koshling

    Koshling Vorlon

    Joined:
    Apr 11, 2011
    Messages:
    9,254
    Yes, I know it was broken in those versions, but it was (supposedly) fixed in V27 (or maybe 28, but as I recall it was 27), so I seems you are finding some residual case the fix didn't solve...
     
  3. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,686
    Gender:
    Male
    Location:
    MN
    OK, I am trying something completely different in this NEW start, if you really want to know, PM me, but only the coders, thx.


    CTD, (attached mini/savedgame, and see log below also) SVN 4785, NO viewports

    I canNOT precede in what i want to do without this being solved, thx.


    Here is the error message i am getting: (I did not add anything to C2C).

    Spoiler :
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_VOLCANO_DORMANT
    Can't find type enum for type tag FEATURE_VOLCANO_DORMANT
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_VOLCANO_DORMANT
    Can't find type enum for type tag FEATURE_OBSIDIAN_PLAINS
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_COMET
    Can't find type enum for type tag FEATURE_OBSIDIAN_PLAINS
    Can't find type enum for type tag FEATURE_COMET
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_VOLCANO_DORMANT
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_MUD
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_OBSIDIAN_PLAINS
    Can't find type enum for type tag FEATURE_OBSIDIAN_PLAINS
    Can't find type enum for type tag FEATURE_MUD
    Can't find type enum for type tag FEATURE_MUD
    Can't find type enum for type tag FEATURE_MUD
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_EXOTIC_CORAL
    Can't find type enum for type tag FEATURE_EXOTIC_MIN
    Can't find type enum for type tag FEATURE_EXOTIC_SEALIFE
    Traceback (most recent call last):
    File "BugEventManager", line 363, in _handleDefaultEvent
    File "RevEvents", line 421, in onCityBuilt
    AttributeError: 'NoneType' object has no attribute 'getID'
    Traceback (most recent call last):
    File "BugEventManager", line 363, in _handleDefaultEvent
    File "Caveman2Cosmos", line 96, in onTechAcquired
    RuntimeError: unidentifiable C++ exception


    Code for 96 of C2C.py:
    Spoiler :
    Code:
    if pCity != None:
    			iWorker = gc.getCivilizationInfo(pPlayer.getCivilizationType()).getCivilizationUnits(giFreeUnit)
    			if iWorker == -1:
    				iWorker= giFreeGathererUnit
    			[U]pPlayer.initUnit(iWorker, pCity.getX(), pCity.getY(), UnitAITypes.NO_UNITAI, DirectionTypes.DIRECTION_SOUTH)[/U]
    



    EDIT: 2nd error:

    For some odd reason again there are 2 Thief's listed whereas only one should appear?? (2nd Autosave)

    EDIT EDIT: 3rd Error (message only): python problem (2nd pic)

    Traceback (most recent call last):
    File "BugEventManager", line 363, in _handleDefaultEvent
    File "Revolution", line 624, in onEndPlayerTurn
    File "Revolution", line 1070, in updatePlayerRevolution
    File "Revolution", line 2318, in checkForRevolution
    File "Revolution", line 3154, in pickRevolutionStyle
    AttributeError: 'NoneType' object has no attribute 'getID'
     
  4. Koshling

    Koshling Vorlon

    Joined:
    Apr 11, 2011
    Messages:
    9,254
    Not quite sure how you did this, but the problem is that the Python code that handles you getting the Gathering tech is trying to give you a gatherer. However, it tries to put it in your capital city, but somehow you don't HAVE a capital city (one with a palace), and the result is the crash. I have a fix for the crash this causes (the DLL should be returning NULL for the capital city, but is instead returning an uninitialized city object, which the Python cannot cope with (quite reasonably).

    When I push that fix to SVN (shortly) the crash will go away, but you'll still be in the no-capital-city situation (and won't get your gatherer as a result). Did you do anything strange to get to this state in the first place?

    Edit - actually I take it back - the Python is the problem. The DLL is allowed to return null cities and most of the Python checks, but this bit doesn't - it needs to check that pCity.isNone() is not true - I'll push the fix after I have tested it
     
  5. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,686
    Gender:
    Male
    Location:
    MN
    I will PM you what i did ok, i did that ON PURPOSE. Working on a NEW way to play and stuff is all.
     
  6. sp00n

    sp00n Prince

    Joined:
    Jan 4, 2007
    Messages:
    347
    This just happened again in v28.
    The first city I took over had 13 turns (normal), second one was 18 (okayish), and the third, the capital, had an anarchy time of 69 turns.

    Pre-capture save game attached.
     

    Attached Files:

  7. ls612

    ls612 Deity Moderator

    Joined:
    Mar 10, 2008
    Messages:
    8,073
    Location:
    America
    The pertinent changes happened in V27 development, so any instance of this happening before then is not necessarily useful.
     
  8. ls612

    ls612 Deity Moderator

    Joined:
    Mar 10, 2008
    Messages:
    8,073
    Location:
    America
    @Koshling:

    I updated today from revision 4776 to 4788, and that caused my turn times to skyrocket from 83 seconds to 117 seconds. Any idea what may be the cause of that? Save attached.
     
  9. Koshling

    Koshling Vorlon

    Joined:
    Apr 11, 2011
    Messages:
    9,254
    No idea, bit I'll profile your save and look at rye changes between those revisions to see if I can see anything
     
  10. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,686
    Gender:
    Male
    Location:
    MN
    I also did notice quite a JUMP in turn times, i didnt want to say anything, but not that ls612 said it (not me), its out.:p
    I noticed it right away from the beginning of the new game start after 10 turns, they just are sooo much longer(maybe up to 15-18 seconds, at new game start) , again for some reason, JMO.
     
  11. Koshling

    Koshling Vorlon

    Joined:
    Apr 11, 2011
    Messages:
    9,254
    How sure are you of those revision numbers? They do not include ANY DLL changes

    Edit - I have now profiled your save using both the latest assets and older ones that predate the earlier revision you specified, and see no significant difference in times. That means:

    1) There were no DLL changes between hose revisions, so if you're sure of the numbers we can rule that out
    2) Asset changes between those revisions make no measurable difference

    The implication would be there is no change between those revisions, so either the numbers are off, or your just seeing random variation and attributing it to having updated.

    Having said all that, there were two hot spots that stood out to me in your game profile:

    i) 10 seconds spent in CvDllPythonEvents::postEvent.EndPlayerTurn - that's almost certainly REV Python. We probably cannot do much about that without rewriting REV as part of the DLL (substantial job)

    ii) 8.5 seconds spent in CvUnitAI::AI_genericUnitValueTimes100 - that is readily cachable, and so should be almost entirely eliminable. I'll push an optimization to do this later today

    The upshot is - there's one obvious optimization (which I'll make), but any slow down across those revisions remains mysterious
     
  12. sp00n

    sp00n Prince

    Joined:
    Jan 4, 2007
    Messages:
    347
    Um... I'm able to load ships into a Frigate with the Transport II promotion... not sure if that works Transport I as well.
    I think the ship was upgraded from earlier version, though I cannot check this (actually two of my Frigates are capable of this, both with Transport II).

    I cannot board them into (onto? on? in?) a "regular" Galleon, also with Transport II.

    v28 release.


    // Edit
    Works also with newly created Frigates and Transport I.
     
  13. ls612

    ls612 Deity Moderator

    Joined:
    Mar 10, 2008
    Messages:
    8,073
    Location:
    America
    I know, and I suspected that the answer would be random variation given that there were no DLL changes. I had a guess on the off chance that asset changes would do something to AI evaluation, but that wasn't the case. Maybe I'm just not paying attention.
     
  14. Koshling

    Koshling Vorlon

    Joined:
    Apr 11, 2011
    Messages:
    9,254
    It was a valuable save anyway - the optimizations I made knocked over 10% off.
     
  15. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,686
    Gender:
    Male
    Location:
    MN
    :hmm::think: 10% of a 1,000,000 I wonder what that would be then :p;)
     
  16. WimpyTheWarrior

    WimpyTheWarrior Warlord

    Joined:
    Dec 31, 2003
    Messages:
    294
    Location:
    Sydney, Australia
    SVN 4791. Once the Barter Post is auto-built, I am unable to destroy any buildings or abandon my cities.

    The save game is just before I discover Barter, and the Barter Post will auto-build. I can Ctrl-A to destroy buildings on this turn. Once I advance to the next turn, complete the Barter research, and get the Barter Post, I cannot destroy any buildings.

    ULTIMATE MAP SIZE - VIEW PORTS REQUIRED TO LOAD
     
  17. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,686
    Gender:
    Male
    Location:
    MN
    I cant get it to work what so ever, i just keep forgetting to write here, so thx.
     
  18. Dancing Hoskuld

    Dancing Hoskuld Deity

    Joined:
    Jul 5, 2004
    Messages:
    23,549
    Gender:
    Male
    Location:
    Canberra, Australia
    Many people have reported the issue (including SO, even though he says he hasn't:rolleyes:) but at least you give me somewhere to look, but if it is the Barter Post then my idea of what is wrong is not the case.

    @Koshling are auto build buildings classed as Free Buildings?
     
  19. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,686
    Gender:
    Male
    Location:
    MN
    @ DH, i am still getting this, i need python help:

    Sorry i need a rush on this, again sorry: I am pretty sure this might coincide with the stuff i sent you in the PM's.:)blush::blush:) btw, i am also running it through the Nomad Start. . .

    Spoiler :
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_VOLCANO_DORMANT
    Can't find type enum for type tag FEATURE_VOLCANO_DORMANT
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_VOLCANO_DORMANT
    Can't find type enum for type tag FEATURE_OBSIDIAN_PLAINS
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_COMET
    Can't find type enum for type tag FEATURE_OBSIDIAN_PLAINS
    Can't find type enum for type tag FEATURE_COMET
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_VOLCANO_DORMANT
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_SCRUB
    Can't find type enum for type tag FEATURE_DEAD_FOREST
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_MUD
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_OBSIDIAN_PLAINS
    Can't find type enum for type tag FEATURE_OBSIDIAN_PLAINS
    Can't find type enum for type tag FEATURE_MUD
    Can't find type enum for type tag FEATURE_MUD
    Can't find type enum for type tag FEATURE_MUD
    Can't find type enum for type tag BONUS_DYE
    Can't find type enum for type tag FEATURE_EXOTIC_CORAL
    Can't find type enum for type tag FEATURE_EXOTIC_MIN
    Can't find type enum for type tag FEATURE_EXOTIC_SEALIFE
    Traceback (most recent call last):
    File "BugEventManager", line 363, in _handleDefaultEvent
    File "RevEvents", line 421, in onCityBuilt
    AttributeError: 'NoneType' object has no attribute 'getID'
    Traceback (most recent call last):
    File "BugEventManager", line 363, in _handleDefaultEvent
    File "RevEvents", line 421, in onCityBuilt
    AttributeError: 'NoneType' object has no attribute 'getID'



    EDIT:

    I just have a minidump????
     
  20. Koshling

    Koshling Vorlon

    Joined:
    Apr 11, 2011
    Messages:
    9,254
    In what sense? Do you mean if you ask what their cost is from the BuildingInfo? If so then I doubt it - it'll just return whatever value is in the XML.
     
Thread Status:
Not open for further replies.

Share This Page