Lua Player

From Wikipedia, the free encyclopedia

Lua Player
Image:Luaplayer.png

Lua Player for PSP
Maintainer: Frank Buß and Joachim Bengtsson
Stable release: V0.20 [+/-]
Preview release: N/A  (N/A) [+/-]
OS: PlayStation Portable
Use: Programming tools
License: Open source
Website: LuaPlayer.org

Lua for the PlayStation Portable is interpreted with Lua Player. Lua Player can run lua scripts and display them on the Sony PSP. Lua is an easy programming language to learn, that can be used for many different things, but is usually used to make games and applications. Its current version is V 0.20, however V0.17DK2 and Lua Player .20 MOD, which are unofficial versions are still used by people on v2.00+. Most versions can be downloaded from the LuaPlayer.org website.

Contents

[edit] Programing

The programing language for Lua Player is almost identical to that of Lua programming language. Below is an example of a basic hello world program.

green = Color.new(0, 255, 0)
screen:print(200, 130, "Hello World!", green)
screen.flip()
while true do
screen.waitVblankStart()
end

[edit] Authors

Lua Player is an open source project, but is maintained by Frank Buß (Shine) and Joachim Bengtsson (Nevyn).

[edit] Lua Player Version History

Only the changes in the latest version are shown here.

  • V 0.19
  1. directory detection bugfix
  2. Changed System.loadModule to loadlib to work. The same as the traditional lua loadlib function.
  3. Made loadlib check if a module is already loaded before trying to load.
  4. Removed getLuaState export. No longer required.
  5. Made debugOutput work in the same way as printf in bootstrap.
  6. Added loadlib.prx kernel module. required for module loading.
  7. Added a module sample for manipulating images

[edit] Libraries

To load a library in lua just add a dofile("libname.lua").

Some common libraries are:

  • netlib which allows you to make a game online capable, send emails and send an sms made by youresam
  • BMPlib which allows you to load bitmap images into lua made by youresam
  • wavlib which allows you to easily integrate visual for audio data in a program made by youresam
  • Animation Lib 4 which allows you to easily create animations in lua made by Grimfate126

[edit] Lowser

Lowser is the official PSP based browser for lua scripts. It is written in Lua Language itself however is quite basic. Lowser is what is set to autoload when LuaPlayer is started, however this can be changed.

  • LuaOS created by Youresam is a shell for the PSP designed to replace Lowser. This is now in the process of being replaced (by him) with:
  • LuaOS2 currently in development stages, with just the mainframe (LuaX) in a usable state so far.
  • Ys-OS This is a shell created by Yossi-Starz that was not designed to replace Lowser as it is not currently full speed, and is too "RAM hungry" for everyday use.
  • LuaMainframe created by Alex Glynn (Glynnder) currently in beta stages, is what is most likely to replace Lowser for most people, it looks pretty similar but hosts a whole range of features. This has now been replaced (by him) with:
  • interfaceLua which looks completely different to Lowser, and has all features of LuaMainframe and more. Work has temporarily stopped on it.

[edit] See also

[edit] External links