Page 1 of 1

[b32] Stealth breaks equipping

Posted: Sun Sep 04, 2011 10:58 pm
by greycat

Code: Select all

Lua Error: /data/talents/cunning/stealth.lua:33: attempt to index local 't' (a nil value)
        At [C]:-1 __index
        At /data/talents/cunning/stealth.lua:33 on_pre_use
        At /mod/class/Player.lua:858 playerCheckSustains
        At /mod/class/Player.lua:659 doWear
        At /mod/class/Player.lua:718 action
        At /engine/dialogs/ShowInventory.lua:76 use
        At /engine/dialogs/ShowInventory.lua:59 on_input
        At /engine/KeyCommand.lua:64 receiveKey
        At /engine/ui/Dialog.lua:509 keyEvent
        At /engine/ui/Dialog.lua:294 
Or with the mouse:

Code: Select all

Lua Error: /data/talents/cunning/stealth.lua:33: attempt to index local 't' (a nil value)
        At [C]:-1 __index
        At /data/talents/cunning/stealth.lua:33 on_pre_use
        At /mod/class/Player.lua:858 playerCheckSustains
        At /mod/class/Player.lua:659 doWear
        At /mod/class/Player.lua:718 action
        At /engine/dialogs/ShowInventory.lua:76 use
        At /engine/dialogs/ShowInventory.lua:44 fct
        At /engine/ui/ListColumns.lua:259 onUse
        At /engine/ui/ListColumns.lua:187 fct
        At /engine/Mouse.lua:48 receiveMouse
        At /engine/Mouse.lua:76 delegate
        At /engine/ui/Dialog.lua:501 mouseEvent
        At /engine/ui/Dialog.lua:292 fct
        At /engine/Mouse.lua:48 
Those occur with Stealth active. With Stealth off, clicking it does nothing at all (but causes time to pass).

Re: [b32] can't equip Cloak of Deception

Posted: Sun Sep 04, 2011 11:46 pm
by eulf
Related issue to this, you can duplicate items due to this error popping up and such. Also seems to effect equipping anything (For me at least). I'm not getting any issues actually equipping it although, regardless of having stealth active/inactive.

Re: [b32] Stealth breaks equipping

Posted: Mon Sep 05, 2011 12:37 am
by edge2054
Gahh.... I'm sorry guys :( I missed one of the abs and didn't change it to t when I copied line 858 out of actor. I tested it but I guess the pre_use functions I tested didn't need the talent info.

Line 858 in class\player.lua should be...

Code: Select all

if t.on_pre_use and not t.on_pre_use(self, t, silent, fake) then
For now just don't equip or unequip gear or press x while stealth is active :(

Re: [b32] Stealth breaks equipping

Posted: Mon Sep 05, 2011 1:10 am
by catwhowalksbyhimself
Ah, that explains a lua error I got earlier today. Easy enough to avoid.