Page 1 of 1
I kill Golbug and...
Posted: Mon Aug 23, 2010 8:08 pm
by PowerWyrm
Some dork pops up, gives me a scroll, and the game freezes...
Error as follows:
Code: Select all
[CHAT] selected Thank you for your courrage. function: 2589BED8 nil
Lua Error: /engine/interface/ActorInventory.lua:151: attempt to index local 'inven' (a nil value)
At [C]:-1
At /engine/interface/ActorInventory.lua:151 removeObject
At /data/chats/message-minas-tirith.lua:28 action
At /engine/dialogs/Chat.lua:72 use
At /engine/dialogs/Chat.lua:48 ?
At /engine/KeyBind.lua:198
Re: I kill Golbug and...
Posted: Mon Aug 23, 2010 9:26 pm
by Shoob
thats probably why there have been numerous posts on this. (I didnt see this mentioned there though)
it looks like the npc does not have the scroll in his inventory, so it cant remove it. (DG, there should be some asserts/checks in there somewhere)
Re: I kill Golbug and...
Posted: Tue Aug 24, 2010 12:39 am
by edge2054
Yeah, I had to kill Gorbulg three times to get around this bug.
First two times I was getting the same error in the stdout.
I have no idea if it was just random or what but the third time I waited to rest or loot until after I was done with the Herald.
The full logs are linked in the Beta 9 bugs thread.
Re: I kill Golbug and...
Posted: Tue Aug 24, 2010 7:25 am
by PowerWyrm
Maybe this has nothing to do with the bug, but the second time I killed Golbug, I waited for the herald to appear and didn't move until the dialog was triggered... and the game didn't crash. The first time, I made a move towards him to trigger the dialog.
Re: I kill Golbug and...
Posted: Tue Aug 24, 2010 7:39 am
by darkgod
Ahhhh I think I understand then, the dialog triggered twice proabbly .. ok I know how to fix it

Re: I kill Golbug and...
Posted: Tue Aug 24, 2010 12:07 pm
by PowerWyrm
Reproduced:
- character and herald stand next to each other
- character moves away or stands still: no problem, scroll gets delivered
- character tries to bump into the herald: game crashes
For me, it's more related to the fact that the scroll is created in the lua file which is called when the herald triggers the dialog event. When the character triggers the dialog event himself by bumping into the npc, the dialog event is triggered without the scroll being created.
Re: I kill Golbug and...
Posted: Tue Aug 24, 2010 12:13 pm
by darkgod
Yes the scroll is unique, I have made it so that it wont chat with you twice