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,442
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 10-15-10, 10:33 AM  
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view AddOns

Forum posts: 554
File comments: 271
Uploads: 24
The most recent version seems to have been packaged without a containing folder.
__________________
Grab your sword and fight the Horde!
Report comment to moderator  
Reply With Quote
Unread 09-13-10, 06:33 AM  
Elkano
A Flamescale Wyrmkin
 
Elkano's Avatar
AddOn Author - Click to view AddOns

Forum posts: 131
File comments: 167
Uploads: 6
Code:
WowLua-WowLua vwowi:revision  Interactive Interpreter\WowLua.lua:559: attempt to index local 'entry' (a nil value)
WowLua-WowLua vwowi:revision  Interactive Interpreter\WowLua.lua:527: in function `OnAccept'
Interface\FrameXML\StaticPopup.lua:3476: in function `StaticPopup_OnClick':
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>
to reproduce: open WoWLua frame, enter something in the top code frame, click the X to close WoWLua and click ok in the popup
version is r40
__________________
This posting is made of 100% recycled electrons.
Report comment to moderator  
Reply With Quote
Unread 09-10-10, 11:45 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: possible leftover dead code in FAIAP.lua

Yep: http://www.wowinterface.com/download...dPurposes.html

You should use that version rather than mine.
__________________
"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-10-10, 11:30 AM  
Farmbuyer
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 43
File comments: 36
Uploads: 1
Re: Re: possible leftover dead code in FAIAP.lua

Originally posted by Cladhaire
My version of FAIAP is altered a bit to be local to WowLua only, or at least it used to be, but thanks!
Is there an "official for library use" FAIAP out there somewhere? Some cursory searching didn't turn anything up.

Right now I'm using a copy of the file from WowLua, ever so slightly edited to be local to my own addon, but with a test that if WowLua is already loaded then mine just looks at WowLua.indent instead.


Completely unrelated, and I'm not sure I care enough to fix it. It's due to the fact that I use the packager at WowInterface and Curse is just 'syncing' to that repository, so it doesn't get the benefit of the packager. I'll probably fix it at some point =).
Aye, it had the look of some automated process that hadn't quite survived the sync across hosting systems.
Report comment to moderator  
Reply With Quote
Unread 09-09-10, 11:42 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Re: possible leftover dead code in FAIAP.lua

Originally posted by Farmbuyer
Hi.

At the top of FAIAP.lua is the line

lib.revision = revision

but the 'revision' on the RHS here resolves to a nil global. This doesn't seem to cause any problems, however, as the revision field being assigned to is never used anywhere else.

I stumbled across this while looking into using FAIAP in one of my own addons, thought I'd mention it for the next time you were doing a cleanup pass.


My version of FAIAP is altered a bit to be local to WowLua only, or at least it used to be, but thanks!

edit: Possibly related note, the Version metadata field on the curse.com package is distributed as "Version: wowi:revision", which then shows up inside the WowLua.VERSION string. Somewhere, it looks like, a search-and-replace operation has fallen down. :-)
Completely unrelated, and I'm not sure I care enough to fix it. It's due to the fact that I use the packager at WowInterface and Curse is just 'syncing' to that repository, so it doesn't get the benefit of the packager. I'll probably fix it at some point =).
__________________
"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-09-10, 11:31 AM  
Farmbuyer
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 43
File comments: 36
Uploads: 1
possible leftover dead code in FAIAP.lua

Hi.

At the top of FAIAP.lua is the line

lib.revision = revision

but the 'revision' on the RHS here resolves to a nil global. This doesn't seem to cause any problems, however, as the revision field being assigned to is never used anywhere else.

I stumbled across this while looking into using FAIAP in one of my own addons, thought I'd mention it for the next time you were doing a cleanup pass.

edit: Possibly related note, the Version metadata field on the curse.com package is distributed as "Version: wowi:revision", which then shows up inside the WowLua.VERSION string. Somewhere, it looks like, a search-and-replace operation has fallen down. :-)
Last edited by Farmbuyer : 09-09-10 at 11:37 AM.
Report comment to moderator  
Reply With Quote
Unread 08-20-10, 02:03 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Re: Re: Error when renaming a page

