[WIP] Wii U Development Tutorial

Discussion in 'Wii U - Hacking & Backup Loaders' started by QuarkTheAwesome, Mar 29, 2016.

?

What do you think?

Poll closed Apr 4, 2016.
  1. Yes! Make it!

    100.0%
  2. Nah, it's easy enough to learn as-is.

    0 vote(s)
    0.0%
  3. Nah, people don't really want to learn.

    0 vote(s)
    0.0%
  1. QuarkTheAwesome
    OP

    QuarkTheAwesome Working for Hugs

    Member
    785
    1,921
    Apr 19, 2015
    Australia
    Stuck in the PowerPC
    Concerns have come up surrounding teaching a tempoary, unclean environment (browserhax). As such, this project is on hold for now and I won't be writing any more content until further notice. Read thread page 2 for details. Sorry about that.

    I've now started writing a Wii U Development tutorial! Please help me edit it on Google Docs, that'd be awesome.


    I just need people to read over it and make suggestions (I feel like there are quite a few holes in it so far.) If you want to write a few paragraphs I won't say no ;3
    It's set up so you should be able to make suggestions and stuff pretty easily.
    Also, keep in mind that my Wii U is on 5.5.1 so if I post any code that doesn't work on another version, please let me know!

    At present (22nd April 16), the plan is:
    1. Intro [written, draft]
    2. Chapter 1 - Before the Basics (learning C) [written, draft]
      1. External Tutorials [written, draft]
      2. Test Yourself [written, draft]
    3. Chapter 2 - Let's get that Wii U Running! [written, draft]
      1. IDE, not IDA [written, draft]
      2. Compiling [written, draft, high priority (needs work)]
      3. Right! Let's Compile! [written, draft, high priority (important info)]
      4. Running on the U [written, draft, high priority (ditto)]
    4. Chapter 3 - Wii U Programming Basics [written, draft]
      1. The Mystery of the Missing Standard Libraries [written, draft]
      2. Pointing to the Code [written, draft] (OSDynLoad and pointers if you can't figure out my titles ;3)
      3. Limitations [written, draft, low priority]
    5. Chapter 4 - Browserhax, the Kernel, and the IOSU [written, draft] (PLEASE DO NOT DISCUSS BELOW!!!!!!)
      1. Browserhax Userspace [written, draft]
      2. Kernel [written, draft]
      3. IOSU [written, draft, high priority (touchy subject)]
        1. Thanks to chettibi tarik for being an awesome writing buddy during this bit. Sorry I took so long getting a keyboard ;3
    6. Chapter 5 - Are your Buttons Working? [unwritten]
      1. Here we take apart the "template" project from libwiiu/osscreenexamples/template.
      2. I'm not really sure how the headings will go.
      3. I can easily swap this to a different project; but it's too late for that - I've started writing it!
    7. Chapter 6 - Adding the Sticks [unwritten] (Where the rubber really hits the road!)
      1. Here we add the locations of the sticks to the "template" project.
      2. Again, I can swap this if I need to but I'd like to know ahead of time ;3
    8. Chapter 7 - It's Dangerous to Go Alone, take these links [unwritten, low priority]
      1. WiiUBrew [unwritten, low priority]
      2. libwiiu [unwritten, low priority]
      3. The 5.5.x ELF Loader [unwritten, low priority]
      4. A Quick Note on Elves [unwritten]
      5. WiiUBru (not ew, U!) [unwritten, optional]
    9. Outro [unwritten]
    Holey moley, I've set myself a lot of work.

    Big thanks to all of you who are helping! @filfat, thanks for basically rewriting everything in a far more professional way! It's awesome. Also thanks to flashcardsinfo (couldn't find a GBATemp, sorry) for pointing out how shoddy my C self-test was and helping me fix it (the original had pointer arithmetic! Ew!) Also thanks to all of you who are reading it and generally showing your support. It really helps ;3

    Original Post (explains first few replies)

    Late update 23/04/2016 - Moved pointer basics down into chapter 3, wrote chapter 3, wrote chapter 4, fixed the last edit message that was just plain wrong. How did I manage that?
     
    Last edited by QuarkTheAwesome, Apr 29, 2016
    retrobug, lordelan, Gadorach and 19 others like this.


  2. handy333

    handy333 GBAtemp Regular

    Member
    122
    38
    Sep 8, 2010
    United States
    Over in Wonderlust
    Its unanimous.
     
  3. ryuutseku85

    ryuutseku85 Advanced Member

    Newcomer
    92
    150
    Dec 14, 2015
    France
    yes , inedded it would be really welcome .

    i think the first one that sould be done is explaining to people how to use , existing code to make they own .

    for example take the snake code , get rid of the snake game , begin to write the new game and addapt.
     
  4. ajd4096

    ajd4096 GBAtemp Regular

    Member
    176
    187
    Feb 17, 2009
    Yes, as long as it is primarily plain old text. You can't search youtube videos for code snippets.
     
  5. QuarkTheAwesome
    OP

    QuarkTheAwesome Working for Hugs

    Member
    785
    1,921
    Apr 19, 2015
    Australia
    Stuck in the PowerPC
    ryuutseku85 likes this.
  6. kprovost7314

    kprovost7314 GBAtemp's Official Bara Master

    Member
    1,688
    883
    Dec 24, 2014
    United States
    In that bara manga ( ͡° ͜ʖ ͡°)
    If only there were updated 3ds tutorials.
     
  7. aracom

    aracom GBAtemp Fan

    Member
    476
    242
    Oct 1, 2015
    Gambia, The
    Why do you even ask? It's pretty obvious that we need some more actual content in here :P
     
  8. QuarkTheAwesome
    OP

    QuarkTheAwesome Working for Hugs

    Member
    785
    1,921
    Apr 19, 2015
    Australia
    Stuck in the PowerPC
    Finally drafted all the basics and concepts, looks like I can finally start writing about actual programming ;D
    If any of you guys could just skim what I've got so far and point out the many flaws that'd be awesome.
     
    cmdj13 and ajd4096 like this.
  9. Dylon99

    Dylon99 Lord of Dank

    Member
    541
    326
    Jan 12, 2016
    Netherlands
    Some cave in the mariana trench
    Yes please, good tutorials and useful guides help people who want to get into homebrew. It makes it way easier for them.
     
  10. cmdj13

    cmdj13 GBAtemp Regular

    Member
    139
    72
    Aug 28, 2015
    Gambia, The
    In front of my WiiU
    I read through it quickly, first impression is 'very nice' :)
    I will look into the details later, but as I said, I think it is really nice ans Jeep up the good work!
     
  11. QuarkTheAwesome
    OP

    QuarkTheAwesome Working for Hugs

    Member
    785
    1,921
    Apr 19, 2015
    Australia
    Stuck in the PowerPC
    Finished writing up Chapter 5! Huzzah!

    I plan to explain specific functions while going through the example.
     
    brienj and ryuutseku85 like this.
  12. ryuutseku85

    ryuutseku85 Advanced Member

    Newcomer
    92
    150
    Dec 14, 2015
    France
    Nice , i will read it completely and give you my opinions :)
     
  13. mznova

    mznova GBAtemp Regular

    Member
    175
    35
    Apr 3, 2007
    United States
    This is awesome! Thanks so much for taking the time to write it. :D
     
  14. filfat

    filfat Musician, Developer & Entrepreneur

    Member
    1,229
    858
    Nov 24, 2012
    I'll take a look at writing some actual content "soon-ish" :)
     
  15. QuarkTheAwesome
    OP

    QuarkTheAwesome Working for Hugs

    Member
    785
    1,921
    Apr 19, 2015
    Australia
    Stuck in the PowerPC
    Holey moley @filfat, just went online quickly to find you've basically rewritten the tutorial. I think I love you.
     
    loco365, filfat and NWPlayer123 like this.
  16. vgmoose

    vgmoose GBAtemp Regular

    Member
    227
    619
    Jan 31, 2016
    United States
    Hey thanks for this so far! It's super in-depth and exactly the sort of thing I would've loved to have when I was started. I'd be happy to contribute instructions and a demo project on drawing "images/sprites" with OSScreen-- unless there's a more user friendly way with GX2.
     
    ryuutseku85 likes this.
  17. oumoumad

    oumoumad GBAtemp Advanced Fan

    Member
    798
    727
    Apr 20, 2015
    France
    The best and most advanced application made in the Wii U homebrew scene I believe is Loadiine GX2.
    So if I choose a methodology for this, I'd definitely take Dimok's, it has proven to be the most successful, not only he made a great application but he made it supported by multiple firmware versions at the same time And easy for other developers to add extra stuff.
    You should definitely contact Dimok and ask for his input.
     
    KiiWii likes this.
  18. QuarkTheAwesome
    OP

    QuarkTheAwesome Working for Hugs

    Member
    785
    1,921
    Apr 19, 2015
    Australia
    Stuck in the PowerPC
    This would be awesome, but I'm not sure it's within the scope of this tutorial. We can always write another! There's a few graphics things that I'd like to cover too, but again, I'm unsure if it fits within this particular tutorial.

    Dimok's code is awesome but I can't make heads or tails of it. Sorry.
     
    KiiWii likes this.
  19. Margen67

    Margen67 Dirty entited pirate

    Banned
    1,100
    4,587
    Nov 3, 2014
    United States
    Awesome.
    I can't wait for the online version of Pong :O
     
    Last edited by Margen67, Apr 28, 2016
  20. iAqua

    iAqua feel the... envy.

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

    Our Patreon
    2,720
    2,214
    Dec 7, 2015
    Canada
    I'm gonna do a bit of suggesting. Guide looks awesome. Nice job.