Major Bug: Talent fizzle at lvl 37

Where bugs go to lie down and rest

Moderator: Moderator

Message
Author
God Music
Low Yeek
Posts: 9
Joined: Thu Feb 09, 2012 8:45 pm

Major Bug: Talent fizzle at lvl 37

#1 Post by God Music »

Human bulwark here, level 37.

And suddenly all of my offensive talents produce the error screen. Heal infusions still work, as does repulse. But not assault, shield pummel, rush, etc.

The bug report is calling this an "Lua Error: /engine/interface/ActorTalents.lua:140:/engine/interface/ActorTalents.lua:129:attempt to index up value 'force_target' (a nil value)"

I would hate to lose all this game play. Can anyone help? Am I doomed?

Phoenix1
Thalore
Posts: 160
Joined: Mon Dec 05, 2011 8:25 pm

Re: Major Bug: Talent fizzle at lvl 37

#2 Post by Phoenix1 »

I've seen this with certain mistakes I make coding my Mage Knight classes. They use Arcane Combat, and if there's an error in a spell or something that triggers during Arcane Combat, something seems to happen that keeps that force_target thing in there and it breaks their talents. My best guess is that it has something to do with an error somewhere during...I dunno...Weapon Mastery, maybe? It auto-triggers talents again right? Or maybe Riposte...

Unfortunately, I don't know how to actually get rid of the problem once it's happened, but I'd guess that's where it came in at.

Canderel
Sher'Tul
Posts: 1252
Joined: Mon Nov 24, 2003 2:31 pm
Location: South Africa

Re: Major Bug: Talent fizzle at lvl 37

#3 Post by Canderel »

any addons?

God Music
Low Yeek
Posts: 9
Joined: Thu Feb 09, 2012 8:45 pm

Re: Major Bug: Talent fizzle at lvl 37

#4 Post by God Music »

Nope. No add-ons.

I can't believe it's ending this way, after hours and hours of play time. This makes the game basically unplayable. Why would anyone play if they know it could easily end like this?

Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

Re: Major Bug: Talent fizzle at lvl 37

#5 Post by Grey »

Can you post a link to your online character sheet? And the full error output from the te4_log.txt file in the T-engine directory.
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes

God Music
Low Yeek
Posts: 9
Joined: Thu Feb 09, 2012 8:45 pm

Re: Major Bug: Talent fizzle at lvl 37

#6 Post by God Music »

Bear with me here:

I just established my online profile at te4.org/users/godmusic

I can't seem to locate the txt file you reference. Where exactly in the T Engine package is it located?

God Music
Low Yeek
Posts: 9
Joined: Thu Feb 09, 2012 8:45 pm

Re: Major Bug: Talent fizzle at lvl 37

#7 Post by God Music »

Still can't find the log file, but the complete error (transcribed w hopefully no typos) reads as follows:

Lua Error: /engine/interface/ActorTalents.lua:140: /engine/interface/ActorTalents.lua:129: attempt to index upvalue 'force_target' (a nil value)
At [C]:-1
At [C]:1 error
At /engine/interface/ActorTalents.lua.140 useTalent
At /engine/interface/PlayerHotkeys.lua:116
At /engine/interface/PlayerHotkeys.lua:108 activate Hotkey
At /engine/HotkeysIconsDisplay.lua:274 onMouse
At /mod/class/Game.lua:1562 fct
At /engine/Mouse.lua:48

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: Major Bug: Talent fizzle at lvl 37

#8 Post by yufra »

We should be able to rescue the player, but it may take a bit of work to help narrow down the bug. My first guess is that your character's `getTarget` function was overwritten by using the right-click menu targeting and then not replaced due to a bug, or a weird save timing. Can you confirm that you have used right-click targeting before?

If this is the case, then there are two ways to set the character right. I'll put them in order of independence on your part since that means you will not have to rely on us too much. First, you can enable cheat-mode, got into the in-game Lua console and run the following:

Code: Select all

game.player.getTarget = engine.Actor.getTarget
Second, you can zip your savefile up, put it on some file sharing site and we can run the above and send you the fixed savefile back. We are busy, so even though this is the easiest for you I wouldn't expect a quick turnaround. Good luck!
<DarkGod> lets say it's intended

God Music
Low Yeek
Posts: 9
Joined: Thu Feb 09, 2012 8:45 pm

Re: Major Bug: Talent fizzle at lvl 37

#9 Post by God Music »

Many thanks for the help.

I did as you suggested, created the cheat file, opened the Lua console with the game open, and typed the line you described and then hit return. Then I closed the Lua console.

Now, tho, when I try to use a talent, while I don't get a bug screen, and it says 'god music uses overpower,' or whatever, nothing actually happens. And the action does not turn up in the game log.

Thoughts?

God Music
Low Yeek
Posts: 9
Joined: Thu Feb 09, 2012 8:45 pm

Re: Major Bug: Talent fizzle at lvl 37

#10 Post by God Music »

And yeah, I assigned my talents using right-click on the 'm' screen -- altho I did so both for the talents that are working (heal) and those that aren't (shield pummel, etc).

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: Major Bug: Talent fizzle at lvl 37

#11 Post by yufra »

That is what I get for typing without thinking too hard. Run this command in the Lua console:

Code: Select all

game.player.getTarget = mod.class.Player.getTarget
I made you take the base Actor's getTarget, not the Player's getTarget which is interactive.
<DarkGod> lets say it's intended

God Music
Low Yeek
Posts: 9
Joined: Thu Feb 09, 2012 8:45 pm

Re: Major Bug: Talent fizzle at lvl 37

#12 Post by God Music »

Fixed!


(thrilled)

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: Major Bug: Talent fizzle at lvl 37

#13 Post by yufra »

God Music wrote:Fixed!


(thrilled)
I can well imagine. :D I have seen this bug a few times but have yet to figure out what is actually causing it. If you can remember anything funny that happened just before this error started occurring I would greatly appreciate it. Cheers!
<DarkGod> lets say it's intended

Lorcanis
Higher
Posts: 56
Joined: Thu Oct 10, 2013 4:58 pm

Re: Major Bug: Talent fizzle at lvl 37

#14 Post by Lorcanis »

Sorry for necro, but I've ran into this bug aswell, fixed it by using yufra's lua command, but when I save the game, exit the program and load that character, I still get this lua error message on talents that requires melee target.

Any suggestions ?

EDIT: I can reproduce the cause of this bug, if its needed

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Major Bug: Talent fizzle at lvl 37

#15 Post by darkgod »

How do you reproduce it ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply