Hacking USB Loader GX

  • Thread starter cyrex
  • Start date
  • Views 7,159,794
  • Replies 29,357
  • Likes 47

OvOvO

Member
Newcomer
Joined
Dec 13, 2017
Messages
15
Trophies
0
Age
38
XP
47
Country
Croatia
great.

ill try all of the above when i get a new usb in the days to come.

this is a great place a shame i didnt find it before :)

and again thank you.
 
  • Like
Reactions: Zonta85

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
@Zonta85, did you try your language file on the loader ?
first, the file is corrupted, bad quotes at wrong location, missing translation etc. (line 2290 and 2540), I fixed them.

second, some strings seems bigger than the available space on screen in some menus.
if you make a string too long, it will either go outside of the GUI, or move the GUI and make other areas unreadable.
I didn't test your file yet, so maybe it fit on screen. it's just something I wanted to mention that you should always test the result on the loader before making it official for other users.


just something I want to point :
msgid "Block Loader Layout Button"
msgstr "Blocco pulsante layout del loader"
"layout" is a word in Italian? schema or progetto is not better?
you translated banner grid layout to "La visualizzazione" in another place, you should keep the same word to talk about the same thing all over the program.

I translated it in French as something like "Block layout's change", you don't necessarily have to translate each strings word by word.
make it understandable and fitting on your screen in your language.

no need to repeat "pulsante" nor "del loader" if you want. it could be :
"Blocco cambiare della disposizione"
that's not shorter, but it's an idea to write things differently or maybe more natural to understand what it does.
not sure if cambiare is the right word, it's more for "convert" but it's the one I know.



2 missing string I need for Italian :
CC Rumble
Skip IPL
Video scale
you translated "video scale value" to "Valore scaling video" but not this one. Should I put "Scaling video" ?


It will look like that :
Scaling video : Auto
or
Scaling video : Manuale (40~120)
Valore scaling video : 40



If you want to keep them untranslated, that's fine.
 
Last edited by Cyan,
  • Like
Reactions: Zonta85

Zonta85

Well-Known Member
Member
Joined
Nov 9, 2007
Messages
436
Trophies
0
Age
39
Location
Ascoli Piceno
Website
www.facebook.com
XP
523
Country
Italy
Yeah, i've tested It before and some translations are bigger than the avalaible space on the screen, but i preferred a litteral translation, i Will Fix that for you.
Then: we use the word layout in italian and is more understandable than "progetto" (project) or "schema" (scheme) so i think that You Can change:
"Block Loader layout button" to "Blocca cambiamenti layout"
"CC Rumble" to "Vibrazione CC"
"Skip IPL" to "Salta IPL"
"Video scale" to "Scaling video"

I Will work from now to Midnight then i cannot do tests today, i Will do some tomorrow, let me know if You miss some other Lines or You have some lines that seems too long.

P.S. Its strange that the file is corrupted cause i used a text editor (not Windows notepad) and saved in utf8.
 
  • Like
Reactions: Cyan

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
it's probably a copy/paste issue.
the file missed two quotes, but that's fine I fixed it.

thanks for the new translated strings.
literal translation is always better, but if it's too big it will make something like that in the settings:
Setting name with a very long description : Set....

you will not read the "settings value" but just 3 scrolling letters because the "setting value" column is now too small.
I wanted to make all the settings widescreen (who has a non widescreen TV nowadays?) but planed it for after 3.1 release.
 

Zonta85

Well-Known Member
Member
Joined
Nov 9, 2007
Messages
436
Trophies
0
Age
39
Location
Ascoli Piceno
Website
www.facebook.com
XP
523
Country
Italy
@Cyan for the missing translations lines is because is preferred to let them unaltered: a big difference from Italian to french is that italian is more "permeable" to the English words, You are more purists :D
Stupid example: computer is computer, not ordinateur ecc. ecc.
 
Last edited by Zonta85,

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
yeah, you are right :)

I'll submit the new revision like that. I won't check all string length.


Release of r1267:
* Set Nintendont as default gamecube mode for new loader install.
* Set the Nintendont video scale option on 2 lines
* Added the Nintendont video scale option to individual game settings.
* Added parental control option to block change of loader's Layout (requested by OuahOuah)

* Updated Language : FR, PT-BR, IT



planed for near revisions (no promise, in no order, as always)
* remove WUPC library (WiiU Classic Pro is now managed by Libogc) Done r1268
* add Wiiu fw.img and wiiu gamepad support
* fix hdd detection/rewrite boot sequence
* Fix GPT partition detection number/order
* change the behavior if usb not detected (stop loading channel mode automatically)
* add ciso compatibility for nintendont
 
Last edited by Cyan,

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
@GreyWolf,
I removed the wupc library to use only libogc.
It works, but Left stick diagonal are not working.

is it a known problem with libogc and this controller in general?
I don't know if it's best to fix it in libogc or just keep the wupc library for now.
Quick look in libogc I didn't see anything wrong, nor where is the problem (libogc or loader)

or maybe I messed the classic controller code :P
I will charge my batteries and test with Wiimote+CC
edit
CC/CCpro are working fine with LeftStick. only the WiiU CC Pro is having issues. So I think it's really an issue in libogc.
maybe the problem is the range, wiiupro has a wider range, and calculating the ang/mag in dynamic.c is not correct? it's used by libwiigui to move the cursor.


why there's always little bug like this to make life harder? it could have work first time, but not the diago doesn't work with liogc :(
 
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
@GreyWolf,
I removed the wupc library to use only libogc.
It works, but Left stick diagonal are not working.

is it a known problem with libogc and this controller in general?
I don't know if it's best to fix it in libogc or just keep the wupc library for now.
Quick look in libogc I didn't see anything wrong, nor where is the problem (libogc or loader)

or maybe I messed the classic controller code :P
I will charge my batteries and test with Wiimote+CC
edit
CC/CCpro are working fine with LeftStick. only the WiiU CC Pro is having issues. So I think it's really an issue in libogc.
maybe the problem is the range, wiiupro has a wider range, and calculating the ang/mag in dynamic.c is not correct? it's used by libwiigui to move the cursor.


why there's always little bug like this to make life harder? it could have work first time, but not the diago doesn't work with liogc :(

Hmm... are you working from the 1265 commit or a newer one locally? It took me a while to edit all of the code to only use libogc's code and it's in quite a few of the source modules. There was an issue open about libwiiuse's CC Pro calibration but I assumed it was fixed by now.

EDIT: It was closed as "fixed" in July: https://github.com/devkitPro/libogc/issues/12
 
Last edited by GreyWolf,

Zhiro90

New Member
Newbie
Joined
Dec 14, 2017
Messages
1
Trophies
0
Age
33
XP
42
Country
Mexico
now that there's riiconnect24, i'd like to know if there's a way to get the preview weather and preview news that appear in the banner in the wii menu in the USBLoader Channel view. Thank you all!
 

GreyWolf

Well-Known Member
Member
Joined
Mar 2, 2015
Messages
5,399
Trophies
0
Age
54
XP
1,515
Country
United States
now that there's riiconnect24, i'd like to know if there's a way to get the preview weather and preview news that appear in the banner in the wii menu in the USBLoader Channel view. Thank you all!

There's not any clear documentation on the channel script language used to do that. :(
 
  • Like
Reactions: Zhiro90

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
Hmm... are you working from the 1265 commit or a newer one locally? It took me a while to edit all of the code to only use libogc's code and it's in quite a few of the source modules. There was an issue open about libwiiuse's CC Pro calibration but I assumed it was fixed by now.

EDIT: It was closed as "fixed" in July: https://github.com/devkitPro/libogc/issues/12
oh, I didn't see that.
I'll try it, thank you.

I'm updating from 1265/1267, and I removed wupc references in many files (c and h)
I can compile without warning so I think I didn't miss anything.
I hope the calibration is enough to fix magnitude/degree calculation :)
 
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
oh, I didn't see that.
I'll try it, thank you.

I'm updating from 1265/1267, and I removed wupc references in many files (c and h)
I can compile without warning so I think I didn't miss anything.
I hope the calibration is enough to fix magnitude/degree calculation :)

See if Streamline has the same problem. I think this build should be stable but you may have to run it from the ULGX forwarder. Somehow I broke the current commit and it won't launch from the HBC. :P https://github.com/GreyWolfSC/streamline/tree/master/distrib/app

If you try it make sure you back up the original folder as the config stuff is different now.
 

JacobM

Well-Known Member
Member
Joined
Jun 16, 2017
Messages
242
Trophies
0
XP
599
Country
United States
Release of r1267:
* Set Nintendont as default gamecube mode for new loader install.
* Set the Nintendont video scale option on 2 lines
* Added the Nintendont video scale option to individual game settings.
* Added parental control option to block change of loader's Layout (requested by OuahOuah)

* Updated Language : FR, PT-BR, IT

Tested it on my WiiU with a fresh USB Loader GX directory. So far everything works just like r1265. The GameCube loader settings page still randomly crashes (see photo) and WiiU WiiVC args lock up HID controllers (expected). Otherwise, everything else works smoothly!


Mk0nBQg.jpg
 
Last edited by JacobM,
  • Like
Reactions: Cyan

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
greywolf : Thank you :D
I updated to libogc 1.8.17 (I was still using 1.8.16), it fixed the problem.
the dol is 5Kb smaller, that's nice.

@JacobM:
Thank you for the test :)
Glad it works fine.

I checked your crash dump, and like greywolf reported it's due to some string function.
It crashes here :
gamecube settings > set text to display for option line "NINCCRumble".
I found the problem :)

If you visit a game which already has a game setting saved before these two settings were added, the ninccrumble and skipIPL settings don't have a default value.
It's fixed for 1268. Thank you for reporting that bug screenshot.

USBLoaderGX r1268
* removed LibWUPC now that libogc has native WiiU Pro controller support
* fixed crash when going to gamecube individual game settings (Thanks JacobM)

I set that release as "default/latest" to sourceforge.
I didn't test it a lot, but it fixes a major crash so users should use this one now as latest stable :)
 
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
I guess that one was my fault. :(

EDIT: Hmm... I have "NINSkipIPL = OFF" and "NINCCRumble = OFF" in Settings::SetDefault() and "game.NINCCRumble = INHERIT"/"game.NINSkipIPL = INHERIT" in CGameSettings::SetDefault(GameCFG &game).

Is that not where they should be initialized after loading the per-game settings?
 
Last edited by GreyWolf,
  • Like
Reactions: TheRiceKing

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
yeah, but don't worry, we fixed it ;)

I tried to look in your streamline to see if you had the same bug, but couldn't find the file.
you changed a lot the file's location and usage.
You don't have CGameSettings.h anymore?

if you need, you probably miss these two:
this->NINCCRumble = game.NINCCRumble;
this->NINSkipIPL = game.NINSkipIPL;
 
  • Like
Reactions: TheRiceKing

GreyWolf

Well-Known Member
Member
Joined
Mar 2, 2015
Messages
5,399
Trophies
0
Age
54
XP
1,515
Country
United States
yeah, but don't worry, we fixed it ;)

I tried to look in your streamline to see if you had the same bug, but couldn't find the file.
you changed a lot the file's location and usage.
You don't have CGameSettings.h anymore?

if you need, you probably miss these two:
this->NINCCRumble = game.NINCCRumble;
this->NINSkipIPL = game.NINSkipIPL;

CGameSettings in the "/Library/" folder now on Streamline. The settings system is a mess in the loader. I've been trying to make it easier to use lately.

I do have that in Streamline so I may have fixed it after I made the patch I sent you.

I do have something else if you want it: a list of the standard X11 colors: https://github.com/GreyWolfSC/streamline/blob/master/app/UI/Colors.h

It's a lot easier to use something like "colors::AliceBlue" instead of having to use the RGBA values every time. :) This MSDN article has a chart that shows you what the colors are.
 
  • Like
Reactions: TheRiceKing

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 don't know if I need these colors.
maybe it's useful for people creating themes?

To all users having issues with their drive detection :
I changed the boot process, it's now using IOS58 by default (or more precisely, using the current IOS if AHBPROT is disabled, else use the argument in meta.xml).
Could someone test and report any issue ?
specially users with Wii 2 drives (because I didn't test), or a WiiU and a vWii (because I don't have a WiiU HDD).

1269 mod01
* changed boot process to use AHB if available
* Bonus (untested yet) : It should skip USB and cIOS reloading if using WiiU WiiVC! it's supposed to fix the channel mode. maybe not. I'm not sure the fw.img can be patched the same way vWii IOS are patched. I'll make a mod 02 later. I'll do wiiu vc inject tests later.

maybe I messed up, and nothing works. but I could boot and it works with my drive on Wii.
it might even boot faster as it skip one IOS reload.
 
Last edited by Cyan,
  • Like
Reactions: GreyWolf

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    fuck ubisoft, and fuck activision
    +1
  • realtimesave @ realtimesave:
    Nintendo needs to release a new console, switch is getting such shitty little games lately lol it's pathetic
  • Purple_Heart @ Purple_Heart:
    Lmao a new flashcart... The Unlock Switch... I knew it's not fake xD
    +1
  • NinStar @ NinStar:
    A new consoles won't solve that problem
  • NinStar @ NinStar:
    It will actually make it worse
  • The Real Jdbye @ The Real Jdbye:
    well actually
    a new console won't do anything right now, because the games are still in development, that's why there are few games being released
  • The Real Jdbye @ The Real Jdbye:
    it won't make the games finish any faster
  • Veho @ Veho:
    2/3rds of launch titles for the Switch 2 will just be lazy ports of Switch games anyway.
  • The Real Jdbye @ The Real Jdbye:
    probably
  • The Real Jdbye @ The Real Jdbye:
    maybe mario kart 9 will be a launch title
  • The Real Jdbye @ The Real Jdbye:
    i really want a new mario kart
  • Veho @ Veho:
    What, you mean the endless stream of DLCs doesn't count?
  • Veho @ Veho:
    Why develop a new game when you can just sell season passes forever?
  • Veho @ Veho:
    I'm still on MKDS so I'm not bothered :tpi:
  • The Real Jdbye @ The Real Jdbye:
    i like the dlc tbh, i'd like a new game more
  • ZeroT21 @ ZeroT21:
    but the current version is still selling fine at full price
  • SylverReZ @ SylverReZ:
    Hello
  • ZeroT21 @ ZeroT21:
    sup
    +1
  • SylverReZ @ SylverReZ:
    @realtimesave, You seen the Unlock Switch flashcart yet?
  • K3Nv2 @ K3Nv2:
    I'll see the 19.0 update that blocks use ability to it
    +1
  • K3Nv2 @ K3Nv2:
    Lol newegg+
    Screenshot-20240423-053504-Gmail.jpg
  • S @ salazarcosplay:
    does update 19 really block it
  • SylverReZ @ SylverReZ:
    Update 19 never came out yet. Just the 18.1.
    SylverReZ @ SylverReZ: Update 19 never came out yet. Just the 18.1.