Jump to content

iwd AttributeError CreateTextArea(.)


rajm

Recommended Posts

Running Icewind Dale in 64-bit Linux using latest git source, while creating a new character, when Biography button is pressed, I get the following error, then it won't respond to any key or mouse press (mouse move works since I run in a window mode.)

[GUIScript/ERROR]: Syntax Error:
[Python/ERROR]: Traceback (most recent call last):
[Python/ERROR]:   File "/usr/share/gemrb/GUIScripts/iwd/CharGen.py", line 2571, in BiographyPress
[Python/ERROR]:     BiographyTextArea = BiographyWindow.CreateTextArea(100, 0, 0, 0, 0, "NORMAL", IE_FONT_ALIGN_CENTER ) # ID/position/size dont matter. we will substitute later
[Python/ERROR]:   File "/usr/share/gemrb/GUIScripts/GUIClasses.py", line 104, in CreateTextArea
[Python/ERROR]:     _GemRB.Window_CreateTextArea(self.ID, control, *args)
[Python/ERROR]: AttributeError: CreateTextArea(WindowIndex, ControlID, x, y, w, h, font)

Creates and adds a new TextArea to a Window.

It looks like CreateTextArea() call has one extra argument IE_FONT_ALIGN_CENTER. I see the same function call in bg2/GUICG23.py, although I don't know how to make that code get executed.

 

If I remove that extra argument, it eventually crashes, so it may not be just a simple issue with extra argument.

 

Workaround is to never press Biography when creating a character.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...