Addon Info.
Change Log
Beta (1)
Archived (7)
Comments (15)
  Category: Developer Utilities
Addon Information
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:
r21
Date:
05-09-2008 05:19 PM
Size:
161.50 Kb
Downloads:
2,844
Views:
16,630
Favorites:
85
MD5:
Pictures
Click to enlarge
WowLua   Popular!
Rate: 5 out of 5 with 10 votes  
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
------------------------------------------------------------------------
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
28
160.90 Kb
Cogwheel
04-29-2008 10:25 PM
  Archived Versions - WowLua
File Name
Version
Size
Author
Date
r19
161.47 Kb
Cladhaire
05-01-2008 05:24 PM
r18
161.48 Kb
Cladhaire
04-30-2008 07:16 AM
r8
160.90 Kb
Cladhaire
04-29-2008 10:34 PM
r7
46.39 Kb
Cladhaire
09-04-2007 02:19 PM
r5
46.22 Kb
Cladhaire
07-19-2007 02:45 PM
r4
46.11 Kb
Cladhaire
07-17-2007 05:19 PM
r3
46.63 Kb
Cladhaire
07-16-2007 09:52 AM
  Comments - WowLua
Post A Reply
Author Comments Comment Options
Old 05-09-2008, 05:01 PM  
Cogwheel
< Fishing Trainer >
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 125
File comments: 108
Uploads: 21
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-2008 at 05:23 PM.
Cogwheel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-09-2008, 04:59 PM  
Resa1983
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Re: Errors :(

Quote:
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.
Resa1983 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-09-2008, 04:56 PM  
Resa1983
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Errors :(

Quote:
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-2008 at 04:57 PM.
Resa1983 is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-09-2008, 04:34 PM  
Cogwheel
< Fishing Trainer >
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 125
File comments: 108
Uploads: 21
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 04:40 PM.
Cogwheel is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-09-2008, 04:30 PM  
Resa1983
A Kobold Labourer

Forum posts: 0
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, 01:54 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
Interface Author - Click to view interfaces

Forum posts: 969
File comments: 1918
Uploads: 12
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, 08:41 PM  
Treader
A Kobold Labourer
Interface Author - Click to view interfaces

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

Forum posts: 969
File comments: 1918
Uploads: 12
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, 06:57 AM  
Lombra
A Deviate Faerie Dragon
 
Lombra's Avatar

Forum posts: 10
File comments: 73
Uploads: 0
r8 seems to be packed incorrectly. (no main folder) Just fyi
__________________
Grab your sword and fight the Horde!
Lombra is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-04-2007, 02:18 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
Interface Author - Click to view interfaces

Forum posts: 969
File comments: 1918
Uploads: 12
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-20-2007, 11:04 PM  
Cogwheel
< Fishing Trainer >
 
Cogwheel's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 125
File comments: 108
Uploads: 21
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, 12:06 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
Interface Author - Click to view interfaces

Forum posts: 969
File comments: 1918
Uploads: 12
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, 12: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, 11:34 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
WoWInterface Super Moderator
Interface Author - Click to view interfaces

Forum posts: 969
File comments: 1918
Uploads: 12
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, 11: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-2007 at 11:19 AM.
Andalia is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:



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


MMOInterface.com Copyright ©2008
World of Warcraft is a registered Trademark of Blizzard Entertainment.
vBulletin - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.