Page 1 of 6

Lua Player Plus VITA (lpp-vita) - Lua interpreter for PSVITA

Posted: Mon Sep 07, 2015 5:24 pm
by Rinnegatamante
Introduction:
After Rejuvenate release i was waiting for new USB cable for PSVITA just to start porting my LUA interpreter to PSVITA and i think i reached a good point to release it for Revitalize competition.

Description:
Lua Player Plus is a multiplatform LUA interpreter currently available on PSP (lpp-c++ / lpp-plugin), 3DS (lpp-3ds) and PSVITA (lpp-vita).
At current stage, it's good to make 2D games and apps but final goal is to provide a complete set of tools to make any kind of projects and make them easily portable towards consoles (lpp-3ds and lpp-vita for example both use a similar code syntax).

Features:
- GPU rendering support.
- FTP server for fast scripts debug.
- Controls and touch support.
- Alpha blending support.
- Native support to BMP, PNG and JPG images.
- Native support to TTF fonts.
- Built-in script selector menu for multi-homebrews loading.
- I/O functions support.
- Arithmetical functions support (mathlib).
- Minor functions support (Like battery ones).

In the RAR file you'll find the velf file to be sent through VitaDefiler, lpp folder you have to put in cache0:/ where are located all the scripts lpp can run, image.jpg file needed for image sample and a little documentation to all functions available in the interpreter. (Viewable also here: http://rinnegatamante.it/lpp-vita_doc.html )

Credits:
- All vita-toolchain and Rejuvenate devs to make this possible.
- xerpi for vita2dlib and ftpVita srcs and for his awesome help on Skype :P .

Download: http://rinnegatamante.it/lpp-vita_Revitalize_02.rar
FCREATE velf patched download: http://rinnegatamante.it/lpp-vita.velf
GitHub Repository: https://github.com/Rinnegatamante/lpp-vita

Re: Lua Player Plus VITA (lpp-vita) - Lua interpreter for PS

Posted: Mon Sep 07, 2015 11:25 pm
by Poller77
Essentially what does this mean for the ps vita?

Re: Lua Player Plus VITA (lpp-vita) - Lua interpreter for PS

Posted: Mon Sep 07, 2015 11:37 pm
by qwikrazor87
Pretty cool. :)
Is cache0: the only file system that we can use?

Re: Lua Player Plus VITA (lpp-vita) - Lua interpreter for PS

Posted: Mon Sep 07, 2015 11:45 pm
by Rinnegatamante
qwikrazor87 wrote:Pretty cool. :)
Is cache0: the only file system that we can use?
Yeah, i have to test all vita-toolchain funcs and study more about PSVITA filesystems but i planned to add as more feature (like other filesystems support) as i can like i'm doing also with lpp-3ds for the 3DS scene.
Poller77 wrote:Essentially what does this mean for the ps vita?
LUA is a pretty easy-to-use language so it could bring more developers to the scene.
Also all lpp-3ds homebrews are easily portable to lpp-vita (I'm planning for example to port 3DSudoku [Don't know if it's spam to post GBAt*mp links so if you want to see what i'm talking about you can search it on Google] to PSVITA when i finish to add TTF fonts support to lpp-vita).

Re: Lua Player Plus VITA (lpp-vita) - Lua interpreter for PS

Posted: Mon Sep 07, 2015 11:52 pm
by qwikrazor87
Rinnegatamante wrote:Yeah, i have to test all vita-toolchain funcs and study more about PSVITA filesystems but i planned to add as more feature (like other filesystems support) as i can like i'm doing also with lpp-3ds for the 3DS scene.
Okay, do you have a method to figure out how much space is left on cache0? Is cache0 cleared on each boot (guessing based off of the name)?

Re: Lua Player Plus VITA (lpp-vita) - Lua interpreter for PS

Posted: Tue Sep 08, 2015 2:05 am
by SMOKE
qwikrazor87 wrote:Pretty cool. :)
Is cache0: the only file system that we can use?
cache0 is the only one that both PSMDev apps and Unity apps can use. There's pss0 for PSMDev and unity0 for Unity.
Also, if I remember correctly, both those file systems mount to cache0:/VitaDefilerClient/Documents when running Rejuvenate
qwikrazor87 wrote:Okay, do you have a method to figure out how much space is left on cache0? Is cache0 cleared on each boot (guessing based off of the name)?
You can fill cache0 until memory card if full.
cache0 is not cleared unless you delete the app

Re: Lua Player Plus VITA (lpp-vita) - Lua interpreter for PS

Posted: Tue Sep 08, 2015 3:18 am
by wololo
Awesome :)

Re: Lua Player Plus VITA (lpp-vita) - Lua interpreter for PS

Posted: Tue Sep 08, 2015 9:55 am
by Rinnegatamante
qwikrazor87 wrote:
Rinnegatamante wrote:Yeah, i have to test all vita-toolchain funcs and study more about PSVITA filesystems but i planned to add as more feature (like other filesystems support) as i can like i'm doing also with lpp-3ds for the 3DS scene.
Okay, do you have a method to figure out how much space is left on cache0? Is cache0 cleared on each boot (guessing based off of the name)?
cache0 is not cleared so LUA scripts and data used by them can stay without any problem here.

Re: Lua Player Plus VITA (lpp-vita) - Lua interpreter for PS

Posted: Wed Sep 09, 2015 7:22 am
by gibbman
Wow!! I think it's time to create something for Ps Vita (grande zio!! Ci sta, bordello!)

Re: Lua Player Plus VITA (lpp-vita) - Lua interpreter for PS

Posted: Wed Sep 09, 2015 4:54 pm
by Rinnegatamante
Updated first post with the new Release (R2).

Changelog:
- Added System.powerTick(): Prevents PSVITA going standby mode.
- Added System.loadElf(): Load .VELF homebrews from cache0.
- Improved speed for Screen.clear() function.
- Added Controls.readLeftAnalog(): Returns X,Y values for left analog.
- Added Controls.readRightAnalog(): Returns X,Y values for right analog.
- Added Screen.getFramerate(): Returns current FPS.
- Added Timer module (Timer.new(), Timer.isPlaying(), Timer.getTime(), Timer.destroy(), Timer.pause(), Timer.resume(), Timer.reset()).
- Added Timer sample.
- Added support to PNG images.
- Added Font module for TTF fonts support (Font.load(), Font.unload(), Font.setPixelSizes(), Font.print()).