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

  • Thread starter Thread starter Rinnegatamante
  • Start date Start date
  • Views Views 187,232
  • Replies Replies 1,199
  • Likes Likes 35
...

Code:
c:/Users/Chris/Desktop/sadsd/lpp-3ds-master/source/luaMic.cpp:142:12: error: redefinition of 'int lua_stoprec_CSND(lua_State*)'staticint lua_stoprec_CSND(lua_State *L)^
c:/Users/Chris/Desktop/sadsd/lpp-3ds-master/source/luaMic.cpp:105:12: note:'int lua_stoprec_CSND(lua_State*)' previously defined here
staticint lua_stoprec_CSND(lua_State *L)
 
In the future i'll probably change it but it's not a high priority feature. (I'll probably add Danzeff keyboard instead of HBKBLib).
Thanks, i have a problem with lpp-3ds i run this and it return to hbl but when i connect sd to pc i see that there isn´t any downloaded file.

Code:
if Network.isWifiEnabled() then
    Network.downloadFile("http://www.thinkingpineapple.tk/blarg.zip","/Downloaded.zip")
    System.extractZIP("/Downloaded.zip",System.currentDirectory().."/")
    System.deleteFile("/Downloaded.zip")
end
System.exit()
 
Thanks, i have a problem with lpp-3ds i run this and it return to hbl but when i connect sd to pc i see that there isn´t any downloaded file.

Code:
if Network.isWifiEnabled() then
    Network.downloadFile("http://www.thinkingpineapple.tk/blarg.zip","/Downloaded.zip")
    System.extractZIP("/Downloaded.zip",System.currentDirectory().."/")
    System.deleteFile("/Downloaded.zip")
end
System.exit()
try removing "if Network.isWifiEnabled() then" and "end", having just this:
Code:
Network.downloadFile("http://www.thinkingpineapple.tk/blarg.zip","/Downloaded.zip")
System.extractZIP("/Downloaded.zip",System.currentDirectory().."/")
System.deleteFile("/Downloaded.zip")
the rest of it seems to be fine.
 
try removing "if Network.isWifiEnabled() then" and "end", having just this:
Code:
Network.downloadFile("http://www.thinkingpineapple.tk/blarg.zip","/Downloaded.zip")
System.extractZIP("/Downloaded.zip",System.currentDirectory().."/")
System.deleteFile("/Downloaded.zip")
the rest of it seems to be fine.
It work with http://blargsnes.kuribo64.net/download/blargSnes_1.3b.zip but don´t work with http://www.thinkingpineapple.tk/blarg.zip. And i have another question. Does it work with https?
http://www.thinkingpineapple.tk/blarg.zip tell me that can´t open zip
 
Code:
Network.downloadFile("http://www.thinkingpineapple.tk/goonie/nes.zip","/Downloaded.zip")
System.extractZIP("/Downloaded.zip",System.currentDirectory().."/")
System.deleteFile("/Downloaded.zip")
I have the same error " can´t open zip "
 
Last edited by Stecker8,
I can't even get lpp-3ds to work. I open it up, it shows a black screen with a single green pixel in the bottom left corner. If I do the L+R+DOWN+B thing to exit to HBL it starts to, but freezes, then crashes back to the 3DS home menu.
 
I can't even get lpp-3ds to work. I open it up, it shows a black screen with a single green pixel in the bottom left corner. If I do the L+R+DOWN+B thing to exit to HBL it starts to, but freezes, then crashes back to the 3DS home menu.
lpp-3ds an interpreter, not a standalone homebrew application.

you need to have an index.lua next to the .3dsx.

there are some samples included with the download. simply copy one, put it next to the .3dsx, rename it index.lua, and run it.

then, open the .lua and poke around!


I'm pretty sure the latest one (r4) should tell you if the index.lua is missing. if you do have one, what's the code?
 
This is what I have.

Code:
while true do
     Screen.debugPrint(0, 0, "Hello World", Color.new(255, 255, 255), TOP_SCREEN)
end
 
This is what I have.

Code:
while true do
     Screen.debugPrint(0, 0, "Hello World", Color.new(255, 255, 255), TOP_SCREEN)
end
you're missing some things that would actually display it on the screen. here let me help you out:
Code:
while true do
    Screen.waitVblankStart()
    Screen.refresh()
    Screen.debugPrint(0, 0, "Hello World", Color.new(255, 255, 255), TOP_SCREEN)
    Screen.flip()
  
    -- now lets add a method to exit!
    pad = Controls.read()
    if Controls.check(pad, KEY_B) then
        System.exit()
    end
end
 
Finally found a solution for dsp service. (As stated also with CHMM2). It means when i'll finish to work on luaSound, network AND audio will be available together on NH 2.X without quality loss (cause atm dsp service is in an experimental stage and works shitty).
 
  • Like
Reactions: ihaveahax
I'm trying to use the socket functions, but...

My code is edited from the socket example:
Code:
Socket.init()
server = Socket.createServerSocket(15505)

-- Create a debug console
cns = Console.new(TOP_SCREEN)
state = 0
while true do
    -- Clear screen
    Screen.refresh()
    Screen.clear(TOP_SCREEN)
    -- State 0: Looking for connections
    if state == 0 then
        -- Writing info on screen
        Console.append(cns, "Looking for connections..."..math.random(1,2))
        Console.append(cns, "\nIP: "..Network.getIPAddress().."\n")

        -- Searching for clients       
        cid = Socket.accept(server)
       
        if cid == nil then
            Console.append(cns, "noclient")
        else
            Console.append(cns," cid: "..cid)
            --state = 1
            Socket.close(cid)
        end
        Console.show(cns)
        Screen.flip()
        Screen.waitVblankStart()
        Console.clear(cns)
    end

end
Basically it should just wait for the connection and then close it. Probelm is that the cid is never "nil", meaning that every loop it thinks there is somekind of unknown connection coming.

I tried many different ports but it didn't help. I checked the traffic with Wireshark and there shouldn't be any packets going to the 3ds. Any ideas?
 

Site & Scene News

Popular threads in this forum