Hacking USB Loader... my turn ;)

PNo4

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
259
Trophies
1
Website
Visit site
XP
252
Country
starstremr said:
Does the WII support ALPHA CHANNEL PNG FILES for transparency?

I would be surprised if libpng didn't have this support.


QUOTE(moviecouple @ Apr 19 2009, 07:40 PM) Still doesn't work using RMGE = Super Mario's Crazy Adventure = 0

Maybe somethings wrong in config.txt.
 

kallstar

Well-Known Member
Newcomer
Joined
Dec 22, 2008
Messages
80
Trophies
0
XP
69
Country
United States
bula said:
kallstar said:
I think someone requested a widescreen version of this a few pages back... so i tweaked it a bit.. should be perfect on 7.4

DarkNTSC7416x9.png


Dark NTSC WS 16x9
console_color =15,0


What are the coord. for this? TY
This is odd indeed. I assumed the coordinates for the console and the covers were the default ones because i specifically made it to perfectly fit without entering coordinates

wconsole_coords = 40,71,340,290
wcovers_coords = 482,110

However if you DO enter them, then the cover is ever so slightly off!! I tried putting it at 480 484 and it goes even farther off center lol and 483 seems to do nothing. So without any coordinates its dead on.
wacko.gif


I just dont get whats up with it. I'm just about sick
hate2.gif
of all these coordinates. Why dont we have backgrounds with coordinates in the file name and just have the loader set accordingly? That way you wouldnt have to mess with the config file every time you toss on a new background. Oh well I still love the loader of course, even with these slight oddities.
 

PNo4

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
259
Trophies
1
Website
Visit site
XP
252
Country
kallstar said:
However if you DO enter them, then the cover is ever so slightly off!! I tried putting it at 480 484 and it goes even farther off center lol and 483 seems to do nothing. So without any coordinates its dead on.
wacko.gif


Yeah there are so many options in the config.txt now that you feel
wacko.gif
wacko.gif
wacko.gif
wacko.gif
trying to set something up pixelperfect.
 

rockbmi

Well-Known Member
Member
Joined
Jul 31, 2007
Messages
610
Trophies
1
Age
36
XP
2,349
kallstar said:
bula said:
kallstar said:
I think someone requested a widescreen version of this a few pages back... so i tweaked it a bit.. should be perfect on 7.4

DarkNTSC7416x9.png


Dark NTSC WS 16x9
console_color =15,0


What are the coord. for this? TY
This is odd indeed. I assumed the coordinates for the console and the covers were the default ones because i specifically made it to perfectly fit without entering coordinates

wconsole_coords = 40,71,340,290
wcovers_coords = 482,110

However if you DO enter them, then the cover is ever so slightly off!! I tried putting it at 480 484 and it goes even farther off center lol and 483 seems to do nothing. So without any coordinates its dead on.
wacko.gif


I just dont get whats up with it. I'm just about sick
hate2.gif
of all these coordinates. Why dont we have backgrounds with coordinates in the file name and just have the loader set accordingly? That way you wouldnt have to mess with the config file every time you toss on a new background. Oh well I still love the loader of course, even with these slight oddities.
It worked great for me on PAL 480p, 60hz. Thankyo. I do not have any coordinates set.
 

madnlooney

Member
Newcomer
Joined
Mar 15, 2009
Messages
22
Trophies
0
XP
10
Country
i still have no luck with my config. its at the root of my SD card and is the following

Code:
images_path = SD:/apps/USBLoader/images/
background = bg.png
covers = 1
download = 0
layout = ultimate2
covers_coords = 56,106
console_color = 0,7
console_coords = default
simple = 0
home = reboot
entry_lines = 12
max_characters = 37
savesettings = 0
video = system
ocarina = 0
language = console
parentalcontrol = 0
downloadinstall = 0
hidesettingmenu = 0
i cant see anything wrong with it
 

HaTaX

Well-Known Member
Member
Joined
Mar 4, 2007
Messages
171
Trophies
0
XP
294
Country
United States
PNo4 said:
starstremr said:
Does the WII support ALPHA CHANNEL PNG FILES for transparency?

I would be surprised if libpng didn't have this support.


Right from pngu.c in the source code:
"int pngu_decode (IMGCTX ctx, PNGU_u32 width, PNGU_u32 height, PNGU_u32 stripAlpha);"

It takes the alpha layer out of it as it loads it in..
 

PNo4

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
259
Trophies
1
Website
Visit site
XP
252
Country
madnlooney said:
i still have no luck with my config. its at the root of my SD card and is the following
i cant see anything wrong with it

Well its missing a few options (if you are using 7.4)

Code:
images_path=SD:/images/
wimages_path=SD:/wimages/
background = bg.png
wbackground = wbg.png
covers = 1
download = 1
layout = ultimatew
simple = 0
home = reboot
console_coords = 40,71,340,290
covers_coords = 446,109
wconsole_coords = 40,71,340,290
wcovers_coords = 482,110
console_color = 0,15
entry_lines = 12
max_characters = 37
savesettings = 0
video = game
ocarina = 0
language = console
parentalcontrol = 0
downloadinstall = 0
hidesettingmenu = 0
widescreen = 0

There are some new widescreen options as you can see, and the last option i have "widescreen =" you can actually remove that 100%, since 7.4 totally autodetect 4:3 or 16:9.



HaTaX said:
Right from pngu.c in the source code:
"int pngu_decode (IMGCTX ctx, PNGU_u32 width, PNGU_u32 height, PNGU_u32 stripAlpha);"

It takes the alpha layer out of it as it loads it in..


Aww, that sucks... maybe possible to add it back in, or we have to wait for updated versions of the lib.


QUOTE(fozzieb @ Apr 19 2009, 08:38 PM)
remove line console_coords = default and try that

Ahh *lol* did not even notice, yeah that's a big error there.
 

bula

Well-Known Member
Member
Joined
Feb 4, 2009
Messages
812
Trophies
0
XP
42
Country
United States
kallstar said:
bula said:
kallstar said:
I think someone requested a widescreen version of this a few pages back... so i tweaked it a bit.. should be perfect on 7.4

DarkNTSC7416x9.png


Dark NTSC WS 16x9
console_color =15,0


What are the coord. for this? TY
This is odd indeed. I assumed the coordinates for the console and the covers were the default ones because i specifically made it to perfectly fit without entering coordinates

wconsole_coords = 40,71,340,290
wcovers_coords = 482,110

However if you DO enter them, then the cover is ever so slightly off!! I tried putting it at 480 484 and it goes even farther off center lol and 483 seems to do nothing. So without any coordinates its dead on.
wacko.gif


I just dont get whats up with it. I'm just about sick
hate2.gif
of all these coordinates. Why dont we have backgrounds with coordinates in the file name and just have the loader set accordingly? That way you wouldnt have to mess with the config file every time you toss on a new background. Oh well I still love the loader of course, even with these slight oddities.
Thank you.
 

masamunecyrus

Well-Known Member
Newcomer
Joined
Dec 26, 2007
Messages
59
Trophies
1
XP
97
Country
United States
Alright, I'm determined to get this to work. I'm not satisfied with the current USB loader game channels, so what I want to do is basically take a USB Loader dol forwarder channel, and just put various games' opening.bnr into that forwarder, and then have that forwarder load the Ultimate USB loader. Then, the Ultimate USB loader will see that it has been loaded via a channel, and it will run a function autoboot(), which skips the menu process and directly loads the specified game using the settings in settings.cfg. By doing this, it will be very easy to change the settings of ocarina, force video mode, or language on a USB Loader game channel.

Basically, the only thing this will entail is in usb-loader.c, right after int main(int argc, char **argv) {, you want to add:
if (cforwarder == 1) autoboot(argc, argv);

Then, all you have to do is in the channel forwarder, set gameid = "" and cforwarder =1, and if the USB loader if loaded via the channel fowarder, it will see that those variables are set and it will autoboot with the per-game settings (or default settings, if there are none) from settings.cfg.

The problem is that the only channel forwarder that DOESN'T give me a code dump is the one on GBATemp's USB Loader releases wiki, and I don't have the source for that. Could someone possibly point me to the source of a working dol forwarder for this usb loader so that I can get this functionality working?
 

kedest

Well-Known Member
Member
Joined
Feb 6, 2007
Messages
3,289
Trophies
0
Website
Visit site
XP
534
Country
Netherlands
masamunecyrus said:
The problem is that the only channel forwarder that DOESN'T give me a code dump is the one on GBATemp's USB Loader releases wiki, and I don't have the source for that. Could someone possibly point me to the source of a working dol forwarder for this usb loader so that I can get this functionality working?

The only forwarder dol I found working without code dump, was the one posted and created by suloku, he's a member here.
So maybe you could contact him, he said he was about to release the source later anyway.
 

hungyip84

Well-Known Member
Member
Joined
Mar 5, 2007
Messages
470
Trophies
0
XP
126
Country
United States
About config.txt, if you decide to put your config.txt in the root of SD card, then delete the one in your boot.dol directory.

The loader would read the config.txt at your boot.dol directory first. If the loader could not find it, then it will look at the SD card root.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    A @ abraarukuk: :rofl2: