Difference between revisions of "Lua"
MechaBowser (talk | contribs) |
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. | + | '''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+ | + | * 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 | ||
− | * | + | * Lua and Lua+ extensions are quite unstable |
== External Links == | == External Links == |
Revision as of 16:10, 16 April 2009
Lua |
---|
Basics |
Intermediate |
Advanced |
|
XLua |
Add to this template |
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:
- Pocket Mario (?)
- Super Daisy: Legend of the Ztar Rod (?)
- MPUZ Revolution
- COSINE
- Tile Lattice
- MechaSource Games
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