Download
(178 Kb)
Download
Updated: 11-30-11 02:30 PM
Pictures
File Info
Updated:11-30-11 02:30 PM
Created:unknown
Downloads:42,120
Favorites:349
MD5:
WowLua  Popular! (More than 5000 hits)
Version: v40300-1.0.2
by: Cladhaire [More]
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.

commit 71bf3409526a3f8032a10c4658ec6759325e1143
Author: James Whitehead II <jnwhiteh@gmail.com>
Date: Wed Nov 30 21:28:45 2011 +0000

Update TOC for 4.3

commit 20d142b75e811bcd62daebfba01a7cf57b97eb23
Author: James Whitehead II <jnwhiteh@gmail.com>
Date: Tue Mar 8 15:53:58 2011 +0000

Fix a bug with the 'save as' button

commit 15c34bbf51af85a5ac7f6817ea056fe99b6a0e72
Author: James Whitehead II <jnwhiteh@gmail.com>
Date: Fri Oct 15 16:50:33 2010 +0100

Fix an error when navigating away from an unsaved page

commit 63dab616965a138382ccae3f59be7dd536c38adf
Author: James Whitehead II <jnwhiteh@gmail.com>
Date: Fri Oct 15 16:50:15 2010 +0100

Update .TOC

commit 0b6b9eb06ec656c578ea6fa91f8f6f80dccab7ed
Author: git-svn-migrate <nobody@example.org>
Date: Fri Oct 15 16:48:18 2010 +0100

Convert svn:ignore properties to .gitignore.

------------------------------------------------------------------------
r40 | Cladhaire-15704 | 2010-09-02 15:59:18 +0100 (Thu, 02 Sep 2010) | 2 lines

this -> self/getglobal -> _G

------------------------------------------------------------------------
r39 | Cladhaire-15704 | 2010-09-02 15:54:52 +0100 (Thu, 02 Sep 2010) | 2 lines

Initial fixes for WowLua in Cataclysm

------------------------------------------------------------------------
r37 | Cladhaire-15704 | 2010-08-20 09:07:00 +0100 (Fri, 20 Aug 2010) | 1 line

Fix ChatFrameEditBox issue
------------------------------------------------------------------------
r35 | Cladhaire-15704 | 2010-07-17 14:10:26 +0100 (Sat, 17 Jul 2010) | 7 lines

Add configurable font size, added a slash command, fixed bugs

* Added a new config button to the toolbar which will open the UI options panel to the WowLua page.
* This config panel can be used to customize the font size used for WowLua
* Fixed cursor navigation in the editor
* Added a slash command (/luarun /wowluarun) that takes the name of a page to run, and runs it

------------------------------------------------------------------------
r33 | Cladhaire-15704 | 2010-04-29 23:03:36 +0100 (Thu, 29 Apr 2010) | 1 line

Updating interface number in TOC
------------------------------------------------------------------------
r32 | Cladhaire-15704 | 2009-09-07 10:26:38 +0100 (Mon, 07 Sep 2009) | 1 line

Clicking on the output frame sets the focus to to the commandline edit box, courtesy of Sarog
------------------------------------------------------------------------
r31 | Cladhaire-15704 | 2009-08-05 10:23:50 +0100 (Wed, 05 Aug 2009) | 1 line

Interface version update

------------------------------------------------------------------------
r30 | Cladhaire-15704 | 2009-06-02 20:44:40 +0100 (Tue, 02 Jun 2009) | 3 lines

* Updated interface number
* Fixed an issue with slash commands when not using AddonLoader

------------------------------------------------------------------------
r29 | Cladhaire-15704 | 2008-11-24 09:28:45 +0000 (Mon, 24 Nov 2008) | 2 lines

Added the keybindings file, and the redo icon

------------------------------------------------------------------------
r28 | Cladhaire-15704 | 2008-11-23 18:49:29 +0000 (Sun, 23 Nov 2008) | 3 lines

* Added a primative undo/redo system for WowLua that should make the editor a bit more functional.
Please play with this feature before deciding to rely on it.

------------------------------------------------------------------------
r27 | Cladhaire-15704 | 2008-11-11 16:56:43 +0000 (Tue, 11 Nov 2008) | 2 lines

Added keybindings to RUN, SAVE, and SHOW/HIDE the window

------------------------------------------------------------------------
r26 | Cladhaire-15704 | 2008-11-11 16:46:01 +0000 (Tue, 11 Nov 2008) | 3 lines

* Fixed a mis-spelling in the .toc file that lead to AddonLoader support not working
* Fixed an issue where loading the addon via AddOnLoader would cause the main edit box to be too small

