Lua API global Variable Viewer (gvv)

by Ritn

This is a debugging tool. This mod adds commands /gvv and others and a hotkey(Ctrl+Shift+V) to allow you to check _G and global table of map or each mods. Only admins can use command if it is multiplay game. You have to input some code for temporary accessibility or have to edit "control.lua" of other mod or map to access global table of the mod or map. See "Helper" tab for instructions.

Utilities
2 months ago
1.0 - 2.0
3.72K

b [TODO] Wrong argument error

a month ago
(updated a month ago)

Hi! With gvv 0.5.15, I just noticed this error message in my chat:

__gvv__/modules/tree.lua:262: bad argument #1 of 2 to 'pairs' (table expected, got nil)

I'm not sure how to reproduce that because I don't know what I did when the message appeared (didn't notice it immediately as the error was handled graciously and caused just this message). The bug can be fixed by providing a empty table to fall back on:

for k, obj in pairs(tbl or {}) do

But of course, it would be better to find out why tbl could be nil in the first place. :-)

a month ago

Hi, it doesn't seem like it's going to be too much of a problem right now. I'll keep it on my to-do list for when I have more time to mod.

a month ago

That's OK, thank you! :-)

New response