Download
(181Kb)
Download
Compatible with Retail, Classic & TBC
Updated: 03-24-24 08:14 AM
Pictures
File Info
Compatibility:
Plunderstorm (10.2.6)
Classic (1.15.1)
WOTLK Patch (3.4.3)
Updated:03-24-24 08:14 AM
Created:unknown
Downloads:67,388
Favorites:350
MD5:
10.2.6

WowLua  Popular! (More than 5000 hits)

Version: v1.1.1-release
by: Cladhaire [More]

WowLua should be classic compatible!

WowLua is an in-game Lua scripting environment that includes an interactive Lua interpreter as well as a multi-page script editor. Other features include:

  • Syntax coloring, courtesy of krka's spectacular For All Indents and Purposes library
  • Sleek buttons, courtesy of Mikk
  • When WowLua is running code, it defines a global function print() which directs output to the WowLua window, for convenience. This global is removed when not running from WowLua
  • Can run WowLua pages from the commandline using /wowluarun or /luarun. Each slash command takes the name of a page, and prints any issues or activity to the chat frame. These can thus be used from macros.
  • Can open WowLua using /wowlua or /lua. Both of these slash commands will take a lua expression and run it, if provided:

/lua print(14) will open WowLua and print the number 14 to the output window.

Please feel free to post any comments or questions here, you'll find I'm relatively responsible. This addon has been written primarily as a companion tool for World of Warcraft Programming: A Guide and Reference for Creating WoW Addons.

WowLua
v1.1.1-release (2024-03-24)
Full Changelog Previous Releases
  • Fix luacheckrc
Beta Files (1)
File Name
Version
Hits
Size
Author
Date
r8
2,363
161kB
Cogwheel
04-29-08 09:25 PM


Archived Files (5)
File Name
Version
Size
Author
Date
v1.0.5-release
180kB
Cladhaire
04-01-23 04:58 AM
v1.0.4-release
180kB
Cladhaire
12-14-22 10:19 AM
v1.0.3-release
180kB
Cladhaire
10-25-22 08:53 AM
v1.0.2-release
180kB
Cladhaire
10-04-22 09:11 AM
v1.0.1-alpha
180kB
Cladhaire
10-01-22 12:59 AM


Post A Reply Comment Options
Unread 11-10-08, 05:52 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Originally posted by xbeeps
Excellent addon, and a very good replacement for myDebug which is now broken. I have two suggestions:

1) Add the following code to the toc:

## LoadManagers: AddonLoader
## X-LoadOn-Slash: /wowlua, /lua

This allows it to load automatically when the slash command is executed, if AddonLoader is installed. Otherwise it is just ignored. This saves the load time for those 99/100 sessions where you're not using it.

2) Use something else than print, as that symbol is now already in the global namespace for use by addons (it was introduced in 3.0.2 i believe).
The .TOC changes have been made. I had meant to put AddonLoader support in a while ago, so the code should support it just fine. As for changing the name of the print function, I have no plans to do that at this time. This addon is meant to be able to act as a Lua interpreter, and that means taking code that works in stock Lua and having it work here.

It should not redefine the global print function, which you can still access via getfenv(0).print, if desired.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 11-11-08, 01:08 PM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Nice changes, Thank you, Cladhaire!
Report comment to moderator  
Reply With Quote
Unread 11-11-08, 01:17 PM  
Scilia
A Defias Bandit

Forum posts: 3
File comments: 7
Uploads: 0
not really about the addon per say..

but im getting a strange lua error, thought you savy people could possibly tell me what it is, getting no help from bliz:

Interface/frameXML/UIpanel templates.lua:32: attempt to index local 'tab' (a number value)

any help would be appreciated
Report comment to moderator  
Reply With Quote
Unread 11-11-08, 01:29 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Re: not really about the addon per say..

Originally posted by Scilia
but im getting a strange lua error, thought you savy people could possibly tell me what it is, getting no help from bliz:

Interface/frameXML/UIpanel templates.lua:32: attempt to index local 'tab' (a number value)

any help would be appreciated
It means someone or something is calling the function that's on or near line 32, and being passed incorrect arguments. Most specifically you probably need to pass the frame as the first argument to that function. However, without more information, it's almost impossible to tell.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 11-11-08, 01:37 PM  
Scilia
A Defias Bandit

