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,404
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 10-18-12, 10:11 PM  
papasol
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 9
Uploads: 2
Originally Posted by papasol
Originally Posted by Cladhaire
Such as what? Could you be a bit more concrete =)
AnrDaemon hit the nail on the head. I understand not wanting to take the addon outside of the scope of its intended purpose. I'll look into your suggestions here, these seem appropriate.

As a follow the addon Hack is exactly what I was looking for. Thanks again for your input.
Report comment to moderator  
Reply With Quote
Unread 04-04-15, 10:03 AM  
Fulgerul
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Created a user account just to thank you dude. This addon saves me alot of hassle, reloading at every change. I will make it autostart also, and then Im gold!

AGAIN, SUPER THANKS!
Report comment to moderator  
Reply With Quote
Unread 05-18-15, 01:01 PM  
khurzog
A Frostmaul Preserver
 
khurzog's Avatar

Forum posts: 266
File comments: 194
Uploads: 0
i'm using this to run custom scripts with TSM i found on their forums. i was very reluctant because it is so old and unmaintained... i understand the the mentality for not doing toc bumps, but maybe some sort of update is in line just to ease peoples minds.
Report comment to moderator  
Reply With Quote
Unread 05-24-16, 02:23 AM  
Oniya
A Wyrmkin Dreamwalker

Forum posts: 57
File comments: 4
Uploads: 0
Is there a way to clear wowlua log? Didn't found by myself.
Report comment to moderator  
Reply With Quote
Unread 05-24-16, 08:27 AM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Originally Posted by Oniya
Is there a way to clear wowlua log? Didn't found by myself.
Console log?
I don't recall if there's a direct way, but reloading the UI would do it 100%.
Report comment to moderator  
Reply With Quote
Unread 05-24-16, 06:26 PM  
Oniya
A Wyrmkin Dreamwalker

Forum posts: 57
File comments: 4
Uploads: 0
Originally Posted by AnrDaemon
Originally Posted by Oniya
Is there a way to clear wowlua log? Didn't found by myself.
Console log?
I don't recall if there's a direct way, but reloading the UI would do it 100%.
Sure, but reloading UI - bad and time cost way
IF there is no such, Developer should add method to be able do this ^^ Like Clear();

So each run you will have fresh output - helpful when you have printing output to console and changing stuff
Report comment to moderator  
Reply With Quote
Unread 10-26-16, 10:06 PM  
legowxelab2z8
A Defias Bandit

Forum posts: 2
File comments: 1
Uploads: 0
7.1 Update

With 7.1 came changes to ScrollingMessageFrame which WowLua uses for the output frame.
In WowLua.xml After line 667 add
Lua Code:
  1. <OnLoad>
  2.     self:SetFont([[Interface\AddOns\WowLua\fonts\VeraMono.ttf]], 14)
  3.     self:SetJustifyH("LEFT")
  4.     self:SetFading(False)
  5. </OnLoad>

The <FontString inherits="WowLuaMonoFont" justifyH="LEFT"/> line isnt used by the new ScrollingMessageFrame so it defaults to no font which is why the output doesnt display.

The function GetNumLinesDisplayed() and GetCurrentScroll() no longer exist so I changed the canScroll function to
Lua Code:
  1. local function canScroll(scroll, direction)
  2.     if direction == "up" then
  3.         return not scroll:AtTop()
  4.     end
  5.     if direction == "down" then
  6.         return not scroll:AtBottom()
  7.     end
  8.     return true;
  9. end

The OnMessageScrollChanged event is no longer being fired which means WowLua:UpdateScrollingMessageFrame is no longer being called so the scroll arrows aren't turing on/off when scrolling. I haven't yet found the new event name to use.
Report comment to moderator  
Reply With Quote
Unread 10-27-16, 05:14 PM  
KippG
A Defias Bandit
Premium Member

Forum posts: 3
File comments: 3
Uploads: 0
Re: 7.1 Update

That worked; Thanks!
Report comment to moderator  
Reply With Quote
Unread 10-31-16, 08:43 AM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
diff Code:
  1. --- WowLua-v60200-1.0.0/WowLua/WowLua.xml   2015-06-27 11:43:00.000000000 +0300
  2. +++ AddOns/WowLua/WowLua.xml    2016-10-31 17:41:16.759428100 +0300
  3. @@ -665,6 +665,11 @@
  4.                      <OnMouseDown>
  5.                          WowLuaFrameCommandEditBox:SetFocus()
  6.                      </OnMouseDown>
  7. +                    <OnLoad>
  8. +                        self:SetFont([[Interface\AddOns\WowLua\fonts\VeraMono.ttf]], 14)
  9. +                        self:SetJustifyH("LEFT")
  10. +                        self:SetFading(False)
  11. +                    </OnLoad>
  12.                 </Scripts>
  13.                  <FontString inherits="WowLuaMonoFont" justifyH="LEFT"/>
  14.             </ScrollingMessageFrame>
This one?
Report comment to moderator  
Reply With Quote
Unread 11-02-16, 05:15 PM  
galvin
A Frostmaul Preserver
AddOn Author - Click to view AddOns

Forum posts: 265
File comments: 166
Uploads: 1
i made these changes, but it still gives an error when I try to do something like print('test')

5x WowLua\WowLua-v60200-1.0.0.lua:633: attempt to compare number with nil
WowLua\WowLua-v60200-1.0.0.lua:633: in function `Button_Run'
WowLua\WowLua-v60200-1.0.0.lua:294: in function `Button_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals:
self = <table> {
OnSizeChanged = <function> defined @WowLua\WowLua.lua:679
RenamePage = <function> defined @WowLua\WowLua.lua:64
Button_Lock = <function> defined @WowLua\WowLua.lua:505
Button_Unlock = <function> defined @WowLua\WowLua.lua:511
GoToPage = <function> defined @WowLua\WowLua.lua:550
DebugQueue = <function> defined @WowLua\WowLua.lua:302
FlushQueue = <function> defined @WowLua\WowLua.lua:309
OnVerticalScroll = <function> defined @WowLua\WowLua.lua:769
VERSION = "WowLua vv60200-1.0.0 Interactive Interpreter"
Button_OnLeave = <function> defined @WowLua\WowLua.lua:267
Button_Config = <function> defined @WowLua\WowLua.lua:647
Button_Open = <function> defined @WowLua\WowLua.lua:369
orig = "math.huge"
Button_Delete = <function> defined @WowLua\WowLua.lua:482
cursorPos = 110
Button_OnEnter = <function> defined @WowLua\WowLua.lua:256
OnCursorChanged = <function> defined @WowLua\WowLua.lua:915
unlockedTextChanged = <function> defined @WowLua\FAIAP.lua:1071
queue = <table> {
}
ResizeBar_OnMouseDown = <function> defined @WowLua\WowLua.lua:742
Button_OnClick = <function> defined @WowLua\WowLua.lua:271
Button_Close = <function> defined @WowLua\WowLua.lua:651
Initialize = <function> defined @WowLua\WowLua.lua:249
indent = <table> {
}
lastCursorPos = 110
SetTitle = <function> defined @WowLua\WowLua.lua:674
GetRedoPage = <function> defined @WowLua\WowLua.lua:343
OnTextChanged = <function> defined @WowLua\WowLua.lua:911
Button_Next = <function> defined @WowLua\WowLua.lua:546
UpdateButtons = <function> defined @WowLua\WowLua.lua:569
CreateNewPage = <function> defined @WowLua\WowLua.lua:42
ScrollingMessageFrameScroll = <function> defined @WowLua\WowLua.lua:902
LockPage = <function> defined @WowLua\WowLua.lua:74
Button_Previous = <function> defined @WowLua\WowLua.lua:542
UpdateLineNums = <function> defined @WowLua\WowLua.lua:795
ResizeBar_OnUpdate = <function> defined @WowLua\WowLua.lua:752
ResizeBar_OnMouseUp = <function> defined @WowLua\WowLua.lua:748
IsUntitled = <function> defined @WowLua\WowLua.lua:669
GetUndoPage = <function> defined @WowLua\WowLua.lua:330
Button_Undo = <function> defined @WowLua\WowLua.lua:470
queuePos = 1
IsModified = <function> defined @WowLua\WowLua.lua:662
Button_Run = <function> defined @WowLua\WowLua.lua:615
lockedTextChanged = <function> defined @WowLua\WowLua.lua:600
GetNumPages = <function> defined @WowLua\WowLua.lua:55
RunScript = <function> defined @WowLua\WowLua.lua:209
ProcessLine = <function> defined @WowLua\WowLua.lua:137
SelectPage = <function> defined @WowLua\WowLua.lua:89
GetCurrentPage = <function> defined @WowLua\WowLua.lua:84
OpenDropDownOnLoad = <function> defined @WowLua\WowLua.lua:373
Queue = <function> defined @WowLua\WowLua.lua:314
OpenDropDownInitialize = <function> defined @WowLua\WowLua.lua:381
Button_New = <function> defined @WowLua\WowLua.lua:352
DeletePage = <function> defined @WowLua\WowLua.lua:70
SavePage = <function> defined @WowLua\WowLua.lua:59
Button_Save = <function> defined @WowLua\WowLua.lua:452
Button_Redo = <function> defined @WowLua\WowLua.lua:476
UpdateScrollingMessageFrame = <function> defined @WowLua\WowLua.lua:869
IsPageLocked = <function> defined
Report comment to moderator  
Reply With Quote
Unread 01-27-17, 02:11 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4939
Uploads: 19
Thanks for the suggested updates. I've made them and things appear to function as I expect, so please let me know if you run into any issues.
__________________
"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 01-27-17, 03:15 AM  
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 156
File comments: 2231
Uploads: 5
Thanks, Cladhaire!
Report comment to moderator  
Reply With Quote
Unread 01-27-17, 10:06 AM  
Oniya
A Wyrmkin Dreamwalker

Forum posts: 57
File comments: 4
Uploads: 0
Originally Posted by Cladhaire
Thanks for the suggested updates. I've made them and things appear to function as I expect, so please let me know if you run into any issues.
Can you please consider adding support for:
1) Ctrl+Z and Ctrl+Y (undo \ redo) for typing in addon editor window
2) Clear Log button (which do clear log in addon UI bottom part of window)

Those would be very handy, Thanks!
Report comment to moderator  
Reply With Quote
Unread 03-26-17, 12:56 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 Oniya
Originally Posted by Cladhaire
Thanks for the suggested updates. I've made them and things appear to function as I expect, so please let me know if you run into any issues.
Can you please consider adding support for:
1) Ctrl+Z and Ctrl+Y (undo \ redo) for typing in addon editor window
2) Clear Log button (which do clear log in addon UI bottom part of window)

Those would be very handy, Thanks!
Would be useful but I don't see myself getting around to adding this anytime soon.
__________________
"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-01-17, 10:18 AM  
[email protected]
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
can't Save pages?

<trans data-src="can't Save lua pages?" data-dst="不能保存Lua页?">不能保存Lua页?</trans>
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: