Lua Player version 0.19

General, off-topic discussion about things of interest to the members of these forums.

Moderator: cheriff

Post Reply
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Lua Player version 0.19

Post 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]
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post 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
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post 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 :-)
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

hehe thats another possibility :D
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
User avatar
daurnimator
Posts: 38
Joined: Sun Dec 11, 2005 8:36 pm
Location: melbourne, australia

Post by daurnimator »

you gotta have a value in there to compile with the new toolchain :P
Post Reply