PDA

View Full Version : Looking at lua


barf
11-28-2006, 04:23 AM
From README.ps2
---
======================================
Making a Lowser-compatible application
======================================
Making your app play nicely with Lowser is very simple.
1. The main script file should be called "index.lua". Place it, with all its
resources in a folder with the application's name (spaces and everything is
allowed; make the name nice: "Foobar's Magical Quest", not "foobar_game")
2. Instruct your downloaders to install your game in /luaplayer/Applications/
3. Make your game *exitable*, please. Just make sure that the end of the file is
reachable. (Your main loop could look something like this:
while not Controls.read():start() do
[ your app's code ]
end
)
---
Is it possible to extend lowser to also be a sambaclient for attracting new lua scripts to the PS2?

evilo
11-29-2006, 02:31 AM
Everything is possible !

I don't know about modifying the lowser script since it basically scan directories from where it is launched, but maybe by specifying it as a parameter to the player ?

i.e. by putting the system.lua (from System) at the same level of the elf :

\Applications
\System
\luaplayer.elf
\system.lua

it could then be run with "luaplayer.elf SambaDrive:/path/system.lua", giving the same result :)