|
||||||
| General AddOns Authors, post your release ready addons here to get feedback or just to let everyone know about it. | ||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Full Member
Join Date: Oct 2008
Location: Wevelgem, BE
Posts: 136
|
http://www.wowace.com/projects/mindreader/
LibMindReader is a mixin library (can also run 'not mixed in') that generates an AceConfigDialog-table from a variable. Running this table then allows the user to peek, poke and prod the variable in the following ways: - The table structure is shown as a tree. Efforts have been done do avoid recursiveness due to tables linking each other. - Selecting a table node in the tree shows an input box where the user can input some code and execute it as a method of that node. - Selecting a number or a string shows an input box where the value can be viewed and edited. Editing is not available if the number or string is not a member of a known table. - Selecting a function shows an execute button to execute the function. An inputbox is also provided to type in code to generate parameters for the call. Because the parameters of a function can not be determined from within Lua the addon being debugged can provide LibMindReader with a tip through calling of :AddFtionTip(func, paramstring, ismethod) or :AddFtionTips(tiptable). When building the AceConfig-node for the function LibMindReader will use paramstring to help the user. The builds can be managed using a standalone addon called MindBrowser (not yet created) See also http://www.wowace.com/projects/mindreader/pages/usage/ |
|
|
|
|
|
#2 |
|
Hero Member
Join Date: Apr 2006
Posts: 807
|
I fail to see the purpose of this. Libraries should not be written if nobody is going to use them. Useless libraries will have to answer to my wrath eventually. Libraries that don't follow the same short project naming convention as the rest of the libraries will also have to answer to my wrath. And you used WowAddonStudio, you can't really get much more fail than that. I need a 'move to curseforge' moderator option.
|
|
|
|
|
|
#3 |
|
Legendary Member
Join Date: May 2006
Location: Arizona
Posts: 3,500
|
Arrowmaster, things like this are useful for debugging weird shit IMO, i've had several instances where this sort of thing would have been useful to find out why a function isn't working properly or where things are in following a "what is self in this context" problem. Tho i got by with /dump, this would have been prefered.
__________________
Author of GuildCraft, SickOfClickingDailies, and CursorCooldown "I was there in the beginning... and things were very different back then" --An Echo from a time before. |
|
|
|
|
|
#4 |
|
Hero Member
Join Date: Apr 2006
Posts: 807
|
Is that the purpose of this? That's nothing like what the post or description describe it as from what I could tell.
|
|
|
|
|
|
#5 | |
|
Seal Cub Clubbing Club
|
Quote:
![]() |
|
|
|
|
|
|
#6 |
|
Legendary Member
Join Date: Nov 2006
Posts: 2,674
|
How about making tabcompletion work on tables
/print Prat.<tab through fields> That'd be spiffy. |
|
|
|
|
|
#7 | |||
|
Full Member
Join Date: Oct 2008
Location: Wevelgem, BE
Posts: 136
|
Quote:
1. you don't HAVE to do function tips. They just ease the debugging process by helping the addon dev remember what parameters a certain function/method needs. 2. The accompanying MindBrowser addon which I will write once BeneCast 10 is done will have the posibility of you pasting your whole source file in an editbox and MindBrowser will add function tips FOR YOU and spit it out in another editbox. How's that for convenience? Quote:
It lets the developer inspect a variable without awkward slash commands. I find it hard to believe ANY developer NOT wanting this library (still, it could happen ).Quote:
- Finishing BeneCast 10 - Making MindBrowser (manage MindReader-builds and aid in generating function tips) - Making BreadCrumbs (same lib+addon style development tool to be able to go back in a callstack and see the value of certain variables, using MindReader off course to visualize it) - Maybe make a RDBMS-library for WoW. Reception in the "Addon Ideas" forum wasn't great though. - Adding a "table printer' (name needs work ) with tab-completion will either be at the end or after MindBrowser depending on how I feel my knowledge of the chatframe is.Last edited by Wintrow2; 11-06-2008 at 09:07 AM. |
|||
|
|
|
|
|
#8 | |
|
Asian Sheep Lover
Join Date: Aug 2007
Location: Singapore
Posts: 3,556
|
Quote:
__________________
Author/Maintainer of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, Routes, HandyNotes and some others. |
|
|
|
|
|
|
#9 | |
|
Seal Cub Clubbing Club
|
Quote:
Code:
local link
local function filter(msg)
link = msg:match("|Hitem:(%d+):") or msg:match("|H(%a+):") -- msg:match("|H([sqe][pun][ec][lsh][lta]n?t?):")
if link and db.item[link] or db[link] then
return true
end
end
ChatFrame_AddMessageEventFilter("CHAT_MSG_CHANNEL", filter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_SAY", filter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_YELL", filter)
ChatFrame_AddMessageEventFilter("CHAT_MSG_TEXT_EMOTE", filter)
|
|
|
|
|
|
|
#10 |
|
Full Member
Join Date: Oct 2008
Location: Wevelgem, BE
Posts: 136
|
I would blame my narrow view of disbelief upon the, apparently incorrect, assumption that people were blessed with the same faulty memory my brain is equipped with. As such I assumed (another nono of course) that this Lib would be widely accepted, praised and I would be welcomed into the WoWAce pantheon of dev-gods.
Now, with my dreams shattered, I am alone instead of many. Cast down from my fantasy into the barren truth of reality. I suppose I have to thank you, Arrowmaster and Phanx, for this. Yet, this is not the first time this has happened. And according to Battlestar Galactica (reimagined series of course) lore 'all this has happened before, and it will happen again'. See you in the official thread of my next crackpott idea. All kidding aside: Okay, so not ALL devs will use this. Even if only one other than me uses it it will have been worth posting it here. Please don't slag an idea because you personally don't see yourself using it. Adding to that: I am a pretty verbose developer. I write my code with the intention that I may forget what I wrote where or what a certain var meant. So I put it in places I expect myself to look and I name my variables very descriptive. Regex-expressions have always been very 'chinese' to me (although I do comprehend their power I do not master it). With that I invite anyone to overview my code and point out: - glaring mistakes - extreme inefficiencies - things that can be done by using a certain, pre-existing, library advice like 'write t instead of tablevar' won't help though. Last edited by Wintrow2; 11-06-2008 at 01:45 PM. |
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
All times are GMT. The time now is 05:04 PM.
WowAce Forums










).
) with tab-completion will either be at the end or after MindBrowser depending on how I feel my knowledge of the chatframe is.
