Difference between revisions of "Lua for Wii"
m (Added WiiLÖVE) |
|||
(8 intermediate revisions by 5 users not shown) | |||
Line 2: | Line 2: | ||
| image = | | image = | ||
| title = Lua | | title = Lua | ||
+ | | version = 5.1.5-wii-1 | ||
| type = ported library | | type = ported library | ||
− | | | + | | licence = MIT |
− | | download = | + | | maintainer = [[User:Carstene1ns|carstene1ns]] |
+ | | contributor = [[User:Feesh!|Feesh]],[[User:Owen|Owen]] | ||
+ | | download = https://github.com/carstene1ns/lua51-wii/releases/download/v5.1.5-wii-1/lua-5.1.5-wii-1.zip | ||
+ | | source = https://github.com/carstene1ns/lua51-wii/archive/v5.1.5-wii-1.zip | ||
}} | }} | ||
Line 11: | Line 15: | ||
== Usage == | == Usage == | ||
− | + | Extract release download archive to your $DEVKITPRO/libogc folder. | |
− | + | Include lua headers in your source files, eg: | |
− | + | #include "lua.h" | |
− | + | #include "lauxlib.h" | |
− | + | #include "lualib.h" | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Add -llua to your LIBS in Makefile before -lm | |
+ | |||
+ | If you need file system access, use an external library (for example libfat) | ||
+ | and initalize it before trying to access any files. | ||
+ | |||
+ | == Build == | ||
+ | |||
+ | Be sure DevkitPPC and libogc is installed and $DEVKITPRO is an exported variable. | ||
+ | |||
+ | Then the usual | ||
+ | |||
+ | cd /to/lua51-wii/dir | ||
+ | make -j <number of processor cores/threads> (eg. -j2) | ||
+ | |||
+ | will build the library and | ||
+ | |||
+ | make install | ||
+ | |||
+ | will install library and header files in your DevkitPro installation folder. | ||
== Reasons To Use Lua == | == Reasons To Use Lua == | ||
Line 32: | Line 46: | ||
To poke at a few popular uses of Lua; Lua was used in World of Warcraft for the GUI, in Farcry for the console system and all of the programmed user materials in Gmod(the famous retail HL2 sandbox mod) are made with it. It's been used in a bunch of open source game engines because it is simple to use and pretty versatile. | To poke at a few popular uses of Lua; Lua was used in World of Warcraft for the GUI, in Farcry for the console system and all of the programmed user materials in Gmod(the famous retail HL2 sandbox mod) are made with it. It's been used in a bunch of open source game engines because it is simple to use and pretty versatile. | ||
− | == | + | == TODO / BUGS / Limitations == |
+ | * Add proper Wii thread support | ||
+ | * Add proper time support (in testing) | ||
+ | * The stand-alone-interpreter and bytecode-compiler are not build. | ||
+ | * Launching external programs (system()) will likely never work | ||
* FAT system needs to be initialized by the user before calling any file loading functions (such as luaL_dofile(...)). | * FAT system needs to be initialized by the user before calling any file loading functions (such as luaL_dofile(...)). | ||
== Source == | == Source == | ||
− | The only major changes to the source code were removing functions related to launching system executables | + | The only major changes to the source code were removing functions related to launching system executables. |
+ | |||
+ | == Alternate download for old version 5.1.3 == | ||
+ | * Feesh's server seems down at the moment, a mirror can downloaded from [http://www.box.com/s/n5dmlncn0dicbsx4b16i here] (its not exactly a mirror copy but it should work) [[User:Owen|Owen]] 09:31, 22 March 2012 (CET) | ||
+ | * If you'd just like the development files they can be found [http://www.2shared.com/file/-2meQZx6/lua-wii.html here]. | ||
== Wii Software using Lua == | == Wii Software using Lua == | ||
+ | * [[Luafwii]] is a LuaPlayer (Lua Interpreter) for Wii, which loads and executes lua files. | ||
* [[GuitarsOnFire]] | * [[GuitarsOnFire]] | ||
− | * [[ | + | * [[Newo Shooter]] |
+ | * [[WiiLÖVE]] | ||
[[Category:Development]] | [[Category:Development]] |
Latest revision as of 17:34, 18 April 2022
Lua | |
General | |
---|---|
Maintainer(s) | carstene1ns |
Contributor(s) | Feesh,Owen |
Type | Ported Libraries |
Version | 5.1.5-wii-1 |
Licence | MIT |
Links | |
Download | |
Source |
Lua is a small and powerful scripting language that is perfect for use in projects that require changes in logic without the hassle of recompiling the program's source code. Lua can be told to load a file and execute functions from that file to create a dynamic program flow. Being extensible, Lua allows the programmer to define new functions for use in the script files they create.
Usage
Extract release download archive to your $DEVKITPRO/libogc folder.
Include lua headers in your source files, eg:
#include "lua.h" #include "lauxlib.h" #include "lualib.h"
Add -llua to your LIBS in Makefile before -lm
If you need file system access, use an external library (for example libfat) and initalize it before trying to access any files.
Build
Be sure DevkitPPC and libogc is installed and $DEVKITPRO is an exported variable.
Then the usual
cd /to/lua51-wii/dir make -j <number of processor cores/threads> (eg. -j2)
will build the library and
make install
will install library and header files in your DevkitPro installation folder.
Reasons To Use Lua
To poke at a few popular uses of Lua; Lua was used in World of Warcraft for the GUI, in Farcry for the console system and all of the programmed user materials in Gmod(the famous retail HL2 sandbox mod) are made with it. It's been used in a bunch of open source game engines because it is simple to use and pretty versatile.
TODO / BUGS / Limitations
- Add proper Wii thread support
- Add proper time support (in testing)
- The stand-alone-interpreter and bytecode-compiler are not build.
- Launching external programs (system()) will likely never work
- FAT system needs to be initialized by the user before calling any file loading functions (such as luaL_dofile(...)).
Source
The only major changes to the source code were removing functions related to launching system executables.
Alternate download for old version 5.1.3
- Feesh's server seems down at the moment, a mirror can downloaded from here (its not exactly a mirror copy but it should work) Owen 09:31, 22 March 2012 (CET)
- If you'd just like the development files they can be found here.
Wii Software using Lua
- Luafwii is a LuaPlayer (Lua Interpreter) for Wii, which loads and executes lua files.
- GuitarsOnFire
- Newo Shooter
- WiiLÖVE