Hacking [Tutorial] How to port Preloader hacks.ini

Bloodlust

Well-Known Member
Member
Joined
May 25, 2006
Messages
1,122
Trophies
0
Website
Visit site
XP
609
Country
Hong Kong
I'll give an arm and a leg for 4.0/4.1J hacks...
frown.gif
 

arasium

Well-Known Member
Member
Joined
Mar 19, 2009
Messages
187
Trophies
0
Location
Paris
Website
Visit site
XP
98
Country
France
It doesn't work for all hacks...

In 4.0E to 4.1E, the "replace health warning screen" 000000008.app doesn't contain the same hex code!!

So i can't find it in the new system Menu.

Do you know how to do in case like this?
 

SifJar

Not a pirate
OP
Member
Joined
Apr 4, 2009
Messages
6,022
Trophies
0
Website
Visit site
XP
1,175
Country
arasium said:
It doesn't work for all hacks...

In 4.0E to 4.1E, the "replace health warning screen" 000000008.app doesn't contain the same hex code!!

So i can't find it in the new system Menu.

Do you know how to do in case like this?
In that case, you cant port it with this method. What did you search, just the four hex values, or a few either side as well? If you had some eithere side, try removing them and leaving just the four hex values. If you still can't find it, it can't be ported with this method.

EDIT: This has been ported, using this method I believe. Maybe you made a mistake? I did make a few amendments to the method, so please try again. I think I actually had an error or two in there, but it should be OK now.
wink.gif


QUOTE(jurai @ Jul 20 2009, 01:49 AM) perhaps someone should write an automated app which can scan new system menu's for the old known values and spit out the offsets for new system menu versions?
This isnt a bad idea, but is probably more hassle than its worth. Only one person needs the program really, then they can release the hacks.ini, so it would be almost pointless spending time on an app which wont be used much. Only needs to be used a couple of times when a new system menu gets released. If I had the programming knowledge to do such a thing, I'd give it a go, but I dont.

EDIT: Added screenshots to first post. Should be easier to understand now, I think.
 

Dteyn

Well-Known Member
Member
Joined
Aug 3, 2008
Messages
335
Trophies
0
XP
115
Country
Canada
I was gonna suggest the automated program idea as well, for someone with decent VB chops it shouldn't be too hard to simply parse the hacks.ini file, and automatically search the 00000008.app files for the code to patch. Then keep a database of pre-hack values, to search for in new 00000008.app files. All it involves is parsing of the text and binary files and applying new values.

I have some VB experience and could help with the GUI and odds and ends, and could even build a database of pre-hack search values. Unfortunately my VB skills aren't that refined when it comes to parsing and file management, it would likely take me a lot of time to learn the necessary commands/methods etc for proper text parsing and file management.

I think an app like this would be useful, on one hand like SifJar said it is a lot of work for a small gain, but it would help with both new system menus as well as new preloader hacks. Some people still stick with the older system menu versions and could get some use out of newer preloader hacks that haven't been ported to the older system menu's.

Just my two cents.
smile.gif



Edit: oops typo lol
 

nubecoder

Well-Known Member
Newcomer
Joined
May 20, 2009
Messages
82
Trophies
0
Age
44
Website
www.nubecoder.com
XP
125
Country
United States
SifJar said:
jurai said:
perhaps someone should write an automated app which can scan new system menu's for the old known values and spit out the offsets for new system menu versions?
This isnt a bad idea, but is probably more hassle than its worth. Only one person needs the program really, then they can release the hacks.ini, so it would be almost pointless spending time on an app which wont be used much. Only needs to be used a couple of times when a new system menu gets released. If I had the programming knowledge to do such a thing, I'd give it a go, but I dont.

I thought of this as I was reading the guide. I did a very similar thing in the past for another project.

When I get some free time I'll look into throwing something together. Should be fairly easy.
 

arasium

Well-Known Member
Member
Joined
Mar 19, 2009
Messages
187
Trophies
0
Location
Paris
Website
Visit site
XP
98
Country
France
I've done an app that implement your method.

But, in fact, it's would never really work for all the hacks because some hacks are different beetween versions of system menus.

The source isn't really the same, a byte can differ (in unmodified 0000008.app) so we can't find it. For exemple:
- "Replace Healthwarning with Backmenu" aren't identical
- "Skip disc update check" has some identical offset and some not
- etc...

So perhaps i've not understand your method, but i think this cannot be done with an application. An application can help, but a human is needed.

I can post my source code if you want to check (C#)
 

SifJar

Not a pirate
OP
Member
Joined
Apr 4, 2009
Messages
6,022
Trophies
0
Website
Visit site
XP
1,175
Country
Well, I'm no programmer, but I think thsis should be possible by an app. Basically what the app needs to do is open a file in hex and then search for a string and find the address of the fifth hex value in that string, then add a hex value to it and spit it out. I dont see why this shouldnt be possible. It wont work for all hacks, but niether will this method. Some hacks are too advanced and cant be found with this method I think. But those that can, could be found with this app. Am I wrong in thinking that is app is possible?
 

WiiCrazy

Be water my friend!
Member
Joined
May 8, 2008
Messages
2,395
Trophies
0
Location
Istanbul
Website
www.tepetaklak.com
XP
387
Country
Dudes, find the raven's menu loader clone app in wiibrew (http://www.wiibrew.org/wiki/Menu_Loader_Clone)

in that app, patches are defined as below,

Code:
ÂÂÂÂÂÂÂÂ1,
ÂÂÂÂÂÂÂÂ{"Game IOS version"},
ÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂ0x7F, 0x06, 0xC3, 0x78,
ÂÂÂÂÂÂÂÂÂÂÂÂ0x7F, 0x25, 0xCB, 0x78,
ÂÂÂÂÂÂÂÂÂÂÂÂ0x38, 0x7E, 0x02, 0xC0,
ÂÂÂÂÂÂÂÂÂÂÂÂ0x4c, 0xc6, 0x31, 0x82
ÂÂÂÂÂÂÂÂ},
ÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂ0x3B, 0x20, 0x00, 0x01,
ÂÂÂÂÂÂÂÂÂÂÂÂ0x3B, 0x00, 0x00, 0xFFÂÂ//xx
ÂÂÂÂÂÂÂÂ},
ÂÂÂÂÂÂÂÂ16, 8, 0,
ÂÂÂÂÂÂÂÂTYPE_TABLE,
ÂÂÂÂÂÂÂÂNULL, NULL, 0, 7, 0,
ÂÂÂÂÂÂÂÂ0, 0,
ÂÂÂÂÂÂÂÂ0, 0
ÂÂÂÂ},
ÂÂÂÂ{
ÂÂÂÂÂÂÂÂ1,
ÂÂÂÂÂÂÂÂ{"No health check"},
ÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂ0x41, 0x81, 0x00, 0x10, //bgtÂÂÂÂ l_check_pad_connected
ÂÂÂÂÂÂÂÂÂÂÂÂ0x88, 0x1D, 0x00, 0x7DÂÂ//lbzÂÂÂÂ %r0, 0x7D(%r29)
ÂÂÂÂÂÂÂÂ},
ÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂ0x48, 0x00, 0x00, 0x34ÂÂ//bÂÂÂÂÂÂ l_start_menu
ÂÂÂÂÂÂÂÂ},
ÂÂÂÂÂÂÂÂ8, 4, 0,
ÂÂÂÂÂÂÂÂTYPE_ONOFF,
ÂÂÂÂÂÂÂÂNULL, NULL, 0, 0, 0,
ÂÂÂÂÂÂÂÂ0, 0,
ÂÂÂÂÂÂÂÂ0, 0
ÂÂÂÂ},

These are search & replace type patches, they are not offset dependent. If a new version system menu uses similar code but in different place then it's no problem for this kind of patchers... So it's just a matter of adding newly found hacks into this program and change it so that it prints the addresses where it finds the patches...

That way you can easily port preloader's patches to a new version...

Too bad, crediar didn't chose this way of patching but instead used offsets in his preloader..
 

andymacross

Member
Newcomer
Joined
May 28, 2009
Messages
20
Trophies
0
XP
47
Country
Taiwan
I have few Qus:

1.I use NUSDv1.2 to download 3.2E...but I can't find 00000008.app only 00000009

2.if I want to fix 4.1U's hacks.ini for 4.1J ... how to do such work ?

thx for help~~
 

Dialexio

Well-Known Member
Member
Joined
Mar 14, 2009
Messages
1,567
Trophies
0
Website
twitter.com
XP
329
Country
United States
[*]This tutorial was written with NUS Downloader 1.1a in mind. 1.2 doesn't rename the decrypted files to 00000000.app and such. Here's a direct download link: DOWNLOAD[*]... Have you read the first post? It's basically the same exact thing.
Regardless... Here are some offsets I got. Note that I have not tested these. (I might get more tomorrow... It's 2 AM here!)
Code:
[No health check]
version=448
offset=0x813BBFA0
value=0x48000034
[Skip disc update check]
version=448
offset=0x8137E35C
value=0x60000000
offset=0x8137E360
value=0x60000000
offset=0x8137E364
value=0x60000000
offset=0x8137E368
value=0x60000000
offset=0x8137E36C
value=0x60000000
offset=0x8137E370
value=0x60000000
[Move Disc Channel]
version=448
offset=0x813AE770
value=0x60000000
 

andymacross

Member
Newcomer
Joined
May 28, 2009
Messages
20
Trophies
0
XP
47
Country
Taiwan
I have read first post...

I use NUSD1.2 donwload 4.1U and 4.1J then pack like wad,
then use wwunpacker wad get 00000008.app

I do the same step like first post...
but I can't find that same hex string on 4.1J...@@"""

I will copy your work and keep trying~>
 

andymacross

Member
Newcomer
Joined
May 28, 2009
Messages
20
Trophies
0
XP
47
Country
Taiwan
unsure.gif
...same problem on 4.1E

4.1E
QUOTE said:
[Replace Healthwarning with Backmenu]
version=450
offset=0x81656344
value=0x814094D0

4.1U
QUOTE[Replace Healthwarning with Backmenu]
version=449
offset=0x81656084
value=0x814093D4

this two offsets's hex string is completely different...
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • The Real Jdbye @ The Real Jdbye:
    and now with the rtx video upscaling, and sdr->hdr conversion, even more reason to go nvidia
  • The Real Jdbye @ The Real Jdbye:
    both of which work well in potplayer
  • The Real Jdbye @ The Real Jdbye:
    amd is a bit cheaper though
  • Psionic Roshambo @ Psionic Roshambo:
    Cheaper and they are less stingy with the RAM not a big issue now but I can imagine in a yard or two things might be different
  • Psionic Roshambo @ Psionic Roshambo:
    Year not yard lol
  • The Real Jdbye @ The Real Jdbye:
    the vram is one advantage when it comes to AI but ends up being slower even with that and really AI is the only use case that needs more than 12gb vram right now
  • Psionic Roshambo @ Psionic Roshambo:
    Interesting lol
  • Psionic Roshambo @ Psionic Roshambo:
    I think I watched a video where two games at 4K where eating just over 16GB of RAM and it's the one case where the 7900XT and XTX pulled ahead (minus RTX of course)
  • Psionic Roshambo @ Psionic Roshambo:
    So my opinion is that they could age a bit better in the future, and maybe AMD will continue improving them via drivers like they tend to do. No guarantee there but they have done it in the past. Just a feeling I have.
  • The Real Jdbye @ The Real Jdbye:
    cyberpunk at 4k without DLSS/fidelityfx *might* exceed 12gb
    +1
  • The Real Jdbye @ The Real Jdbye:
    but that game barely runs at native 4k
  • Psionic Roshambo @ Psionic Roshambo:
    I think it was some newer games and probably poorly optimized PS4 or PS5 ports
  • The Real Jdbye @ The Real Jdbye:
    they definitely will age better but i feel dlss might outweigh that since it looks about as good as native resolution and much less demanding
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    When I played Cyberpunk on my old 2080 Ti it sucked lol
  • The Real Jdbye @ The Real Jdbye:
    AMD could introduce something comparable to DLSS but nvidia's got a lot more experience with that
  • The Real Jdbye @ The Real Jdbye:
    least amd 7xxx has tensor cores which the previous generations didn't so there is the potential for AI upscaling
  • Psionic Roshambo @ Psionic Roshambo:
    They have FSR or whatever it's called and yeah it's still not great
  • The Real Jdbye @ The Real Jdbye:
    so AMD seem to finally be starting to take AI seriously
  • Psionic Roshambo @ Psionic Roshambo:
    Oh yeah those new 8000 CPUs have AI cores built in that's interesting
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe they plan on offloading to the CPU?
  • Psionic Roshambo @ Psionic Roshambo:
    Would be kinda cool to have the CPU and GPU working in random more
  • Psionic Roshambo @ Psionic Roshambo:
    Tandem even
  • The Real Jdbye @ The Real Jdbye:
    i think i heard of that, it's a good idea, shouldn't need a dedicated GPU just to run a LLM or video upscaling
  • The Real Jdbye @ The Real Jdbye:
    even the nvidia shield tv has AI video upscaling
    The Real Jdbye @ The Real Jdbye: even the nvidia shield tv has AI video upscaling