forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lua Player version 0.19

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Tue Apr 11, 2006 8:06 pm    Post subject: Lua Player version 0.19 Reply with quote

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]
Back to top
View user's profile Send private message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Tue Apr 11, 2006 8:22 pm    Post subject: Reply with quote

error when compiling the src.

Code:
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:
sceUsbDeactivate( 0 );  // what value here?

to
Code:
sceUsbDeactivate();  // no value here


greets
lumo
_________________
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Back to top
View user's profile Send private message Visit poster's website
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Tue Apr 11, 2006 8:59 pm    Post subject: Reply with quote

LuMo wrote:
hehe quick solution:
change
Code:
sceUsbDeactivate( 0 );  // what value here?

to
Code:
sceUsbDeactivate();  // no value here



Better solution: update your PSPSDK toolchain :-)
Back to top
View user's profile Send private message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Tue Apr 11, 2006 9:01 pm    Post subject: Reply with quote

hehe thats another possibility :D
_________________
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Back to top
View user's profile Send private message Visit poster's website
daurnimator



Joined: 11 Dec 2005
Posts: 38
Location: melbourne, australia

PostPosted: Wed Apr 12, 2006 10:32 pm    Post subject: Reply with quote

you gotta have a value in there to compile with the new toolchain :P
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> General Discussion All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group