Here's the line in question -
Code:screen.setTableText(self.ITEM_LIST_ID, 0, i, u"<font=3>" + item[0] + u"</font>", info(item[1]).getButton(), widget, data1, data2, CvUtil.FONT_LEFT_JUSTIFY)
For reference, here's the same sort of line in the normal CvPediaMain.py:
Code:screen.setTableText(tableName, iColumn, iRow, u"<font=3>" + item[0] + u"</font>", gc.getTechInfo(item[1]).getButton(), WidgetTypes.WIDGET_PEDIA_JUMP_TO_TECH, item[1], 1, CvUtil.FONT_LEFT_JUSTIFY)
I don't see anything obviously wrong, but the info(item[1]).getButton() seems fishy for some reason. Usually when I get a C++ exception it's because I am referring to something that I think exists, but doesn't actually; for example, using gc.getInfoTypeForString("TECH_RADAR") when I haven't actually added TECH_RADAR to the xml. In this case, I'm betting that whatever that "info(item[1])" is, it's been messed up somewhere so that it no longer refers to what it should be referring to.
It could be something else in that line doing the same thing...but nothing jumps out at me.
Hi, thank you. Unfortunatly my python skils r too limited to understand what can cause this. Its weird that error dont happen always.. only maybe 30% of launched games starts with it.