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

  • Thread starter Thread starter Rinnegatamante
  • Start date Start date
  • Views Views 187,227
  • Replies Replies 1,199
  • Likes Likes 35
Try refreshing the page. This forum engine can be weird when it comes to posting from previous pages, or people posting new things since you refreshed.
When I refresh it shows me different posts... I tried on firefox and it works fine. Probably just one of my extensions conflicting with chrome :P
 
  • Like
Reactions: Seriel
I wanted to ask if it is possible to create a build with a custom homebrew launcher image, name and description. How do you do that?
 
  • Like
Reactions: Seriel
I wanted to ask if it is possible to create a build with a custom homebrew launcher image, name and description. How do you do that?
Those are in the .smdh. I suggest taking a look at The SMDH Creator if you're on Windows.
There's also the command line program smdhtool which comes with devkitPro I think.
 
  • Like
Reactions: Seriel
Those are in the .smdh. I suggest taking a look at The SMDH Creator if you're on Windows.
There's also the command line program smdhtool which comes with devkitPro I think.

1. Unfortunately I only own a Mac, I could use something like Parallels to use the SMDH Creator, but that would be much more work. is there a alternative for Mac?
2. I'm also almost completely new to 3DS homebrew, what is a .smdh file, how do I access and use it?
 
  • Like
Reactions: Seriel
1. Unfortunately I only own a Mac, I could use something like Parallels to use the SMDH Creator, but that would be much more work. is there a alternative for Mac?
2. I'm also almost completely new to 3DS homebrew, what is a .smdh file, how do I access and use it?
An .smdh contains an icon, a name, a long name/description, and the author. It's a format used by Nintendo too.

There is an online version someone made that you can look at.

To use it with the homebrew launcher, the simplest thing to do is name it the same thing as the .3dsx.
 
  • Like
Reactions: Seriel
An .smdh contains an icon, a name, a long name/description, and the author. It's a format used by Nintendo too.

There is an online version someone made that you can look at.

To use it with the homebrew launcher, the simplest thing to do is name it the same thing as the .3dsx.

Thanks :)


Also another question: All networking functions still aren't working for me... Is there any way to fix that?
 
  • Like
Reactions: Seriel
I'm writing a test program:
Code:
lol = Sound.openWav("/assets/success.wav",false)
Sound.init()
Sound.play(lol,NO_LOOP,0x09)
Screen.debugPrint(0,0,'TROLOLOLOLOLOLOLOLOLOLOLOLOLOLOL',color,BOTTOM_SCREEN)
if (Controls.pad(Controls.read,KEY_B)) then
    Sound.term()
    System.exit()
end
for Sound.play i get a bad argument #1, expected number, got boolean :mellow:
 
  • Like
Reactions: Seriel
I'm writing a test program:
Code:
lol = Sound.openWav("/assets/success.wav",false)
Sound.init()
Sound.play(lol,NO_LOOP,0x09)
Screen.debugPrint(0,0,'TROLOLOLOLOLOLOLOLOLOLOLOLOLOLOL',color,BOTTOM_SCREEN)
if (Controls.pad(Controls.read,KEY_B)) then
    Sound.term()
    System.exit()
end
for Sound.play i get a bad argument #1, expected number, got boolean :mellow:
I have not used any Sound functions, but you should try this to load the file relative to the .3dsx location.
Code:
lol = Sound.openWav(System.currentDirectory().."/assets/success.wav",false)
 
  • Like
Reactions: Seriel
I'm writing a test program:
Code:
lol = Sound.openWav("/assets/success.wav",false)
Sound.init()
Sound.play(lol,NO_LOOP,0x09)
Screen.debugPrint(0,0,'TROLOLOLOLOLOLOLOLOLOLOLOLOLOLOL',color,BOTTOM_SCREEN)
if (Controls.pad(Controls.read,KEY_B)) then
    Sound.term()
    System.exit()
end
for Sound.play i get a bad argument #1, expected number, got boolean :mellow:

Are you sure the error is related to Sound.play? NO_LOOP is registered as a normal integer in LUA stack by the interpreter.
 
  • Like
Reactions: Seriel
I can think of no other issues that would flag this error other than a second Sound.play function in your code that you have not shown.
 
  • Like
Reactions: Seriel
Hello, I'm trying to get a number from a file, however, io.read returns a string, and tonumber() doesn't seem to work, is there any way I can read a number from a file?
 
  • Like
Reactions: Seriel
Hello, I'm trying to get a number from a file, however, io.read returns a string, and tonumber() doesn't seem to work, is there any way I can read a number from a file?

Does your file only contain a number, no other characters or linebreaks? You may also want to try using the debugPrint function to print it as a string to make sure you are even loading the file correctly.
 
  • Like
Reactions: Seriel
Yep,I tested with a file with a single 1, and it reads it as string (trying to operate with it returns expected number, got string)

EDIT: Found another way to do what I want, however, I now get "not enough memory".
 
Last edited by PabloMK7,
  • Like
Reactions: Seriel

Site & Scene News

Popular threads in this forum