Forum posts: 3
File comments: 7
Uploads: 0
whew...lol...ok, how would i get more information on that per say?
Report comment to moderator  
Reply With Quote
Unread 11-11-08, 02:04 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Originally posted by Scilia
whew...lol...ok, how would i get more information on that per say?
You'd need to give us at the very least a stack traceback.. or the code that is calling into the UI template, etc. The easiest way to get a stack traceback is to download and install Swatter, a bug-tracking addon:

http://auctioneeraddon.com/dl/Swatter/
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 11-13-08, 07:12 PM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
I'm getting this when trying to open any page through the "Open" dropdown menu:
Code:
Message: ..\AddOns\WowLua\WowLua.lua line 476:
   attempt to index local 'entry' (a nil value)
Debug:
   [C]: ?
   WowLua\WowLua.lua:476: GoToPage()
   WowLua\WowLua.lua:303: func()
   ..\FrameXML\UIDropDownMenu.lua:568: UIDropDownMenuButton_OnClick()
   [string "*:OnClick"]:1:
      [string "*:OnClick"]:1
I can still access all pages by navigating through them.
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 11-18-08, 11:07 PM  
Tifi
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 94
Uploads: 4
The fix for Lombra's error is in my last post. I just failed to include the error message.
Report comment to moderator  
Reply With Quote
Unread 11-24-08, 03:31 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
I've added an undo/redo system to WowLua as well as a set of keybindings to Run/Save the current page. Please play with the undo/redo system before relying on it as there may still be some edge cases where it may not behave as expected.

The "undo" points are whenever you run or save the code. I could probably add a system where it does series of changes but I don't really want to turn this into that type of a text editor, considering the overhead it would incur.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 11-24-08, 04:07 AM  
Lonny
Guest

Join Date: Not Yet
Forum posts: 0
File comments: 0
Uploads: 0
Originally posted by Cladhaire
I could probably add a system where it does series of changes but I don't really want to turn this into that type of a text editor, considering the overhead it would incur.
Heya, I think that the option would be handy to have.

Anyhow, it's awesome, great job mate.
Last edited by : 11-24-08 at 04:07 AM.
Report comment to moderator  
Edit/Delete Message Reply With Quote
Unread 11-24-08, 01:31 PM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
Thank you for the key bindings! But the key I use to toggle the window is also inserted into the command line. Either way, could you make the frame not request focus upon opening it?

And a minor thing.. the counter for new page naming isn't being reset. When I create a new page, it's named like "Untitled 48", when I only have 5 or so saved pages.
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 11-24-08, 03:51 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Originally posted by Lombra
Thank you for the key bindings! But the key I use to toggle the window is also inserted into the command line. Either way, could you make the frame not request focus upon opening it?

And a minor thing.. the counter for new page naming isn't being reset. When I create a new page, it's named like "Untitled 48", when I only have 5 or so saved pages.
I'll look into the first, but the naming isn't something I really plan to change right now. It helps prevent any duplicates without having to do any checking.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 01-01-09, 10:53 AM  
Alfuin
A Murloc Raider
 
Alfuin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 42
Uploads: 4
Talking WOW! LUA!

Amazing I have not discovered this addon before! Absolutely wonderful! Downloaded and installed, it will be SO much easier to work on ideas. True, other addons, like NotesUNeed, allows for editing lua code, loading, saving, executing, but this is much nicer, and with colored text too!!

/hug Chadhaire

Report comment to moderator  
Reply With Quote
Unread 05-18-09, 11:56 AM  
anseloth
Coding Archmage
 
anseloth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 46
Uploads: 3
is anyone trying to keep this addon up to date?

if there isn't anyone who is trying to keep this addon up to date, then i can always give it a try.

but, i am still new to programming mods, so, it would be a lot better for someone who is good at programming mods to do it. someone with experience in that field.

another mod that i found that helps with developing mods, and is also out of date, is http://www.wowinterface.com/download...fo.php?id=3999. thats DevTools, to be clear.

i would suggest that if someone steps up to the plate for this mod, that they consider doing the same for DevTools, too.
__________________



Report comment to moderator  
Reply With Quote
Unread 05-18-09, 12:12 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Re: is anyone trying to keep this addon up to date?

Originally posted by anseloth
if there isn't anyone who is trying to keep this addon up to date, then i can always give it a try.

but, i am still new to programming mods, so, it would be a lot better for someone who is good at programming mods to do it. someone with experience in that field.

another mod that i found that helps with developing mods, and is also out of date, is http://www.wowinterface.com/download...fo.php?id=3999. thats DevTools, to be clear.

i would suggest that if someone steps up to the plate for this mod, that they consider doing the same for DevTools, too.
Huh? This addon is fully up to date. What precisely is the problem?
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: