Hacking USB Loader GX

  • Thread starter cyrex
  • Start date
  • Views 7,150,657
  • Replies 29,352
  • Likes 47

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,648
Country
France
will you support gamepad controls on usb loader gx + in games in the future? (wii vc)
maybe, I'll have to try and see what's required to make it work inside the loader's interface.
of course, it will prevent you from launching Wii or channel games, as you can't reload another IOS once launched with (c)IOS255, so only nintendont will be usable.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,116
Country
United States
I found what may be a bug with usb loader gx. if I enter usb loader gx on the wii u, my pro controller will lose its attachment to the console. only after going through the sync process will the attachment work again. I tested this by going into the wii menu itself, then going into usb loader gx. the problem only seems to exist if going into the usb loader gx.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,648
Country
France
that's strange as I never had a desync issue with the WiiU mode after using USBGX with the wiiu classic pro controller.
I will remove the libraries for wup support anyway, as it's now managed directly by libogc, so it will not be a problem in USBLoaderGX anymore (but I hope you won't get the problem again)

for now, I don't know what to suggest, as there's no sync done inside the loader. it shouldn't touch the sync info. it just read from the pad, like other controllers.
 

GR-DRACULA

Well-Known Member
Member
Joined
Sep 14, 2015
Messages
281
Trophies
0
Age
24
Location
crete
XP
520
Country
Greece
maybe, I'll have to try and see what's required to make it work inside the loader's interface.
of course, it will prevent you from launching Wii or channel games, as you can't reload another IOS once launched with (c)IOS255, so only nintendont will be usable.
rip my dreams :c XDD .. a bit irrelevant but should I also ask mrbean35000vr about it if it can be done on CTGP? xD
 

OuahOuah

Well-Known Member
Member
Joined
Oct 2, 2006
Messages
1,072
Trophies
1
Age
46
Location
France
Website
www.ouahouah.eu
XP
764
Country
France
@Cyan I think I found a bug maybe.

I try to load Nintendont, with GC games displayed on USBGX.

I can load Nintendont on HBC, Nintendont settings are correctly read on USBGX settings page, but I can't see games.

I looked at USBGX settings for games directory and found a problem :

- GameCube SD dir = sd:/games/ -> when selecting, it only displays USB1 directories, I can read SD directories to choose a different one (not very important)
- Nintendont loader dir (what is this setting for ?) = USB1:/apps/intendont -> can't also change it to sd:/apps/nintendont as Ican't select SD card in explorer :(

So maybe that's why I can't see GC games in loader.

Can't really move games to USB because my son uses Nintendont from Wii U forwarder so only SD is ok.
 

wicksand420

Well-Known Member
Member
Joined
Nov 13, 2016
Messages
2,787
Trophies
1
Age
39
XP
2,295
Country
United States
@Cyan, I am trying to run some tests to see if we can get USBLoader GX running from Wii U home menu and have ran into a snag, I tried to set up USBLoader GX from wii side first to get a config for it, but when I try to access anything, it tells me I can't, it wont find themes, wont make a config, and when I try to set custom pathways, everything says USB8 and I click on it and it says ERROR, any help would be greatly appreciated.
 

GreyWolf

Well-Known Member
Member
Joined
Mar 2, 2015
Messages
5,399
Trophies
0
Age
54
XP
1,515
Country
United States
@Cyan I think I found a bug maybe.

I try to load Nintendont, with GC games displayed on USBGX.

I can load Nintendont on HBC, Nintendont settings are correctly read on USBGX settings page, but I can't see games.

I looked at USBGX settings for games directory and found a problem :

- GameCube SD dir = sd:/games/ -> when selecting, it only displays USB1 directories, I can read SD directories to choose a different one (not very important)
- Nintendont loader dir (what is this setting for ?) = USB1:/apps/intendont -> can't also change it to sd:/apps/nintendont as Ican't select SD card in explorer :(

So maybe that's why I can't see GC games in loader.

Can't really move games to USB because my son uses Nintendont from Wii U forwarder so only SD is ok.

Is the drive formatted as exFAT, maybe? USB Loader GX only works with FAT32, NTFS or ext2.

--------------------- MERGED ---------------------------

@Cyan, I am trying to run some tests to see if we can get USBLoader GX running from Wii U home menu and have ran into a snag, I tried to set up USBLoader GX from wii side first to get a config for it, but when I try to access anything, it tells me I can't, it wont find themes, wont make a config, and when I try to set custom pathways, everything says USB8 and I click on it and it says ERROR, any help would be greatly appreciated.

Try forcing the loader IOS to 58? If you're trying to run it in that "Wii VC" mode it probably doesn't have access to cIOSes.
 

wicksand420

Well-Known Member
Member
Joined
Nov 13, 2016
Messages
2,787
Trophies
1
Age
39
XP
2,295
Country
United States
Is the drive formatted as exFAT, maybe? USB Loader GX only works with FAT32, NTFS or ext2.

--------------------- MERGED ---------------------------



Try forcing the loader IOS to 58? If you're trying to run it in that "Wii VC" mode it probably doesn't have access to cIOSes.
I tried to force it under ios 58, but it will not save a config, and like i said before, i started on the vwii side to make a config and it wont.
 

Clutz450

Well-Known Member
Member
Joined
Jul 20, 2013
Messages
778
Trophies
1
Age
41
XP
1,179
Country
United States
Hey! How do we download custom banners nowadays since gxarena dot com is down?? Downloading in USB Loader GX gives me "xxx files are missing! Save list?" or something similar... Thanks!

I saw this post in the Nintendont thread. Just wondering if this was true. Can we no longer download Gamecube custom banners through USB Loader GX? I've been away for a while and recently started getting back into this again.
 

fledge68

Well-Known Member
Member
Joined
Jan 30, 2012
Messages
2,437
Trophies
2
XP
4,952
Country
United States
I saw this post in the Nintendont thread. Just wondering if this was true. Can we no longer download Gamecube custom banners through USB Loader GX? I've been away for a while and recently started getting back into this again.
the nintendont.gxarena site/domain was removed. which means you can't use usbloader gx or wiiflow/wiiflow mastermod/wiiflow lite to download individual banners.

you can only download his packs here:

normal banners with gc logo sound - https://www.mediafire.com/?x3r64ovxfwml3

banners with added soundtrack - https://www.mediafire.com/?t6938wc8j3psz

what's in the packs is listed on the first post of this thread under the spoilers. - https://gbatemp.net/threads/custom-...ection-for-system-menu-backup-loaders.325003/
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,648
Country
France
I can load Nintendont on HBC, Nintendont settings are correctly read on USBGX settings page, but I can't see games.
Hello,

I would need more information, as SD card is usually working fine for everyone else, so it shouldn't be a bug in the loader but a hardware issue on your side.

I suppose you are on WiiU, as you mentionned your son using it, so SDXC is not a problem here. if you are on Wii, you know you can only use SDHC, not XC.
where are your homebrew ? on SD or USB ?
if on USB FAT32, I guess HBC can't list it (because it's uStealth'd), but you can use forwarders to launch homebrew on hidden HDD.
if it's on SD card, I guess all other homebrew can see and load from SD without problem ? did you try Wiixplorer ?
If it's on SD card, I guess you have an USB (stealth probably) for wii games, and that's were the settings are stored if it can't detect the SD card.
You said "nintendont settings are correctly read", I suppose you talk about ... nincfg.bin ? but how do you know it's correctly read if you can't access any game?
or maybe you talk about the game settings inside the loader (settings which are probably stored on USB:/apps/usbloader_gx/GXGlobal.cfg and game config file)

I would need more information on all the location of your used files. Thanks.

- GameCube SD dir = sd:/games/ -> when selecting, it only displays USB1 directories, I can read SD directories to choose a different one (not very important)
- Nintendont loader dir (what is this setting for ?) = USB1:/apps/intendont -> can't also change it to sd:/apps/nintendont as Ican't select SD card in explorer :(
it seems it's not affecting only Gamecube games, it's like ALL the paths are only set to USB, and all resources and all path can't use SD card at all, right?
so, where is located your GXGlobal.cfg file? on USB, right? with the dol on usb too? all other path (wii disc, covers, boxes, sound, themes, etc.) are all on usb too ?


Can't really move games to USB because my son uses Nintendont from Wii U forwarder so only SD is ok.
I don't see why, as you already have a FAT32 USB, why can't you put Gamecube games on it?Sorry, I forgot WiiVC injection can only list SD card.


@Cyan or @GreyWolf Does "Wii U widescreen" feature patch the main.dol on the game before launching? If that so what segment of the code is patched?
Not at all.
it's patching a WiiU memory part before launching the game (actually it's not patching it at game launch at all).
if it's a gamecube game, that option is only passed to nintendont, and nintendont set the wiiU screen aspect ratio setting itself before launching the game.
If it's not a gamecube game, that option is available in the settings>features, and it switch the wiiU screen aspect ratio in real time, while you are still in the loader's settings. the games are not responsible for changing or setting the WiiU video resolution. the Wii games are not even aware it's possible to have a different resolution as they weren't coded with that feature, and the Wii can't do it. That option has no effect on a Wii.

I saw this post in the Nintendont thread. Just wondering if this was true. Can we no longer download Gamecube custom banners through USB Loader GX? I've been away for a while and recently started getting back into this again.
USBLoaderGX let you set any URL in the setting file.
you are not stuck with only one site, but you need another host if you want the loader to find them and download them directly from the interface.
if the last host is offline, there's nothing I can do, unless someone create a new host and provide the new url, I can force the new url on next update. if no new update is release, you can edit the URL yourself in GXGlobal.cfg, at the bottom of the file.
 
Last edited by Cyan,

cucholix

00000780 00000438
Member
Joined
Jan 17, 2017
Messages
3,246
Trophies
1
Age
44
XP
6,270
Country
Chile
Not at all.
it's patching a WiiU memory part before launching the game (actually it's not patching it at game launch at all).
if it's a gamecube game, that option is only passed to nintendont, and nintendont set the wiiU screen aspect ratio setting itself before launching the game.
If it's not a gamecube game, that option is available in the settings>features, and it switch the wiiU screen aspect ratio in real time, while you are still in the loader's settings. the games are not responsible for changing or setting the WiiU video resolution. the Wii games are not even aware it's possible to have a different resolution as they weren't coded with that feature, and the Wii can't do it. That option has no effect on a Wii.
I see, though it would be possible to patch a Wii VC injection so it launch in 4:3 AR always.
 

OuahOuah

Well-Known Member
Member
Joined
Oct 2, 2006
Messages
1,072
Trophies
1
Age
46
Location
France
Website
www.ouahouah.eu
XP
764
Country
France
where are your homebrew ? on SD or USB ?

My Wii homebrews are on SD card (Wii U + SDHX 64 Gb Kingston card)

if it's on SD card, I guess all other homebrew can see and load from SD without problem ? did you try Wiixplorer ?

All Wii homebrews are on SD://apps/ and can be read from vWii Homebrew channel.
WiiXplorer R259 from https://sourceforge.net/projects/wiixplorer/ didn't display anything onSD card but can be launched itself when on SD card.
SD Card = FAT32.
SD card can be accessed with FTPiiU on the WiiU side from HBL.

If it's on SD card, I guess you have an USB (stealth probably) for wii games

I confirm I have a multi partition HDD on back USB port, 1st partition is FAT32 with WBFS dir and games inside this dir, made stealth with UStealth R8.

You said "nintendont settings are correctly read", I suppose you talk about ... nincfg.bin ? but how do you know it's correctly read if you can't access any game?
or maybe you talk about the game settings inside the loader (settings which are probably stored on USB:/apps/usbloader_gx/GXGlobal.cfg and game config file)

My USBGX config file is located on SD:/config/GXGlobal.cfg with other CFG files and covers in a subdir.
Nintendont settings in USBGX settings are reflecting Nintendont settings.
Not sure this is clear.
If I change a setting directly in Nintendont, nincfg.bin is updated.
If I launch USBGX after, in the settings about Nintendont, the setting newlychanged is also changed here.

it seems it's not affecting only Gamecube games, it's like ALL the paths are only set to USB, and all resources and all path can't use SD card at all, right?
so, where is located your GXGlobal.cfg file? on USB, right? with the dol on usb too? all other path (wii disc, covers, boxes, sound, themes, etc.) are all on usb too ?

On USB, I only have a WBFS dir with games inside.
Seems SD card can't be read inside WiiXplorer and USBGX ?

Sorry, I forgot WiiVC injection can only list SD card.

SD card is correctly read in WiiU (WUP Installer GX, and so).

Maybe on other problem : SD card can be accessed in Windows 7, it gives me cylinder error or something like that, but as I use Linux (Ubuntu) 90% of my time... I can access it on Linux without any problem.
 

OuahOuah

Well-Known Member
Member
Joined
Oct 2, 2006
Messages
1,072
Trophies
1
Age
46
Location
France
Website
www.ouahouah.eu
XP
764
Country
France
Ok, found another strange thing.

I just un-stealthed drive : I have a USB1:/apps/usbloader_gx and USB1:/config/ in it !

What happen :

I launch vWii on Wii U.
I launch HBC and choose USBGX (I can also choose Nintendont). That means SD card with SD:/apps/ is ok !

After loader USBGX, it uses USB1:/config/GXGlobal.sfg o.O and SD card is no more accessed ?

I put Nintendont on USB1:/apps/nintendon/boot.dol and GC games on USB1:/games/name_of_the_game [ID6]/game.iso and even with this, GC games are not displayed.

So why SD card is not read after launch of USBGX (and WiiXplorer ?) ? Maybe I should format it with 64k cluster on Win7.
nincfg.bin is on SD card and settings like "Memcard on" is also in USBGX o.O

Second problem : why is USBGX launched from SD card can't read GC games on USB1:/games/ ?
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,648
Country
France
I don't know why the card is not read when inside USBLoaderGX.
But, even stranger, why it can't be accessed when inside wiixplorer either? it's like the card can't be mount by homebrew, but HBC can list it without problem.

The second strange thing is that the loader still doesn't display gamecube games even if they are on USB1. this issue is something else we should talk more. it's not normal.


I don't think it's due to SDXC, because I have a 64GB SDXC and it works fine on my vWii.
I think the problem is the way it's formated, you said you usually use linux. Maybe Linux format FAT32 with a different partition ID than the one used by windows tools.
There are different FAT32 version (yeah, it was too simple to use a single format? to annoy people, they made different FAT32 PartitionID, and maybe even different FAT32 specification).
USBLoaderGX is checking the partition ID in the partition table (MBR or GPT), and loads the partition if it's either FAT32 0x0B and 0x0C, and FAT16 0x04, 0x06 and 0x0E.
I could try to add new ID if you want, but I don't know if it's stable/compatible with our libfat library.

Maybe HBC can read more FAT32 ID than our homebrew?
If you can, and know how, could you check and dump your SD card sector 0 ? just to see the partition table and partition type set to FAT32.

If your ID is not 0b or 0c, I think you can fix your problem by formatting it again with GUIFormat (FAT32format) on windows. (maybe there's a linux version?) http://www.ridgecrop.demon.co.uk/index.htm?guiformat.htm
if it doesn't fix it, you'll probably have to format it with Panasonic SD formater 4.0 on windows (I don't know why, but that tool fixed all issues users had until now :P), you'll have to reformat to FAT32 next, as it will format to exFAT by default.
 
Last edited by Cyan,

GreyWolf

Well-Known Member
Member
Joined
Mar 2, 2015
Messages
5,399
Trophies
0
Age
54
XP
1,515
Country
United States
Priiloader seems to have a habit of not handling AHB_PROT very well when booting to an installed file in addition to only allowing you to select the HBC as a direct boot title, so I made a workaround. You can install this dol instead of the forwarder dol in Priiloader and it will start the actual UNEO forwarder channel when turning on your Wii. It seems to be a bit quicker, too. It should work for other titles like the Nintendont forwarder, just change the title ID.

Source included. It's only like 5-6 lines. :P
 

Attachments

  • uneoboot.zip
    390 KB · Views: 267

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Apply snorgle to pinfor.