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,281
Favorites:350
MD5:
10.2.6

WowLua  Updated this week!  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-17-12, 11:25 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
I'm not sure I want to get that complicated at the moment, since the primary purpose of the addon is editing/interpreter. There are other addons, like Hack, that already do most of what I think you're talking about.
__________________
"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 10-17-12, 05:25 PM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Originally Posted by Cladhaire
Such as what? Could you be a bit more concrete =)
I think, it's already possible.
Just execute a page, that declare a function and hook it to something.
My guess is that he wanted to do that automatically on client startup, but I don't think that would be the right thing to do for WowLua. (edited)
For such things, I have a separate addon, basically a .toc, a loader and a bunch of small files-prototypes/hooks for various things.
You can see the technique in my addons - I think, I moved them all to the same loader structure.
Last edited by AnrDaemon : 10-17-12 at 05:26 PM.
Report comment to moderator  
Reply With Quote
Unread 10-17-12, 10:05 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Such as what? Could you be a bit more concrete =)
__________________
"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 10-17-12, 06:36 AM  
papasol
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 9
Uploads: 2
Being a wow addon author, I find this tool one of the most useful creations ever. It allows me to manipulate code segments without constantly saving and reloading a file. I applaud your contribution to the community by developing such a tool.

One feature I would love to see implemented is, the ability to set saved code spinets to automatically run on selected event triggers. This would make it's usefulness even more fantastic in my opinion.
Report comment to moderator  
Reply With Quote
Unread 09-07-12, 12:34 PM  
Mera
Retired of WoW, In ESO :)
 
Mera's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 331
File comments: 121
Uploads: 7
wowlua for me is always built in, will help ya if I find anything, have nice days
Report comment to moderator  
Reply With Quote
Unread 08-24-12, 02:17 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Just a heads up guys, I move country in under two weeks, have a conference next week, and have committed the next 6-7 weeks of my life to completing my thesis and submitting it. As a result I just do not have the time to get online and test all of the different functions of my addons. If you have access to the MoP beta and are willing to test them out for me and give me good controlled bug reports, I will do my best to make sure I can fix anything before the UI patch hits live. Thanks for all your support!

(WowLua)
__________________
"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 04-17-12, 03:44 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
I'm sorry, I'm not willing to help you with private servers.
__________________
"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 04-16-12, 05:16 PM  
oguz
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
wowlua error

am getting an error "interface/addons/wowlua/wowlua.lua:8:unexpected symbol near `...'

i'm trying to use it on a private server just for fun as i've always been curious about how to program addons for wow. am on a 1.12 vanilla wow server. Does it only work with cata or?
Report comment to moderator  
Reply With Quote
Unread 05-03-11, 03:38 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
There shouldn't be, but I intentionally lag behind a bit to ensure I can catch any issues when a patch is initially released. I'll make the version change sometime this week, thanks for the report!
__________________
"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 05-03-11, 03:28 AM  
orgevo
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 2
Uploads: 1
In case you haven't had the chance to verify functionality since the patch - been using this everyday while fixing my own and haven't seen any errors so far. (Bumped TOC version locally - I always leave "Load out of date addons" disabled so I can differentiate between the addons I've installed that work out of the box with the new patches vs. the ones that need more atention)
Report comment to moderator  
Reply With Quote
Unread 03-19-11, 10:58 AM  
Netrox
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 18
Uploads: 4
@AnrDaemon: making an own addon for the scripts is something i dont want to, for some it would be ok, but for most i just dont want

@Cladhaire: thanks for the suggestion, i'll try "Hack"
__________________
Webradio
Report comment to moderator  
Reply With Quote
Unread 03-19-11, 10:05 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
There's an addon called 'Hack' I believe that has what you're looking for. I'm not sure I'd want to try and replicate those features in WowLua at this time.
__________________
"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 03-19-11, 05:41 AM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Originally posted by Netrox
first i want to say that this is an epic addon and i rly love it <3

i would wish to see a "run on login" feature
i have some scripts i would like to run on startup (w/o having to make an extra addon)

and maybe - well this might be some overkill but would be cool for me in some cases (no need to make own event handling code in some scripts) - running scripts based on ingame events :-D
Then write your own addon. It's not like it's unbeatable task.
In reality, it's rather easy. Loader.xml
xml Code:
  1. <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2. ..\FrameXML\UI.xsd">
  3.     <Script file="Libs\LibStub\LibStub.lua" />
  4.     <Include file="Libs\CallbackHandler-1.0\CallbackHandler-1.0.xml" />
  5.     <Script file="Libs\LibDataBroker-1.1\LibDataBroker-1.1.lua" />
  6. <!-- Put your scripts here -->
  7.     <Script file="MyPrivateStuff.lua" />
  8. </Ui>

Event handling (in this instance - fixing minimap mess):
lua Code:
  1. local frame = CreateFrame("Frame", "MyPrivateStuff_Frame1");
  2. local events = {};
  3.  
  4. -- Call event handler from table
  5. frame:SetScript("OnEvent", function(self, event, ...)
  6.   events[event](self, ...);
  7. end);
  8.  
  9. -- You need a PLAYER_ENTERING_WORLD event handler to wait for all skills to load first.
  10. -- THEN you could try and check for real amount of tracking skills.
  11.  
  12. function events:PLAYER_ENTERING_WORLD(...)
  13. -- Kill useless buttons FFS
  14.   MiniMapWorldMapButton:Hide()
  15.   TimeManagerClockButton:Hide()
  16.   MinimapZoomIn:Hide()
  17.   MinimapZoomOut:Hide()
  18.  
  19. -- Enable scroll-zooming
  20.   Minimap:SetScript("OnMouseWheel", function(self, arg1)
  21.     if arg1 < 0 then Minimap_ZoomIn() else Minimap_ZoomOut() end
  22.   end)
  23.  
  24.   Minimap:EnableMouseWheel(true)
  25.  
  26. -- Move the rest of the buttons to their proper positions
  27.  
  28.   local frame = GameTimeFrame;
  29.   local point, relativeTo, relativePoint, xOffset, yOffset = frame:GetPoint(1);
  30.   frame:ClearAllPoints();
  31.   frame:SetPoint(point, relativeTo, relativePoint, 19, 1);
  32.   frame:SetSize(45, 45);
  33.  
  34.   local frame = MiniMapMailFrame;
  35.   local point, relativeTo, relativePoint, xOffset, yOffset = frame:GetPoint(1);
  36.   frame:ClearAllPoints();
  37.   frame:SetPoint(point, relativeTo, relativePoint, 21, -35);
  38.  
  39.   local frame = MiniMapTracking;
  40.   local point, relativeTo, relativePoint, xOffset, yOffset = frame:GetPoint(1)
  41.   frame:ClearAllPoints();
  42.   frame:SetPoint(point, relativeTo, relativePoint, 16, -29);
  43.  
  44.   self:UnregisterAllEvents();
  45.  
  46. end;
  47.  
  48. -- Register all events, for which handlers have been defined
  49. for k, v in pairs(events) do
  50.   frame:RegisterEvent(k);
  51. end;
Report comment to moderator  
Reply With Quote
Unread 03-19-11, 04:36 AM  
Netrox
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 18
Uploads: 4
first i want to say that this is an epic addon and i rly love it <3

i would wish to see a "run on login" feature
i have some scripts i would like to run on startup (w/o having to make an extra addon)

and maybe - well this might be some overkill but would be cool for me in some cases (no need to make own event handling code in some scripts) - running scripts based on ingame events :-D
__________________
Webradio
Report comment to moderator  
Reply With Quote
Unread 02-13-11, 06:53 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
The first can be done, the second can't. Tabs are not supported at all in WoW, so it will always have to be spaces, unfortunately. Thankfully any capable editor can re-intent a block of code to whatever standard you specify.
__________________
"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: