Hacking USB Loader GX

  • Thread starter cyrex
  • Start date
  • Views 7,153,026
  • Replies 29,352
  • Likes 47

Paracosmic

New Member
Newbie
Joined
May 21, 2023
Messages
2
Trophies
0
XP
60
Country
United States
I don't have a balance board to test, but it'll probably be fixed in my next release.
It's possible you may not need the balance board to see it. Before starting anything with the board, or even connecting to it, you can see the calendar. It's kinda funny when loading the file though, the Balance Board character will mention how it feels like it's time traveling when it sees the date is earlier than the last save's date.

However I'm not sure if you already need a save file prior or not to first access the calendar. I could try to make a demo save file to provide if it would be helpful.
 

fledge68

Well-Known Member
Member
Joined
Jan 30, 2012
Messages
2,437
Trophies
2
XP
4,952
Country
United States
It's possible you may not need the balance board to see it. Before starting anything with the board, or even connecting to it, you can see the calendar. It's kinda funny when loading the file though, the Balance Board character will mention how it feels like it's time traveling when it sees the date is earlier than the last save's date.

However I'm not sure if you already need a save file prior or not to first access the calendar. I could try to make a demo save file to provide if it would be helpful.
the same thing affects wiiflow and some other apps. there's a issue in libogc that causes this and thanks to extrems its patched in the next version of libogc which i have already used for wiiflow and fixed the wii fit plus date issue. i'm sure the next version of usbloader_gx will use the newest libogc.
 

september796

Well-Known Member
Member
Joined
May 4, 2015
Messages
300
Trophies
0
XP
1,486
Country
Cote d'Ivoire
ULGX vWii channel forwarder doesn't read that I have set up SD card mode, it switches back to usb everytime, meaning the app has to be reloaded through ULGX's option menu in order to properly list wii games. This is not an issue when ULGX is launched through HBC. Anyone else having this problem?
 

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,545
Country
United Kingdom
there's a issue in libogc that causes this and thanks to extrems its patched in the next version of libogc
This might be a different issue, since USB Loader GX already contains a time fix that works for every other game. So I first need to see if I can replicate the issue with r1281 and then check if my WIP build fixes it.

ULGX vWii channel forwarder doesn't read that I have set up SD card mode, it switches back to usb everytime
Check out this post.
 

the_octorox

New Member
Newbie
Joined
May 22, 2023
Messages
1
Trophies
0
Age
32
XP
12
Country
United States
Hello, I'm on r1281 and I keep having an issue where Usb loader GX keeps booting in SD card mode. I keep turning that setting off so I can access the games on my USB but every time I restart the Wii it boots into SD card mode again. Does anyone know how to fix?
 

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,545
Country
United Kingdom
Hello, I'm on r1281 and I keep having an issue where Usb loader GX keeps booting in SD card mode. I keep turning that setting off so I can access the games on my USB but every time I restart the Wii it boots into SD card mode again. Does anyone know how to fix?
If you're using a Wii U then follow the link in my previous post, but if you're using a Wii and you're launching the loader via a forwarder then install this WAD and make sure that your SD card isn't set to read only.

The setting is read from meta.xml and it shouldn't be enabled by default.

It's possible you may not need the balance board to see it. Before starting anything with the board, or even connecting to it, you can see the calendar. It's kinda funny when loading the file though, the Balance Board character will mention how it feels like it's time traveling when it sees the date is earlier than the last save's date.
Could you check if my previous release can get/set the time correctly?

If I use r1281 and boot the game without any saves then it correctly retrieves the date and asks me to confirm it. But I've never been able to reproduce any date related issues on my Wii, so I was expecting that result.
 
Last edited by blackb0x,

felipecrs

New Member
Newbie
Joined
May 19, 2023
Messages
4
Trophies
0
Age
26
XP
16
Country
Brazil
Just my 2cents: I always suffered of my Wii not being able to write to SD cards intermittently (some times it works, some times it does not). Here is the fix:

 

dewfuz

New Member
Newbie
Joined
May 23, 2023
Messages
1
Trophies
0
Age
42
XP
14
Country
Netherlands
Having trouble getting my USB Samsung T7 SSD to work. Would give up but it IS somewhat working elsewhere, just not in the 2nd re-initialization of USB during USB Loader GX startup.
So ios and mod wise i think i followed everything correctly. i'll include the syscheck on bottom of this post.

If i understand correctly both Homebrew channel and USB Loader GX as well as wiiXplorer use IOS58 to communicate with my USB - SSD.
* In wiiXplorer this works correctly and i can see and open files + it stores configuration on my USB-SSD
* Also homebrew left some files on there, cant quite remember how or which files, but I've seen them (before numerous reformats)
* Start USB Loader GX it will go through its first USB detection cycle, this 'detects' quite fast. i see my blue led on SSD flashing indicating that its being read, USB Loader GX is then going to loading config and eventual re-initialising USB. My SSD gets 'unmounted' during which i a RED led, this also happens when i switch to wiiXplorer or to Homebrew, or to USB Launcher GX initially.. Then the blue solid light will turn back on (suggesting successful remount?). but USB Launcher GX enters the 20 sec countdown loop and then just goes to Loader screen with UN-initialised USB device.

So during or around the 're-initializing usb' i can see the message that it is switching to IOS 249. From this i conclude that either IOS249 is NOT working with my SSD or my SSD does not have expected state in the (2nd) countdown loop. OR something happens before
i tried modifiying meta.xml of USB on my SD card (not ssd, start from homebrew | sd), to boot with 251 or to set 251 as loader but that doesn't seem to have any effect.. it boots like described above then i can see it switching to 249

Could not find where all the ioss'es are used for.. IOS251 base 58 i assumed is a patched IOS58, so that's why i tried that


So i dug a bit in the code, and found the StartupProcess.cpp.. This seems to confirm what i observe:
* first starts in IOS58 and detects the USB (or at least makes the led flash), i think it also enters the spinup loop for this, but that doesnt get to coutning down, just moves on quite fast
* then notices other IOS is configured thus Unmounts(Destory / deinit), remounts en enters spinup loop, times out
so the difference between those pieces of code is IOS content and the DeviceHandler::DestroyInstance(); and USBStorage2_Deinit()

so i figured mebe recompile myself, then see if i can fidle around a bit adding logging. but recompiling on my pc fails after minute or so, also included the recompile failure's in spoiler tag below.

Also how can i see debug printing, eg the gprintf's that are 'everywhere' ?






SysCheck ME v2.5.0 by blackb0x, JoostinOnline, Double_A, R2-D2199 and Nano
...runs on IOS58 (rev 6176).

Region: PAL
System Menu 4.3E (v514)
Priiloader installed
Drive date: 02.13.2007
Homebrew Channel 1.1.2 running on IOS58

Hollywood v0x11
Console ID: 62661803
Console Type: Wii
Shop Channel Country: Netherlands (94)
Boot2 v4
Found 67 titles.
Found 47 IOS on this console. 14 of them are stubs.

IOS4 (rev 65280): Stub
IOS9 (rev 1034): No Patches
IOS10 (rev 768): Stub
IOS11 (rev 256): Stub
IOS12 (rev 526): No Patches
IOS13 (rev 1032): No Patches
IOS14 (rev 1032): No Patches
IOS15 (rev 1032): No Patches
IOS16 (rev 512): Stub
IOS17 (rev 1032): No Patches
IOS20 (rev 256): Stub
IOS21 (rev 1039): No Patches
IOS22 (rev 1294): No Patches
IOS28 (rev 1807): No Patches
IOS30 (rev 2816): Stub
IOS31 (rev 3608): No Patches
IOS33 (rev 3608): No Patches
IOS34 (rev 3608): No Patches
IOS35 (rev 3608): No Patches
IOS36 (rev 3608): No Patches
IOS37 (rev 5663): No Patches
IOS38 (rev 4124): No Patches
IOS40 (rev 3072): Stub
IOS41 (rev 3607): No Patches
IOS43 (rev 3607): No Patches
IOS45 (rev 3607): No Patches
IOS46 (rev 3607): No Patches
IOS48 (rev 4124): No Patches
IOS50 (rev 5120): Stub
IOS51 (rev 4864): Stub
IOS52 (rev 5888): Stub
IOS53 (rev 5663): No Patches
IOS55 (rev 5663): No Patches
IOS56 (rev 5662): No Patches
IOS57 (rev 5919): No Patches
IOS58 (rev 6176): USB 2.0
IOS60 (rev 6400): Stub
IOS61 (rev 5662): No Patches
IOS70 (rev 6912): Stub
IOS80 (rev 6944): No Patches
IOS222 (rev 65280): Stub
IOS223 (rev 65280): Stub
IOS248[38] (rev 65535, Info: d2x-v11beta1): Trucha Bug, ES Identify, NAND Access
IOS249[56] (rev 65535, Info: d2x-v11beta1): Trucha Bug, NAND Access, USB 2.0
IOS250[57] (rev 65535, Info: d2x-v11beta1): Trucha Bug, NAND Access, USB 2.0
IOS251[58] (rev 65535, Info: d2x-v11beta1): Trucha Bug, NAND Access, USB 2.0
IOS254 (rev 65281): BootMii
BC v6
MIOS v10
Report generated on 05/22/2023.
#~/usbloadergx$ make
sjis.cpp
~/usbloadergx/source/utils/sjis.cpp: In function 'std::string sj2utf8(const std::string&)':
~/usbloadergx/source/utils/sjis.cpp:2104:39: error: 'uint8_t' was not declared in this scope
2104 | char arraySection = ((uint8_t)input[indexInput]) >> 4;
| ^~~~~~~
~/usbloadergx/source/utils/sjis.cpp:2:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
1 | #include "sjis.h"
+++ |+#include <cstdint>
2 |
~/usbloadergx/source/utils/sjis.cpp:2104:47: error: expected ')' before 'input'
2104 | char arraySection = ((uint8_t)input[indexInput]) >> 4;
| ~ ^~~~~
| )
~/usbloadergx/source/utils/sjis.cpp:2114:51: error: expected ')' before 'input'
2114 | arrayOffset += (((uint8_t)input[indexInput]) & 0xf) << 8;
| ~ ^~~~~
| )
~/usbloadergx/source/utils/sjis.cpp:2114:81: error: expected ')' before ';' token
2114 | arrayOffset += (((uint8_t)input[indexInput]) & 0xf) << 8;
| ~ ^
| )
~/usbloadergx/source/utils/sjis.cpp:2121:17: error: 'uint16_t' was not declared in this scope
2121 | uint16_t unicodeValue = (convTable[arrayOffset] << 8) | convTable[arrayOffset + 1];
| ^~~~~~~~
~/usbloadergx/source/utils/sjis.cpp:2121:17: note: 'uint16_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
~/usbloadergx/source/utils/sjis.cpp:2123:20: error: 'unicodeValue' was not declared in this scope
2123 | if(unicodeValue < 0x80)
| ^~~~~~~~~~~~
make[1]: *** [/opt/devkitpro/devkitPPC/base_rules:15: sjis.o] Error 1
make: *** [Makefile:153: build] Error 2
 
Last edited by dewfuz,

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,545
Country
United Kingdom
i tried modifiying meta.xml of USB on my SD card (not ssd, start from homebrew | sd), to boot with 251 or to set 251 as loader but that doesn't seem to have any effect.. it boots like described above then i can see it switching to 249
Restore the unmodified meta.xml file and then boot up the loader, set the loaders IOS to 58, exit the loader and then boot it up again. This should result in the loader not using a cIOS at all, so your USB storage device will only be initialised once.

My suggestion might allow games to be listed, but there's a chance that you can't actually play any of your Wii backups because the cIOS doesn't support your USB storage device.


so i figured mebe recompile myself, then see if i can fidle around a bit adding logging. but recompiling on my pc fails after minute or so, also included the recompile failure's in spoiler tag below.
A devkitPPC update was released recently that introduced all of these compiler issues. So if you really want to compile the loader yourself then you'll need to use a slightly older version of devkitPPC.

I've already fixed everything in my local copy, but I don't push changes to GitHub until I'm ready to release an update.
 
Last edited by blackb0x,
  • Like
Reactions: jeannotte

Ouaz

Well-Known Member
Member
Joined
Jan 5, 2023
Messages
129
Trophies
0
Age
42
XP
259
Country
France
Just my 2cents: I always suffered of my Wii not being able to write to SD cards intermittently (some times it works, some times it does not). Here is the fix:


Maybe it's a known thing (I think it is not mentioned in the Wii manual), but the SD card must not be removed when the Wii is turned on.

On my end, if I do so, it corrupts the card each time.
On Windows, it says the card is write-protected although the lock is off. Switch the lock on-off several times makes the card writable again (yeah, weird).

Now, I always turn off the Wii before removing the SD card (or an Usb device), and I don't have the corruption message anymore (I use this card only on the Wii -official 2GB Sandisk for Wii)
 
  • Like
Reactions: jeannotte

gingamonkey

Member
Newcomer
Joined
Mar 14, 2023
Messages
7
Trophies
0
XP
36
Country
United Kingdom
@blackb0x - I've heard that music game DLC won't install/run if games are installed to front SD card slot rather than an external rear drive. Is this correct?

If so, would this be a possible feature n the future so that everything could be nicely tucked away in that SD card slot?

Thanks!
 

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,545
Country
United Kingdom
@blackb0x - I've heard that music game DLC won't install/run if games are installed to front SD card slot rather than an external rear drive. Is this correct?

If so, would this be a possible feature n the future so that everything could be nicely tucked away in that SD card slot?

Thanks!
I'm not familiar with music game DLC, since I don't play them games. But if the DLC is in WAD format and it's installed to your real NAND then it should work.

If the game needs to read any data from your SD card then it won't work, since the d2x cIOS doesn't allow reads or writes to files on your SD card while a game is being read from the SD card. And that's unlikely to change, since I don't have the tools required to easily debug the cIOS.
 
Last edited by blackb0x,

AlivE_

New Member
Newbie
Joined
May 28, 2023
Messages
1
Trophies
0
Age
28
XP
206
Country
Russia
Hey guys. I use neek mode for some problematic games like "Castelvania ReBirth". But 480p pixel patch does not work in this mode. Is there a solution to this problem? Below is an example of "Contra ReBirth", EmuNAN Chanel Mode Neek / Full
obs64_2023-05-28_16-50-591.png
.
 

cheloruiz79

Well-Known Member
Member
Joined
Oct 19, 2016
Messages
140
Trophies
0
Age
43
XP
1,759
Country
Puerto Rico
USBLoader GX r1262 plugin mod v2

download - https://www.mediafire.com/?x8anxwhp6umauzn

added simple game window
added the ability to put the plugin dol file in apps folder or even root of SD or USB device
using r1262 so that means the nintendont cfg v7 and triforce arcade mode option is included

So, if you put the plugin dol file in the apps folder edit the plugin ini file by putting the full path after dolfile=
example: sd:/apps/snes9xgx/snes9xgx-mod12.dol

or if you want to use the apps boot dol
example: sd:/apps/snes9xgx/boot.dol

but not all boot.dol support args for autobooting the game - i know snes9xgx, vbagx, and fceugx don't.
EDIT: if you use the official 2019+ releases as the plugin dol they do support args and can be used as wiiflow plugins.

Also, I tried search for wii games and it works fine, plus i selected wii and gc games then downloaded covers and it showed both wii and gc covers after the download.
@fledge68 Greetings, is it possible to add a plugin mod to the latest version of usb loader gx?
 

hadi aulia

Well-Known Member
Member
Joined
Feb 22, 2016
Messages
163
Trophies
0
Age
41
XP
1,149
Country
Indonesia
Anyone have problem with prince of persia forgoten sands on virtual wii?

It doesnt display title screen just blankscreen

I already set :
480p fix To off
video width to auto
deflicker filter to auto

I already switch to base ios 56 & 57 still no title screen
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=uLN9qrJ8ESs