PDA

View Full Version : tab error



bloodylemming
September 11th, 2022, 18:14
[ERROR] Script execution error: [string "common/scripts/buttongroup_tabs.lua"]:62: attempt to index field '?' (a nil value)

Don't know why I'm getting this error. All the tabs I expect to see are showing up. The ones I didn't want are deleted, via empty controller with delete set...

Need a clue on this, thankyou. !)

Moon Wizard
September 11th, 2022, 18:56
When encountering an error, you may need to follow the chain of templates/scripts. Also, remember that your ruleset code is layered on CoreRPG, so you may have to look there as well.

In this case, the template is called buttongroup_tabs, and runs a script called common/scripts/buttongroup_tabs.lua. If you open that file, you can see that those lines look like this:


for _,v in ipairs(aTabs[index].controls) do
window[v].setVisible(false);
end


So, the template is attempting to call a window control named by the subwindow tag in your "tabs" definition, and it can't find it.

If you're having trouble post the window class detail in CODE tags, showing the tabs control and all the other controls in the window class.

Regards,
JPG