ZAM's Minion, currently in open beta, is a new AddOn manager optimized for use with ESO. Install, update & manage AddOns... Learn more!
Download
(16 Kb)
Download
Updated: 05/23/14 09:06 PM
Pictures
File Info
Compatibility:
Craglorn (1.1)
Live (1.0)
Updated:05/23/14 09:06 PM
Created:02/23/14 03:20 PM
Downloads:1,456
Favorites:40
MD5:
Zgoo - data inspection tool
Version: 1.01
by: SinusPi, Errc
Zgoo allows you to browse through tables and userdata to examine their values and components.

<b>Command usage:</b>
To use Zgoo, the chat command /zgoo is used.

/zgoo global or /zgoo _G - examines the global table. Some functions are grouped into categories "buckets". Also, some additional utilities are provided in the list.

/zgoo GuiRoot - From there you can see all the children in the GuiRoot:GetChildren() table.

/zgoo Any_Variable or zgoo Some_Function(blah) - Examine any Lua variable or function result.

/zgoo mouse - Examine the UI control that currently has your mouse's focus.

In the Zgoo window:
* Click the [+]/[-] buttons to expand/collapse tables and user data.
* Click [.] or [:] to call functions.
* The {...} button shows table contents inline, useful when you need to see one level deeper immediately
* The {@} button displays table addresses, useful when you suspect that two names actually link to the same table.

Extras:
- GetChildren function "added" for all userdata elements. This allows for easy access and visibility to all children. (This is not available by default)
- A__Zgoo_ToggleHidden is an alias to ToggleHidden. Moved it up the list for easy access.
- If a table has .tostring(), this gets shown inline.

TIP: Use Zgoo as not just a data explorer, but a quick-n-dirty interface to your debug commands. If you create YourAddon.someThings={} and each thing inside will have "function thing:tostring() return self.name end" and maybe a thing:debugMe() returning some interesting values, then you can /zgoo YourAddon, expand .someThings, and see a list of things with names shown, and you'll be able to click debugMe() on each thing. Or maybe even have a DeleteAllThings() function that you'd never need to call in your addon, but you'd use it to test how things are handled. If you're into that sort of thing, you could even make a whole set of functions to run them with just one click from Zgoo, without having to make a dedicated debug interface.


== Zgoo Event Tracker ==

/zgoo events

Track events in real time. Can unregister events by hitting the X button (reload to undo this). Hit + to expand the arguments for the event.



Also for convenience (maybe):

/zgoo free
Will unlock your mouse from the reticle so you can freely move it around the screen.


Known Issues:
- if some function call breaks it all, hold CTRL to disable automatic calling of Get*,Is*,Can* functions.
1.0 - New data bucket for Unit information. API # updated.
Now loads instead of breaking.
Also, properly handles multiple():calls():returning():tables():with():functions().

1.01 - Updated for ESO 1.1 (API 100004).
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Author
Date
1.0
15kB
SinusPi
03/29/14 10:29 PM
0.71
15kB
SinusPi
02/28/14 04:29 PM


Post A Reply Comment Options
Unread 08/17/14, 12:15 PM  
Deome
 
Deome's Avatar
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 49
Uploads: 7
Originally Posted by wmrojer
To prevent ZGOO from crashing while scrolling through table [1] you need to add the function GetTradingHouseSearchResultItemLink to the list of blacklisted function.
That was infinitely useful. Been bothering me for weeks and weeks--I knew it was a Get function, near the trading house, but never knew which one.
__________________
Deome
@deome, Loremonger, author of ddDataDaedra, ddShopkeeper, et. al.
"I am alive because that one is dead. I exist because I have the will to do so." -- Now-last, "Boethiah's Proving"
Deome is offline Report comment to moderator  
Reply With Quote
Unread 07/27/14, 07:10 AM  
wmrojer

Forum posts: 2
File comments: 51
Uploads: 0
To prevent ZGOO from crashing while scrolling through table [1] you need to add the function GetTradingHouseSearchResultItemLink to the list of blacklisted function.

The table BLACKLISTED in zgoo.lua at line 32 should look like this
Lua Code:
  1. local BLACKLIST = {
  2.     GetNamedChild="BLACKLISTED",
  3.     --IsChildOf="BLACKLISTED",
  4.     --GetAnchor="BLACKLISTED",
  5.     GetChild="BLACKLISTED",
  6.     GetClass="BLACKLISTED",
  7.     GetHandler="BLACKLISTED",
  8.     GetTradingHouseSearchResultItemInfo="CRASHES",
  9.     GetTradingHouseSearchResultItemLink="CRASHES",
  10. }

You can also hold down CTRL while scrolling to prevent zgoo from calling functions. Personally I think it would have been better if you needed to hold down CTRL to call functions since you rarely get any relevant information from calling functions without any input parameters anyway.
wmrojer is offline Report comment to moderator  
Reply With Quote
Unread 07/26/14, 03:04 PM  
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 369
File comments: 85
Uploads: 0
Same scrolling bug with me through the same table. No error message, just kicks me out. Not sure what it had got to as I wasn't reading the values as my stuff is right at the bottom of the list.
Last edited by Xrystal : 07/26/14 at 03:05 PM.
Xrystal is offline Report comment to moderator  
Reply With Quote
Unread 07/03/14, 05:59 PM  
fosley
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 33
Uploads: 1
I'm having the problem that the game crashes when using Zgoo to scroll through the list of items under the table [1]. If I scroll quickly, it just crashes, but if I carefully scroll one item at a time using the scroll wheel, the following shows up:
[.] GetTradingHouseListingPercentage() = 1
[.] GetTradingHousePostPriceInfo() = table [#3,3]
GetTradingHouseSearchResultItemInfo() = CRASHES

Then, if I scroll one more tick, the game crashes, giving me the popup "what were you doing when the game crashed" dialogue. I disabled every addon I have except Zgoo, and I still get the same crash.

If I run /script d(GetTradingHouseSearchResultItemInfo()), the game also crashes, so this is a problem with the game, rather than your addon (I ran the script after deleting all the addons from the addon folder and it still crashed). Still, it would be nice if there was a way to bypass this so I can try to debug my own addon.

Could you put in some kind of exception so it will ignore that particular function until it gets fixed?
fosley is offline Report comment to moderator  
Reply With Quote
Unread 06/26/14, 09:11 AM  
zgrssd
AddOn Author - Click to view AddOns

Forum posts: 281
File comments: 24
Uploads: 3
Originally Posted by Eleventeen
oddly i cant find this addon on minion..
It is listed under "Utilities -> Developer Ulities" on this site, wich is not covered by minion. It only covers "Stand Alone Addons".

I think I found a bug under 1.2.3:
While browsing through the _G.Fonts with zgoo I noticed that for every Font, for every entry of "GetChildren()" there is instead this exception message:
user:/AddOns/Zgoo/Zgoo.lua:439: function expected instead of nil
stack traceback:
user:/AddOns/Zgoo/Zgoo.lua:439: in function 'func'
user:/AddOns/Zgoo/Zgoo.lua:897: in function 'Zgoo:ButtonClick'
user:/AddOns/Zgoo/Zgoo.lua:238: in function '(anonymous)'
Last edited by zgrssd : 06/26/14 at 09:11 AM.
zgrssd is offline Report comment to moderator  
Reply With Quote
Unread 05/16/14, 02:16 PM  
Edda
 
Edda's Avatar
AddOn Author - Click to view AddOns

Forum posts: 56
File comments: 82
Uploads: 4
Really nice job. Has been usefull straight from the 30 minutes I started using it. Thx
__________________
return lolmode or item;
Edda is offline Report comment to moderator  
Reply With Quote
Unread 05/12/14, 10:45 PM  
Aiiane
 
Aiiane's Avatar
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 23
Uploads: 0
You might want to reconsider the addition of GetChildren, or at least name it to something that makes it obvious that it's added by Zgoo (e.g. "GetChildrenViaZgoo") - otherwise, addon authors may not realize that the function is provided by Zgoo and try to use it in their own addons, then be frustrated when it doesn't work (or even worse, when it works sometimes, because they've viewed the control in Zgoo, but not other times).
Aiiane is offline Report comment to moderator  
Reply With Quote
Unread 05/06/14, 11:08 AM  
Eleventeen

Forum posts: 16
File comments: 124
Uploads: 0
oddly i cant find this addon on minion..
Eleventeen is offline Report comment to moderator  
Reply With Quote
Unread 05/02/14, 12:38 PM  
SinusPi
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 5
Uploads: 3
Re: Search

Originally Posted by Criscal
Maybe I missed it - but is there any function to find functions and constants with a certain name in them. I would for example like to search for everything quest related as an example.
/zgoo find uest <- yes, case sensitive

However, quest-specific funcs are already gathered in a top level group.

Originally Posted by Aicam
While browsing through _G["SCENE_MANAGER"] i found some tables which where indexed with some other table.
Is there a way to expand these indexes to see what their tables contains ?
It was possible in the precursor to Zgoo, Spoo for WoW - so the functionality should still be somewhere in there. It showed two expand buttons for those cases, first expanded the index and the second the data. I could dig into it at some point, but not at this moment.
SinusPi is offline Report comment to moderator  
Reply With Quote
Unread 05/02/14, 07:46 AM  
Aicam

Forum posts: 16
File comments: 2
Uploads: 0
table indexed tables

While browsing through _G["SCENE_MANAGER"] i found some tables which where indexed with some other table.
Is there a way to expand these indexes to see what their tables contains ?
Aicam is offline Report comment to moderator  
Reply With Quote
Unread 05/01/14, 12:01 PM  
Criscal
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 58
Uploads: 3
Search

Hi,

Maybe I missed it - but is there any function to find functions and constants with a certain name in them. I would for example like to search for everything quest related as an example.
Very useful tool btw!

Best regards,

Criscal
Criscal is offline Report comment to moderator  
Reply With Quote
Unread 04/29/14, 09:40 PM  
lyravega
AddOn Author - Click to view AddOns

Forum posts: 93
File comments: 15
Uploads: 2
Very useful addOn mate, gives such insight

By the way, you may want to disable bb codes (if allowed) or put a space after ":" on description so it won't become "ebug"
Last edited by lyravega : 04/29/14 at 09:40 PM.
lyravega is offline Report comment to moderator  
Reply With Quote
Unread 04/14/14, 04:27 AM  
Errc
AddOn Author - Click to view AddOns

Forum posts: 30
File comments: 3
Uploads: 1
Originally Posted by Blythe
This is AWESOME. Thanks so much for developing it.

Any idea why when I copy something (/zgoo SOUNDS, in this case) it only copies the first few lines of the output? Seems like a bug but I can't tell what's causing it.

Also, maybe I'm an idiot, but I can't find anywhere what the {...} and @ in the upper right hand corner mean.

Thanks again!
The copy is restricted by the max size of text in an edit box (~1000) so anything longer can not be copied out via the clipboard. If you want to pull out more data you can modify it to spit stuff into saved vars and then get it there... So something like '/run Zgoo.sv.sounds = SOUNDS' or similarly.

The buttons at the top just toggle some additional information shown in-line. One is for memory addresses, the other shows the contents of a table in-line instead of having to expand it. Probably don't need this information and just options from when we were developing it.
Errc is offline Report comment to moderator  
Reply With Quote
Unread 04/12/14, 06:59 AM  
Blythe
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 15
Uploads: 1
This is AWESOME. Thanks so much for developing it.

Any idea why when I copy something (/zgoo SOUNDS, in this case) it only copies the first few lines of the output? Seems like a bug but I can't tell what's causing it.

Also, maybe I'm an idiot, but I can't find anywhere what the {...} and @ in the upper right hand corner mean.

Thanks again!
Blythe is offline Report comment to moderator  
Reply With Quote
Unread 04/06/14, 08:08 AM  
pjt15253
Spam Warrior
 
pjt15253's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 97
Uploads: 1
Thank you so much! Not sure how I'd have gotten SpamFilter completed without this!
pjt15253 is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: