Lua

From iPodLinux

Jump to: navigation, search

Contents

What is it?

Lua is an interpreted language that uses portions of the C language, It's easy to use and friendly. In the homebrew scene it is available for PSP, DS and is also used in some PC games! This language is a great way to get new people to programming concepts to join in creating applications for iPodlinux!

Hello world example:

-- I am a comment for Lua
print("Hello World")

Current

A hotdog wrapper is currently underdevelopment. There is a minimum of basics in this, currently it is quite slow and may not be further developed.

Manual

For a current list of iPod function's and methods to use:
Functions

For a list for Lua commands in general consult the manual located here:
http://www.lua.org/manual/5.0/

Or use a tutorial to help learn Lua;
http://lua-users.org/wiki/TutorialDirectory

Downloads

Note: download links broken

  • See legal and warranty first before downloading ANY of the following!
Custom Lua With Hotdog
Version Released Link Notes
Basic 12-9-2007 Binary Source None.


Instructions

LUA Interpreter Console

  1. Download and Extract the above file
  2. Place it in any location of your iPod
  3. Run iPodlinux
  4. Execute the file using Podzilla 2 that supports application launching (SVN-1400 or newer).

Separate Files

  1. Download and Extract the above file
  2. Place it in any location (preferably folder for organizational reasons) on your iPod
  3. Copy the separate ".lua" file(s) onto your iPod
  4. Create a new file called run_lua.sh and place it in the SAME DIRECTORY of Lua on your iPod
  5. In that new file place the following:
    ./lua FILE_NAME_HERE.lua
  6. Run iPodlinux
  7. Execute the run_lua.sh using Podzilla 2 that supports application launching (SVN-1400 or newer).
(Replace the name of the separate file with FILE_NAME_HERE)

Loader2args

Assuming you already have a loader2 config file file

  • Download and Extract the above file
  • If using windows follow this
    • Place the file on your iPod located in My Computer
    • In your loader2 config file place the following:
    Lua @ (hd0,2)/linux.bin /mnt/lua /mnt/FILE_NAME_HERE.lua
  • If using linux follow this
    • Place the file on your iPodlinux Partition
    • In your loader2 config file place the following:
    Lua @ (hd0,2)/linux.bin /lua /FILE_NAME_HERE.lua

Note: This method may not be reliable to use with Hotdog. If you intend on using this method i suggest placing a sleep command that will allow Hotdog to initialize (this can take a few moments unfortunately)

Legal

iPodLua comes with absolutely no warranty. Any damage done to your iPod is done at your own risk. This could brick your iPod inwhich i will take no responsibility if any type of damage is to occur.

Credits

Original Creator: Lua Team (http://www.lua.org/)
Lots of Help: #lua @ freenode (IRC) (Especially rici & lhf)
Cross-compiler/Developer: Daniel-washere
Helped: rvvs89 - #ipodlinux @ freenode (IRC) top dating sites