------------------------------------------------------------------------
r25 | Cladhaire-15704 | 2008-11-10 11:50:05 +0000 (Mon, 10 Nov 2008) | 2 lines

Updated .toc version and added AddonLoader support for /wowlua and /lua

------------------------------------------------------------------------
r24 | Cladhaire-15704 | 2008-10-17 09:06:18 +0100 (Fri, 17 Oct 2008) | 2 lines

* Removed wrath compatability checks

------------------------------------------------------------------------
r23 | Cladhaire-15704 | 2008-08-10 19:38:57 +0100 (Sun, 10 Aug 2008) | 2 lines

Added code to check whether we're running on a wrath client or not

------------------------------------------------------------------------
r22 | Cladhaire-15704 | 2008-08-10 17:51:27 +0100 (Sun, 10 Aug 2008) | 2 lines

Fixing a call into UIPanelTemplates

------------------------------------------------------------------------
r21 | Cogwheel-17646 | 2008-05-09 15:14:31 -0700 (Fri, 09 May 2008) | 1 line

Fixed delete on an unsaved page
------------------------------------------------------------------------
r20 | Cladhaire-15704 | 2008-05-08 23:56:28 -0700 (Thu, 08 May 2008) | 2 lines

Added history back into the interpreter line

------------------------------------------------------------------------
r19 | Cladhaire-15704 | 2008-05-01 15:20:33 -0700 (Thu, 01 May 2008) | 2 lines

Revert the change that requires untitled pages to be renamed

------------------------------------------------------------------------
r18 | Cladhaire-15704 | 2008-04-30 05:15:32 -0700 (Wed, 30 Apr 2008) | 2 lines

Added dirname property so zips are generated correctly

------------------------------------------------------------------------
r17 | Cogwheel-17646 | 2008-04-29 20:16:23 -0700 (Tue, 29 Apr 2008) | 2 lines

Close button now shows unsaved dialog
No longer auto-saves on run (should we add an auto save check box?)
------------------------------------------------------------------------
r16 | Cogwheel-17646 | 2008-04-29 19:23:59 -0700 (Tue, 29 Apr 2008) | 1 line

... Finished reorganizing imagages ><
------------------------------------------------------------------------
r15 | Cogwheel-17646 | 2008-04-29 19:19:11 -0700 (Tue, 29 Apr 2008) | 1 line

Reorganized images
------------------------------------------------------------------------
r14 | Cogwheel-17646 | 2008-04-29 15:58:35 -0700 (Tue, 29 Apr 2008) | 1 line

Added localization support
------------------------------------------------------------------------
r13 | Cogwheel-17646 | 2008-04-29 15:23:41 -0700 (Tue, 29 Apr 2008) | 4 lines

Delete button works again
Added basic Open functionality (sorry cladhaire... selecting names from a dropdown is still > typing from memory)
Saving a new script asks for a name
Creating a new page shows the unsaved page dialog
------------------------------------------------------------------------
r12 | Cogwheel-17646 | 2008-04-29 13:29:23 -0700 (Tue, 29 Apr 2008) | 4 lines

Run button works
Line numbers are no longer editable
Lock/unlock buttons work
Lock button now shows the lock icon based on the current state (tooltip reflects this)
------------------------------------------------------------------------
r11 | Cladhaire-15704 | 2008-04-29 06:07:26 -0700 (Tue, 29 Apr 2008) | 7 lines

Massive changes

* New button implemented
* Undo button implemented
* Prev/Next buttons implemented, including warnings
* Save (and rename) implemented

------------------------------------------------------------------------
r10 | Cladhaire-15704 | 2008-04-29 02:33:15 -0700 (Tue, 29 Apr 2008) | 2 lines

Change the resizing so the code pane will grow instead of the interpreter output

------------------------------------------------------------------------
r9 | Cogwheel-17646 | 2008-04-29 00:05:54 -0700 (Tue, 29 Apr 2008) | 3 lines

Refactored click handler
Delete button creates a new page if you delete the only remaining one
Window title displays name of current page
------------------------------------------------------------------------
r8 | Cogwheel-17646 | 2008-04-28 18:21:25 -0700 (Mon, 28 Apr 2008) | 1 line

Next button correctly removes desaturation from the Previous button
------------------------------------------------------------------------
r7 | Cladhaire-15704 | 2008-04-28 15:41:23 -0700 (Mon, 28 Apr 2008) | 2 lines

Remove debug messages

------------------------------------------------------------------------
r6 | Cladhaire-15704 | 2008-04-28 15:40:22 -0700 (Mon, 28 Apr 2008) | 2 lines

Ensure that lines are highlighted when they contain an error

