Homebrew [Release] Lua Player Plus 3DS (lpp-3ds) - LUA interpreter for 3DS

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
Awesome! Thank you so much for the help I finally get it!

Just to let you know, obviously you cannot put C/C++ code in a LUA script. You can execute only LUA code using basic LUA functions (See Programming in LUA or the official documentation from www.lua.org) and private lpp-3ds functions (See Documentation.html in release RAR).
 

BurningDesire

Well-Known Member
Member
Joined
Jan 27, 2015
Messages
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,885
Country
United States
Just to let you know, obviously you cannot put C/C++ code in a LUA script. You can execute only LUA code using basic LUA functions (See Programming in LUA or the official documentation from www.lua.org) and private lpp-3ds functions (See Documentation.html in release RAR).
Okay, Guess I get to learn a new language to! thanks!
 

BurningDesire

Well-Known Member
Member
Joined
Jan 27, 2015
Messages
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,885
Country
United States
I made few months ago a topic to announce lpp-3ds but i never released it officialyy as Cid2Mizard told me in PM so i taught to make a Release Pack for it.

Lua Player Plus 3DS
aka lpp-3ds

Description:
Lua Player Plus 3DS is a LUA interpreter for 3DS/N3DS made by me forked from original lpp-c++ (PSP/PSVITA) trunk made by me and NaNNi.

lpp-3ds runs under LUA 5.3.0.

It provides different cool features like audio playback, video playback, zip extraction, images loading support, alpha blending, network features, socketing features, etc...

It also have an integrated debugger with FTP server support so you can patch your scripts in runtime.

As always, using a LUA interpreter is very simple, you just have to rename lpp-3ds-3dsx as MyHomebrewName.3dsx, put it in /3ds/MyHomebrewName/ folder and start writing your code in /3ds/MYHomebrewName/index.lua.

In the package you'll find a documentation for all lpp-3ds functions, a 3DSX build, an ELF build to make your CIA/3DS builds, some LUA scripts samples.

Features:
- 2D Graphics system with different built-in functions for drawing text, creating debug consoles, filling rectangles, drawing pixels, etc.
- Alpha channel support
- Native support to BMP/PNG/JPG images
- Sound system for reproducing audio files and recording audio with microphone
- Native support to WAV/AIFF/OGG audio files
- Complete access to Nintendo 3DS controls
- I/O features for SDMC and EXTDATA
- Video system for reproducing video files with native support to BMPV/JPGV video files
- Timer system
- Advanced arithmetical functions
- Native 3D support
- Internet connectivity features through Network module (Like downloading files, sending mails)
- Socketing functions (Like FTP server)
- Read access to different 3DS info (Firmware, Mac Address, Kernel Version, Region, etc.)
- Built-in Keyboard system
- Native support to 3DSX homebrews and SMDH homebrew datas
- Native support to CIA archives
- Native support to ZIP archives
- Access to some 3DS syscalls (Reboot System, Launching Cartridges, etc.)

Some homebrews which uses lpp-3ds core:
- Sunshell ( http://gbatemp.net/threads/release-sunshell-a-powerfull-shell-for-3ds.382483/ )
- ORGANIZ3D ( http://gbatemp.net/threads/release-organiz3d-filebrowser-for-3ds.377783/ )
- PixelRoad ( http://gbatemp.net/threads/pixelroad-a-stupid-game-hb-to-test-lpp.375292 )
- 3DS Briscola ( http://gbatemp.net/threads/3ds-briscola-briscola-card-game-for-3ds.376901/ )
- CHMM ( http://gbatemp.net/threads/chmm-custom-homemenu-manager.379349/ )
- Big Red Menu ( http://gbatemp.net/threads/big-red-menu-legal-cia-installer-uninstaller.379061/ )
- 3DSHangman ( http://gbatemp.net/threads/release-3dshangman.379285/ )

Credits:
- Lua Player Plus 3DS made by Rinnegatamante
- Original Lua Player Plus made by Rinnegatamante & NaNNi

Thanks to:
- smealum for libctru and ftpony sourcecode
- StapleButter for debug font
- Lode Vandevenne for lodepng
- Jean-loup Gailly and Mark Adler for zlib
- Xiph.org Foundation for libogg and vorbisfile
- Aurelio for testing, bug-fixing and various help with codes and implementations

Download:
lpp-3ds Rev. 1: https://github.com/Rinnegatamante/lpp-3ds/releases/download/r1/Lua.Player.Plus.3DS.rar

Useful links:
- Documentation: http://rinnegatamante.netsons.org/lpp-3ds_doc.html
- Support board: http://luaplayerplus.proboards.com/
- Original lpp repository: https://github.com/Rinnegatamante/lua-player-plus
- lpp information: http://rinnegatamante.netsons.org/site/lpp.php


One more thing: How do I run this on citra?
 

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
Lua Player Plus r2 has been released!

Code:
Deprecated functions:
-------------------------------------
- Controls.init() has been deprecated.
 
-------------------------------------
New functions/functionalities:
-------------------------------------
- Added basic error handling system for security checks.
- Added GPU rendering support through Graphics module.
- Added TTF fonts support through Font module.
- Added vorbis audiocodec support to JPGV video files.
- Added OGG audio files metadatas support.
- Added 3D support to JPGV video files.
- Added automatic kernel access escalation to interpreter through libkhax.
 
-------------------------------------
Changes and bugfixes:
-------------------------------------
- Minor bugfixes for some System module functions.
- Improved OGG audio files decoder: now OGG files are correctly reproduced.
- Improved Sound streaming system. Now using streaming feature doesn't cause stuttering.
- Improved Video system. Now framerate is better.
- Bugfix for Network.getIPAddress(). Now it works correctly.
- Bugfix for System.getFreeSpace(). Now it works correctly.
 
-------------------------------------
Samples related changes:
-------------------------------------
- Updated samples to new syntax.
- Added sample for Power and Home buttons support.
 

Chelsea_Fantasy

Someone who hates slow internet connections
Member
Joined
Mar 25, 2014
Messages
1,141
Trophies
0
Age
34
XP
1,513
Country
Cuba
Lua Player Plus r2 has been released!

Code:
Deprecated functions:
-------------------------------------
- Controls.init() has been deprecated.
 
-------------------------------------
New functions/functionalities:
-------------------------------------
- Added basic error handling system for security checks.
- Added GPU rendering support through Graphics module.
- Added TTF fonts support through Font module.
- Added vorbis audiocodec support to JPGV video files.
- Added OGG audio files metadatas support.
- Added 3D support to JPGV video files.
- Added automatic kernel access escalation to interpreter through libkhax.
 
-------------------------------------
Changes and bugfixes:
-------------------------------------
- Minor bugfixes for some System module functions.
- Improved OGG audio files decoder: now OGG files are correctly reproduced.
- Improved Sound streaming system. Now using streaming feature doesn't cause stuttering.
- Improved Video system. Now framerate is better.
- Bugfix for Network.getIPAddress(). Now it works correctly.
- Bugfix for System.getFreeSpace(). Now it works correctly.
 
-------------------------------------
Samples related changes:
-------------------------------------
- Updated samples to new syntax.
- Added sample for Power and Home buttons support.
way to go:yay::bow::grog:
 

Machina

New Member
Newbie
Joined
Mar 16, 2015
Messages
4
Trophies
0
XP
67
Country
United States
I'm having trouble with the LPP3DS R2 3DSX file. Whenever I boot LPP3DS R2 it takes me back to the 3DS's home menu. I copy/pasted the Hello World code from the samples to see if there was an error related to my code specifically, but nothing changed. If I swap the new 3DSX file with the previous one I was using, the nightly build upload, it works fine. I'm using ninjhax on firmware version 9.2.0-2.0U.
 

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
I'm having trouble with the LPP3DS R2 3DSX file. Whenever I boot LPP3DS R2 it takes me back to the 3DS's home menu. I copy/pasted the Hello World code from the samples to see if was an error related to my code specifically, but nothing changed. If I swap the new 3DSX file with the previous one I was using, the nightly build upload, it works fine. I'm using ninjhax on firmware version 9.2.0-2.0U.

You right, i use my lpp-3ds src to append modifies for Sunshell private build so i forgot to remove sun_index.lua as main script. Solved now, redownload it and it should work fine.
 

cere_ender

Active Member
Newcomer
Joined
Jul 7, 2015
Messages
44
Trophies
0
Age
31
XP
97
Country
Hello! I'm trying to install 3DSudoku and lpp-3ds interpreter (I compiled myself with the build.bat) as cia, but when I want to run them, I've got an error and the console reboots.
How can I use it without ninjhax? I use rxtools 2.6, sysnand 4.5.0-8E and emunand 9.8.0E. Thank you! SOrry for my poor english.
 

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
Hello! I'm trying to install 3DSudoku and lpp-3ds interpreter (I compiled myself with the build.bat) as cia, but when I want to run them, I've got an error and the console reboots.
How can I use it without ninjhax? I use rxtools 2.6, sysnand 4.5.0-8E and emunand 9.8.0E. Thank you! SOrry for my poor english.

You don't need to compile lpp-3ds, 3DSudoku is completely stand-alone even if it's build using lpp-3ds.
 

cere_ender

Active Member
Newcomer
Joined
Jul 7, 2015
Messages
44
Trophies
0
Age
31
XP
97
Country
You don't need to compile lpp-3ds, 3DSudoku is completely stand-alone even if it's build using lpp-3ds.
But how I can run homebrew without ninjhax in emunand 9.8 or sysnand 4.5? Ninjhax can't run with rxtools. And without Ninjhax I can't run lpp-3ds. 3dsSudoku in cia don't run, it returns an error with a reboot.
 

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
But how I can run homebrew without ninjhax in emunand 9.8 or sysnand 4.5? Ninjhax can't run with rxtools. And without Ninjhax I can't run lpp-3ds. 3dsSudoku in cia don't run, it returns an error with a reboot.

What error you get? You placed the LUA file in the right position?
 

cere_ender

Active Member
Newcomer
Joined
Jul 7, 2015
Messages
44
Trophies
0
Age
31
XP
97
Country
What error you get? You placed the LUA file in the right position?
I placed every file in its directory (I try at root, and 3ds/sudoku/, 3ds/lpp-3ds/,3ds/asteroids3D/, and variants) but when I try to launch a program, I've got black screen and the message "The program has closed, the console will reboot".
 

Attachments

  • 1436293324308.jpg
    1436293324308.jpg
    823.9 KB · Views: 281

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
I placed every file in its directory (I try at root, and 3ds/sudoku/, 3ds/lpp-3ds/,3ds/asteroids3D/, and variants) but when I try to launch a program, I've got black screen and the message "The program has closed, the console will reboot".

Have you download the GW fix? (It is necessary for 3DS/CIA build)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: https://www.ebay.com/itm/386617469929?mkcid=16&mkevt=1&mkrid=711-127632-2357-0&ssspo=2T8UwYf_Qse&...