Category: Developer Utilities
Addon Information
Works with 3.2
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Cladhaire's Portal Bug Reports Feature Requests
Author:
Version:
r32
Date:
09-07-2009 05:27 AM
Size:
168.86 Kb
Downloads:
17,837
Favorites:
265
MD5:
Pictures
Click to enlarge
WowLua   Popular! (More than 5000 hits)
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 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.
  Change Log - WowLua
------------------------------------------------------------------------
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 - WowLua
File Name
Version
Hits
Size
Author
Date
r8
252
161kB
Cogwheel
04-29-2008 11:25 PM
  Archived Versions - WowLua
File Name
Version
Size
Author
Date
r31
169kB
Cladhaire
08-05-2009 10:35 AM
r30
169kB
Cladhaire
06-02-2009 03:45 PM
r29
169kB
Cladhaire
11-24-2008 04:30 AM
  Comments - WowLua
Post A Reply Comment Options
Old 05-09-2008, 05:34 PM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 212
File comments: 132
Uploads: 22
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-2008 at 05:40 PM.
Cogwheel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-09-2008, 05:30 PM  
Resa1983
A Murloc Raider

Forum posts: 4
File comments: 5
Uploads: 0
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>

  ---
Resa1983 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-09-2008, 02:54 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
Interface Author - Click to view interfaces

Forum posts: 1473
File comments: 3157
Uploads: 15
Quote:
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..."

http://cladhaire.wowinterface.com
Cladhaire is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-08-2008, 09:41 PM  
Treader
A Kobold Labourer
Interface Author - Click to view interfaces

Forum posts: 1
File comments: 13
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-2008 at 10:26 PM.
Treader is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-30-2008, 08:14 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
Interface Author - Click to view interfaces

Forum posts: 1473
File comments: 3157
Uploads: 15
Quote:
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..."

http://cladhaire.wowinterface.com
Cladhaire is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-30-2008, 07:57 AM  
Lombra
A Deviate Faerie Dragon
 
Lombra's Avatar
Interface Author - Click to view interfaces

Forum posts: 19
File comments: 170
Uploads: 17
r8 seems to be packed incorrectly. (no main folder) Just fyi
__________________
Grab your sword and fight the Horde!

Shattered Hand-EU
Lombra is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-04-2007, 03:18 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
Interface Author - Click to view interfaces

Forum posts: 1473
File comments: 3157
Uploads: 15
Quote:
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..."

http://cladhaire.wowinterface.com
Cladhaire is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-21-2007, 12:04 AM  
Cogwheel
Sans Poisson
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 212
File comments: 132
Uploads: 22
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...
Cogwheel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-16-2007, 01:06 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
Interface Author - Click to view interfaces

Forum posts: 1473
File comments: 3157
Uploads: 15
Quote:
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..."

http://cladhaire.wowinterface.com
Cladhaire is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-16-2007, 01:01 PM  
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
__________________
Andalia is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-16-2007, 12:34 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
Interface Author - Click to view interfaces

Forum posts: 1473
File comments: 3157
Uploads: 15
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..."

http://cladhaire.wowinterface.com
Cladhaire is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-16-2007, 12:18 PM  
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-2007 at 12:19 PM.
Andalia is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.