Homebrew Homebrew HelpDesk

BurningDesire

Well-Known Member
OP
Member
Joined
Jan 27, 2015
Messages
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,885
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,815
Trophies
2
Age
26
Location
Munich
XP
3,599
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
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,885
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,952
Trophies
1
Age
35
Location
Winter Haven
XP
2,125
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
2
XP
3,131
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,902
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
378
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
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,885
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
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
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
35
XP
560
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
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,885
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
27
Location
/dev/nvme0n1p1
XP
503
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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: