U-Paint v2.0 Homebrew Release

Discussion in 'Wii U - Hacking & Backup Loaders' started by brienj, Feb 14, 2016.

  1. brienj
    OP

    brienj Trying to avoid getting cancer

    Member
    1,232
    1,704
    Jan 3, 2016
    United States
    Me either, but it compiled along with my 5.5.x version and I figured some 5.3.2 users may want it after reading through the posts. I use the same makefile for each program I make, and was too lazy to take out the other versions. :D
     


  2. oumoumad

    oumoumad GBAtemp Advanced Fan

    Member
    798
    727
    Apr 20, 2015
    France
    I was talking about the thread title : "U-Paint v1.0 Homebrew Release"
     
  3. brienj
    OP

    brienj Trying to avoid getting cancer

    Member
    1,232
    1,704
    Jan 3, 2016
    United States
    I realized that after I posted, but I can't change the thread title. It's probably better this way, because it will technically work for all firmware, I just have to release a .bin file for whatever version is wanted, and I will eventually be releasing the source code too.
     
  4. oumoumad

    oumoumad GBAtemp Advanced Fan

    Member
    798
    727
    Apr 20, 2015
    France
    Technically all what you did is correct :D, but you know users ^^, anyway it's your thread your choice :), (you can change the title actually, you just need an admin to valid/change it for you)
     
  5. gbamoinonono

    gbamoinonono Member

    Newcomer
    28
    1
    Jul 27, 2013
    Would it be too much to ask a video??
    I'm away from my home for some weeks, and I can not test it! But it sounds amazing!!
     
  6. pwsincd

    pwsincd Garage Flower

    Member
    3,320
    1,711
    Dec 4, 2011
    Manchester UK
    i already linked a video a few posts back.
     
  7. gbamoinonono

    gbamoinonono Member

    Newcomer
    28
    1
    Jul 27, 2013
    Hehe,
    yeah, I missed that.
    Sorry, and thank you
    I looks great
     
  8. brienj
    OP

    brienj Trying to avoid getting cancer

    Member
    1,232
    1,704
    Jan 3, 2016
    United States
    Just a little update, I am making it so you can show/hide the menu, which gives you more drawing area. :D

    I am amazed I was able to add all the things I did and still keep it small enough to not need an elf yet. If anyone needs any pointers on making your code more compact, I'll be happy to help.

    I'll post a small example of code to make your compiled code smaller, by using an 'if' comparison. If you want to check if a value is between two different values x and y, most people would write the code like this:
    Code:
    if (value > x && value < y) {
       /* do something */
    }
    To simplify the machine code for this, we use an unsigned int cast to help us with our task and write the code like this:
    Code:
    if ((unsigned int)(value - x) < (y - x)) {
       /* do something */
    }
    Instead of having to compare twice, the compiled machine code should always be smaller. I did tests to make sure this trick would work when compiling with libwiiu, and it did result in a smaller bin file from using this method. Using unsigned ints for advantages like this, is just one of many tricks to use to make your code smaller.

    Sometimes using a for loop to execute code more than once would result in a smaller file, sometimes writing the code more than once without a loop would result in a smaller file. The only way to know which is more compact, is to actually compile it both ways. This is one reason why it has taken me so long to write this program. I was always checking to make sure I had the most compact and efficient code possible. Actually having to keep it under 20k made it more of a challenge for me, and I am not even worried about switching to an elf until I add so much stuff that I have to. :D
     
    Last edited by brienj, Feb 14, 2016
    Voxel likes this.
  9. brienj
    OP

    brienj Trying to avoid getting cancer

    Member
    1,232
    1,704
    Jan 3, 2016
    United States
    Sorry to necro-bump my post, but I wanted to share the video of U-Paint v2.0 which I will be releasing tonight or tomorrow, depends on how long it takes to finish cleaning up and commenting my source code, and to any mods, can you all update the thread title when I upload the new version, please?

    Here is the updated version video -
    http://1drv.ms/20CV28J

    I realized I did the slider part wrong and I am fixing it right now. It's an easy and quick fix. :D
     
    lordelan likes this.
  10. lordelan

    lordelan GBAtemp Advanced Maniac

    Member
    1,524
    429
    Jan 4, 2015
    Gambia, The
    Very very cool. Drawn pictures should be saved into a png file or whatever.
    Is that possible?
     
  11. brienj
    OP

    brienj Trying to avoid getting cancer

    Member
    1,232
    1,704
    Jan 3, 2016
    United States
    It would be possible on 5.5 right now to transfer the TV frame buffer over the network to your computer, the problem is that I haven't looked into it that much yet. Once I do, I'll be sure to add it, if possible.
     
    lordelan likes this.
  12. lordelan

    lordelan GBAtemp Advanced Maniac

    Member
    1,524
    429
    Jan 4, 2015
    Gambia, The
    Sounds great! My girlfriend is very talented @drawing.
    She's done some stunning stuff on my Note 2 phone so it would be great to save her work on the Wii U controller as well. :)
     
    brienj likes this.
  13. brienj
    OP

    brienj Trying to avoid getting cancer

    Member
    1,232
    1,704
    Jan 3, 2016
    United States
    I am almost done with my additions and improved it a lot more than I was expecting. I know I said I would have a release tonight, but it will be well worth the wait. I hate to release multiple versions right after each other, so I am going to finish adding the last parts to this version, and then release it in a day or two. I'm hoping sooner, but I've been pretty busy this past week, as well as messing with some other things. It gets tiresome working on one thing and nothing else.
     
    lordelan likes this.
  14. lordelan

    lordelan GBAtemp Advanced Maniac

    Member
    1,524
    429
    Jan 4, 2015
    Gambia, The
    Just take your time! Nobody rushes you. You've made one of the best und most useful Wii U homebrews so we're thankful for any update whenever it comes.
     
    VinsCool likes this.
  15. brienj
    OP

    brienj Trying to avoid getting cancer

    Member
    1,232
    1,704
    Jan 3, 2016
    United States
    Thanks a lot. I am almost done with it now, but from the few breaks I took, to do a little research and testing, it led me to a few discoveries, so after I release the update for this, it won't be long until I will be releasing two or three other new apps as well. :D

    Should be within the week that I will have at least three, if not four, total homebrew apps finished. One of them will be a game.
     
    lordelan and oumoumad like this.
  16. lordelan

    lordelan GBAtemp Advanced Maniac

    Member
    1,524
    429
    Jan 4, 2015
    Gambia, The
    Wow you seem to be on a stairway to heaven right now. I won't stop you. ;)
     
  17. brienj
    OP

    brienj Trying to avoid getting cancer

    Member
    1,232
    1,704
    Jan 3, 2016
    United States
    Program updated, may be a delay until I release something else, this project just took all my energy for now, but I have some good ideas for my next project.
     
  18. shovelcat

    shovelcat Member

    Newcomer
    21
    9
    Aug 16, 2014
    Canada

    Maybe if you add some background pack of images. My boy will appreciate coloring spiderman :)
     
  19. lordelan

    lordelan GBAtemp Advanced Maniac

    Member
    1,524
    429
    Jan 4, 2015
    Gambia, The
    This seems like a good idea for the kids. :) I second that!

    Edit: Or at least the option to load images so I could load up any black'n'white picture.
     
  20. brienj
    OP

    brienj Trying to avoid getting cancer

    Member
    1,232
    1,704
    Jan 3, 2016
    United States
    I am either going to have to look at using sockets or curl, or convert the project to an elf file to do that. Even with just a 2 color bitmap image for any image of any significant size, there aren't too many compression techniques to get the size of the data small enough to include inside the bin file. Right now I am playing around with something else, but will work on this again in the future.
     
    lordelan likes this.