Advertising (This ad goes away for registered users. You can Login or Register)

[RELEASE] Lua Player Plus Vita (lpp-vita)

HENkaku is a native Homebrew Enabler for the PS Vita and PS TV. It lets you run homebrews on the PS Vita
gambikules
Posts: 29
Joined: Sat Aug 06, 2016 4:34 pm

Re: [RELEASE] Lua Player Plus Vita (lpp-vita)

Post by gambikules » Mon Aug 08, 2016 1:33 am

Impossible to draw png images !!!
i have test with jpg its work, but png dont draw and i hve this error

Code: Select all

x=10
y=10
image = Graphics.loadImage("app0:/0.png")
while true do
	Graphics.initBlend()
	Screen.clear()
        Graphics.drawImage(x, y, image)
        Graphics.termBlend()
        Screen.flip()
end
impossible to load png and bmp images
Advertising

User avatar
Rinnegatamante
VIP
Posts: 732
Joined: Sat Mar 26, 2011 10:02 am
Contact:

Re: [RELEASE] Lua Player Plus Vita (lpp-vita)

Post by Rinnegatamante » Mon Aug 08, 2016 8:32 am

RayCast3D engine uses png images for textures and skybox. Probably your PNG image is malformed.
Also you said you have this error but you haven't posted any error.
Advertising
If you want, visit my website: http://rinnegatamante.it :D

gambikules
Posts: 29
Joined: Sat Aug 06, 2016 4:34 pm

Re: [RELEASE] Lua Player Plus Vita (lpp-vita)

Post by gambikules » Mon Aug 08, 2016 12:56 pm

Normal Lua player R4 dont 3D Raycast. I make my png and bmp images with photoshop, but its not a malformeds files because its work with Lua R3

I have this error if i try load bmp or png images with only R4 version
(C2-12828-1)
Saved Core File Succeeded
ux0:data/psp2core-140613285-0x000002317d-eboot.bin.psp2dmp

User avatar
Rinnegatamante
VIP
Posts: 732
Joined: Sat Mar 26, 2011 10:02 am
Contact:

Re: [RELEASE] Lua Player Plus Vita (lpp-vita)

Post by Rinnegatamante » Mon Aug 08, 2016 1:48 pm

gambikules wrote:Normal Lua player R4 dont 3D Raycast. I make my png and bmp images with photoshop, but its not a malformeds files because its work with Lua R3

I have this error if i try load bmp or png images with only R4 version
(C2-12828-1)
Saved Core File Succeeded
ux0:data/psp2core-140613285-0x000002317d-eboot.bin.psp2dmp
RayCast3D doesn't use a special lpp-vita. IT's the same r4 build.
If you want, visit my website: http://rinnegatamante.it :D

gambikules
Posts: 29
Joined: Sat Aug 06, 2016 4:34 pm

Re: [RELEASE] Lua Player Plus Vita (lpp-vita)

Post by gambikules » Mon Aug 08, 2016 2:32 pm

Ok with 50*39 pixels dont work but 60*60 work fine

User avatar
Rinnegatamante
VIP
Posts: 732
Joined: Sat Mar 26, 2011 10:02 am
Contact:

Re: [RELEASE] Lua Player Plus Vita (lpp-vita)

Post by Rinnegatamante » Sun Aug 28, 2016 8:57 pm

New stable release of lpp-vita that now reaches R5!

A lot of bugfixes (especially in Sound module), a lot of new features (Sony IME OSK support, Socket module implementation, multi-controllers support (PSTV), etc...) and new samples!

Official changelog:

Code: Select all

New functions:

- Controls.rumble() - Changes rumble state of a certain dualshock (PSTV only)
- Screen.getPixel() - Gets the color of a pixel on the screen
- Screen.waitVblankStart() - Performs a screen vertical synchronization (vSync)
- System.getTime() - Gets current system time
- System.getDate() - Gets current system date
- System.getLanguage() - Gets system language
- System.getUsername() - Gets PSN username
- System.extractZIP() - Extracts a ZIP archive
- System.extractFromZIP() - Extract a file from a ZIP archive
- Socket.init() - Inits sockets system
- Socket.term() - Terminates sockets system
- Socket.createServerSocket() - Creates a server socket
- Socket.send() - Sends a message on a socket
- Socket.receive() - Receives a message on a socket
- Socket.accept() - Accepts connections on a socket
- Socket.close() - Closes a socket
- Socket.connect() - Connects to a server using a socket
- Keyboard.show() - Initializes OSK keyboard
- Keyboard.getState() - Gets current state of the OSK keyboard
- Keyboard.getInput() - Gets input of the OSK keyboard
- Keyboard.clear() - Terminates OSK keyboard

Syntax changes:

- Now all Graphics drawing images functions accept an extra optional argument to perform a texture tint.
- Changed arguments order of Graphics drawing images to respec lpp-3ds.
- Now Controls.read(), Controls.readLeftAnalog() and Controls.readRightAnalog() accept an extra argument that tells what controller to use (PSTV only)

New feature and improvements:

- Now lpp-vita will be able to use safe eboots for your homebrews.
- Increased available RAM size to 192 MB.
- Now multiple instances of the same sound can be put in reproduction without any issues.
- Now VSync is disabled by default and usable with Screen.waitVblankStart().

Bugfixes:

- Now Sound.pause() and Sound.resume() are working as intended.
- Now Sound.play() won't cause desync issues with PCM WAV tracks.
- Fixed LOOP and NO_LOOP globals. Now they're working as intended.
- Fixed a flaw in io.read() implementation. Now it works as intended.

Samples:

- Corrected syntax of Sound sample.
- Added Keyboard sample.
- Added File Downloader sample.
Download: http://rinnegatamante.it
If you want, visit my website: http://rinnegatamante.it :D

User avatar
mambertx
Posts: 7
Joined: Wed Apr 22, 2015 5:17 pm
Location: ε Eridani

Re: [RELEASE] Lua Player Plus Vita (lpp-vita)

Post by mambertx » Wed Aug 31, 2016 2:19 am

Wow, you keep adding features. It's very powerful scripting language.

Your labyrinth 3d it's pretty neat work!.

Nice intro it's ready to become a dungeon crawler :)

Kudos!

User avatar
Rinnegatamante
VIP
Posts: 732
Joined: Sat Mar 26, 2011 10:02 am
Contact:

Re: [RELEASE] Lua Player Plus Vita (lpp-vita)

Post by Rinnegatamante » Mon Jul 31, 2017 10:01 am

Huge update for lpp-vita after a year without official releases.
Changelog is pretty huge, several stuffs had been improved and a lot of new features are now available (eg: 3D rendering, new audio file formats support like .opus, built-in rescaler for easy adapting lpp-3ds homebrews and so on).

Full changelog:

Code: Select all

New functions:

