WoW:Lua: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page Lua to Lua without leaving a redirect)
 
(27 intermediate revisions by 23 users not shown)
Line 1: Line 1:
Lua is an extremely useful scripting language. You can learn more about it at their [http://lua-users.org/wiki/LuaFaq Wiki].
{{wowlua}}
'''Lua''', from the Portuguese word for "moon" {{ref2|Lua|PUC-Rio|publisher=PUC-Rio|title=About|date=2016-06-18|work=Lua |link=http://www.lua.org/about.html|accessdate=2016-06-18}}, is a general scripting language, and is used in many games, including [[w:c:wowwiki:World of Warcraft|World of Warcraft]] for [[UI Customization|interface customization]].
[[File:Lua-Logo_128x128.png|right]]


The [http://www.lua.org/manual/5.0/ Reference Manual] is a useful resource for finding out about the syntax and basic commands, but is a little heavy-going if you've not got a programming background.  
In WoW only subset of Lua version 5.1 is implemented, which should suit most [[AddOns|addon]] maker's needs. More information about Lua can be found on the official [http://lua-users.org/wiki/LuaFaq Lua FAQ].


Check also the [http://www.inf.puc-rio.br/~roberto/book/ Lua Book].
== Programming references ==
The following are places to look for information on the Lua language itself. For these it helps if you are already familiar with programming in general.


* [http://www.lua.org/manual/5.1/ Official Reference Manual] - Contains Lua syntax and basic commands, but is a heavy, highly-technical read for those without a programming background. See [http://pgl.yoyo.org/luai Luai] for and alternative way of browsing the manual.


* [http://www.inf.puc-rio.br/~roberto/book/ Programming in Lua] - Definitive Lua guide by [http://www.inf.puc-rio.br/~roberto/ Roberto Ierusalimschy]. See also the [http://www.lua.org/pil/ online version].


A list of editors for Lua:
* [http://lua-users.org/ lua-users] - A Lua user group with a [http://lua-users.org/wiki/ Wiki]. Includes a [http://lua-users.org/wiki/LuaFaq FAQ], [http://lua-users.org/wiki/LuaTutorial tutorials] and [http://lua-users.org/wiki/LuaDirectory extended help on many topics]. The group also hosts a mailing list with past [http://lua-users.org/lists/lua-l/ archive], and a IRC channel [irc://irc.freenode.net/lua #lua at irc.freenode.net]. Their [http://lua-users.org/wiki/LuaLinks LuaLinks] page is very extensive.


1. [http://www.quotixsoftware.com/qde_index.htm QDE] (Shareware)
== Lua Editors ==
Quotix Development Environment for Lua. It supports project management, autocomplete functionality, a multi-document interface, debugging and much more. Sadly doesn't include a debug mode to test scripts with.
While any text editor can edit Lua files, many contain additional programming or even Lua specific features.


2. [http://sourceforge.net/projects/blua/ BLua] (Open Source)
See [[Lua editors]]
Under development and will, in time, hopefully provide a useful IDE for WoW Lua script development.


3. [http://luaedit.luaforge.net/ LuaEdit] (Open Source)
== Using Lua for WoW ==
Complete professional looking Lua IDE - Windows 98/2000/XP
Related projects include:
* [[WoWBench]] - Aims to be a near-complete emulation of the WoW environment.
* [http://luaforge.net/projects/lua-wow Lua 5.1.1 WoW] - Distribution created by cogwheel that includes everything needed for addon development


4. [http://www.gorlice.net.pl/~rybak/luaide LuaIDE] (Freeware)
== References ==
Integrated development environment for Lua for Windows
{{Reflist}}


5. [http://www.vortexentertainment.com/produto.php?id=luaide Vortex-LuaIDE] (Freeware)
== See also ==
Outra IDE para Lua gratuita, mas em Português!
* [[Lua variable scoping]] - Guide for Lua scoping rules
 
* [[Lua functions]] - Functions available in the World of Warcraft API
6.[http://www.zeusedit.com/lookmain.html Zeus for Windows] (Shareware)
* [[User defined functions]] - Useful functions written by addon authors
IDE with Lua syntax highlighting, code folding, project management, integrated version control. The IDE is fully scriptable using Lua
* [[Lua file]] - File format for a Lua file in a WoW AddOn
 
* [[Lua object memory sizes]] - Treatise on memory in Lua
7. [http://www.textpad.com TextPad] (Shareware)
* [[World of Warcraft API]] - Lists global API functions provided in WoW
Not an official Lua IDE however, with an available syntax file available as an [http://www.textpad.com/add-ons/synh2m.html addon] provides great syntax highlighting.
[[Category:Interface customization|Lua]]
 
[[Category:Lua functions| Lua]]
8. [http://www.editplus.com Edit+] (Shareware)
[[Category:Glossary]]
Not an official Lua IDE however, with an available syntax file available as an [http://www.editplus.com/others.html addon] provides great syntax highlighting.
----
Go to [[Interface Customization]]<br>
Go to [[UI Questions]]<br>
Go to [[Cosmos]]
 
[[Category:Interface Customization|Lua]]

Latest revision as of 04:48, 15 August 2023

WoW Lua

Lua, from the Portuguese word for "moon" [1], is a general scripting language, and is used in many games, including World of Warcraft for interface customization.

Lua-Logo 128x128.png

In WoW only subset of Lua version 5.1 is implemented, which should suit most addon maker's needs. More information about Lua can be found on the official Lua FAQ.

Programming references[edit]

The following are places to look for information on the Lua language itself. For these it helps if you are already familiar with programming in general.

  • Official Reference Manual - Contains Lua syntax and basic commands, but is a heavy, highly-technical read for those without a programming background. See Luai for and alternative way of browsing the manual.

Lua Editors[edit]

While any text editor can edit Lua files, many contain additional programming or even Lua specific features.

See Lua editors

Using Lua for WoW[edit]

Related projects include:

  • WoWBench - Aims to be a near-complete emulation of the WoW environment.
  • Lua 5.1.1 WoW - Distribution created by cogwheel that includes everything needed for addon development

References[edit]

  1. About, PUC-Rio, 2016-06-18, PUC-Rio, [1].

See also[edit]