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,356
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 07-16-07, 10:18 AM  
Andalia
A Defias Bandit

Forum posts: 2
File comments: 5
Uploads: 0
Load on Demand

I already like this very much.

There's just one thing that would make it even better imo
It would be very cool if you could add AddonLoader-support to this addon.
Since it would be optional, nobody would be hurt by the ace2 libs and afaik it wouldn't loose any of its funcionality.
It's just a minor thing anyway but it would be nice.

http://www.wowace.com/wiki/AddonLoader
__________________
Last edited by Andalia : 07-16-07 at 10:19 AM.
Report comment to moderator  
Reply With Quote
Unread 07-16-07, 10:34 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
I don't really see a need for that, as nothing is created until you invoke the addon. Its the exact same behavior you would see with AddonLoader.
__________________
"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 07-16-07, 11:01 AM  
Andalia
A Defias Bandit

Forum posts: 2
File comments: 5
Uploads: 0
If it loads on Login, the functions and some vars are created right away and with lod even they aren't loaded.
I always thought that this would make a difference.
But as I'm sure you know about that I guess it really doesn't make one.
I'm just curious because it is something I want know because I a few litte addons myself
__________________
Report comment to moderator  
Reply With Quote
Unread 07-16-07, 11:06 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 Andalia
If it loads on Login, the functions and some vars are created right away and with lod even they aren't loaded.
I always thought that this would make a difference.
But as I'm sure you know about that I guess it really doesn't make one.
I'm just curious because it is something I want know because I a few litte addons myself
For a larger addon, it can make an enormous difference, but for something as small as WowLua, its a negligable difference.
__________________
"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 07-20-07, 10:04 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 237
File comments: 137
Uploads: 12
Is there any chance you could make the screen clamping a bit more forgiving? I like to move my code windows partially off the screen since it's more efficient (read: easier) than resizing. Or perhaps some sort of special click to minimize the frame like double clicking on a mac os title bar...
Report comment to moderator  
Reply With Quote
Unread 09-04-07, 01:18 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 JaedxRapture
[b]I noticed some strange behaviour with this addon that annoyed me a little bit. It doesn't seem to properly indent blocks. For example, the following block:
Code:
if someCondition and someOtherCondition then
      doSomething()
elseif yetAnotherCondition then
      doSomethingElse()
end
would show up like this in WowLua:
Code:
> if someCondition and someOtherCondition then
>> doSomething()
>> elseif yetAnotherCondition then
>> doSomethingElse()
>> end
rather than like this:
Code:
> if someCondition and someOtherCondition then
>> doSomething()
> elseif yetAnotherCondition then
>> doSomethingElse()
> end
This addon operates exactly as a standalone Lua interpreter does. There is no way to tell when you've ended the next level of the block, so it doesn't even try. I don't have plans to change this here.

However, I plan to introduce a block mode that allows you to easily write longer functions without needing to use the interpreter.
__________________
"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 04-30-08, 05:57 AM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
r8 seems to be packed incorrectly. (no main folder) Just fyi
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 04-30-08, 06:14 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
r8 seems to be packed incorrectly. (no main folder) Just fyi
Thanks, I didn't pack it.. but I can certainly re-pack it.
__________________
"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 05-08-08, 07:41 PM  
Treader
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 15
Uploads: 3
This is neat. I do have 1 suggestion, though, I would love to have the option to press the up arrow to cycle through the last typed commands.

Edit: It's really easy to add this functionality. Just put this into the OnEnterPressed handler in the XML file:
Code:
local text = self:GetText();
WowLua:ProcessLine(text);
self:AddHistoryLine(text);
Last edited by Treader : 05-08-08 at 08:26 PM.
Report comment to moderator  
Reply With Quote
Unread 05-09-08, 12:54 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 Treader
This is neat. I do have 1 suggestion, though, I would love to have the option to press the up arrow to cycle through the last typed commands.

