Hacking USB Loader GX

  • Thread starter cyrex
  • Start date
  • Views 7,227,542
  • Replies 29,375
  • Likes 48

Kikirini

Zelda Fangirl
Member
Joined
May 18, 2011
Messages
1,142
Trophies
0
Age
34
Location
Vermont, USA
Website
kuroshouri.com
XP
1,214
Country
United States
I've been using clean rip, but it gave me a few issues as well. I have 13 original GC games, and only 5 worked on the first try. I had the same problems.

In the end, I removed my USB drive, and installed only what I needed to an SD Card (used a micro SD 4gb inside a converter personally) with enough space to hold the rip. Also, I used a non-abrasive, lint-free cloth (like the kind to clean glasses) and wiped the disc carefully before loading it in. The final 8 games all ripped fine for me on the first shot afterwards.
I'll buy a bigger SD drive and try that. I HOPE it's not the disc, as I bought a factory sealed copy Dx If this works, you will be my hero xD
 

Padnarok

Member
Newcomer
Joined
Apr 27, 2014
Messages
5
Trophies
0
Age
42
XP
53
Country
Canada
I'll buy a bigger SD drive and try that. I HOPE it's not the disc, as I bought a factory sealed copy Dx If this works, you will be my hero xD

You'll just need one with space enough for at least 1.4gb after everything is on it. With Cleanrip, just be sure to get the latest gc.dat file off of redump.org (Downloads >(drop down list)> Nintendo GameCube datfile). Cleanrip 2.0 gives an error if you try to download it through the app. They lost the wii.dat file last time I checked. Have that on the root of your SD card, and just decline looking for it online. I just did my own Twilight Princess recently, and is working with Devolution r200 and USB Loader r1219 no problem.
 
  • Like
Reactions: Kikirini

Kikirini

Zelda Fangirl
Member
Joined
May 18, 2011
Messages
1,142
Trophies
0
Age
34
Location
Vermont, USA
Website
kuroshouri.com
XP
1,214
Country
United States
You'll just need one with space enough for at least 1.4gb after everything is on it. With Cleanrip, just be sure to get the latest gc.dat file off of redump.org (Downloads >(drop down list)> Nintendo GameCube datfile). Cleanrip 2.0 gives an error if you try to download it through the app. They lost the wii.dat file last time I checked. Have that on the root of your SD card, and just decline looking for it online. I just recently did my own Twilight Princess recently, and is working with Devolution r200 and USB Loader r1219 no problem.
Will do. Thanks for the advice.
 

airline38

Well-Known Member
Member
Joined
Mar 28, 2010
Messages
741
Trophies
1
XP
807
Country
Taiwan
I tried to re-compile r1220 with "geckocodes download fixed" patch
and tested several GC games on SD/USB by the latest Nintendont loader v1.4.
(use the default "Nintendont loader path" \apps\nintendont\ )

It seems there is no more "code dump". (maybe I am lucky ?)

Anyway,if anyone would like to test, here is the download link.
(source patches are included)

http://www.sendspace.com/file/1d8opa
 

Mementos

Well-Known Member
Newcomer
Joined
Jun 2, 2013
Messages
54
Trophies
0
Age
32
XP
63
Country
Gambia, The
I tried to re-compile r1220 with "geckocodes download fixed" patch
and tested several GC games on SD/USB by the latest Nintendont loader v1.4.
(use the default "Nintendont loader path" \apps\nintendont\ )

It seems there is no more "code dump". (maybe I am lucky ?)

Anyway,if anyone would like to test, here is the download link.
(source patches are included)

http://www.sendspace.com/file/1d8opa

Getting codedumps, think your just lucky =)
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
Thanks for the new patch :)
(though, it's still based on your version of 1218)

yes, the crash is very random.
when I wanted to find the cause, it never crashed :lol:

It's crashing in nintendont when unmounting FAT.

just after selecting the Memory card filename, there's:
loader/source/main.cpp line 324
fatUnmount(GetRootDevice()); <-- it crashes there.

With RootDevice being the game's one, not the boot device.
it crashes either using SD or USB, with any config settings.


Edit:
in fact, it's not the unmount which crashes.
If you stop autoboot, and mount the device where your autoboot game is located, it crashes too (before selecting a game, so before selecting Memory card).
 

airline38

Well-Known Member
Member
Joined
Mar 28, 2010
Messages
741
Trophies
1
XP
807
Country
Taiwan
It seemed this code dump was happened when Nintendont tried to
load the "nincfg.bin". Is it better to write this file to either SD or USB
according to game location ?
 

WiiFreasko

Well-Known Member
Member
Joined
Jan 8, 2013
Messages
100
Trophies
0
Age
34
XP
78
Country
Thailand
even better why not write the file into memory, this will fix the random codedumps and the annoying automatic autoboots
Freasko
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
It's not nincfg.bin.
The issue is whether when inserting the SD/USB Kernel module, or flushing it (it crashes only when you flush, but it could be an issue with the insertion process).


could you try this nintendont : http://filetrip.net/dl?o2E3yX1Xb6
I can't manage to make it code dump (when you want, it never happens!)... maybe it's fixed?

I only undefined DEBUG_MODULE_PATCH in makefile.
I also added a prompt after the flush to return to loader without launching the game for faster testing.

If you see the code dump, tell me and I will know it's not the issue.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
damn, I guess I was lucky 50+ times.
Thanks for testing.

edit:
it crashed when pressing start to launch the game so it's not the flush, but it's before loading the memory card....
There's nothing in-between!
 

MaxP90

Well-Known Member
Newcomer
Joined
Mar 14, 2009
Messages
53
Trophies
1
XP
408
Country
Italy
damn, I guess I was lucky 50+ times.
Thanks for testing.
I don't think you were lucky, I think I get code dumps much more frequently than you, about half of my tries end with a code dump. It's pretty much impossible for me to get several consecutive successful boots.

Also, my crashes where before the selection screen...
EDIT: now I got a crash when pressing start too
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
I can make a version with a lot of breakpoint, you tell me which is the latest working.

edit:
Test version 1.5 from Fix94 :)
It was probably the memory card still open while closing FAT.
 

Badablek

Well-Known Member
Member
Joined
Jan 23, 2006
Messages
527
Trophies
1
Age
43
XP
2,958
Country
France
Hi Cyan,

since rev1219, when booting USBLoader GX from an HDD (FAT32 partition) with an SD Card inserted, the config file is NOT read from boot.dol folder in the HDD but from the SD (USBLGX makes a config folder in SD card).
This is really annoying, because it forces USBLoader GX to write the config file on SD, and also the cache_bnr folder and all other files (language, etc.). This kind of behavior does not make USBloader GX "portable" and is not really clean (if I want to use an HDD for whatever reason, I'd like to be able to do so and use ONLY the HDD to write files on)

I know you did this for the "disable Automount USB" in StartUpProcess.cpp (line 249 to 259) but is there a chance you add this option by another manner, maybe with an argument that users could put in the meta.xml (This should be the best way IMHO) ? Or maybe by making 2 versions of USBLoader GX, a normal (USB) one, and a special (SD) one ?


USBLoader GX primary function is to load games from...USB :ph34r: (so its name is well found)
Even if it's more than a "basic" USBLoader (launcher DVD, emuNAND, etc.), I really don't understand why it should use an SD card at all.


Thanks for reading.


ps : With rev1221, I'm not able to launch any game with Nintendont.
I tried to put Nintendont on SD and on HDD (apps\Nintendont\boot.dol + meta.xml+icon.png)

Everytime I try to launch a game, it says that my version of Nintendont does not support USB (it does, I'm using the latest one, and It works nicely if I launch it from HBC....I played PAL Luigi's Mansion in forced NTSC with my wavebird for about one hour)
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
Thanks for the report.
I didn't test that, sorry.

I'll try to find another way to do it, but I wanted to have this option in the loader instead of editing meta.xml (which not all users understand).
There's maybe no other way than using arguments.
I think the correct other way would be to auto-edit the meta.xml when changing Loader's IOS, Port and Autoboot settings! I'll probably do that :D

about nintendont, it's caused by a change in v1.20 (revision 20).
Joostin replaced all strings to use \r\n instead of \n, breaking the string size used for version detection.
I fixed it in 1222 mod01 (look in my signature)
 
  • Like
Reactions: Magnus87

Badablek

Well-Known Member
Member
Joined
Jan 23, 2006
Messages
527
Trophies
1
Age
43
XP
2,958
Country
France
thanks for the fast answer Cyan.
auto-editing the meta.xml is a really good idea and should satisfy everybody :moogle:



i'll check your 1222mod for Nintendont ^___^
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Did you feed the hamster in your internet router? It prob died and is running slow now.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, why did you start saying my pc has a hamster in the first place?
    +1
  • BigOnYa @ BigOnYa:
    Its actua!ly just a old joke, meaning its slow. Was just kidding around with you.
    +1
  • BigOnYa @ BigOnYa:
    I bet @AncientBoi has some hamsters hidden somewhere tho....
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I think Game streaming should work like this.... Local Hardware able the run the game fine, game engine and common assets stored locally, all FMV and music and textures could be streaming
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Some temporary storage
  • Xdqwerty @ Xdqwerty:
    also @BigOnYa im making some progress on my gdevelop project, implemented various mechanics
  • Psionic Roshambo @ Psionic Roshambo:
    They went all in on streaming, should have been more of a hybrid approach
    +1
  • BigOnYa @ BigOnYa:
    Or free government supplied high speed internet be nice also. Like Obama care. Xdqwerty that's cool, its time consuming but rewarding once done or playable, to see what you've made from scratch. Animations take forever, but worth it.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, although the bullets are a bit buggy
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not to mention this would be a massive pain to pirate
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    and the visual aspect of the game is quite crude (the sprite that looks best is that of the protagonist just because he is a stickman with sunglasses)
    +1
  • BigOnYa @ BigOnYa:
    There is a bullets behaviour you assign to your character, that makes the code easier, under "behaviours"
  • Xdqwerty @ Xdqwerty:
    i meant that when the character is pointing to the right, the bullets spawn where they should, but when he is on the right, they move to the right but the spawn point is incorrect
  • BigOnYa @ BigOnYa:
    Itch.io has lots of free assets also. Under the bullets behavior tab, there is a "rotate bullets" option, can try that. Or in the code can try
    - fire bullet Player.X(PlayerDirection)
  • Xdqwerty @ Xdqwerty:
    im taking a break for today anyway
    +1
  • BigOnYa @ BigOnYa:
    YEa gotta after a while, looking at code for long periods will bug your eyes.
    +1
  • BigOnYa @ BigOnYa:
    That's cool tho, I'm proud of you going back to it, not giving up. It is difficult at first to learn, but fun once you get the hang of it. I think I've watched every tutorial video there is, but I still struggle sometimes to get stuff to work right. But gotta keep trying dif things, and eventually you will get it right.
    +1
  • K3Nv2 @ K3Nv2:
    Lol McDonald's has a grandma mcflurry
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, furry grandma?
  • BigOnYa @ BigOnYa:
    It sounds good actually, I like butterscotch
  • K3Nv2 @ K3Nv2:
    It sucked don't know wtf these little bits and pieces are they use now
    K3Nv2 @ K3Nv2: It sucked don't know wtf these little bits and pieces are they use now