| image =
| title = Lua
| type = ported library
author = Feesh!| download = http:// feesh. braingravy. co. uk/ archives/ lua-wii. tar. bz2
== Usage ==
The source code comes with a functioning example. To use the example, you need to copy the 'test.lua' to the root of your SD card, then run the lua.elf, either from Wiiload, the HBC menu, or (possibly- not tested yet) any other homebrew bootloader.
== Build == Go to lua \lua-5.1.3 make local copy liblua.a to your lib directory and lauxlib.h lua.h lua.hpp luaconf.h lualib.h to your include/lua lib add -llua to your makefile LIBS before lib math (-lm) because Lua depends on it (lmathlib.o and lvm.o objects).
== 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.
* 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
and getting the system 's time. Other small changes were made to the file manipulation functions- they try to initialize FAT before use but it is recommended you do this yourself! The makefile might need some configuration to reflect your development environment.
== Wii Software using Lua ==