Edit: It's really easy to add this functionality. Just put this into the OnEnterPressed handler in the XML file:
Code:
local text = self:GetText();
WowLua:ProcessLine(text);
self:AddHistoryLine(text);
Yeah, not sure how this got left out, since it was in the last version. I'll add it back in.
__________________
"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 05-09-08, 03:30 PM  
Resa1983
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 13
Uploads: 1
Errors :(

Having some issues right now.. Just bought the book (skimming through the first 2 chapters because of C & Java knowledge), figured I'd try wowlua out as its suggested, and getting a few errors popping up...

R19 version from wowinterface, I get this error when opening wowlua via /wowlua or /lua:
Code:
[2008/05/09 17:28:02-103-x1]: WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:582: attempt to index local 'entry' (a nil value)
Interface\FrameXML\ChatFrame.lua:3032: in function `ChatEdit_ParseText':
Interface\FrameXML\ChatFrame.lua:2724: in function `ChatEdit_SendText':
Interface\FrameXML\ChatFrame.lua:2745: in function `ChatEdit_OnEnterPressed':
<string>:"*:OnEnterPressed":1: in function <[string "*:OnEnterPressed"]:1>

  ---
WoWLua version from the wowprogramming website I can actually open, however I get these errors:

Code:
[2008/05/09 17:17:48-102-x3]: WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:411: attempt to index local 'entry' (a nil value)
WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:262: in function `Button_OnClick'
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>

  ---
Code:
[2008/05/09 17:18:01-102-x2]: WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:57: attempt to index local 'entry' (a nil value)
WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:418: in function `Button_Lock'
WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:264: in function `Button_OnClick'
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>
Code:
[2008/05/09 17:18:04-102-x5]: WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:563: attempt to index local 'entry' (a nil value)
WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:279: in function `Button_New'
WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:254: in function `Button_OnClick'
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>

  ---
Code:
[2008/05/09 17:18:26-102-x3]: WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:563: attempt to index local 'entry' (a nil value)
WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:551: in function `Button_Close'
WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:274: in function `Button_OnClick'
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>

  ---
Report comment to moderator  
Reply With Quote
Unread 05-09-08, 03:34 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 237
File comments: 137
Uploads: 12
Re: Errors :(

Exit WoW completely and then delete the following file:

World of Warcraft\WTF\Account\<account name>\SavedVariables\WowLua.lua

When you go back into the game it should work.

If the same thing happens again, be sure to let us know. Those error messages indicate that either all the pages got deleted or the UI was on a page that didn't exist anymore (both would be bugs).

This may have happened if you had an older version of WowLua installed previously, in which case you shouldn't see it again.
Last edited by Cogwheel : 05-09-08 at 03:40 PM.
Report comment to moderator  
Reply With Quote
Unread 05-09-08, 03:56 PM  
Resa1983
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 13
Uploads: 1
Re: Re: Errors :(

Originally posted by Cogwheel
Exit WoW completely and then delete the following file:

World of Warcraft\WTF\Account\<account name>\SavedVariables\WowLua.lua

When you go back into the game it should work.

If the same thing happens again, be sure to let us know. Those error messages indicate that either all the pages got deleted or the UI was on a page that didn't exist anymore (both would be bugs).

This may have happened if you had an older version of WowLua installed previously, in which case you shouldn't see it again.
Deleted the file, can now load it up again via /lua, however clicking the delete button I get the popup "You have unsaved changes on this page that will be lost if you navigate away from it. Continue?" (which is normal), however on clicking OK still I still get the the same errors:

Code:
[2008/05/09 17:53:33-112-x1]: WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:411: attempt to index local 'entry' (a nil value)
WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:262: in function `Button_OnClick'
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>

  ---
Code:
[2008/05/09 17:53:34-112-x3]: WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:396: attempt to index local 'entry' (a nil value)
WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:433: in function `OnAccept'
Interface\FrameXML\StaticPopup.lua:2675: in function `StaticPopup_OnClick':
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>

  ---
Last edited by Resa1983 : 05-09-08 at 03:57 PM.
Report comment to moderator  
Reply With Quote
Unread 05-09-08, 03:59 PM  
Resa1983
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 15
File comments: 13
Uploads: 1
Re: Re: Re: Errors :(

Originally posted by Resa1983
Deleted the file, can now load it up again via /lua, however clicking the delete button I get the popup "You have unsaved changes on this page that will be lost if you navigate away from it. Continue?" (which is normal), however on clicking OK still I still get the the same errors:

Code:
[2008/05/09 17:53:33-112-x1]: WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:411: attempt to index local 'entry' (a nil value)
WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:262: in function `Button_OnClick'
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>

  ---
Code:
[2008/05/09 17:53:34-112-x3]: WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:396: attempt to index local 'entry' (a nil value)
WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:433: in function `OnAccept'
Interface\FrameXML\StaticPopup.lua:2675: in function `StaticPopup_OnClick':
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>

  ---
Once I get the first error & decide to close wowlua, I keep getting this error
Code:
[2008/05/09 17:28:02-103-x1]: WowLua-WowLua 1.0 Interactive Interpreter\WowLua.lua:582: attempt to index local 'entry' (a nil value)
Interface\FrameXML\ChatFrame.lua:3032: in function `ChatEdit_ParseText':
Interface\FrameXML\ChatFrame.lua:2724: in function `ChatEdit_SendText':
Interface\FrameXML\ChatFrame.lua:2745: in function `ChatEdit_OnEnterPressed':
<string>:"*:OnEnterPressed":1: in function <[string "*:OnEnterPressed"]:1>

  ---
until I delete the wowlua file from wtf folder.
Report comment to moderator  
Reply With Quote
Unread 05-09-08, 04:01 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
AddOn Author - Click to view AddOns

Forum posts: 237
File comments: 137
Uploads: 12
Thanks for the update. I'm looking into this.

Edit: Found the problem. Should have a fix soon.

Done! Enjoy
Last edited by Cogwheel : 05-09-08 at 04:23 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: