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.
Please leave any comments on the original addon page at http:www.wowinterface.com/downloads/info7366-WowLua.html
Donations:
Some folks have asked for how they can donate money, and for many years I've enjoyed hearing about how my addons have helped other people enjoy World of Warcraft. If you would like to donate, I'd ask you to make a donation to the Colorectal Cancer Alliance, a worthy organisation that helped my sister immensely from her diagnosis through her final years. If you or a family member suspect you might have something not right in your butt, please have a doctor check it out. Colorectal cancer is one of the most preventable cancers in the world.
Thank you very much for your wow programming work, I'm starting to manage thanks to you
Best"s regards
Is it possible to make it possible to copy from the output window?
In reply to mr_aleks:
It would be nice.
But in the mean time instead of using print() use DEFAULT_CHAT_FRAME:AddMessage() to output to your chat instead.
Then you can use chat addon like Prat to copy the results or use "/chatlog" for the game to dump the chat.
To fix font resizing of the output box in Classic, in WowLua.lua insert a new line below the following so it reads:
WowLuaMonoFont:SetFont(file, WowLua_DB.fontSize, flags)
WowLuaFrameOutput:SetFont([[Interface\AddOns\WowLua\fonts\VeraMono.ttf]], WowLua_DB.fontSize)
For v80000-1.0.0 (Jul 23, 2018)
/lua not opening program. I've removed the addon and redownloaded it and it's not working at all. Not sure what has caused this but I don't really know where to go with it from here.
Hi !
Just a comment for the lua error that happen at opening the wowlua frame with PlaySound function.
You have to replace the line 251 in wowlua.lua "PlaySound("igMainMenuOpen")" by "PlaySound(SOUNDKIT.IG_MAINMENU_OPEN)" (without the first and last quote of course :) )
For the Hide Sound, replace line 681 in wowlua.xml "PlaySound(igMainMenuQuit);" by "PlaySound(SOUNDKIT.IG_MAINMENU_QUIT);" (without quotes again)
I hope i have been helping you and thanks for your great AddOn :)
Since 7.2.5 came down, I managed to comment out the PlaySound lines and make it...work. But the cursor does not match the line.
So I will be dumping this for the time being, even tho its my favorite ingame editor, and be using Cube (https://mods.curse.com/addons/wow/igas-cube + https://wow.curseforge.com/projects/igas and https://mods.curse.com/addons/wow/ploop) which has a few more features like Debugger but no command line at the bottom.
In reply to Forge_User_94148755:
http://www.wowinterface.com/downloads/info7366-WowLua.html
Lots of PlaySound errors. Also, is there a script to import pages and folders from _devpad ? I use _devpad a lot but I dont know how to fix it for 7.3. Theres an issue where the cursor doesnt match the actual line being edited, making it extremely difficult to use.
am i just blind or is there no chance to clear the output window somehow ?
7.2.5 broke this addon again.
Hi, getting following error in 7.1
There's a fix for this on WoWinterface: http://www.wowinterface.com/downloads/info7366-WowLua.html#comments
Is broken by chat frame changes in 7.1.0.
AddMessage is not working and I have not had time to figure out why.
I have redirected print back to the standard chat window in wowpad_print() at line 103 of wowlua.lua.
also, there are some functions no longer valid in CanScroll() at line 874. I changed them to what i *think* are the new correct functions.
If anybody else figures out how to fix this, please pm me.
OMG you updated this for 6.2?! Sweeeeeet!!
Hi,
Thank you for this, saves me loads of hours debbuging my addons!
Fulg
Paste does what you're looking for, specifically for TomTom.
I am looking for a "batch processor" for text files in WoW.
IDK if this can do it, but basically, I have a tex file that I have entered many waypoints, notes, ect. (/way ..., /note...) Basically, a slash command processor.
I need to be ablt to process this text file easily, rather than having to copy/paste one line at a time into the chat window or putting a few blocks in macros.
Can this addon do what I am looking for, or does anyone know of one that can?
Thank you
Will there be an update to this WowLua addon so that it loads in WoW 5.1 as-is?
This addon is so awesome. Thanks.