Hacking USBLoader with Game Images

  • Thread starter Thread starter usptactical
  • Start date Start date
  • Views Views 203,594
  • Replies Replies 847
usptactical said:
Kosaic said:
bluebird12, just by way of info, and I know you already mentioned this, but if you have just 1 game cover that is say 170x230 for example, when you switch to the next game cover, there are remnents of the last oversized cover showing .... You might want to re-think how these are transitioned (just repaint the background in between maybe?)

Just a thought ... The way it is, ALL covers must be EXACTLY the same size ... However, they should be the same size anyhow
smile.gif

I'm sure he will fix that
wink.gif


The blank.png file overlays the previous image (i.e. whites it out). I originally had the blank.png a larger size - in the cases where the next image was larger - but it also whites out part of the background. That's why I mentioned that I probably should have just reloaded the background image between each cover image - and am in the process of doing that just to see if it flickers. Actually, the blank.png isn't even needed if they're all the same size because if there's no image, the noimage.png is displayed. Besides, if you make a nice fancy background, you might want to put a frame or something around the image so you'll want them all the same size anyways.

bluebird12, sorry ...
smile.gif
Gotcha ... got excited and forgot who started the project
smile.gif


usptactical, THANKS !!!!!!

As long as everyone uses the NTSC images I am doing for ALL NTSC games, there will be no issue at all.

I got the NTSC games covered, of someone else wants to do the PAL, I'm good with that. Let's not duplicate effort :0
 
maddoc said:
Kosaic said:
Here are the First 194 NTSC Game Covers for everyone. ALL resized to 160x225 exactly, and in .png format. They are named already to work with bluebird12's app ( [GameId].png )

194 NTSC Game Covers
MD5: CBF83771D15AC8840655EB2F1472BA73

I got a copy of wbfsTOOLv20-1 on here somewhere - *EDIT* http://gbatemp.net/index.php?showtopic=144940 */EDIT* , and i started WBFSTool.exe and clicked DOWNLOAD on the top right - i now have 1911 wii game images in the img folder :s

Its 175 MB for anyone interested.
 
djtaz said:
maddoc said:
Kosaic said:
Here are the First 194 NTSC Game Covers for everyone. ALL resized to 160x225 exactly, and in .png format. They are named already to work with bluebird12's app ( [GameId].png )

194 NTSC Game Covers
MD5: CBF83771D15AC8840655EB2F1472BA73

I got a copy of wbfsTOOLv20-1 on here somewhere - *EDIT* [url=http://gbatemp.net/index.php?showtopic=144940]http://gbatemp.net/index.php?showtopic=144940[/url] */EDIT* , and i started WBFSTool.exe and clicked DOWNLOAD on the top right - i now have 1911 wii game images in the img folder :s

Its 175 MB for anyone interested.

Are they named appropriately ? ( [gameID].png ) and sized to exactly 160x225 ?

If not, I can grab them all and sort them out if you like.

Posts merged

Grabbing the program now, I'll sort them out and post the Final png's here for download !

Thanks for the tip !

Downloading now ...

What is the link to all NTSC games, WITH Game ID's ? I just lost in with all the crap I have going on, and not in history.
 
Kosaic said:
Are they named appropriately ? ( [gameID].png ) and sized to exactly 160x225 ?

If not, I can grab them all and sort them out if you like.

Posts merged

Grabbing the program now, I'll sort them out and post the Final png's here for download !

Thanks for the tip !
No, unfortunately the names are incorrect , but its a guaranteed way of having any image you need - not sure if its a good or a bad thing in the end though
 
I just downloaded a bunch of them, and they all have this ugly ass font, with "GBATEMP.NET" on every cover ...

Too bad, back to plan "A"
 
OK, I was in the middle of a few changes and I know not all are working and my kids won't get off the wii so that I can test. I don't want to give you code that doesn't work, so here's the basics of what you'll need (from menu.c):

You already have the background image loader code right? (loads the background from SD)
Something like this:
Code:
ÂÂÂÂPNGUPROP imgProp;
ÂÂÂÂIMGCTX ctx;

ÂÂÂÂs32 ret;

ÂÂÂÂ/* Select PNG data */
ÂÂÂÂctx = PNGU_SelectImageFromDevice("./images/background.png");
ÂÂÂÂif (!ctx)ÂÂÂÂ
ÂÂÂÂÂÂÂÂreturn;

ÂÂÂÂ/* Get image properties */
ÂÂÂÂret = PNGU_GetImageProperties(ctx, &imgProp);
ÂÂÂÂif (ret != PNGU_OK)
ÂÂÂÂÂÂÂÂreturn;

ÂÂÂÂ/* Draw image */
ÂÂÂÂVideo_DrawPng(ctx, imgProp, 0, 0);

ÂÂÂÂ/* Free image context */
ÂÂÂÂPNGU_ReleaseImageContext(ctx);

Now just merge that with some existing wanikoko code - yes it's this simple!:

CODE//this method may not be needed, but it works with it....
char ascii(char s) {
ÂÂif(s < 0x20) return '.';
ÂÂif(s > 0x7E) return '.';
ÂÂreturn s;
}

void __Menu_ShowGameImage(void) {
Declare your vars:
ÂÂÂÂstruct discHdr *header = NULL;
ÂÂÂÂchar imgPath[20];
ÂÂÂÂPNGUPROP imgProp;
ÂÂÂÂIMGCTX ctx;
ÂÂÂÂs32 ret;

Get the disk info struct, which has the disk id we need:
ÂÂÂÂ/* Get selected game */
ÂÂÂÂheader = &gameList[gameSelected];

Create the image path:
ÂÂÂÂ/* Select PNG data - this is the magic line! */
ÂÂÂÂsnprintf(imgPath, sizeof(imgPath), "./images/%c%c%c%c%c%c.png", ascii(header->id[0]), ascii(header->id[1]), ascii(header->id[2]), ascii(header->id[3]), ascii(header->id[4]), ascii(header->id[5]));
ÂÂÂÂctx = PNGU_SelectImageFromDevice(imgPath);

Get image properties, draw the image, release the context...
}

Yep, that's it. Throw that in a method and call it before the main for loop and when you browse to the next game - fwiw, I put it at the bottom of __Menu_MoveEntry(). And to position the image, just manipulate the x and y values passed into Video_DrawPng.

I can post something better once my code is working, but if you know how to code then this should give you what you need.

Thanks for all the interest guys.

-update
I posted a link to the menu.c in the first post
 
works perfect on the few NTSC titles i've got, DJTaz some of us PAL fellas need to start changing them over man...Kosaic where did you get all of those images dude, there must be a PAL pack somewhere lol
 
MightyMouse said:
works perfect on the few NTSC titles i've got, DJTaz some of us PAL fellas need to start changing them over man...Kosaic where did you get all of those images dude, there must be a PAL pack somewhere lol

Try this bud...http://wii.ds-scene.net/ but you may have to resize them.
 
@Kosaic, thanks a bunch for your effort on this...it's quite time consuming! Are you making progress on any others (NTSC)? I still have a butt-load without pics. The problem is even if I find the pic, I don't have the ID's (not listed on the sites posted earlier in this thread). If I d/l one of the wbfs tools will it show me the IDs?
 
mooseknuckle2000 said:
@Kosaic, thanks a bunch for your effort on this...it's quite time consuming! Are you making progress on any others (NTSC)? I still have a butt-load without pics. The problem is even if I find the pic, I don't have the ID's (not listed on the sites posted earlier in this thread). If I d/l one of the wbfs tools will it show me the IDs?
yes.
 
mooseknuckle2000 said:
@Kosaic, thanks a bunch for your effort on this...it's quite time consuming! Are you making progress on any others (NTSC)? I still have a butt-load without pics. The problem is even if I find the pic, I don't have the ID's (not listed on the sites posted earlier in this thread). If I d/l one of the wbfs tools will it show me the IDs?

I used Maschell's WBFSGUI to generate the HBC files (click the Generate HBC Files button), but I believe this is just a command from wbfs_win. The problem is that the disk id is the folder name and you have to go into each folder and look at the xml file to tell which game it is. In the end, I just used Renamer which told me. WiiBrickBlocker will also tell you the id.

Looks like nIxx's will tell you the ID.
 
All,

I have 300+ done now (Hang in there with me .....) I have 450 or so total for NTSC (Then I will take requests beyond the ones I have done for NTSC)

I have all the game covers, and Game ID's (for the world ... so PAL/NTSC)

I will get NTSC done tonight, and if you like, I can start hammering away at the PAL ones the rest of the week.

It is flat out Time Consuming .... renaming the images is the biggest hurdle. Resizing and changing to .png formats I have automated ... I didnt feel like writing code to label pics with game ID's , too much room for error.

Stay Tuned
 
Kosaic said:
All,

I have 300+ done now (Hang in there with me .....) I have 450 or so total for NTSC (Then I will take requests beyond the ones I have done for NTSC)

I have all the game covers, and Game ID's (for the world ... so PAL/NTSC)

I will get NTSC done tonight, and if you like, I can start hammering away at the PAL ones the rest of the week.

It is flat out Time Consuming .... renaming the images is the biggest hurdle. Resizing and changing to .png formats I have automated ... I didnt feel like writing code to label pics with game ID's , too much room for error.

Stay Tuned

I am greatly looking forward to this...
 

Site & Scene News

Popular threads in this forum