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
...

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)
 

Stecker8

Plug
Member
Joined
Oct 9, 2015
Messages
526
Trophies
0
Age
32
Location
Here
Website
www.kernelhack10.3.com
XP
654
Country
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()
 

ihaveahax

Well-Known Member
Member
Joined
Apr 20, 2015
Messages
6,070
Trophies
2
XP
7,836
Country
United States
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.
 

Stecker8

Plug
Member
Joined
Oct 9, 2015
Messages
526
Trophies
0
Age
32
Location
Here
Website
www.kernelhack10.3.com
XP
654
Country
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
 

ihaveahax

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

Stecker8

Plug
Member
Joined
Oct 9, 2015
Messages
526
Trophies
0
Age
32
Location
Here
Website
www.kernelhack10.3.com
XP
654
Country
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,

JershXL

Well-Known Member
Newcomer
Joined
Dec 6, 2015
Messages
82
Trophies
0
Age
31
Location
emuNAND
XP
83
Country
United States
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.
 

ihaveahax

Well-Known Member
Member
Joined
Apr 20, 2015
Messages
6,070
Trophies
2
XP
7,836
Country
United States
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?
 

JershXL

Well-Known Member
Newcomer
Joined
Dec 6, 2015
Messages
82
Trophies
0
Age
31
Location
emuNAND
XP
83
Country
United States
This is what I have.

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

ihaveahax

Well-Known Member
Member
Joined
Apr 20, 2015
Messages
6,070
Trophies
2
XP
7,836
Country
United States
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
 

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
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

lermy

Member
Newcomer
Joined
Dec 13, 2015
Messages
6
Trophies
0
Age
54
XP
56
Country
United States
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

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: Taylor Swift death metal AI cover please lol