Hacking USB Loader with Multiple Boxart Images.

  • Thread starter Thread starter AppleBelly
  • Start date Start date
  • Views Views 100,387
  • Replies Replies 515
Sorry, bur why do we need images in smaller size than the first covers ones?? I that a problem of viewing images (square and so images are like stamped or ...) ???
 
Well two options really for the smaller images:

1) Code it so it uses the normal image, but just displays it smaller

2) Have another copy of the images as a smaller version .

I tried for ages to try and get (1), but i wanted to have something to show, so ended up going for option (2). Below is the code i'm using, if anyone can suggest an alturnative so i can do (1) then ow!

Code:
ÂÂÂÂ/* Select PNG data - this is the magic line */
ÂÂÂÂsnprintf(imgPath, sizeof(imgPath), "fat0:/images/small/small%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);
ÂÂÂÂif (!ctx) {
ÂÂÂÂÂÂÂÂreturn;
ÂÂÂÂ}

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

ÂÂÂÂÂÂÂÂ/* No game image available so use default */
ÂÂÂÂÂÂÂÂctx = PNGU_SelectImageFromDevice("fat0:/images/small/smallnoimage.png");
ÂÂÂÂÂÂÂÂif (!ctx)
ÂÂÂÂÂÂÂÂÂÂÂÂreturn;

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

ÂÂÂÂ/* Draw image */
ÂÂÂÂ//Video_DrawPng(ctx, imgProp, 60, 110);
ÂÂÂÂVideo_DrawPng(ctx, imgProp, 80, 138);


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

And also guys, certain people will prefer a loader that have displays, other don't. We're lucky that a lot of people are working on loader, taking it in many different directions. What may interest you may not be anything like this, but it may be suitable to some. Mynext intention is to try and get a grid with 9ish games on there, so it will be easier to navigate.
 
I believt he source code i used had it in. If you can confirm it still does for me, if not i'll get it added.
 
I can't get the background to work. I put background.png in images/ , with all the covers (they works), but I only get a black background...
 
Love the loader, but I was wondering if you could edit the source so that it would only display the larger images. I just like the bigger ones more. thx a bunch to anyone who can help me with this.
 
Hmm ok I just resized the images myself but the problem I'm having is that the main center image loads but the images for the games either side don't load.

Is this correct, in my root I have a folder called: images and within that folder I have the main images for backgrounds, bg.png and I also have another folder in there called: small. In that folder I put the resized images of 119x168?

So I have: root of SD/images/ and also root of SD/images/small/
 
Ok ignore that about where the small images went. I never saw that I had to rename them to include small before the actual game id. So now it's clarified that small images need to be as so:

root/images/small/small(gameid).png

Minus any brackets
wink.gif



update

Ok just edited my small images and they still won't show either side. An example I have is this: (SD Root)/images/small/smallRSFJ99.png

Can someone tell me where I am going wrong here?
 
cdreams said:
Hmm ok I just resized the images myself but the problem I'm having is that the main center image loads but the images for the games either side don't load.

Is this correct, in my root I have a folder called: images and within that folder I have the main images for backgrounds, bg.png and I also have another folder in there called: small. In that folder I put the resized images of 119x168?

So I have: root of SD/images/ and also root of SD/images/small/
Same... Any Help?
Larger Names only Show Ending
E.G. "cess" of Twilight Princess
 
AppleBelly said:
I believt he source code i used had it in. If you can confirm it still does for me, if not i'll get it added.

Nintendo sent me a new Wii instead of repairing my overheating issues a couple of days ago, so I'm stuck on virgin 4.0 at the moment
frown.gif
 
AppleBelly said:
I believt he source code i used had it in. If you can confirm it still does for me, if not i'll get it added.


Ocriana Does Work.
The 2 small images next too the large one still dosent work... Any Ideas? Thanks.
Also could you code it to either scroll the text (is that possible?) or a larger box for the text as names dont always fit.
 
I hope it's cool if I post up another background that I made for this specific loader. I figure it could be of some use if anyone figures out why the smaller cover art pictures aren't showing up.
This is what it would look like if you got the small pictures working:
bg_copy.png


Here's the actual bg.png:
http://g.imagehost.org/0772/bg.png
 

Site & Scene News

Popular threads in this forum