- Network.getIPAddress() - Returns console IP address.
- Network.getMacAddress() - Returns console MAC address.
- Network.isWifiEnabled() - Checks if WiFi is enabled.
- Netowkr.getWifiLevel() - Returns WiFi strength value.
- Network.downloadFile() - Downloads a file using HTTP protocol.
- Network.requestString() - Gets result from an HTTP request.
- System.getTitle() - Returns running application title name.
- System.getTitleID() - Returns running application title ID.
- System.takeScreenshot() - Takes a screenshot in BMP or JPG format.
- System.getModel() - Returns console model value.
- System.executeUri() - Performs a custom URI call.
- System.setBusSpeed() - Sets BUS speed.
- System.setGpuSpeed() - Sets GPU speed.
- System.setGpuXbarSpeed() - Sets GPU Crossbar speed.
- System.getBusSpeed() - Gets BUS speed.
- System.getGpuSpeed() - Gets GPU speed.
- System.getGpuXbarSpeed() - Gets GPU Crossbar speed.
- System.extractSFO() - Extracts info from an SFO file.
- System.launchApp() - Launches an application by title ID.
- System.getBatteryCapacity() - Returns battery current capacity.
- System.getBatteryFullCapacity() - Returns maximum battery capacity.
- System.getBatteryTemp() - Returns battery temperature.
- System.getBatteryVolt() - Returns battery voltage.
- System.getBatteryHealth() - Returns battery state of health.
- System.getBatteryCycles() - Returns battery charge cycles count.
- System.reboot() - Reboots the console.
- System.enableTimer() - Enables a power save timer feature.
- System.disableTimer() - Disables a power save timer feature.
- System.isSafeMode() - Checks if the application is running in safe mode.
- System.setMessage() - Inits a new system message instance.
- System.getMessageState() - Gets system message state.
- System.setMessageProgress() - Sets current progress for a progressbar message.
- System.setMessageProgMsg() - Sets system submessage for a progressbar message.
- System.closeMessage() - Terms a system message instance.
- Sound.setVolume() - Sets internal volume value for a specified sound.
- Sound.getVolume() - Gets internal volume value for a specified sound.
- Sound.openAiff() - Opens an .aif/.aiff audio file.
- Sound.openOpus() - Opens an .opus audio file.
- Controls.setLightbar() - Sets lightbar color for Dualshock 4 (PSTV only).
- Controls.lockHomeButton() - Locks Home button functionality.
- Controls.unlockHomeButton() - Unlocks Home button functionality.
- Controls.enableAccel() - Enables accelerometer.
- Controls.enableGyro() - Enables gyroscope.
- Controls.disableAccel() - Disables accelerometer.
- Controls.disableGyro() - Disables gyroscope.
- Controls.readAccel() - Returns accelerometer state.
- Controls.readGyro() - Returns gyroscope state.
- Controls.getDeviceInfo() - Returns info about a specified controller port.
- Controls.headsetStatus() - Checks if headphone is plugged in (Unsafe mode only).
- Controls.getEnterButton() - Returns system enter button in use.
- Graphics.fillEmptyRect() - Draws an empty rectangle on screen.
- Graphics.initRescaler() - Starts a scene rescaler.
- Grapchis.termRescaler() - Ends a scene rescaler.
- Render.createVertex() - Creates a new vertex.
- Render.destroyVertex() - Frees a vertex.
- Render.loadModel() - Loads a vertex list as model with a texture.
- Render.loadObject() - Loads a model in .obj format with a texture.
- Render.unloadModel() - Frees a model.
- Render.drawModel() - Draws a model on screen.
- Render.useTexture() - Sets a given texture for a given model.
- Timer.setTime() - Sets internal time for a timer.
- Mic.start() - Starts microphone recording.
- Mic.stop() - Stops microphone recording and save result to a .wav file.
- Mic.pause() - Pauses microphone recording.
- Mic.resume() - Resumes microphone recording.
- Mic.isRecording() - Checks if microphone is recording.
- Camera.init() - Inits a camera instance.
- Camera.term() - Terminates a camera instance.
- Camera.getOutput() - Returns camera output as image object.
- Camera.setBrightness() - Sets camera brightness.
- Camera.getBrightness() - Gets camera brightness.
- Camera.setSaturation() - Sets camera saturation.
- Camera.getSaturation() - Gets camera saturation.
- Camera.setSharpness() - Sets camera sharpness.
- Camera.getSharpness() - Gets camera sharpness.
- Camera.setContrast() - Sets camera contrast.
- Camera.getContrast() - Gets camera contrast.
- Camera.setReverse() - Sets camera reverse effect.
- Camera.getReverse() - Gets camera reverse effect.
- Camera.setEffect() - Sets camera effect.
- Camera.getEffect() - Gets camera effect.
- Camera.setExposure() - Sets camera exposure level.
- Camera.getExposure() - Gets camera exposure level.
- Camera.setZoom() - Sets camera zoom value.
- Camera.getZoom() - Gets camera zoom value.
- Camera.setAntiFlicker() - Sets camera anti-flicker mode.
- Camera.getAntiFlicker() - Gets camera anti-flicker mode.
- Camera.setISO() - Sets camera ISO speed mode.
- Camera.getISO() - Gets camera ISO speed mode.
- Camera.setGain() - Sets camera gain.
- Camera.getGain() - Gets camera gain.
- Camera.setWhiteBalance() - Sets camera white balance mode.
- Camera.getWhiteBalance() - Gets camera white balance mode.
- Camera.setBacklight() - Sets camera backlight mode.
- Camera.getBacklight() - Gets camera backlight mode.
- Camera.setNightmode() - Sets camera nightmode.
- Camera.getNightmode() - Gets camera nightmode.

New globals:

- UDP_SOCKET - UDP protocol macro for sockets.
- TCP_SOCKET - TCP protocol macro for sockets.
- AUTO_SUSPEND_TIMER - Auto-suspension timer macro value.
- SCREEN_OFF_TIMER - Screen suspension timer macro value.
- SCREEN_DIMMING_TIMER - Screen dimming timer macro value.
- UNPAIRED_DEV - Unpaired device macro value.
- VITA_DEV - PSVITA device macro value.
- VIRTUAL_DEV - Virtual device macro value.
- DS3_DEV - Dualshock 3 device macro value.
- DS4_DEV - Dualshock 4 device macro value.
- GET_METHOD - GET method macro value.
- POST_METHOD - POST method macro value.
- HEAD_METHOD - HEAD method macro value.
- OPTIONS_METHOD - OPTIONS method macro value.
- PUT_METHOD - PUT method macro value.
- DELETE_METHOD - DELETE method macro value.
- TRACE_METHOD - TRACE method macro value.
- CONNECT_METHOD - CONNECT method macro value.
- SCE_CTRL_POWER - Power button macro value.
- SCE_CTRL_VOLUP - Volume Up button macro value.
- SCE_CTRL_VOLDOWN - Volume Down button macro value.
- SCE_CTRL_PSBUTTON - PS button macro value.
- BUTTON_OK - OK button only macro for system messages.
- BUTTON_YES_NO - YES and NO buttons macro for system messages.
- BUTTON_NONE - No buttons macro for system messages.
- BUTTON_OK_CANCEL - OK and CANCEL buttons macro for system messages.
- BUTTON_CANCEL - CANCEL button macro for system messages.
- ANTIFLICKER_AUTO - Automatic antiflicker mode for camera.
- ANTIFLICKER_50HZ - 50Hz antiflicker mode for camera.
- ANTIFLICKER_60HZ - 60Hz antiflicker mode for camera.
- ISO_AUTO - Automatic ISO speed mode for camera.
- ISO_100 - 100/21 ISO speed mode for camera.
- ISO_200 - 200/24 ISO speed mode for camera.
- ISO_400 - 400/27 ISO speed mode for camera.
- WB_AUTO - Automatic white balance mode for camera.
- WB_DAYLIGHT - Daylight white balance mode for camera.
- WB_CWF - Cool White Fluorescent white balance mode for camera.
- WB_SLSA - Standard Light Source A white balance mode for camera.
- BACKLIGHT_OFF - Backlight feature off for camera.
- BACKLIGHT_ON - Backlight feature on for camera.
- NIGHTMODE_OFF - Nightmode disabled for camera.
- NIGHTMODE_LOW - Nightmode for 10 lux or below for camera.
- NIGHTMODE_MED - Nightmode for 100 lux or below for camera.
- NIGHTMODE_HIGH - Nightmode for 100 lux or over for camera.
- REVERSE_OFF - Reverse mode off for camera.
- REVERSE_MIRROR - Mirror reverse mode for camera.
- REVERSE_FLIP - Flip reverse mode for camera.
- REVERSE_BOTH - Flip and Mirror reverse mode for camera.
- EFFECT_NONE - No effect mode for camera.
- EFFECT_NEGATIVE - Negative effect mode for camera.
- EFFECT_BLACKWITE - Black and White effect mode for camera.
- EFFECT_SEPIA - Sepia effect mode for camera.
- EFFECT_BLUE - Blue Neon effect mode for camera.
- EFFECT_RED - Red Neon effect mode for camera.
- EFFECT_GREEN - Green Neon effect mode for camera.
- VGA_RES - VGA (640x480) resolution for camera.
- QVGA_RES - QVGA (320x240) resolution for camera.
- QQVGA_RES - QQVGA (160x120) resolution for camera.
- CIF_RES - CIF (352x288) resolution for camera.
- QCIF_RES - QCIF (176x144) resolution for camera.
- PSP_RES - PSP screen (480x272) resolution for camera.
- NGP_RES - NGP screen (640x360) resolution for camera.

Removed functions:

- System.powerTick() has been removed. Replaced with System.enableTimer()/System.disableTimer().

Syntax changes:

- Renamed System.getBatteryLifetime() to System.getBatteryLife().
- Now Graphics.drawImageExtended() takes up to 11 arguments allowing to specify even rotation value.
- Now Controls.rumble() takes up to 3 arguments allowing to specify different intensity values for large and small sensors.
- Now Graphics.drawPixel() takes up to 4 arguments allowing user to draw on textures.
- Socket.createServer() and Socket.connect() take now an extra optional argument to specify socket protocol.
- io.open() is now System.openFile()
- io.read() is now System.readFile()
- io.write() is now System.writeFile()
- io.close() is now System.closeFile()
- io.seek() is now System.seekFile()
- io.size() is now System.sizeFile()
- Socket.init() is now Network.init()
- Socket.term() is now Network.term()
- Bitshift functions had been moved to bit32 module.
- Graphics.createImage() takes an extra optional value to specify the color of the created image.
- Changed arguments order for Graphics.drawImageExtended() and Graphics.drawPartialImage() to match other drawImage functions scheme.

New feature and improvements:

- Now interpreter can be compiled with SKIP_ERROR_HANDLING macro to reduce error handler work producing a slight frameboost.
- Now interpreter can be compiled with PARANOID macro to extend error handler with extra security checks.
- Controls module functions are now a bit faster due to change from LUA_NUMBER to LUA_INTEGER usage.
- Added UDP protocol support for sockets.
- Added Render module for hardware accelerated 3D rendering.
- Reintroduced standard Lua i/o functions. lpp-vita one had been moved to System module.
- Added a rescaler system to easily adapt lpp-3ds homebrews to lpp-vita in terms of rendering code.
- Added .aif/.aiff/.opus audio files support to Sound module.
- Now lpp-vita supports up to 4 different controller ports (PSTV only).
- Added Mic module for microphone usage.
- Added gyroscope and accelerometer support.
- Now Keyboard module will use console enter button and language.
- Now lpp-vita runs under LuaJit. This means a huge performance boost.
- Added Camera module to use PSVITA photo cameras in your applications.
- Now Font.load() supports .pvf and .pgf fonts too.

Bugfixes:

- Now System.rename() is working as intended.
- Now System.sizeFile() doesn't reset filehandle offset anymore.
- Now Graphics.getPixel() is working as intended.
- Now the error handler will always show detected error without graphics glitches.
- Now interpreter won't freeze or crash anymore when multiple sounds are spammed.
- Now mono audio files playback is working as intended.
Download:
https://github.com/Rinnegatamante/lpp-vita/releases
If you want, visit my website: http://rinnegatamante.it :D

User avatar
big_Sakis25
Posts: 48
Joined: Sat Oct 20, 2012 10:52 am

Re: [RELEASE] Lua Player Plus Vita (lpp-vita)

Post by big_Sakis25 » Sun Aug 06, 2017 7:58 am

R6 update is awesome with so many great new features.
Is there any way to access the "ux0:/picture" folder so you can store screenshots there and then view them on the official Photos app?
I tried the unsafe eboot file from lpp-builder to see if I can get access to that folder but lpp-builder is not working with the new r6 version features.

User avatar
Rinnegatamante
VIP
Posts: 732
Joined: Sat Mar 26, 2011 10:02 am
Contact:

Re: [RELEASE] Lua Player Plus Vita (lpp-vita)

Post by Rinnegatamante » Sun Aug 06, 2017 5:46 pm

big_Sakis25 wrote:R6 update is awesome with so many great new features.
Is there any way to access the "ux0:/picture" folder so you can store screenshots there and then view them on the official Photos app?
I tried the unsafe eboot file from lpp-builder to see if I can get access to that folder but lpp-builder is not working with the new r6 version features.
Standard PSVita screenshots are enabled, by pressing HOME+START, you'll take a screenshot that will be automatically saved in ux0:/picture and will be visible in Photos app.
If you want, visit my website: http://rinnegatamante.it :D

Post Reply

Return to “HENkaku”