[IW5 error] BG_IndexForString: unknown token 'throwingknife': (mp/playeranim.script, line 210)
-
LastDemon99wrote on Jul 25, 2023, 1:10 PM last edited by LastDemon99 Jul 25, 2023, 5:05 PM
Regarding the error that is appearing in mw3, I was making a script and it appeared, so I know a way to replicate it... well, I don't know if it will help, and I don't know where to report it, so I'll comment here.
One way to replicate the error is to use the function givePerk( perkName, useSlot )
works correctly unless you send it an object property as an argument Example:[Works]
player givePerk("specialty_quickdraw", false);
test = "specialty_quickdraw"; player givePerk(test, false);
[Com_ERROR: §BG_IndexForString: unknown token 'throwingknife': (mp/playeranim.script, line 210)]
player givePerk(self.customStreak, false);
test = self.customStreak; player givePerk(test, false);
[Works]
player givePerk(self.customStreak + "", false);
test = self.customStreak + ""; player givePerk(test, false);
[Post Update]
When executed directly as a string in a for loop also crash
[Com_ERROR: §BG_IndexForString: unknown token 'throwingknife': (mp/playeranim.script, line 210)]
perk = ""; for (i = 0; i < self.customStreak.size - 3; i++) perk += self.customStreak[i];
[Works]
_perk = self.customStreak; perk = ""; for (i = 0; i < _perk.size - 3; i++) perk += _perk[i];
-
I got this error randomly and now I can't even play anymore
-
onefourkrpmwrote on Jul 26, 2023, 9:34 PM last edited by onefourkrpm Jul 27, 2023, 12:36 AM
-
Getting this bug as well, is it anything to do with https://github.com/ineedbots/piw5_bot_warfare ?
Didn't happen until I updated my client. -
The issue has been fixed by us and the next Plutonium update will include this fix.
There is no ETA on the update release date, but it's going to be soon -
1/5