Homebrew Homebrew HelpDesk

  • Thread starter Thread starter BurningDesire
  • Start date Start date
  • Views Views 13,162
  • Replies Replies 106
  • Likes Likes 7

BurningDesire

Well-Known Member
Member
Joined
Jan 27, 2015
Messages
4,997
Reaction score
5,909
Trophies
1
Location
Behind a screen reading news
XP
4,982
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!


 
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.
 
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.
 
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.
 
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
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?
 
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.
 
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.
Stupid me! So now I know that suspend means sleep mode! :O
 
  • Like
Reactions: VegaRoXas
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.
 
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
 
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? :)
 
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.
 
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
I know how to code *Pictochat3DS* I don't know how to lua

If you really know how to write a socket-based chat client in C, you should know at least how to not write shit in other languages cause developing syntax is the same for any language.
 
  • Like
Reactions: lemanuel
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.
 

Site & Scene News

Popular threads in this forum