Download
(180Kb)
Download
Compatible with Retail, Classic & TBC
Updated: 04-01-23 04:58 AM
Pictures
File Info
Compatibility:
Dragonflight (10.0.2)
WOTLK (3.4.0)
Classic (1.14.3)
TBC Patch (2.5.4)
Updated:04-01-23 04:58 AM
Created:unknown
Downloads:67,265
Favorites:350
MD5:

WowLua  Popular! (More than 5000 hits)

Version: v1.0.5-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.0.5-release (2023-04-01)
Full Changelog Previous Releases
  • Fix for 10.1.0 PTR with removal of GetAddOnMetadata
Beta Files (1)
File Name
Version
Hits
Size
Author
Date
r8
2,363
161kB
Cogwheel
04-29-08 09:25 PM


Archived Files (4)
File Name
Version
Size
Author
Date
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 02-13-11, 06:11 AM  
Zerotorescue
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Great addon, I've been using it a lot to prevent the loading times when testing if some simple functions work.

Here I have two suggestions for the addon, the first is to be able to turn on auto-save in the settings. I usually don't have to save stuff (although doing so might be handy) but it's annoying to always have to confirm if I really want to close the window after trying some stuff. The second suggestion is to allow a user to enter the indentation in the settings. Personally I always use a tab to indent scopes so I can quickly go through a line. Copying the code as it is right now from WowLua into my text editor requires me to translate all spaces into tabs.

Both are minor things that I do not think will be too difficult but they would be great helps minimizing the manual actions required to test pieces of code.

Thanks.
Report comment to moderator  
Reply With Quote
Unread 02-02-11, 04:46 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
There is a binding for save current page, afaik. Open key bindings dialogue.
__________________
"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 02-02-11, 03:29 PM  
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 680
File comments: 373
Uploads: 15
No prob. Just like to mention what an awesome tool this thing is. Definitely better than the old ALT-TAB/save/reload cycle I've been using forever. Only it's missing is CTRL-S to save which I still do out of habit. Other than that, great tool. Will be using for a while to come.
Report comment to moderator  
Reply With Quote
Unread 02-02-11, 03:50 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Thank you.
__________________
"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 02-02-11, 12:58 AM  
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 680
File comments: 373
Uploads: 15
Originally posted by Cladhaire
When does this happen? It helps immensely if you can give me the conditions under which an error occurred.
Sorry, obviously forgot to put that up with the post. Happens when I had no saved files and attempted to Shift-Click the button to rename.

EDIT: Correction, it opened to the renaming frame just fine, but threw the error when I attempted to accept it.
Last edited by Sythalin : 02-02-11 at 01:00 AM.
Report comment to moderator  
Reply With Quote
Unread 02-01-11, 05:21 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
When does this happen? It helps immensely if you can give me the conditions under which an error occurred.
__________________
"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 02-01-11, 05:17 PM  
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 680
File comments: 373
Uploads: 15
Code:
Message: Interface\AddOns\WowLua\WowLua.lua:402: attempt to index local 'button' (a nil value)
Time: 02/01/11 17:15:18
Count: 1
Stack: Interface\AddOns\WowLua\WowLua.lua:402: in function `OnAccept'
Interface\FrameXML\StaticPopup.lua:3490: in function `StaticPopup_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals: self = StaticPopup1 {
 0 = <userdata>
 hideOnEscape = 1
 itemFrame = StaticPopup1ItemFrame {
 }
 button3 = StaticPopup1Button3 {
 }
 extraFrame = StaticPopup1ExtraFrame {
 }
 icon = StaticPopup1AlertIcon {
 }
 maxWidthSoFar = 420
 button2 = StaticPopup1Button2 {
 }
 moneyFrame = StaticPopup1MoneyFrame {
 }
 moneyInputFrame = StaticPopup1MoneyInputFrame {
 }
 text = StaticPopup1Text {
 }
 editBox = StaticPopup1EditBox {
 }
 timeleft = 0
 numButtons = 2
 exclusive = 1
 maxHeightSoFar = 113.00000088903
 button1 = StaticPopup1Button1 {
 }
 which = "WOWLUA_SAVE_AS"
}
name = "UIParentEditBox"
button = nil
(*temporary) = "UIParent"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'button' (a nil value)"
Report comment to moderator  
Reply With Quote
Unread 11-09-10, 09:06 PM  
Cybeloras
A Fallenroot Satyr
 
Cybeloras's Avatar
AddOn Author - Click to view AddOns

Forum posts: 28
File comments: 273
Uploads: 6
There is an error on line 400 of WowLua.lua:

Code:
local name = self:GetParent():GetName().."EditBox"
should be:
Code:
local name = self:GetName().."EditBox"
(The old code returns UIParentEditBox, which throws an error)
Report comment to moderator  
Reply With Quote
Unread 10-26-10, 01:17 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
I fail to see why '3' is not sensible.. it's used in many projects because they feel it's 'more than 2' and 'less than four'. I also don't understand how copy and pasting it to your project is an issue, simply re-indent it. If you don't have an editor that can do that for you, I suggest you get one.

The number of spaces used can be manually edited in FAIAP.lua.
__________________
"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 10-25-10, 04:53 PM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
It is possible to change indentation to something more sensible?
3 spaces is "neither two nor one and half", and copying the tested code to actual project turning formatting to a joke of itself.
Report comment to moderator  
Reply With Quote
Unread 10-16-10, 12:19 PM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Originally posted by Cladhaire
Git is superior for the way I write code =)
Got that. I've been using CVS up until recently, even with biggest projects. But when I got a few that require changes in several files for nearly every feature change, I switched to Subversion. And pretty much satisfied by it's flexibility for now.
Report comment to moderator  
Reply With Quote
Unread 10-16-10, 10:37 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Git is superior for the way I write code =)
__________________
"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 10-16-10, 10:04 AM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Originally posted by Cladhaire
For what it's worth, WowLua has moved from SVN to Git, so the old SVN repository will no longer work if you're tracking it that way. You can contact me for the information about the new repository if you need to.
Out of pure curiosity, what was the reason for such move?
If it can be put in short
Report comment to moderator  
Reply With Quote
Unread 10-16-10, 03:10 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
For what it's worth, WowLua has moved from SVN to Git, so the old SVN repository will no longer work if you're tracking it that way. You can contact me for the information about the new repository if you need to.
__________________
"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 10-15-10, 10:43 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 Lombra
The most recent version seems to have been packaged without a containing folder.
Ack, lemme fix that!
__________________
"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: