Difference between revisions of "Lua"

From Mario Fan Games Galaxy Wiki
m
Line 1: Line 1:
 
{{Lua}}
 
{{Lua}}
'''Lua''' is a kind of scripting language known as an ''extension language''. Though standalone programs can be coded entirely in Lua, it is intended to be used as a way for users of a program to easily add functionality through scripts. Two Lua extensions exist for [[MMF2]], and a few users of said program use it as a way of working around MMF's lack of a scripting language. A Lua script can also run faster than an equivalent script made through MMF's event editor, especially if using Lua+'s MMF interface functions. [[Retriever II]] has used the language extensively by submitting [[howtos]], creating an [[NCFC]] booth about Lua, and coding the [[Tile Lattice]] level editor.
+
'''Lua''' is a kind of scripting language known as an ''extension language''. Though standalone programs can be coded entirely in Lua, it is intended to be used as a way for users of a program to easily add functionality through scripts. Three Lua extensions exist for [[MMF2]], and a few users of said program use it as a way of working around MMF's lack of a scripting language. A Lua script can also run much faster than an equivalent script made through MMF's event editor, especially if using XLua's or Lua+'s MMF interface functions. [[Retriever II]] has used the language extensively by submitting [[howtos]], creating an [[NCFC]] booth about Lua, coding the [[Tile Lattice]] level editor, and even programming the third Lua extension XLua.
  
 
MFGG projects that use or may use Lua:
 
MFGG projects that use or may use Lua:
Line 14: Line 14:
 
* Less hassle involved in changing code
 
* Less hassle involved in changing code
 
* Opens up the possibility for moddable games
 
* Opens up the possibility for moddable games
 +
* XLua includes Windows messaging and keyboard intercept capability, and other extensions can be compiled to be compatible with it through libraries
  
 
== Disadvantages ==
 
== Disadvantages ==
* Lua+ has only limited integration through the MMF interface (but more features can be added on request)
+
* XLua and Lua+ have only limited integration through the MMF interface (but more features can be added on request)
 
* Moddable games usually require an entire runtime engine to be written
 
* Moddable games usually require an entire runtime engine to be written
 
* Occasionally has ambiguous error messages, making debugging difficult
 
* Occasionally has ambiguous error messages, making debugging difficult
* Both Lua extensions are quite unstable
+
* Lua and Lua+ extensions are quite unstable
  
 
== External Links ==
 
== External Links ==

Revision as of 16:10, 16 April 2009

Lua
Lua.gif
Basics
Intermediate
Advanced
XLua
Add to this template
 Standardwikimessagebox.png This article assumes the use of Lua 5.1.

Information may not be accurate or may need revision if you are using a different version.

Lua is a kind of scripting language known as an extension language. Though standalone programs can be coded entirely in Lua, it is intended to be used as a way for users of a program to easily add functionality through scripts. Three Lua extensions exist for MMF2, and a few users of said program use it as a way of working around MMF's lack of a scripting language. A Lua script can also run much faster than an equivalent script made through MMF's event editor, especially if using XLua's or Lua+'s MMF interface functions. Retriever II has used the language extensively by submitting howtos, creating an NCFC booth about Lua, coding the Tile Lattice level editor, and even programming the third Lua extension XLua.

MFGG projects that use or may use Lua:

Advantages

  • Generally much faster than MMF alone
  • Less hassle involved in changing code
  • Opens up the possibility for moddable games
  • XLua includes Windows messaging and keyboard intercept capability, and other extensions can be compiled to be compatible with it through libraries

Disadvantages

  • XLua and Lua+ have only limited integration through the MMF interface (but more features can be added on request)
  • Moddable games usually require an entire runtime engine to be written
  • Occasionally has ambiguous error messages, making debugging difficult
  • Lua and Lua+ extensions are quite unstable

External Links