Page 1 of 1

Lua Player version 0.19

Posted: Tue Apr 11, 2006 8:06 pm
by Shine
On http://www.luaplayer.org you can get the new version 0.19. Oobles has changed the module interface a bit, now it is more Lua like with "loadlib" (see http://forums.ps2dev.org/viewtopic.php?t=4259 ). I've implemented a small demo how to manipulate images with a module, which can be used as a base for your own modules, e.g. for fast fade-in/fade-out of images, FFT transformation or other things, which needs a fast C implementation.

The changelog:

v0.19
==========
- directory detection bugfix [moonlight]
- Changed System.loadModule to loadlib to work. [Oobles]
the same as the traditional lua loadlib function.
- Made loadlib check if a module is already loaded before trying
to load. [Oobles]
- Removed getLuaState export. No longer required. [Oobles]
- Made debugOutput work in the same way as printf in bootstrap. [Oobles]
- Added loadlib.prx kernel module. required for module loading. [Oobles]
- Added a module sample for manipulating images [Shine]

Posted: Tue Apr 11, 2006 8:22 pm
by LuMo
error when compiling the src.

Code: Select all

src/luasystem.cpp: In function 'int lua_usbDeactivate(lua_State*)':
/usr/local/pspdev/psp/sdk/include/pspusb.h:62: error: too many arguments to func
tion 'int sceUsbDeactivate()'
src/luasystem.cpp:226: error: at this point in file
make: *** [src/luasystem.o] Error 1

hehe quick solution:
change

Code: Select all

sceUsbDeactivate( 0 );  // what value here?
to

Code: Select all

sceUsbDeactivate();  // no value here
greets
lumo

Posted: Tue Apr 11, 2006 8:59 pm
by Shine
LuMo wrote:hehe quick solution:
change

Code: Select all

sceUsbDeactivate( 0 );  // what value here?
to

Code: Select all

sceUsbDeactivate();  // no value here
Better solution: update your PSPSDK toolchain :-)

Posted: Tue Apr 11, 2006 9:01 pm
by LuMo
hehe thats another possibility :D

Posted: Wed Apr 12, 2006 10:32 pm
by daurnimator
you gotta have a value in there to compile with the new toolchain :P