Homebrew Homebrew HelpDesk

BurningDesire

Well-Known Member
OP
Member
Joined
Jan 27, 2015
Messages
5,000
Trophies
1
Location
Behind a screen reading news
XP
4,803
Country
United States
What is the Homebrew HelpDesK?

  • The Homebrew HelpDesk is a place where you can ask for help with 3DS Homebrew related Software/Coding problems
  • This is a safe place for anyone to ask questions! Please no hate.
  • Topics can include anything from How do I install Homebrew to how do I get the scroll function to work with the d-pad on the lower screen?
  • If this gets popular enough there will be a website launched

If you have anything you want me to add just let me know down below!


 

MichiS97

"Leftist snowflake milennial"
Member
Joined
Jun 14, 2011
Messages
1,766
Trophies
2
Age
25
Location
Munich
XP
3,260
Country
Germany
There's something that I just don't get...how exactly do you make sure that you can suspend a Homebrew app by pressing Home so that it continues to work once you enter the app again? I can suspend the game I coded just fine but sometimes it'll just give me a blackscreen when re-entering it.
 

BurningDesire

Well-Known Member
OP
Member
Joined
Jan 27, 2015
Messages
5,000
Trophies
1
Location
Behind a screen reading news
XP
4,803
Country
United States
There's something that I just don't get...how exactly do you make sure that you can suspend a Homebrew app by pressing Home so that it continues to work once you enter the app again? I can suspend the game I coded just fine but sometimes it'll just give me a blackscreen when re-entering it.
I think that is a Homebrew Launcher bug. Smea said he would try to fix it.
 

KazoWAR

Well-Known Member
Member
Joined
Aug 12, 2008
Messages
1,951
Trophies
1
Age
34
Location
Winter Haven
XP
2,038
Country
United States
Anyone have any idea on how to use networking in NTR CFW plugins. i see socket stuff in include/ctr/SOC.h and also in include/sys/socket.h but when i try to use them i get undefined reference to socket. there is also rtSendSocket and rtRecvSocket in include/libntrplg/ns/ns.h but again if i try to use them in my code i get undefined reference.
 

TheCruel

Developer
Banned
Joined
Dec 6, 2013
Messages
1,350
Trophies
1
XP
3,117
Country
United States
There's something that I just don't get...how exactly do you make sure that you can suspend a Homebrew app by pressing Home so that it continues to work once you enter the app again? I can suspend the game I coded just fine but sometimes it'll just give me a blackscreen when re-entering it.
If you're using Homebrew Launcher, then it's not yet known how to do this. If not, you're probably using GPU and If so, you'll need to reset GPU state to some extent, though it's not completely known how much of it you need to reset. The simpliest example of this is in sf2d:

You register an APT callback function: https://github.com/xerpi/sf2dlib/blob/master/libsf2d/source/sf2d.c#L79

Then reset the GPU on resume event: https://github.com/xerpi/sf2dlib/blob/master/libsf2d/source/sf2d.c#L282-L302
 
  • Like
Reactions: KazoWAR

SomeGamer

Well-Known Member
Member
Joined
Dec 19, 2014
Messages
6,827
Trophies
1
XP
4,838
Country
Hungary
There's something that I just don't get...how exactly do you make sure that you can suspend a Homebrew app by pressing Home so that it continues to work once you enter the app again? I can suspend the game I coded just fine but sometimes it'll just give me a blackscreen when re-entering it.
Wait, how can I suspend HBL?
 

VegaRoXas

Well-Known Member
Member
Joined
Mar 29, 2015
Messages
290
Trophies
0
XP
368
Country
Gambia, The
Nope. I can only return to home by pressing start then A in HBL. And that's not suspending.
Well, have you actually tried what I just said?
You wont get back to your home menu, but you are able to suspend the system after pressing it. Nothing happens when you press the button, but after that it works.
 

BurningDesire

Well-Known Member
OP
Member
Joined
Jan 27, 2015
Messages
5,000
Trophies
1
Location
Behind a screen reading news
XP
4,803
Country
United States
Code:
red = Color.new(255,0,0)
blue = Color.new(0,0,255)
green = Color.new(0,255,0)
while true do
Screen.waitVblankStart()
pad = Controls.read()
Screen.refresh()
Screen.clear(TOP_SCREEN)
Screen.fillRect(0,399,0,240,blue,TOP_SCREEN)
Screen.flip()
end

if (Controls.check(pad,KEY_A)) then

Sound.init()
wav = Sound.openWav("/songs/BGMusic.wav",false)
Sound.updateStream()

end

This is LUA. The sound will not work I have also tried and would prefer to get this method to work.

Code:
red = Color.new(255,0,0)
blue = Color.new(0,0,255)
green = Color.new(0,255,0)

while true do
Screen.waitVblankStart()
pad = Controls.read()
Screen.refresh()
Screen.clear(TOP_SCREEN)
Screen.fillRect(0,399,0,240,blue,TOP_SCREEN)
Screen.flip()
Sound.init()
wav = Sound.openWav("/songs/BGMusic.wav",false) // I guess the false is suppose to be there to open it as when i changed it to true nothing happened.
Sound.updateStream()
end

--------------------- MERGED ---------------------------

I also cannot get the the start button to exit no matter what i try.
 

Rinnegatamante

Well-Known Member
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
28
Location
Bologna
Website
rinnegatamante.it
XP
4,744
Country
Italy
red = Color.new(255,0,0)
blue = Color.new(0,0,255)
green = Color.new(0,255,0)
while true do
Screen.waitVblankStart()
pad = Controls.read()
Screen.refresh()
Screen.clear(TOP_SCREEN)
Screen.fillRect(0,399,0,240,blue,TOP_SCREEN)
Screen.flip()
end

if (Controls.check(pad,KEY_A)) then

Sound.init()
wav = Sound.openWav("/songs/BGMusic.wav",false)
Sound.updateStream()

end

This is LUA. The sound will not work I have also tried and would prefer to get this method to work.

red = Color.new(255,0,0)
blue = Color.new(0,0,255)
green = Color.new(0,255,0)

while true do
Screen.waitVblankStart()
pad = Controls.read()
Screen.refresh()
Screen.clear(TOP_SCREEN)
Screen.fillRect(0,399,0,240,blue,TOP_SCREEN)
Screen.flip()
Sound.init()
wav = Sound.openWav("/songs/BGMusic.wav",false) // I guess the false is suppose to be there to open it as when i changed it to true nothing happened.
Sound.updateStream()
end

--------------------- MERGED ---------------------------

I also cannot get the the start button to exit no matter what i try.

Please, for the god sake, before trying to put some code together learn how to program.

Your code:
1) is completely not idented.
2) there are huge errors in functions calls cause you not read documentation.
3) the first script has FATAL errors, cause you use loops without knowing what they are.

There are several books to learn LUA language also free ones like Programming in LUA by Roberto Ierusalimschy (one of the creator of LUA language): http://www.lua.org/pil/contents.html
 
D

Deleted User

Guest
Please, for the god sake, before trying to put some code together learn how to program.

Your code:
1) is completely not idented.
2) there are huge errors in functions calls cause you not read documentation.
3) the first script has FATAL errors, cause you use loops without knowing what they are.

There are several books to learn LUA language also free ones like Programming in LUA by Roberto Ierusalimschy (one of the creator of LUA language): http://www.lua.org/pil/contents.html
You have made some cool stuff, how do you do it? :)
 

doctorgoat

Well-Known Member
Member
Joined
Jun 3, 2015
Messages
694
Trophies
0
Age
34
XP
550
Country
United States
Commenting things are also super important.

Like seriously comment everything and sometimes it'll even fix your own issues, like

//this loop runs until oh shit it doesn't end whoops

*goes and fixes*

but yeah homebrew question that might not be relevant to this thread: What's the fastest way to launch homebrew on a 9.2 system? Ninjhax 1.1, 2.1, OoTHax, Ironhax, does it even matter? I have OoT installed and Ironfall available.
 

BurningDesire

Well-Known Member
OP
Member
Joined
Jan 27, 2015
Messages
5,000
Trophies
1
Location
Behind a screen reading news
XP
4,803
Country
United States
Please, for the god sake, before trying to put some code together learn how to program.

Your code:
1) is completely not idented.
2) there are huge errors in functions calls cause you not read documentation.
3) the first script has FATAL errors, cause you use loops without knowing what they are.

There are several books to learn LUA language also free ones like Programming in LUA by Roberto Ierusalimschy (one of the creator of LUA language): http://www.lua.org/pil/contents.html
I know how to code *Pictochat3DS* I don't know how to lua
 
  • Like
Reactions: clank

clank

Well-Known Member
Newcomer
Joined
Jan 24, 2015
Messages
99
Trophies
0
Age
26
Location
/dev/nvme0n1p1
XP
489
Country
Antigua and Barbuda
Please, for the god sake, before trying to put some code together learn how to program.

Your code:
1) is completely not idented.
2) there are huge errors in functions calls cause you not read documentation.
3) the first script has FATAL errors, cause you use loops without knowing what they are.

There are several books to learn LUA language also free ones like Programming in LUA by Roberto Ierusalimschy (one of the creator of LUA language): http://www.lua.org/pil/contents.html
There's no need to be so condescending, especially on a thread about programming/coding help.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
  • Iron_Masuku @ Iron_Masuku:
    Hello
    Skelletonike @ Skelletonike: hmm