------------------------------------------------------------------------
r5 | Cladhaire-15704 | 2008-04-28 15:34:10 -0700 (Mon, 28 Apr 2008) | 2 lines

Fixed issues with line numbering

------------------------------------------------------------------------
r4 | Cladhaire-15704 | 2008-04-28 13:46:52 -0700 (Mon, 28 Apr 2008) | 2 lines

Adding resize texture

------------------------------------------------------------------------
r3 | Cladhaire-15704 | 2008-04-28 13:32:10 -0700 (Mon, 28 Apr 2008) | 2 lines

Added the topleft texture

------------------------------------------------------------------------
r2 | Cladhaire-15704 | 2008-04-28 13:23:20 -0700 (Mon, 28 Apr 2008) | 2 lines

Initial import

------------------------------------------------------------------------
r1 | Cladhaire-15704 | 2008-04-28 13:21:43 -0700 (Mon, 28 Apr 2008) | 2 lines

Initial directory setup

------------------------------------------------------------------------
Beta Files (1)
File Name
Version
Hits
Size
Author
Date
r8
1,595
161kB
Cogwheel
04-29-08 09:25 PM


Archived Files (13)
File Name
Version
Size
Author
Date
v40000-1.0.1
178kB
Cladhaire
03-08-11 09:05 AM
v40000-1.0.0
178kB
Cladhaire
10-15-10 10:43 AM
v40000-1.0.0
177kB
Cladhaire
10-15-10 09:53 AM
r40
178kB
Cladhaire
09-02-10 09:01 AM
r37
178kB
Cladhaire
08-24-10 03:09 AM
r37
178kB
Cladhaire
08-20-10 02:08 AM
r37
178kB
Cladhaire
08-20-10 02:08 AM
r35
178kB
Cladhaire
07-17-10 07:12 AM
r33
169kB
Cladhaire
04-29-10 04:04 PM
r32
169kB
Cladhaire
09-07-09 03:27 AM
r31
169kB
Cladhaire
08-05-09 08:35 AM
r30
169kB
Cladhaire
06-02-09 01:45 PM
r29
169kB
Cladhaire
11-24-08 02:30 AM


Post A Reply Comment Options
Old 10-16-10, 03:10 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1931
File comments: 4476
Uploads: 18
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..."
Cladhaire is offline Report comment to moderator  
Reply With Quote
Old 10-15-10, 10:43 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1931
File comments: 4476
Uploads: 18
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..."
Cladhaire is offline Report comment to moderator  
Reply With Quote
Old 10-15-10, 10:33 AM  
Lombra
A Flamescale Wyrmkin
 
Lombra's Avatar
AddOn Author - Click to view AddOns

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

Forum posts: 119
File comments: 165
Uploads: 12
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.
Elkano is offline Report comment to moderator  
Reply With Quote
Old 09-10-10, 11:45 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1931
File comments: 4476
Uploads: 18
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..."
Cladhaire is offline Report comment to moderator  
Reply With Quote
Old 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.
Farmbuyer is offline Report comment to moderator  
Reply With Quote
Old 09-09-10, 11:42 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1931
File comments: 4476
Uploads: 18
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..."
Cladhaire is offline Report comment to moderator  
Reply With Quote
Old 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.
Farmbuyer is offline Report comment to moderator  
Reply With Quote
Old 08-20-10, 02:03 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1931
File comments: 4476
Uploads: 18
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..."
Cladhaire is offline Report comment to moderator  
Reply With Quote
Old 08-17-10, 11:40 AM  
Mechrior
A Chromatic Dragonspawn
 
Mechrior's Avatar

Forum posts: 153
File comments: 99
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


[IMG]http://********************/cache/banner/604963.png[/IMG]
Mechrior is offline Report comment to moderator  
Reply With Quote
Old 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.
Dornhelm is offline Report comment to moderator  
Reply With Quote
Old 07-18-10, 01:52 AM  
AnrDaemon
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 115
File comments: 2350
Uploads: 6
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.
AnrDaemon is offline Report comment to moderator  
Reply With Quote
Old 07-17-10, 09:06 PM  
uselessx
A Kobold Labourer

Forum posts: 0
File comments: 2
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.
uselessx is offline Report comment to moderator  
Reply With Quote
Old 07-17-10, 09:08 AM  
sdbrian2
A Murloc Raider

Forum posts: 6
File comments: 34
Uploads: 0
Thanks alot!
__________________
Always starting over...Goodbye, Brian
Last edited by sdbrian2 : 07-17-10 at 09:09 AM.
sdbrian2 is offline Report comment to moderator  
Reply With Quote
Old 07-17-10, 08:27 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 1931
File comments: 4476
Uploads: 18
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..."
Cladhaire is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.