Originally posted by Mechrior
that specific phrase ChatFrameEditBox is no long er the same..... it needs to be changed to ChatFrame1EditBox in all it occurences in the lua!

same problem arrose with most addons especially carbonite!!!!!
That is not the correct solution. i've already fixed a few places in this code where this occurs, I just obviously missed this one.
__________________
"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 08-17-10, 11:40 AM  
Mechrior
A Chromatic Dragonspawn
 
Mechrior's Avatar

Forum posts: 155
File comments: 120
Uploads: 0
Re: Error when renaming a page

Originally posted by Dornhelm
Hallo Cladhaire,

first of all, I would like to let you know, that I'm using this addon for a long time and it makes writing and testing of addons much easier. Good job!

The minor inconvenience is, that every time I rename a page, I get:

WowLua.lua line 421:
attempt to index global 'ChatFrameEditBox' (a nil value)

Afterwards, saving changes to that page is no problem.
that specific phrase ChatFrameEditBox is no long er the same..... it needs to be changed to ChatFrame1EditBox in all it occurences in the lua!

same problem arrose with most addons especially carbonite!!!!!
__________________
When the light in your heart shines, The rest of the world will pale in comparison


Report comment to moderator  
Reply With Quote
Unread 08-17-10, 08:22 AM  
Dornhelm
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Error when renaming a page

Hallo Cladhaire,

first of all, I would like to let you know, that I'm using this addon for a long time and it makes writing and testing of addons much easier. Good job!

The minor inconvenience is, that every time I rename a page, I get:

WowLua.lua line 421:
attempt to index global 'ChatFrameEditBox' (a nil value)

Afterwards, saving changes to that page is no problem.
Report comment to moderator  
Reply With Quote
Unread 07-18-10, 01:52 AM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Originally posted by Cladhaire
There's got to be a better way to do what you're doing =)
And there is, and quite easy one.
Just make an addon with sole purpose to have a SV.
And dump whatever you want to save to that SV.
Logout your character, and all your data will be right there.
Report comment to moderator  
Reply With Quote
Unread 07-17-10, 09:06 PM  
uselessx
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Originally posted by Cladhaire
I added a slash command to run a page by name (/wowluarun and /luarun). I've also added a config button to the toolbar which opens the interface options panel, where you can configure the font size. Let me know if you run into any issues with this.
Thankyou for these new additions.
Report comment to moderator  
Reply With Quote
Unread 07-17-10, 09:08 AM  
sdbrian2
A Murloc Raider

Forum posts: 6
File comments: 33
Uploads: 0
Thanks alot!
__________________
Always starting over...Goodbye, Brian
Last edited by sdbrian2 : 07-17-10 at 09:09 AM.
Report comment to moderator  
Reply With Quote
Unread 07-17-10, 08:27 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 Momo2k10
Greetings! Is it possible to make the lower textbox click/editable to copy text from it? I used print to get all Achievemet criterias for my Addon Critter Emote and had to type all names because text in the lower box is not selectable.
It would be quite a hack in order to do that, it's a scrolling message frame in the same way the chat frame is. There's got to be a better way to do what you're doing =)
__________________
"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-17-10, 08:05 AM  
Momo2k10
A Deviate Faerie Dragon
 
Momo2k10's Avatar
AddOn Author - Click to view AddOns

Forum posts: 11
File comments: 5
Uploads: 1
Greetings! Is it possible to make the lower textbox click/editable to copy text from it? I used print to get all Achievemet criterias for my Addon Critter Emote and had to type all names because text in the lower box is not selectable.
Report comment to moderator  
Reply With Quote
Unread 07-17-10, 07:14 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
I added a slash command to run a page by name (/wowluarun and /luarun). I've also added a config button to the toolbar which opens the interface options panel, where you can configure the font size. Let me know if you run into any issues with 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
Post A Reply



Category Jump: