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,388
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 07-10-10, 10:35 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 uselessx
Nice addon. I have been using TinyPad for a while for writing scripts in, but i love the syntax colouring and output display with this.
However, would it be possible to add a slash command to run a script from a macro, preferrably by the scripts name.
TinyPad has the "/pad run 3" which would execute the script on the 3rd page.
I have several macros that run scripts from tinypad that I would like to switch over to use WowLua.
Also, because TinyPad uses page numbers for executing scripts I can't remove scripts without having to modify my macros, hence why I would prefer the ability to run scripts by the name rather than page number.
Also:
  • could you add the ability to change the font size. its a bit big for my taste.
  • add an auto-save checkbox
I'll consider adding a slash command for you to use. Scripts already autosave when you run them, not sure if you need more than that. I'll get to these when I have an opportunity.
__________________
"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-10-10, 08:58 AM  
uselessx
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Nice addon. I have been using TinyPad for a while for writing scripts in, but i love the syntax colouring and output display with this.
However, would it be possible to add a slash command to run a script from a macro, preferrably by the scripts name.
TinyPad has the "/pad run 3" which would execute the script on the 3rd page.
I have several macros that run scripts from tinypad that I would like to switch over to use WowLua.
Also, because TinyPad uses page numbers for executing scripts I can't remove scripts without having to modify my macros, hence why I would prefer the ability to run scripts by the name rather than page number.
Also:
  • could you add the ability to change the font size. its a bit big for my taste.
  • add an auto-save checkbox
Last edited by uselessx : 07-10-10 at 09:00 AM.
Report comment to moderator  
Reply With Quote
Unread 07-09-10, 04:51 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Originally posted by Malvenue
Don't worry, I won't be reporting any issues to you about anything again.
That doesn't seem to be an effective way to handle things.. I think you're reading some tone of voice that isn't in my post. If there's anything I can do to help, please let me know.. but the Curse Client isn't something I have any control over. If their software is displaying something, then either its a bug in their detection, or something else throwing it off.

I'm not sure who would be better to look at those issues than the Curse Client people themselves, who aren't me and who aren't here. Now if I can help you in any way, please let me know.. but I still fail to see how I'm supposed to do anything about this.

I would sincerely appreciate you posting and letting me know what you would like me to do to rectify the situation.
__________________
"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-09-10, 01:23 PM  
Malvenue
A Kobold Labourer
 
Malvenue's Avatar

Forum posts: 0
File comments: 5
Uploads: 0
Don't worry, I won't be reporting any issues to you about anything again.
__________________

If you love something, let it go.
If it returns, it's yours forever.
If it doesn't,
hunt it down and kill it.
Report comment to moderator  
Reply With Quote
Unread 07-06-10, 04:01 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Originally posted by Malvenue
I'm sorry if I was unclear. I have installed 3.3 several times however the Curse Client is reporting I still have 3.2 in place.

I was reporting that information to you.

Edit: Well I removed the addon then reinstalled and now it reports correctly. Since I installed over the older version I suspect you will hear this from others in the future.
I'm not sure why you would report the issue to me in the first place. I don't control the Curse client, you should contact them if you have an issue. I can do nothing to change what their software says..

If you believe differently, please let me know.
__________________
"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..."
Last edited by Cladhaire : 07-06-10 at 04:02 PM.
Report comment to moderator  
Reply With Quote
Unread 07-06-10, 12:25 PM  
Malvenue
A Kobold Labourer
 
Malvenue's Avatar

Forum posts: 0
File comments: 5
Uploads: 0
Originally posted by Cladhaire
WowLua r33 is the latest version available on both sites. I have no idea what you would like me to do.
I'm sorry if I was unclear. I have installed 3.3 several times however the Curse Client is reporting I still have 3.2 in place.

I was reporting that information to you.

Edit: Well I removed the addon then reinstalled and now it reports correctly. Since I installed over the older version I suspect you will hear this from others in the future.
__________________

If you love something, let it go.
If it returns, it's yours forever.
If it doesn't,
hunt it down and kill it.
Last edited by Malvenue : 07-06-10 at 12:29 PM.
Report comment to moderator  
Reply With Quote
Unread 07-05-10, 10:54 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 Malvenue
My Curse client consistently reports latest version as v3.2 and therefore out of date.
WowLua r33 is the latest version available on both sites. I have no idea what you would like me 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 07-05-10, 10:02 AM  
Malvenue
A Kobold Labourer
 
Malvenue's Avatar

Forum posts: 0
File comments: 5
Uploads: 0
My Curse client consistently reports latest version as v3.2 and therefore out of date.
__________________

If you love something, let it go.
If it returns, it's yours forever.
If it doesn't,
hunt it down and kill it.
Report comment to moderator  
Reply With Quote
Unread 07-01-10, 05:55 PM  
Treader
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 15
Uploads: 3
Originally posted by Cladhaire
Scripts automatically save anytime you run the script.. is that not sufficient?
No. I prefer not to be warned via StaticPopup when moving away from the document. I didn't realize it auto-saved when you click Run; I guess I should have, though.

Edit: P.S. They Might Be Giants... excellent choice for a sig.
Last edited by Treader : 07-01-10 at 08:03 PM.
Report comment to moderator  
Reply With Quote
Unread 07-01-10, 03:03 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 Treader
There's a SaveAs? Anyway, I get no ChatFrameEditBox related errors.

Edit: Oh, I know what you're talking about... I don't that feature. I'm happy with the generic document names. lol

But that's not why I'm here. I just have a suggestion. Auto Saving...

I wrote a little script to run when the PEW event fires. It auto-saves the currently selected document when clicking any button other than Redo, Undo, or Delete, when hiding the main frame, and when reloading the UI.

http://paste.wowace.com/2143/

Edit: Oops... should probably unregister the event. (New URL ^^)
Scripts automatically save anytime you run the script.. is that not sufficient?
__________________
"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-01-10, 12:25 AM  
Treader
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 15
Uploads: 3
Originally posted by Shefki
ChatFrameEditBox is used in the OnHide function for the SaveAs dialog. Needs to be updated for 3.3.5.
There's a SaveAs? Anyway, I get no ChatFrameEditBox related errors.

Edit: Oh, I know what you're talking about... I don't that feature. I'm happy with the generic document names. lol

But that's not why I'm here. I just have a suggestion. Auto Saving...

I wrote a little script to run when the PEW event fires. It auto-saves the currently selected document when clicking any button other than Redo, Undo, or Delete, when hiding the main frame, and when reloading the UI.

http://paste.wowace.com/2143/

Edit: Oops... should probably unregister the event. (New URL ^^)
Last edited by Treader : 07-01-10 at 12:57 AM.
Report comment to moderator  
Reply With Quote
Unread 06-23-10, 01:36 AM  
Shefki
An Aku'mai Servant
 
Shefki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 175
Uploads: 10
ChatFrameEditBox is used in the OnHide function for the SaveAs dialog. Needs to be updated for 3.3.5.
Report comment to moderator  
Reply With Quote
Unread 06-04-10, 08:42 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Originally posted by Cidwel
First of all, thanks for bringing this addon. I used it a lot, and I'm surprised about how it indent the code. Many thanks because for a novice programmer is the best aid to see the behaviour of the wow api.

I have a question. Is there a way to define the spaces in a tab spacement? I want to add one more space. That will be compatible with my main editor in order to copy and paste code between text editos without breaking the exact indent

many thanks !
Not without editing the code. You can edit FAIAP.lua in the addon in order to change the indent to 4 characters instead of 3 if that's what you'd like.
__________________
"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 06-04-10, 08:17 PM  
Cidwel
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 25
Uploads: 1
First of all, thanks for bringing this addon. I used it a lot, and I'm surprised about how it indent the code. Many thanks because for a novice programmer is the best aid to see the behaviour of the wow api.

I have a question. Is there a way to define the spaces in a tab spacement? I want to add one more space. That will be compatible with my main editor in order to copy and paste code between text editos without breaking the exact indent

many thanks !
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: