[b32] Stealth breaks equipping

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

[b32] Stealth breaks equipping

#1 Post 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).
Last edited by greycat on Mon Sep 05, 2011 12:29 am, edited 1 time in total.

eulf
Cornac
Posts: 37
Joined: Sun Feb 13, 2011 6:53 am

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

#2 Post 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.

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: [b32] Stealth breaks equipping

#3 Post 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 :(

catwhowalksbyhimself
Wyrmic
Posts: 249
Joined: Sun Aug 15, 2004 1:19 am
Location: Plainville, CT

Re: [b32] Stealth breaks equipping

#4 Post by catwhowalksbyhimself »

Ah, that explains a lua error I got earlier today. Easy enough to avoid.
"I am the cat that walks by himself. All ways are alike to me."
--Rudyard Kipling, "The Cat That Walked By Himself"

Post Reply