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,858
Country
Italy

ihaveahax

Well-Known Member
Member
Joined
Apr 20, 2015
Messages
6,070
Trophies
2
XP
7,863
Country
United States
The screen just stays red when I try to use this is a boot.3dsx.

I place the index.lua at the root of the sd card, right?


If it's not related to where my index.lua file is, is it a problem with my code?
oldpad=999
pad=999

while true do
Screen.waitVblankStart()
Screen.refresh()
Screen.clear(TOP_SCREEN)
Screen.clear(BOTTOM_SCREEN)
pad = Controls.read()

Screen.debugPrint(0, 0, "Happy", Color.new(255,255,94), TOP_SCREEN)

if pad~=oldpad and (Controls.check(pad,KEY_X)) then
if start_dir == "/" and build ~= "Custom Firmware" then -- boot.3dsx patch
System.reboot()
else
System.exit()
end
end


Screen.flip()
oldpad = pad
end
there is a more technical explanation, but due to the size of lpp-3ds, it can't be used as a boot.3dsx directly under ninjhax 2.x.
 

ihaveahax

Well-Known Member
Member
Joined
Apr 20, 2015
Messages
6,070
Trophies
2
XP
7,863
Country
United States

HexZyle

Pretty Petty Pedant
Member
Joined
Sep 12, 2015
Messages
300
Trophies
0
XP
452
Country
Australia
EDIT: figured it out, turns out the 3DS is capable of far more than 30 frames, but as you bog it down with more and more stuff it eventually dips below, that's why the ratio of draw functions to framedrop seemed odd at first.

So now I'm relying more on frame duration in milliseconds rather than framerate to determine what needs optimizing and how much resource I have before slowdown occurs.
 
Last edited by HexZyle,

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,858
Country
Italy
To anyone who wants to use audio in their homebrews, i'm currently working hard to solve dsp:: DSP service problem. In the meantime, i fixxed csnd:SND service on NH 2.5 (it means audio is now available also on NH2.5!) but there are few things to say:

1) There could be some bug with static loud / looped blocks with OGG streaming (report me music files info if this appears like bitrate, samplerate, audiotype, audio length).
2) An audio device has been implemented in lpp-3ds. It means you no longer need to specify channels with Sound.play.
3) Now Sound.play can assume as facoltative 3rd argument an interpolation mode (NO_INTERP, LINEAR_INTERP, POLYPHASE_INTERP). By default is set to LINEAR_INTERP and POLYPHASE_INTERP is available only with dsp:: DSP
4) Sound system now check at the begin if csnd:SND service is accessible. If it's available, it's used as sound service, if not, (experimental) dsp:: DSP is used.
5) To check if your executable is running csnd:SND or dsp:: DSP, you can use Sound.getService(), it will returns you a string with the service currently running with Sound system.
6) Video playback (JPGV & BMPV) are currently using csnd:SND hardcoded. It means if you use a Video module feature when you're on dsp:: DSP, you'll get a console freeze.
7) Network module and csnd:SND are incompatible. It means if you need Socketing or Networking you have to use experminetal dsp:: DSP which have a lot of issues ( https://github.com/smealum/ctrulib/issues/209 )
8) To use csnd:SND you have to use this service descriptor template in your homebrew:

Code:
<services autodetect="false">
  <request priority="1">csnd:SND</request>
</services>

To use sound system, you can grab this Nighly Build: https://github.com/Rinnegatamante/lpp-3ds/commit/6c46ddd9f95aad14e068827ac91e1459907a9b70
 
Last edited by Rinnegatamante,

keanutah

Well-Known Member
Member
Joined
Sep 18, 2015
Messages
173
Trophies
0
Age
34
XP
192
Country
United States
To anyone who wants to use audio in their homebrews, i'm currently working hard to solve dsp:: DSP service problem. In the meantime, i fixxed csnd:SND service on NH 2.5 (it means audio is now available also on NH2.5!) but there are few things to say:

1) There could be some bug with static loud / looped blocks with OGG streaming (report me music files info if this appears like bitrate, samplerate, audiotype, audio length).
2) An audio device has been implemented in lpp-3ds. It means you no longer need to specify channels with Sound.play.
3) Now Sound.play can assume as facoltative 3rd argument an interpolation mode (NO_INTERP, LINEAR_INTERP, POLYPHASE_INTERP). By default is set to LINEAR_INTERP and POLYPHASE_INTERP is available only with dsp:: DSP
4) Sound system now check at the begin if csnd:SND service is accessible. If it's available, it's used as sound service, if not, (experimental) dsp:: DSP is used.
5) To check if your executable is running csnd:SND or dsp:: DSP, you can use Sound.getService(), it will returns you a string with the service currently running with Sound system.
6) Video playback (JPGV & BMPV) are currently using csnd:SND hardcoded. It means if you use a Video module feature when you're on dsp:: DSP, you'll get a console freeze.
7) Network module and csnd:SND are incompatible. It means if you need Socketing or Networking you have to use experminetal dsp:: DSP which have a lot of issues ( https://github.com/smealum/ctrulib/issues/209 )
8) To use csnd:SND you have to use this service descriptor template in your homebrew:

Code:
<services autodetect="false">
  <request priority="1">csnd:SND</request>
</services>

To use sound system, you can grab this Nighly Build: https://github.com/Rinnegatamante/lpp-3ds/commit/6c46ddd9f95aad14e068827ac91e1459907a9b70
Awesome news man, I will check this out real soon. Thanks for all your hard work :D
 

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,858
Country
Italy
As @ihaveamac said, currently 3dsx launcher works only on NH1.1b (on NH 2.X it will result in a system crash); my first goals for next revision of lpp-3ds (r4) are to fully solve luaSound issues, add NH2.x 3dsx launcher support and add new services access (like the camera ones).
 

ihaveahax

Well-Known Member
Member
Joined
Apr 20, 2015
Messages
6,070
Trophies
2
XP
7,863
Country
United States
Kann you write an Wii version to? There is currently no Lua on wii.

Or is it only thought for portable consoles?
I don't use any home console (they are just a money stealing way).
well, here's some I found while searching online.
I haven't used any of these so I can't comment on stability or usefulness, especially given that both seem old. then again, the Wii homebrew scene is much older than 3DS.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Sicklyboy @ Sicklyboy:
    I used to drink alcohol fairly often. Never to the point of it being a problem, but like 2-3 beers with dinner each night, or a few cocktails or glasses of Scotch or something. Started smoking/vaping weed a lot a few years back which killed 90% of my interest in booze. Now I stopped smoking/vaping weed as much and just deal with life the boring way most of the time
    +1
  • Xdqwerty @ Xdqwerty:
    I only drank alcohol once and it was by accident
  • Xdqwerty @ Xdqwerty:
    I didnt know it was beer, it was on a juice bottle
  • SylverReZ @ SylverReZ:
    Yeah, I'm addicted to smoking, sadly. It's very addictive but I wish I didn't start.
  • K3Nv2 @ K3Nv2:
    May just order a 5700g for a nas/emulation set up tbh
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, atleast you were asleep on 4/20
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, you played that Mario flash game called Mario 63?
  • SylverReZ @ SylverReZ:
    @Xdqwerty, No, but I've seen it on Vinesauce's stream.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, that game is one of the reasons i met newgrounds bc the full versión of it is in that site
  • Xdqwerty @ Xdqwerty:
    Also somebody is remaking it
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, the other game where I found newgrounds is new york shark
    +1
  • SylverReZ @ SylverReZ:
    Spoke to Tom Fulp the other day, if he can find his old Newgrounds site content like the mini Flash animations from the 2000's that played on the portal.
  • SylverReZ @ SylverReZ:
    So far no response, but he did say that he'll find them. Wayback Machine doesn't have em.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, atleast the 1999 versión of pico's school is avaliable (the difference between it, the 2006 versión and the 2016 versión is that the speed of the game depends of the speed of your computer and that it had the og soundtrack)
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Another being Pico VS Bear, the original 1999 version before Jim Henson filed a DMCA takedown.
    +1
  • Xdqwerty @ Xdqwerty:
    The 2006 versión was made when the flash portal was made
  • SylverReZ @ SylverReZ:
    Many people thought it was lost, but was discovered that he hid it on the same page.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, although the "secrets" system where the game was has been removed. Also pico vs uberkids had a netplay versión that was shutdown, although the swf file has been found
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Nope. There are two download buttons on the same page, where you can download the original under a file called "bear.exe". "bear2.exe", however, is the updated game in a Flash projector. P.s. this was on the archived Pico page from 2000.
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's been there for a long time, too. People who search for lost media don't look hard enough lmao.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, also the pico 2 demos used to be only for the newgrounds patrons but they are on internet archive too (https://archive.org/download/picos_school_2)
    +1
  • Xdqwerty @ Xdqwerty:
    Iirc the demos were removed from newgrounds in 2022
    Xdqwerty @ Xdqwerty: Iirc the demos were removed from newgrounds in 2022