Hacking USB Loader GX

  • Thread starter cyrex
  • Start date
  • Views 7,164,108
  • Replies 29,359
  • Likes 47

Badablek

Well-Known Member
Member
Joined
Jan 23, 2006
Messages
517
Trophies
1
Age
43
XP
2,917
Country
France
@sideskroll I was wrong, it seems that WIT does NOT remove update (or any other) partition by default : http://wit.wiimm.de/info/scrubbing.html

There are three scrubbing methods, which can be used alone or in combination:

  1. Space in the partition area (starts at offset 0x50000), that is not claimed by any partition, does not held any information. The first scrubbing method is to ignore these non claimed areas. Nearly all tools ignoring these areas if not copying in raw mode.
    For WIT tools this scrubbing method is enabled by default. To disable it (together with all other methods) use the option --raw.

  2. The data on Wii discs is divided into partitions. Typical partitions are DATA, UDATE and CHANNEL. For playing a game only the DATA partition is needed. The second scrubbing method is to remove unwanted partitions. If a partition is removed the partition tables must be rewritten.
    For WIT tools this method is disabled by default. To enable it the option »--psel data«.

  3. The third method is to look inside the file system of the partition, find unused sectors and fill them with0x00 or ignore them while copying the disc.
    For WIT tools this method is enabled by default. To disable it use the option »--psel whole«.
....


Without using one of the options --psel or --raw all partitions are copied and scrubbed.


so SSBB should not be a problem with WIT.


thanks for clarification, @Cyan ;)
 
Last edited by Badablek,
  • Like
Reactions: sideskroll

Clutz450

Well-Known Member
Member
Joined
Jul 20, 2013
Messages
778
Trophies
1
Age
41
XP
1,181
Country
United States
@Cyan I wasn't able to do the full test yet but a had a few minutes and this is what I did. I used 1259mod02 and downloaded everything to make sure I was only missing things that weren't on the server. After it finished I did it again just to make sure it got everything. Then I went back to 1256 and tried downloading images (which it shouldn't have found anything new to download) and the bug happened.

That was all the time I had. What I am thinking is maybe there is something on the server that it tries to download and then fails. So in addition to try out the test you suggested, I am also going to try and compare my missing list to what is actually on the server and see if there is something that is on my missing list but is also actually on the server. Hopefully that would help pinpoint the file causing the trouble.

P.S. For those of you in the US and anyone else who may celebrate it, Happy Thanksgiving.
 
Last edited by Clutz450, , Reason: Accidently said mod01 instead of mod02.

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
please, don't use mod01 anymore.
I told you it had a bug (a different one than what we are trying to fix and it's crashing on banner downloads).
If you want to trigger the freeze bug on banner download, you won't be able to do it on mod01 as it will crash the loader on the first downloaded banner.

If you want to do the test, use :
1256 : to find how the freeze happen, if it's on specific download or random, or a time issue (5min after first download? etc.)
1259 mod2 : to see if it's fixed. this version has SSL removed.

thanks for the test and time you will spend on it.
 
  • Like
Reactions: Troopage

Revenged

Member
Newcomer
Joined
Nov 16, 2015
Messages
8
Trophies
0
XP
53
Country
Finland
Any idea what to check on the EmuNAND issue? Right now as I have both Wii and vWii either one working would be enough.

And yes, I'm using a forwarder on both. Wii has also Priiloader set USB Loader GX as autoboot.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
are channels from emuNAND working with cIOS mode? (Full, instead of neek)

It should be easy to setup:
1. set the path you want to use (SD or usb partition 1 is recommended)
2. dump your current NAND from the features menu
3. set EmuNAND channel setting to FULL
launch a channel (a working one, don't try castlevania! that game require neek)

it should be enough to setup emuNAND. most games will work with d2x v8 or v10 r52. (don't use r53)

for the problematic games, like castlevania, you will need to use the neek option (set it individually for problematic games instead of using the global setting)
copying the neek2o files in the /sneek/ folder is enough to boot the channel in neek mode.
if the channel is an out of region game, launch neek from the feature settings, in hidden menu from neek enable region free and reboot.

I don't know why it freeze or has issue for you.
could you try another device ? use SD if you use USB. Maybe your drive is not compatible (wrong sector size, etc.)
 

Clutz450

Well-Known Member
Member
Joined
Jul 20, 2013
Messages
778
Trophies
1
Age
41
XP
1,181
Country
United States
please, don't use mod01 anymore.

Sorry, I miss spoke. I meant to say 1259mod02. I haven't used mod01 in any of my tests. I will edit my previous post to say that. Sorry for the confusion.

thanks for the test and time you will spend on it.

No problem. I'm glad I could help give back by doing tests for you.
 
Last edited by Clutz450,

_47iscool

Noticer
Member
Joined
Nov 18, 2013
Messages
669
Trophies
1
XP
1,118
Country
United States
Pretty easy, all I had to do was replace:

08080A0C0A0808
with
00001516150000

To disable the deflicker filter for NTSC 480i

Thank Cyan
I made one when I worked on the video modes.
Code:
typedef struct _gx_rmodeobj {
    u32 viTVMode;
    u16 fbWidth;
    u16 efbHeight;
    u16 xfbHeight;
    u16 viXOrigin;   
    u16 viYOrigin;   
    u16 viWidth;
    u16 viHeight;
    u32  xfbMode;
    u8  field_rendering;
    u8  aa;
    u8  sample_pattern[12][2];
    u8  vfilter[7];
} GXRModeObj;

                            vi fbw  ebw  xfbH xOri yOri Widt heig  xFBMode fRend aa   Sample Pattern                                  VFilter        unknown
TVNtsc240Ds:                01 0280 00f0 00f0 0028 0000 0280 01e0 00000000 0000 0000 060606060606060606060606060606060606060606060606 00001516150000
TVNtsc240DsAa:              01 0280 00f0 00f0 0028 0000 0280 01e0 00000000 0000 0001 03090303090309030909030902060a02060a02060a02060a 00001516150000
TVNtsc240Int:               00 0280 00f0 00f0 0028 0000 0280 01e0 00000000 0001 0000 060606060606060606060606060606060606060606060606 00001516150000
TVNtsc240IntAa:             00 0280 00f0 00f0 0028 0000 0280 01e0 00000000 0001 0001 03090303090309030909030902060a02060a02060a02060a 00001516150000
TVNtsc480Int:               00 0280 01e0 01e0 0028 0000 0280 01e0 00000001 0000 0000 060606060606060606060606060606060606060606060606 00001516150000
TVNtsc480IntAa:             00 0280 00f2 01e0 0028 0000 0280 01e0 00000001 0000 0001 03090303090309030909030902060a02060a02060a02060a 04080c100c0804
TVNtsc480IntDf:             00 0280 01e0 01e0 0028 0000 0280 01e0 00000001 0000 0000 060606060606060606060606060606060606060606060606 08080a0c0a0808
TVNtsc480Prog:              02 0280 01e0 01e0 0028 0000 0280 01e0 00000000 0000 0000 060606060606060606060606060606060606060606060606 00001516150000
TVNtsc480ProgSoft:          02 0280 01e0 01e0 0028 0000 0280 01e0 00000000 0000 0000 060606060606060606060606060606060606060606060606 08080a0c0a0808
TVNtsc480ProgAa:            02 0280 00f2 01e0 0028 0000 0280 01e0 00000000 0000 0001 03090303090309030909030902060a02060a02060a02060a 04080c100c0804
TVMpal480IntDf:             08 0280 01e0 01e0 0028 0000 0280 01e0 00000001 0000 0000 060606060606060606060606060606060606060606060606 08080a0c0a0808
TVPal264Ds:                 05 0280 0108 0108 0028 0018 0280 0210 00000000 0000 0000 060606060606060606060606060606060606060606060606 00001516150000
TVPal264DsAa:               05 0280 0108 0108 0028 0018 0280 0210 00000000 0000 0001 03090303090309030909030902060a02060a02060a02060a 00001516150000
TVPal264Int:                04 0280 0108 0108 0028 0018 0280 0210 00000000 0001 0000 060606060606060606060606060606060606060606060606 00001516150000
TVPal264IntAa:              04 0280 0108 0108 0028 0018 0280 0210 00000000 0001 0001 03090303090309030909030902060a02060a02060a02060a 00001516150000
TVPal524ProgAa:             06 0280 0108 020c 0028 0017 0280 020c 00000000 0000 0001 03090303090309030909030902060a02060a02060a02060a 04080c100c0804
TVPal524IntAa:              04 0280 0108 020c 0028 0018 0280 020c 00000001 0000 0001 03090303090309030909030902060a02060a02060a02060a 04080c100c0804
TVPal528Int:                04 0280 0210 0210 0028 0018 0280 0210 00000001 0000 0000 060606060606060606060606060606060606060606060606 00001516150000
TVPal528IntDf:              04 0280 0210 0210 0028 0018 0280 0210 00000001 0000 0000 060606060606060606060606060606060606060606060606 08080a0c0a0808
TVPal528Prog:               06 0280 0210 0210 0028 0017 0280 0210 00000000 0000 0000 060606060606060606060606060606060606060606060606 00001516150000
TVPal528ProgSoft:           06 0280 0210 0210 0028 0017 0280 0210 00000000 0000 0000 060606060606060606060606060606060606060606060606 08080a0c0a0808
TVPal576IntDfScale:         04 0280 01e0 0240 0028 0000 0280 0240 00000001 0000 0000 060606060606060606060606060606060606060606060606 08080a0c0a0808
TVEurgb60Hz240Ds:           15 0280 00f0 00f0 0028 0000 0280 01e0 00000000 0000 0000 060606060606060606060606060606060606060606060606 00001516150000
TVEurgb60Hz240DsAa:         15 0280 00f0 00f0 0028 0000 0280 01e0 00000000 0000 0001 03090303090309030909030902060a02060a02060a02060a 00001516150000
TVEurgb60Hz240Int:          14 0280 00f0 00f0 0028 0000 0280 01e0 00000000 0001 0000 060606060606060606060606060606060606060606060606 00001516150000
TVEurgb60Hz240IntAa:        14 0280 00f0 00f0 0028 0000 0280 01e0 00000000 0001 0001 03090303090309030909030902060a02060a02060a02060a 00001516150000
TVEurgb60Hz480Int:          14 0280 01e0 01e0 0028 0000 0280 01e0 00000001 0000 0000 060606060606060606060606060606060606060606060606 00001516150000
TVEurgb60Hz480IntDf:        14 0280 01e0 01e0 0028 0000 0280 01e0 00000001 0000 0000 060606060606060606060606060606060606060606060606 08080a0c0a0808
TVEurgb60Hz480IntAa:        14 0280 00f2 01e0 0028 0000 0280 01e0 00000001 0000 0001 03090303090309030909030902060a02060a02060a02060a 04080c100c0804
TVEurgb60Hz480Prog:         16 0280 01e0 01e0 0006 0000 02c4 01e0 00000000 0000 0000 060606060606060606060606060606060606060606060606 00001516150000
TVEurgb60Hz480ProgSoft:     16 0280 01e0 01e0 0028 0000 0280 01e0 00000000 0000 0000 03090303090309030909030902060a02060a02060a02060a 04080c100c0804
TVEurgb60Hz480ProgAa:       16 0280 00f2 01e0 0028 0000 0280 01e0 00000000 0000 0001 060606060606060606060606060606060606060606060606 08080a0c0a0808
                            0  1    3    5    7    9    11   13   15       19   21   23                                                
                                                        B    D    F        13   15   17

Though, it seemed strange, it looked like two "xFBMode" and "fRend" values were swapped in "Moto GP 8" game's dol. I'm not sure, maybe it's just me not understanding. but when reversing the value, it matched the video mode list.


to enable DF, it seems you need both vfilter set to 08080a0c0a0808 and xFBMode set to 1
if xFBMode to 0 = ProgSoft

Look in the the file I uploaded, it contains all video modes data and more info, some example, etc.


some games have their own video mode (like motoGP8).
If you want to try editing Deflicker, be sure to use the dol patching feature with Full option to replace ALL (even unknown) video modes or the game will prefer its own mode at yours.
To edit/add video modes, go to trunk/patches/gamepatches.c
 
  • Like
Reactions: Cyan

sideskroll

Well-Known Member
Member
Joined
Aug 25, 2010
Messages
653
Trophies
0
Age
41
Location
Here
XP
420
Country
Peru
@Badablek, So if I understand correctly... the 1st and 3rd methods are applied by default? How can that be?
I guess it ignores "blank, non claimed" sections at the start of the disk and THEN delves into the file system itself and blanks unused sectors?
Basically making a "compressed" 1:1 game disc?
 

Badablek

Well-Known Member
Member
Joined
Jan 23, 2006
Messages
517
Trophies
1
Age
43
XP
2,917
Country
France
I should not have quoted the srubing methods, because I have mixed up everything :wacko:
scrubing an ISO is not the same as converting it to WBFS. Scrubing replaces dummy/garbage with 00 for better compression and faster transmission. But uncompressed, it takes the same space as a full ISO.


WBFS only keeps what is needed and removes everything else. I don't know if "others" partition(s) are kept or removed.
 

yacepi15

Well-Known Member
Member
Joined
Aug 15, 2015
Messages
1,023
Trophies
0
XP
1,883
Country
Germany
Hi. Im trying to run Trauma Team (NTSC only) on my PAL Wii with Usb Loader GX. I receive a black screen but,if i use the "Force PAL60" option,it works but,the problem is that the image its a bit blurry (I have Zelda TP with this config and no problem). Im using RGB cables (Red,white and yellow) to connect it to a HDTV. Can anyone help me?
 
D

Deleted User

Guest
Use component cables (eBay) and set your Wii to 480p. Believe me you can notice the difference.
 

Clutz450

Well-Known Member
Member
Joined
Jul 20, 2013
Messages
778
Trophies
1
Age
41
XP
1,181
Country
United States
@Cyan Had some time to do some testing here is what I did and my results.

I used r1259mod02 to make sure I had all the image files downloaded. When it started it said I had 2488 missing files and when it was done it still said I was missing 2488 files. So I should have every image downloaded from the server that I can use.

Then just like I had tried in my last post, while not deleting anything from my images folder, I used r1256 to try and download all the images again. My expected outcome would be that it would tell me that I had 2488 missing files and finish saying that I was still missing the same 2488 files since there is nothing more that it should need to download. But instead what happened was it went through "3D Covers" and "Flat Covers" just fine but the bug happened when trying to download "Full HQ Covers". I restarted USB Loader GX and tried again and again the bug happened at the same spot. It happened when there were 2467 files left and it was trying to download S5BETL.png from gametdb. According to gametdb that game is Back to the Future: The Game and they do have a full cover available there. I checked my images folder and I do not have a file named S5BETL.png in my full folder. I further confirmed this by pressing button 2 on Back to the Future: The Game and can see that there is no full cover displayed. (See pictures below):



So I downloaded the full cover for the game off gametdb manually and was going to manually place it in my "full" folder but decided not to in case that would mess something else up. But when I compared the Back to the Future full image to a few other images that I already had I noticed that the Back to the Future image had dimensions of 512 x 340 where as the others I had checked were 1024 x 680. Not sure if dimensions matter but just thought worth mentioning in case this was the issue.

This is all I had time to test for today but now we at least have found 1 trigger point for the bug. Trying to download Full Cover S5BETL.png from GameTDB. I know that still doesn't give us an answer as to why the same thing is happening in banner downloads as well but hopefully they are related and a fix to one will be a fix to both. I just don't have any more time right now to test. But I will have more time tomorrow and am anxiously awaiting your thoughts on what I found and what to try out next.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
Thank you.
Like you said, now we have a trigger point for the tests.
I'll rename one of my games to that ID, so it will download that cover even if I don't have the game and I'll see if I can trigger the bug too.

The image size need to be a specific multiple (I forgot which one, multiple of 8 or 4 ?), but if the picture was not the correct dimension I think it would code dump instead of freezing the network.
if the network is freezing it's more a symptom of undeleted memory used to download covers and ends filled without any more free space to download new covers.
maybe it doesn't correctly free the memory on download fail, that's what we will find.
 

Clutz450

Well-Known Member
Member
Joined
Jul 20, 2013
Messages
778
Trophies
1
Age
41
XP
1,181
Country
United States
Just remember that it still didn't download that image in the 1259mod02 version either. It just skipped over it for some reason but didn't cause the bug when it did.
 

bradzx

x-Darkie-x
Member
Joined
Sep 19, 2009
Messages
2,171
Trophies
0
Location
Ponyville
XP
1,444
Country
United States
I have problem with wii game. I am playing Super Smash Bros Brawl: Yin Yang Edition 2: The Balance of Kyu and Newer Super Mario Bros Wii for first time, it work fine. When I load these game for second times or so, it hanging back screen. Did I do something wrong with it? It work fine when I load first time. But it wont work after second or so. How can I fix it?
 
  • Like
Reactions: ZoNtendo

ngs428

Well-Known Member
Member
Joined
Dec 30, 2014
Messages
200
Trophies
0
Age
43
XP
134
Country
United States
@Cyan or anyone else who uses this combination. I haven't updated USBLoaderGX and Nintendont in 3 months. Any issues with the latest Nintendont and USBLoaderGX? My current setup is working fine, just looking to update.
 
Last edited by ngs428,

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
I haven't read nintendont thread for past 6 months, but no users said anything about compatibility.
1255 had issue with v372 (or something like that) but I didn't check why.

with latest usbgx update, and with latest nintendont, I didn't get any report. I don't know if it's because there's no more issue or because they didn't report another time.

you can keep your current nintendont's boot.dol and download latest to try.
it's very easy from USBGX:

1. user paths > nintendont : create a new folder (when editing the path, click on the top-left icon to create a folder)
2. features > update nintendont : it will download latest release to the new folder and use it for your games.

if it doesn't work, revert the path and you'll still have previous nintendont version.

Personally, I'm doing this for every updates instead of replacing the previous dol, this way I can easily revert or even use different version per game (individual settings).
 

Clutz450

Well-Known Member
Member
Joined
Jul 20, 2013
Messages
778
Trophies
1
Age
41
XP
1,181
Country
United States
@Cyan Did some more testing. Again I was using r1256.

This time I selected to only download "Discarts". The bug happened while trying to download JA7E.png from gametdb.com. It went really quick so I couldn't tell if it happened when it was trying to download the original or custom discart. But I am pretty positive it happened on JA7E. GameTDB says this game ID belongs to ActRaiser, a Super Nintendo Virtual Console game. I checked in USB Loader GX and I do not have disc artwork for that game. GameTDB did not have any discarts for that game which isn't surprising since it's a Virtual Console game and doesn't have an actual disc. .

Finally I selected to only download "Custom Banners". The bug happened while trying to download JDWE.bnr from nintendont.gxarena.com. According to GameTDB that game ID belongs to Aero the Acrobat, a SNES Virtual Console game. I checked in USB Loader GX and I do not have a custom banner for that game. But that is not surprising as I don't think there are very many custom banners at all for Virtual Console games. I then went to see if I could find that banner on the server. I'm not sure if I put in the right address but I tried going to http://nintendont.gxarena.com/banners/ to see if I could find that missing banner there but it wasn't. Actually it didn't really look like a lot of banners were there so I may not have been looking in the right spot.

So now we have 3 trigger points with the first being from my last post about Back to the Future: The Game. The only difference between that game and these other 2 I just found is that the artwork does actually exist for Back to the Future: The Game but the loader doesn't download it and causes the bug. These last 2 games the artwork doesn't exist for them and the bug still happened. Hopefully you can find the similarities between each one and fix it.

I don't know how to skip the ones that are causing the bug other than to switch to only download a certain category which I've already done and found as many as I can that way. So if you want me to keep searching for other files that cause the bug you are going to have to tell me how I can skip the files we found so far.
 

ngs428

Well-Known Member
Member
Joined
Dec 30, 2014
Messages
200
Trophies
0
Age
43
XP
134
Country
United States
I haven't read nintendont thread for past 6 months, but no users said anything about compatibility.
1255 had issue with v372 (or something like that) but I didn't check why.

with latest usbgx update, and with latest nintendont, I didn't get any report. I don't know if it's because there's no more issue or because they didn't report another time.

you can keep your current nintendont's boot.dol and download latest to try.
it's very easy from USBGX:

1. user paths > nintendont : create a new folder (when editing the path, click on the top-left icon to create a folder)
2. features > update nintendont : it will download latest release to the new folder and use it for your games.

if it doesn't work, revert the path and you'll still have previous nintendont version.

Personally, I'm doing this for every updates instead of replacing the previous dol, this way I can easily revert or even use different version per game (individual settings).

Thanks for the reply @Cyan. I will give the latest versions a shot.

On another topic, when a game report is generated, could an additional column be added to ID Wii vs GameCube 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,649
Country
France
To me it doesn't look like trigger point, more random bugs.
I'll just revert the http code and remove SSL, like I planed.

I'm sure the cover download is not memory safe (buffer overflow), as it downloads the full data stream before attempting to write the file, instead of writing the file chuck by chunk. I might have to rewrite that part, but until then it's easier to just revert it.

Thanks for the tests you did so far, and sorry I didn't used your results. maybe when I'll add ssl again it will be useful.


@ngs428:
Sorry, I don't understand your question. You mean the report for missing covers?
because I don't know what other reports the loader is doing.
I can try to filter by game origin (wii, channel, gc)
 
  • Like
Reactions: Troopage

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @SylverReZ, no