Python Exception on dwarf vs lizardman event

Issue #259 new
joseasoler repo owner created an issue
Traceback (most recent call last):

  File "CvRandomEventInterface", line 418, in applyExploreLairDwarfVsLizardmen2

  File "CustomFunctions", line 988, in findClearPlot

AttributeError: 'NoneType' object has no attribute 'getX'
ERR: Python function applyExploreLairDwarfVsLizardmen2 failed, module CvRandomEventInterface

Comments (6)

  1. lfgr

    I tested that today (both with a pre-0.5 wilderness version and with an updated one) and everything worked all right. Were you able to reproduce it reliably?

  2. joseasoler reporter

    It happens only sometimes. I see it appearing on the log sometimes while running unrelated tests with auto play. Besides the error Gekko reported I've only seen it appear once on normal games. As it happens only sometimes and the code looks right, I have not been able to find what is wrong.

  3. joseasoler reporter
    • edited description

    I managed to reproduce this issue again today while using auto play for a different issue. Trying to load autosaves from previous turns and running auto play again did not reproduce it. I have updated the trace in the description with the new line numbers in 0.6.

    The error looks as if the unit triggering the event had no tile, which does not make much sense... Many other events use kTriggeredData.iUnitId to obtain the unit they need, so if that mechanism failed we would have this kind of error in other events too.

  4. Log in to comment