Page 1 of 2
Major Bug: Talent fizzle at lvl 37
Posted: Thu Feb 09, 2012 8:50 pm
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?
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 1:25 am
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.
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 8:03 am
by Canderel
any addons?
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 12:06 pm
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?
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 1:39 pm
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.
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 1:55 pm
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?
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 2:36 pm
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
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 5:37 pm
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!
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 6:35 pm
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?
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 6:47 pm
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).
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 7:04 pm
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.
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 7:11 pm
by God Music
Fixed!
(thrilled)
Re: Major Bug: Talent fizzle at lvl 37
Posted: Fri Feb 10, 2012 7:18 pm
by yufra
God Music wrote:Fixed!
(thrilled)
I can well imagine.

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!
Re: Major Bug: Talent fizzle at lvl 37
Posted: Tue Nov 19, 2013 12:26 pm
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
Re: Major Bug: Talent fizzle at lvl 37
Posted: Tue Nov 19, 2013 1:07 pm
by darkgod
How do you reproduce it ?