'My' ClassPower element seems to crash with '/fstack'
Hi all,
I've not been touching my Class Power element and even '/fstack' for ages. Just today I've accidentally pressed the hotkey for '/fstack' command and it gave me the following error. Code:
2x invalid key to 'next' Lua Code:
I have also tested with example code provided on class power and it did not cry for such error :( Could anyone please explain me why and how this error is occurring? Thank you! -- Edit #1 Basically this occurs when at least ONE class power bar (one combo point) is visible. |
Give names to your bars.
Lua Code:
In general, names aren't mandatory, but sometimes, like in this particular case, /fstack is very very picky. -- edit #1 When you're "nesting" one frame table inside another one like so: frame[1] = anotherFrame, you must give anotherFrame a proper name, it's only needed when you index w/ numbers, if you do something like this: frame["1"] = anotherFrame, you can leave anotherFrame nameless. Once again, it only applies to "nesting" inside other frames. For example, doing something like this won't cause any issues: Lua Code:
|
Hi lightspark,
First of all, Thank you so much and I really appreciate your help! I gave each of those elements a name to avoid '/fstack' crying :D Yeap, it's definitely working :banana: Lua Code:
So, I do get that it's happening because of nested frames, with numeric as their key instead of string for inner frames, where inner frames do not have their unique name. But why...? I had a look at Blizzard_DebugTools-1.0.lua as stated on a error log, but it's totally out of my field :confused: |
Quote:
The issue is in the backend, C code, it might be a function that iterates through or does something w/ userdata, which is frame[0], but then it tries to do the same w/ unnamed frames: frame[1], frame[2], etc. It might be something else. Sitting here and guessing is a waste of time. |
Quote:
Time to proceed forward then :banana: |
All times are GMT -6. The time now is 08:27 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI