Homebrew HelpDesk

Discussion in '3DS - Homebrew Development and Emulators' started by BurningDesire, Sep 9, 2015.

  1. BurningDesire
    OP

    BurningDesire GBAtemp Psycho!

    Member
    4,964
    5,817
    Jan 27, 2015
    United States
    Behind a screen reading news
    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!


     
    Ammako, WhoAmI?, WeedZ and 4 others like this.


  2. MichiS97

    MichiS97 "Leftist snowflake milennial"

    Member
    GBAtemp Patron
    MichiS97 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,326
    744
    Jun 14, 2011
    Gambia, The
    Bavaria
    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.
     
  3. BurningDesire
    OP

    BurningDesire GBAtemp Psycho!

    Member
    4,964
    5,817
    Jan 27, 2015
    United States
    Behind a screen reading news
    I think that is a Homebrew Launcher bug. Smea said he would try to fix it.
     
  4. KazoWAR

    KazoWAR GBAtemp Advanced Maniac

    Member
    1,800
    683
    Aug 12, 2008
    United States
    Winter Haven
    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.
     
  5. TheCruel

    TheCruel Developer

    Banned
    1,351
    2,884
    Dec 6, 2013
    United States
    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
     
    KazoWAR likes this.
  6. SomeGamer

    SomeGamer GBAtemp Guru

    Member
    5,758
    2,713
    Dec 19, 2014
    Hungary
    Wait, how can I suspend HBL?
     
  7. Buttsnake

    Buttsnake "Mods please close this thread"

    Member
    207
    76
    Aug 23, 2015
    United States
    Inside your SD card
    By pressing home and closing the 3DS
     
  8. SomeGamer

    SomeGamer GBAtemp Guru

    Member
    5,758
    2,713
    Dec 19, 2014
    Hungary
    If I press Home, nothing happens.
     
  9. VegaRoXas

    VegaRoXas GBAtemp Regular

    Member
    290
    158
    Mar 29, 2015
    Gambia, The
    Just press home once, after that you can suspend.
     
  10. SomeGamer

    SomeGamer GBAtemp Guru

    Member
    5,758
    2,713
    Dec 19, 2014
    Hungary
    Nope. I can only return to home by pressing start then A in HBL. And that's not suspending.
     
  11. VegaRoXas

    VegaRoXas GBAtemp Regular

    Member
    290
    158
    Mar 29, 2015
    Gambia, The
    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.
     
  12. SomeGamer

    SomeGamer GBAtemp Guru

    Member
    5,758
    2,713
    Dec 19, 2014
    Hungary
    Stupid me! So now I know that suspend means sleep mode! :O
     
    VegaRoXas likes this.
  13. BurningDesire
    OP

    BurningDesire GBAtemp Psycho!

    Member
    4,964
    5,817
    Jan 27, 2015
    United States
    Behind a screen reading news
    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
    — Posts automatically merged - Please don't double post! —

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

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,270
    Nov 24, 2014
    Italy
    Bologna
    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
     
  15. Nintendo Fanboy

    Nintendo Fanboy GBAtemp Maniac

    Member
    1,017
    389
    Mar 6, 2015
    United States
    In Los Santos, GTA: San Andreas.
    You have made some cool stuff, how do you do it? :)
     
  16. doctorgoat

    doctorgoat GBAtemp Advanced Fan

    Member
    624
    234
    Jun 3, 2015
    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.
     
  17. BurningDesire
    OP

    BurningDesire GBAtemp Psycho!

    Member
    4,964
    5,817
    Jan 27, 2015
    United States
    Behind a screen reading news
    I know how to code *Pictochat3DS* I don't know how to lua
     
    clank likes this.
  18. Technicmaster0

    Technicmaster0 GBAtemp Psycho!

    Member
    3,146
    648
    Oct 22, 2011
    Gambia, The
    Well at least the first script contains a very simple error: you do stuff after you finished an endless loop, but you never exit that loop.
     
  19. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,270
    Nov 24, 2014
    Italy
    Bologna
    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.
     
    lemanuel likes this.
  20. clank

    clank Advanced Member

    Newcomer
    84
    24
    Jan 24, 2015
    There's no need to be so condescending, especially on a thread about programming/coding help.