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

  • Thread starter Thread starter Rinnegatamante
  • Start date Start date
  • Views Views 187,231
  • Replies Replies 1,199
  • Likes Likes 35
Hi Rinne and company!

Can I make an Layout to use it for Main Menu?
For example this:

320px-Super_Mario_3D_Land-title.png
 
Well, you know how the homebrew launcher is a .3dsx put at the root of the sd card and is called boot.3dsx?
Could I make a homebrew with this, and have it be the boot.3dsx instead of the homebrew launcher?

So you asked for the wrong thing, you said "Can this not be used as boot.3dsx?" xD.
Anyway, yes, it's completely possible but you have to do some difference on exiting function. (You can see Sunshell boot.3dsx "patch" for home-menu return here: https://github.com/Rinnegatamante/Sunshell/blob/master/LUA/sun_index.lua#L377-L381
 
You can use the getPixel function to get the color (It can assume an image or a screen).
Thanks. Then I would do:
Code:
if getpixel = 255,255,254 then
-- do something
Right?
EDIT: It doesn't have to be color based. I should rephrase my original question. How can I make it so that when I touch a certain part of the screen it does a certain thing?
 
Last edited by Jwiz33,
I used the listDirectory function like so:
Code:
filebrowser_arc_dir = System.listDirectory(System.currentDirectory())

But attempting to print filebrowser_arc_dir[1] throws an error saying that it's a table when it was expecting a string. Does listDirectory create tables inside tables?
 
I used the listDirectory function like so:
Code:
filebrowser_arc_dir = System.listDirectory(System.currentDirectory())

But attempting to print filebrowser_arc_dir[1] throws an error saying that it's a table when it was expecting a string. Does listDirectory create tables inside tables?

Yes, you should do something like filebrowser_arc_dir[1].name to get the name
 
Are the strings returned by the listDirectory function one byte per character, or are they something like UTF8? Because I just attempted a list directory, and it printed all the filenames, but with all the alphanumeric characters missing, only the underscores and periods printed out (my custom print function only detects alphanumeric characters and a couple symbols)

EDIT: Nevermind, I forgot my string printing system will only print capital letters. I need to auto-uppercase anything that is being read by my string printing system as a failsafe.
 
Last edited by HexZyle,
Hi, I'm new to lua and I am trying to open a file that was created using tiled. Here is my index.lua:
Code:
testmap = io.open("/test.lua", FREAD)

consle = Console.new(TOP_SCREEN)

text = io.read(testmap,0,1139)
io.close(testmap)

while true do
  Screen.refresh()
  Screen.clear(TOP_SCREEN)
  Console.append(consle, text)
  Console.show(consle)
  Screen.flip()
  Screen.waitVblankStart()
  Console.clear(consle)
  pad = Controls.read()
  if (Controls.check(pad,KEY_A)) then
    System.exit()
  end
end
It gives me no errors, and it works fine in Citra, but when I try it on my O3DS w/ ninjhax, it just shows a black screen. Do you know what I am doing wrong?
 
Hi, I'm new to lua and I am trying to open a file that was created using tiled. Here is my index.lua:
Code:
testmap = io.open("/test.lua", FREAD)

consle = Console.new(TOP_SCREEN)

text = io.read(testmap,0,1139)
io.close(testmap)

while true do
  Screen.refresh()
  Screen.clear(TOP_SCREEN)
  Console.append(consle, text)
  Console.show(consle)
  Screen.flip()
  Screen.waitVblankStart()
  Console.clear(consle)
  pad = Controls.read()
  if (Controls.check(pad,KEY_A)) then
    System.exit()
  end
end
It gives me no errors, and it works fine in Citra, but when I try it on my O3DS w/ ninjhax, it just shows a black screen. Do you know what I am doing wrong?

Where you placed your scripts?
 

Site & Scene News

Popular threads in this forum