Hacking U-Paint v2.0 Homebrew Release

brienj

Trying to avoid getting cancer
OP
Member
Joined
Jan 3, 2016
Messages
1,232
Trophies
0
Website
twitter.com
XP
2,142
Country
United States
added the 5.3.2 also .. not able to test though :(
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
 

brienj

Trying to avoid getting cancer
OP
Member
Joined
Jan 3, 2016
Messages
1,232
Trophies
0
Website
twitter.com
XP
2,142
Country
United States
I was talking about the thread title : "U-Paint v1.0 Homebrew Release"
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.
 

oumoumad

Well-Known Member
Member
Joined
Apr 20, 2015
Messages
798
Trophies
0
Age
31
XP
890
Country
France
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.

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)
 

brienj

Trying to avoid getting cancer
OP
Member
Joined
Jan 3, 2016
Messages
1,232
Trophies
0
Website
twitter.com
XP
2,142
Country
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,
  • Like
Reactions: Deleted User

brienj

Trying to avoid getting cancer
OP
Member
Joined
Jan 3, 2016
Messages
1,232
Trophies
0
Website
twitter.com
XP
2,142
Country
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
 
  • Like
Reactions: lordelan

brienj

Trying to avoid getting cancer
OP
Member
Joined
Jan 3, 2016
Messages
1,232
Trophies
0
Website
twitter.com
XP
2,142
Country
United States
Very very cool. Drawn pictures should be saved into a png file or whatever.
Is that possible?
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.
 
  • Like
Reactions: lordelan

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,785
Trophies
1
Age
44
XP
6,511
Country
Germany
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.
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. :)
 
  • Like
Reactions: brienj

brienj

Trying to avoid getting cancer
OP
Member
Joined
Jan 3, 2016
Messages
1,232
Trophies
0
Website
twitter.com
XP
2,142
Country
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.
 
  • Like
Reactions: lordelan

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,785
Trophies
1
Age
44
XP
6,511
Country
Germany
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.
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.
 
  • Like
Reactions: VinsCool

brienj

Trying to avoid getting cancer
OP
Member
Joined
Jan 3, 2016
Messages
1,232
Trophies
0
Website
twitter.com
XP
2,142
Country
United States
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.
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

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,785
Trophies
1
Age
44
XP
6,511
Country
Germany
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.
Wow you seem to be on a stairway to heaven right now. I won't stop you. ;)
 

brienj

Trying to avoid getting cancer
OP
Member
Joined
Jan 3, 2016
Messages
1,232
Trophies
0
Website
twitter.com
XP
2,142
Country
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.
 

shovelcat

Member
Newcomer
Joined
Aug 16, 2014
Messages
21
Trophies
0
Age
35
XP
89
Country
Canada
Program has been updated to v2.0 (could a mod please change title), and includes source code and bin files compiled for every version supported by libwiiu, as well as a 5.5.x version .mp4 file.

Here are some pictures of the new menu -

12779058_10204018287777410_9034239304107299897_o.jpg


12748085_10204018288337424_9113696762876924000_o.jpg


And an updated Readme -



If you have any suggestions, let me know.

Updated: Added v2.0 and new Readme


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

brienj

Trying to avoid getting cancer
OP
Member
Joined
Jan 3, 2016
Messages
1,232
Trophies
0
Website
twitter.com
XP
2,142
Country
United States
Maybe if you add some background pack of images. My boy will appreciate coloring spiderman :)

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.
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.
 
  • Like
Reactions: lordelan

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    AncientBoi @ AncientBoi: lol