How to make your first Homebrew App!

Discussion in 'Switch - Tutorials' started by xXxSwagnemitexXx, Jul 7, 2018.

  1. xXxSwagnemitexXx
    OP

    xXxSwagnemitexXx meme machine

    Member
    5
    Dec 7, 2016
    United Kingdom
    New Donk City
    I've learned the basics of making Homebrew so i wanna help some people out and make a tutorial on making Homebrew, so here it is!
    BTW this tutorial is for Windows only'
    If anything is incorrect, please correct me in the comments.
    Downloading Essentials
    Now we can get onto making Homebrew!
    Hello World Example
    Now you can add extra features and make it more in-depth.
    Editing "Hello World"
    Adding Button Presses to Print Stuff on Screen
    I'll add more stuff as time goes by, but for now this is just the bare bones of making Homebrew for the Switch, for any new Homebrew creators that need help!

    If you want to make some C++ apps wich use console, make sure to check this out: https://gist.github.com/XorTroll/94b542e3d5a8164a10742df0ca4f052b (Thanks @XorTroll )
     
    Last edited by xXxSwagnemitexXx, Jul 14, 2018
    Garou, JellyPerson, gnilwob and 7 others like this.
  2. jimmyj

    jimmyj Official founder of altariaism. Copyright jimmyj

    Member
    6
    May 26, 2017
    Italy
    Hyrule
    10/10. No joke though. I have a basic knowledge of programming and this is basically all you do when you're learing stuff
     
    bennyman123abc likes this.
  3. MyLegGuy

    MyLegGuy Moron

    Member
    5
    Nov 26, 2014
    United States
    okay I made a thing that just says hello world, now how do I do an image
     
  4. jimmyj

    jimmyj Official founder of altariaism. Copyright jimmyj

    Member
    6
    May 26, 2017
    Italy
    Hyrule
    there is images in the examples.
     
    MyLegGuy likes this.
  5. MyLegGuy

    MyLegGuy Moron

    Member
    5
    Nov 26, 2014
    United States
    Okay, here is my review. 2/10, no joke though.

    * Doesn't explain anything about C programming at all, doesn't even tell me that the program starts at the "main" function.
    * Doesn't explain the printf position markup at all, or even how to do format strings.
    * Tells you to manually delete files instead of doing "make clean"
    * Doesn't explain how the makefile works at all, or even that "make" executes the makefile.
    * Doesn't explain how the & operator works.
    * Most of the links can't be clicked because they don't start with "http(s)://".
    * Tells me to install Notepad++ so I can write Hello World.

    Things it does well:
    * How to type "make"
    * How to use the DevkitPro installer
    * Links to the list of button constants.

    Anybody following this guide will be very, very confused when they try to do anything but make Hello World. At least give a link where people can learn more.
     
    ZetaDesigns, 8BitWonder and safan41 like this.
  6. jimmyj

    jimmyj Official founder of altariaism. Copyright jimmyj

    Member
    6
    May 26, 2017
    Italy
    Hyrule
    10/10 was sarcasm. the parts after the no joke is what people usally do when they get their hands on compiling and stuffs.
     
  7. xXxSwagnemitexXx
    OP

    xXxSwagnemitexXx meme machine

    Member
    5
    Dec 7, 2016
    United Kingdom
    New Donk City
    thanks
    i might add a bit for images later

    — Posts automatically merged - Please don't double post! —

    and i know this guide is not good its only very small and minimal, if people want to learn more they can go find out themselves
     
    jimmyj likes this.
  8. DutchyDutch

    DutchyDutch COPYRIGHT LOLOLOLOL

    Member
    5
    Nov 16, 2014
    Netherlands
    I doubt the guy meant to do anything but show how to get your code working on the Switch. This isn't supposed to be a guide that learns you C, you should probably have a basic knowledge of that before doing anything on Switch.
     
  9. xXxSwagnemitexXx
    OP

    xXxSwagnemitexXx meme machine

    Member
    5
    Dec 7, 2016
    United Kingdom
    New Donk City
    YES, finally someone who understands, thanks!
     
  10. RHOPKINS13

    RHOPKINS13 Geek

    Member
    6
    Jan 31, 2009
    United States
    Definitely a good start. Obviously to do anything useful you're going to have to learn or have some previous experience coding with C. I'd love to see some more links added where noobs can learn more about the SDK and it's functions.

    Even better, a multi-page tutorial with examples that progress in difficulty, you already have "Hello World" and basic button input. Add examples that respond to the touchscreen, display an image, or play a sound.
     
  11. xXxSwagnemitexXx
    OP

    xXxSwagnemitexXx meme machine

    Member
    5
    Dec 7, 2016
    United Kingdom
    New Donk City
    thanks, i will definitely be adding links soon and i will be considering adding more things to do that get more difficult
     
  12. gnilwob

    gnilwob GBAtemp Regular

    Member
    3
    Mar 16, 2008
    Hong Kong
    It is good to be able to compile and have an executable file to test on the switch.
    Thanks for your guide, I will try it :)
     
  13. xXxSwagnemitexXx
    OP

    xXxSwagnemitexXx meme machine

    Member
    5
    Dec 7, 2016
    United Kingdom
    New Donk City
    no problem
     
  14. XorTroll

    XorTroll Dev: Brew.js, Goldleaf, Plutonium, Brew.NET...

    Member
    8
    Dec 28, 2017
    Spain
    Nowhere
    gnilwob likes this.
  15. xXxSwagnemitexXx
    OP

    xXxSwagnemitexXx meme machine

    Member
    5
    Dec 7, 2016
    United Kingdom
    New Donk City
    gnilwob likes this.
  16. gnilwob

    gnilwob GBAtemp Regular

    Member
    3
    Mar 16, 2008
    Hong Kong
    I have not read your post in detail yet.
    Just a request. If you can consider to record your screen step by step.
    That would help a developer who is not familiar with c or makefile.
    Thanks a lot.
     
  17. xXxSwagnemitexXx
    OP

    xXxSwagnemitexXx meme machine

    Member
    5
    Dec 7, 2016
    United Kingdom
    New Donk City
    sure, ill try make a video
     
    gnilwob likes this.
  18. Garou

    Garou GBAtemp Advanced Fan

    Member
    5
    Jan 13, 2015
    now how to build your app, sideload the nro to the switch and run it in 1 command? better yet, with the ability to debug as well
    haven't got into developing any homebrew apps for any console simply because I couldn't find how to do this easily

    good read though, making me interested to start developing app for switch
     
  19. xXxSwagnemitexXx
    OP

    xXxSwagnemitexXx meme machine

    Member
    5
    Dec 7, 2016
    United Kingdom
    New Donk City
    to sideload you just run it through cfw, its not to hard to find that out so i wont add it.
     
  20. Garou

    Garou GBAtemp Advanced Fan

    Member
    5
    Jan 13, 2015
    care to elaborate?
    if you mean to copy the .nro manually to the sdcard or using ftp, then that's not what I meant
    I was thinking something like when you do android dev, just plug the phone using usb cable and run it directly from the ide
     
Loading...