BugInit - UnitUtil

Le Sage

Emperor
Joined
Apr 24, 2009
Messages
1,522
Location
Digging up your garden
All of a sudden I am getting this in my mod. It doesn't break the game, but some units have no civilopedia. Can anyone tell me what this is about?

Spoiler :
PHP:
Traceback (most recent call last):
  File "BugInit", line 98, in callInits
  File "UnitUtil", line 73, in init
AttributeError: 'NoneType' object has no attribute 'getDescription'
Traceback (most recent call last):

  File "CvScreensInterface", line 954, in forceScreenRedraw

  File "CvMainInterface", line 3163, in redraw

  File "CvMainInterface", line 3607, in updatePlotListButtons

  File "CvMainInterface", line 3698, in updatePlotListButtons_Common
 
It looks like you added a new unit class that doesn't have a default unit type specified. For example, the default unit type of UNITCLASS_ARCHER is UNIT_ARCHER. You can fix the code in BUG to be tolerant of this, but it's really an error in your unit class. Look in PythonDbg.log for where that error appears, and the unit class listed just above is the problem.

If you cannot find it, post PythonDbg.log.
 
Top Bottom