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,451
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 09-17-09, 01:16 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
It actually _used_ to, but Blizzard changed one of their templates that stopped it from working. I haven't had a chance to figure it out yet =/.
__________________
"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 09-17-09, 01:37 PM  
Nandini
A Deviate Faerie Dragon

Forum posts: 0
File comments: 11
Uploads: 0
Originally posted by Cladhaire
It actually _used_ to, but Blizzard changed one of their templates that stopped it from working. I haven't had a chance to figure it out yet =/.
That makes perfect sense, I hadn't used WowLua for a while, but I didn't remember seeing this curious behavior before. It's a fairly minor inconvenience, especially since I can undo things easily.

Thanks again for such a great tool!
Report comment to moderator  
Reply With Quote
Unread 09-28-09, 10:30 PM  
ZillahGiovanni
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Trouble with Spell names in non English locales

I'm have ruRU client and can't use english spell names, but localised names not work 8(
Last edited by ZillahGiovanni : 09-28-09 at 11:42 PM.
Report comment to moderator  
Reply With Quote
Unread 09-29-09, 02:33 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Re: Trouble with Spell names in non English locales

Originally posted by ZillahGiovanni
I'm have ruRU client and can't use english spell names, but localised names not work 8(
I'm not terribly sure why this is an issue with WowLua. What are you actually trying to do?
__________________
"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 09-30-09, 08:42 AM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Re: Re: Trouble with Spell names in non English locales

Originally posted by Cladhaire
I'm not terribly sure why this is an issue with WowLua. What are you actually trying to do?
I think it's not an issue with WowLua, rather - with WoW itself.
WoW UI is not unicode-friendly
While printing in chat is done in unicode, writing unicode messages is not possible... this is the issue with spell names when you are to enter them in Lua editor window. They plainly not work. The only possibility is to use spell ID's, but i'm not sure about notation.
Report comment to moderator  
Reply With Quote
Unread 09-30-09, 08:54 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Re: Re: Re: Trouble with Spell names in non English locales

Originally posted by AnrDaemon
I think it's not an issue with WowLua, rather - with WoW itself.
WoW UI is not unicode-friendly
While printing in chat is done in unicode, writing unicode messages is not possible... this is the issue with spell names when you are to enter them in Lua editor window. They plainly not work. The only possibility is to use spell ID's, but i'm not sure about notation.
You can most certainly include input, it just must be encoded in UTF-8 (or am I missing something). You should always be using spell ids rather than spell names (however) if you want your addon to work on more than one locale. Doing that is trivial.

I'm not not quite sure what you'd like me to fix (or how I can help 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 10-14-09, 07:34 PM  
Trebot
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Question WowLua install

Just installed WowLua. In game when I type /lua, I get this error message:

Message: Interface\AddOns\WowLua\WowLua.lua:843: WowLuaFrameEditBoxLineTest:SetText(): Font not set
Time: 10/14/09 18:31:17
Count: 1
Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:18: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
(tail call): ?
[C]: ?
[C]: in function `SetText'
Interface\AddOns\WowLua\WowLua.lua:843: in function `UpdateLineNums'
[string "*:OnCursorChanged"]:4: in function <[string "*:OnCursorChanged"]:1>

Locals:

The wowlua window opens, but all buttons are green textures. Any help appreciated thx.
Report comment to moderator  
Reply With Quote
Unread 10-15-09, 02:23 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Re: WowLua install

Originally posted by Trebot
Just installed WowLua. In game when I type /lua, I get this error message:

Message: Interface\AddOns\WowLua\WowLua.lua:843: WowLuaFrameEditBoxLineTest:SetText(): Font not set
Time: 10/14/09 18:31:17
Count: 1
Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:18: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
(tail call): ?
[C]: ?
[C]: in function `SetText'
Interface\AddOns\WowLua\WowLua.lua:843: in function `UpdateLineNums'
[string "*:OnCursorChanged"]:4: in function <[string "*:OnCursorChanged"]:1>

Locals:

The wowlua window opens, but all buttons are green textures. Any help appreciated thx.
Did you ensure the file was unzipped properly? There should be a font file included in the addon (ends in .TTF) and if that's not there, you might get an error like this.
__________________
"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-09, 03:29 AM  
Trebot
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: WowLua install

Originally posted by Cladhaire
Did you ensure the file was unzipped properly? There should be a font file included in the addon (ends in .TTF) and if that's not there, you might get an error like this.
That was it. Don't know how but first download didn't have font or image folder. Must have been corrupted or incomplete or ??? working fine now. Appreciate quick response.
Report comment to moderator  
Reply With Quote
Unread 10-21-09, 11:21 AM  
DNBRMG
A Murloc Raider

Forum posts: 5
File comments: 20
Uploads: 0
Output to the Windows Clipboard

Is there a way to copy the contents of the output frame to the windows clipboard?

I was given a lua script to help me generate a list of bag and bank items by item name so that I can do some offline research as to whether or not I need to continue to keep the item or can safely destroy it to free up dwindling inventory space. A link to the official WoW forum post is included below for any one interested in the actual script itself. I know you can't write the information directly to a file due to the sandbox restrictions of WoW. I also know that WoW can interact with the windows clipboard as I have used the windows copy/paste functions to paste text form a web page into a macro and vice versa. So I though that if there was a way to copy the WoWLua output to the windows clipboard buffer I could use it to extract the data in game otherwise I would need an offline Lua interpreter as has been suggested the thread copied below.

http://forums.worldofwarcraft.com/th...66019453&sid=1
Report comment to moderator  
Reply With Quote
Unread 10-21-09, 11:36 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Re: Output to the Windows Clipboard

Originally posted by DNBRMG
Is there a way to copy the contents of the output frame to the windows clipboard?

I was given a lua script to help me generate a list of bag and bank items by item name so that I can do some offline research as to whether or not I need to continue to keep the item or can safely destroy it to free up dwindling inventory space. A link to the official WoW forum post is included below for any one interested in the actual script itself. I know you can't write the information directly to a file due to the sandbox restrictions of WoW. I also know that WoW can interact with the windows clipboard as I have used the windows copy/paste functions to paste text form a web page into a macro and vice versa. So I though that if there was a way to copy the WoWLua output to the windows clipboard buffer I could use it to extract the data in game otherwise I would need an offline Lua interpreter as has been suggested the thread copied below.

http://forums.worldofwarcraft.com/th...66019453&sid=1
I could possibly add a button that turns the messages in the output window into a box that could be selected, but I can't say its high on my list of priorities.

You can write an incredibly simple addon that then saves the information out to the SavedVariable file, so you can parse and do anything you want with it offline. Is there a reason that doesn't work for 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 10-21-09, 12:03 PM  
DNBRMG
A Murloc Raider

Forum posts: 5
File comments: 20
Uploads: 0
Re: Re: Output to the Windows Clipboard

Originally posted by Cladhaire
I could possibly add a button that turns the messages in the output window into a box that could be selected, but I can't say its high on my list of priorities.

You can write an incredibly simple addon that then saves the information out to the SavedVariable file, so you can parse and do anything you want with it offline. Is there a reason that doesn't work for you?
Thanks for the quick reply. I figured that there had to be a reason why the text in the output window was not selectable. It would be a nice feature for a future release whenever you can fit it in.

As much as I hate to admit it my programing/scripting skills have gone a little soft, okay alot soft. The Lua script I was given essentially parses the information in an existing saved variables file for the Possessions addon. So I suppose it would not be too hard to write my own addon that collects just the information I am really interested in, each item's name, then saves that off to a saved variables file. Time to dust of the cobwebs and break out the WD-40 to get the old gears moving again.

Thanks again.
Report comment to moderator  
Reply With Quote
Unread 01-24-10, 11:03 AM  
Lilithurian
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 4
Uploads: 1
How to use the Wowlua addon?

Hi,

I've recently bought the World of Warcraft Programming book and installed the Wowlua addon. However I am quiet puzzled on how to use this addon.

I understand that it allows me to write files in game, but where exactly are these files stored? Does this addon allow me to create the addon in game? When I write a new .xml file in game I cannot save it wherever I want it. How can I make addon files then? Also I cannot open any files that were not created in game.

Or is the addon only to be used as an interpretor, to test bits and pieces of code?

I've been reading the chapters of the book over and over but it's not quiet clear to me how I can use this addon.
Report comment to moderator  
Reply With Quote
Unread 01-24-10, 11:07 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Re: How to use the Wowlua addon?

Originally posted by Lilithurian
Hi,

I've recently bought the World of Warcraft Programming book and installed the Wowlua addon. However I am quiet puzzled on how to use this addon.

I understand that it allows me to write files in game, but where exactly are these files stored? Does this addon allow me to create the addon in game? When I write a new .xml file in game I cannot save it wherever I want it. How can I make addon files then? Also I cannot open any files that were not created in game.

Or is the addon only to be used as an interpretor, to test bits and pieces of code?

I've been reading the chapters of the book over and over but it's not quiet clear to me how I can use this addon.
WowLua is only for testing and writing Lua code within the game. It's not a text editor that can be used to write actual addons. It's there so you can run the interactive examples in-game without having to download a Lua interpreter (or use the online version). If you want to write addon files, you will need to use a text editor of your choice.

That's where you are (in the book) directed to create a directory, create a file and then add code to that file. Let me know if that doesn't make sense.
__________________
"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-07-10, 01:35 PM  
Lilithurian
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 4
Uploads: 1
Re: Re: How to use the Wowlua addon?

Originally posted by Cladhaire
WowLua is only for testing and writing Lua code within the game. It's not a text editor that can be used to write actual addons. It's there so you can run the interactive examples in-game without having to download a Lua interpreter (or use the online version). If you want to write addon files, you will need to use a text editor of your choice.

That's where you are (in the book) directed to create a directory, create a file and then add code to that file. Let me know if that doesn't make sense.
That was indeed a good explanation, thank you very much!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: