Hacking [Semi-working] NFS2ISO2NFS - convert nfs to iso and back

sabykos

Well-Known Member
OP
Member
Joined
Jun 10, 2013
Messages
283
Trophies
1
Age
36
XP
729
Country
Gambia, The
It's Super Mario Galaxy 2. I tried running it as admin, same error.



This is exactly what I am trying to do!

I just bought Metroid Other (US) and tired it, just to have another game, and it doesn't want to work either but I get a different message.
I wasn't able to reproduce that error. :/ I've tried the EUR and the US version of SMG2.

I've dumped my copy of Mario Kart Wii to ISO and tried converting into NFS files, but the output was only a single 92 MB nfs file.
Here is the console log:
+++++ ISO2NFS +++++

Searching for AES key file...
AES key file found!
Wii common key not found in source code. Looking for file...
Wii Common Key file found!

Read partition table...

Number of 1. partitions: 3
Partition info table offset: 0x40020
Number of 2. partitions: 0
Partition info table offset: 0x0
Number of 3. partitions: 0
Partition info table offset: 0x0
Number of 4. partitions: 0
Partition info table offset: 0x0

Data partition at offset: 0xf800000

Partition size: 0x105da8000
Write game partition 0...
256 MB processed...
512 MB processed...
768 MB processed...
1024 MB processed...
1280 MB processed...
1536 MB processed...
1792 MB processed...
2048 MB processed...
2304 MB processed...
2560 MB processed...
2816 MB processed...
3072 MB processed...
3328 MB processed...
3584 MB processed...
3840 MB processed...
4096 MB processed...

Generating EGGS header...
Packing nfs...
Packing 3 parts...
Delete zero segment 0 of size 0x0
Writing data segment 0 of size 0x8000
Delete zero segment 1 of size 0x38000
Writing data segment 1 of size 0x10000
Delete zero segment 2 of size 0xf7b0000
Writing data segment 2 of size 0x5dc8000

Writing EGGS header...
Encrypting hif.nfs...


Building hif_000000.nfs...

Tried with my own dump and with a downloaded dump.
This is weird. The log looks pretty normal. Could you try using the -keep option and take a look how big the file hif_nfs is?
 

Ryuzaki_MrL

Green Thunder
Member
Joined
Jun 23, 2015
Messages
781
Trophies
0
Age
26
XP
2,044
Country
Brazil
Could you try using the -keep option and take a look how big the file hif_nfs is?

RLoTmAT.png
 

CatmanFan

Anxious and regretful
Member
Joined
Aug 14, 2016
Messages
1,963
Trophies
0
Website
www.youtube.com
XP
2,596
Country
Morocco
Sorry for double-posting, but is hif_00000X.nfs the only file(s) we need if we injected .nfs into a Wii VC game? Do we have to use hif_unpack, hif_dec, or hif.nfs if the hif_00000X do(es) not match the size of the original ISO?
 

sabykos

Well-Known Member
OP
Member
Joined
Jun 10, 2013
Messages
283
Trophies
1
Age
36
XP
729
Country
Gambia, The
Despite the problem not involving me in any way, I converted my Mario Kart Wii ISO to .nfs format and used the -keep option, same output.

Yeah, I used int variables where I shouldve used long variables. I fix this this evening if I some time.

Sorry for double-posting, but is hif_00000X.nfs the only file(s) we need if we injected .nfs into a Wii VC game? Do we have to use hif_unpack, hif_dec, or hif.nfs if the hif_00000X do(es) not match the size of the original ISO?
You only need the hif_0000XX.nfs files and if their total size does not match the size of hi_dec or hif something went wrong.

EDIT: OK, I had absolutely no time to test this: But here quick version where a chenged what I THINK might have caused this. You can give it a try.
 

Attachments

  • nfs2iso2nfs.zip
    7.5 KB · Views: 185
Last edited by sabykos,

leseratte

Wiimmfi Team
Member
Joined
Jun 2, 2012
Messages
453
Trophies
1
XP
1,859
Country
Germany
Tested the new version with Mario Kart, gave me 16 hif_0000XX files.
Are these supposed to add up to ~4,3 GB? Aren't the nintendo NFS files only the actual data blocks, like in WBFS?
 

sabykos

Well-Known Member
OP
Member
Joined
Jun 10, 2013
Messages
283
Trophies
1
Age
36
XP
729
Country
Gambia, The
Tested the new version with Mario Kart, gave me 16 hif_0000XX files.
Are these supposed to add up to ~4,3 GB? Aren't the nintendo NFS files only the actual data blocks, like in WBFS?
Yup, that's normal. My program gets the lenth of the game partition from the partition. It seems that if you convert an iso to wbfs and back iso with wii_backup_manaer or whatever the length that is stored in the partition header changes to something extremely big. That's why I plan to support .ciso in the future. BUt now it's not worth the effort since you cant use the generated nfs files anyway.
 

leseratte

Wiimmfi Team
Member
Joined
Jun 2, 2012
Messages
453
Trophies
1
XP
1,859
Country
Germany
Well you can't inject them with FTPiiU. But has anyone tested if you can make an install package with "WiiU Installer Packer V5" (which can make .app files from code/meta/content folders) and install that?
 

CatmanFan

Anxious and regretful
Member
Joined
Aug 14, 2016
Messages
1,963
Trophies
0
Website
www.youtube.com
XP
2,596
Country
Morocco
Tested the new version with Mario Kart Wii, and all the 17 hif_0000XX.nfs files match the size of hif_dec.nfs, which means that it may or may not work if repacked. Also, all of the files up to hif_000016.nfs are 256 MB, with the 17th file being 190 MB (the remainder of the game). This is the same layout as an official Wii VC game.
 
  • Like
Reactions: CeeDee

sabykos

Well-Known Member
OP
Member
Joined
Jun 10, 2013
Messages
283
Trophies
1
Age
36
XP
729
Country
Gambia, The
Tested the new version with Mario Kart Wii, and all the 17 hif_0000XX.nfs files match the size of hif_dec.nfs, which means that it may or may not work if repacked. Also, all of the files up to hif_000016.nfs are 256 MB, with the 17th file being 190 MB (the remainder of the game). This is the same layout as an official Wii VC game.
Yup, it *should* work, if you manage to pack it correctly and if the hash in the header isnt checked^^
 

sabykos

Well-Known Member
OP
Member
Joined
Jun 10, 2013
Messages
283
Trophies
1
Age
36
XP
729
Country
Gambia, The
Well, I'm packing it with Wii U Installer Packer right now, and it takes a hell of a long time compared to a regular VC inject such as (S)NES, GBA, N64 or DS.
In case it doesn't: Can you repack the original files and install those? Just to make sure that it is properly packed.
 

CatmanFan

Anxious and regretful
Member
Joined
Aug 14, 2016
Messages
1,963
Trophies
0
Website
www.youtube.com
XP
2,596
Country
Morocco
In case it doesn't: Can you repack the original files and install those? Just to make sure that it is properly packed.
Well it does pack, but when I try to install it through WUP Installer Mod Y, it gives me an error.

--------------------- MERGED ---------------------------

Sorry for double-posting (again), but System Config Tool can install anything just fine because it is more stable, however I can't even get access to the SysNAND version of SCT for various reasons. Hopefully WUP Installer GX2 is more stable.

EDIT: Nope, just the same problem. Also, it turns out that the error is quoted "Verify WUP files are correct & complete. DLC/E-shop require Sig Patch".
 
Last edited by CatmanFan,

ItsKipz

l33t hax0r
Member
Joined
Sep 9, 2016
Messages
1,930
Trophies
0
Location
The C: drive
XP
1,625
Country
United States
Well it does pack, but when I try to install it through WUP Installer Mod Y, it gives me an error.

--------------------- MERGED ---------------------------

Sorry for double-posting (again), but System Config Tool can install anything just fine because it is more stable, however I can't even get access to the SysNAND version of SCT for various reasons. Hopefully WUP Installer GX2 is more stable.

EDIT: Nope, just the same problem. Also, it turns out that the error is quoted "Verify WUP files are correct & complete. DLC/E-shop require Sig Patch".
Why cant you use SCT?
 

CatmanFan

Anxious and regretful
Member
Joined
Aug 14, 2016
Messages
1,963
Trophies
0
Website
www.youtube.com
XP
2,596
Country
Morocco
Why cant you use SCT?
I just said, and I quote, "I can't even get access to the SysNAND version of SCT for various reasons", including not being able to find it, and to a lesser extent, some copyright reasons *cough* Wii U SDK *cough*

Can't even install to RedNAND because RedNAND doesn't support vWii.
 
Last edited by CatmanFan,

CatmanFan

Anxious and regretful
Member
Joined
Aug 14, 2016
Messages
1,963
Trophies
0
Website
www.youtube.com
XP
2,596
Country
Morocco
Third time again, but for some reason I am forced to install the Wii VC inject to RedNAND and guess what? It gave me error code 160-2793 when I launched it. Don't know if it's the inject, the SCT or the Wii U Installer Packer though.
 

ItsKipz

l33t hax0r
Member
Joined
Sep 9, 2016
Messages
1,930
Trophies
0
Location
The C: drive
XP
1,625
Country
United States
Last edited by ItsKipz,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: sigh