Hacking Creating "Patches" for Cia-installed games?

ChrisX930

Banned!
OP
Banned
Joined
Sep 3, 2013
Messages
788
Trophies
0
Location
Germany
XP
458
Country
Gambia, The
Hey Guys,

right now, I'm rewriting "Harvest Moon 3D - A New Beginning" and I want to test the changes without rebuild the whole rom as cia and reinstall it on CFW.

Is there a way to create "Patches" which only contains the changed files inside of the romfs.bin?
I want to install it as a "patch" to overwrite the old files with the new files. It'S better to install small patches with a size of ~1MB instead of rebuild the whole cia (350MB).

Is there a way?
If yes, is there a tutorial?
 

gudenau

Largely ignored
Member
Joined
Jul 7, 2010
Messages
3,882
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
5,358
Country
United States
Does it mean I only need to delete all other things that are not changed from romfs and change gameinfo to "Patch" in rsf?
Will this really work?
If not, is there a tutorial how to do it?

There is not much info out there about this, try taking a cia from funkycia2 that has the romfs and decrypt it, that should help. Maybe you could create a tutorial, that could be great from translation, custom content, or just texture hacks. Best of luck!
 
  • Like
Reactions: ChrisX930

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,252
Trophies
4
Location
Space
XP
13,805
Country
Norway
Hey Guys,

right now, I'm rewriting "Harvest Moon 3D - A New Beginning" and I want to test the changes without rebuild the whole rom as cia and reinstall it on CFW.

Is there a way to create "Patches" which only contains the changed files inside of the romfs.bin?
I want to install it as a "patch" to overwrite the old files with the new files. It'S better to install small patches with a size of ~1MB instead of rebuild the whole cia (350MB).

Is there a way?
If yes, is there a tutorial?
NTR-CFW can redirect RomFS access to SD card using the LayeredFS plugin, so that you could simply place the modified files on the SD card and it would load them. The old NTR-CFW versions are based on the Gateway launcher and will work with the GW cart but only support emuNAND up to 6.3 I think it was.
 

ChrisX930

Banned!
OP
Banned
Joined
Sep 3, 2013
Messages
788
Trophies
0
Location
Germany
XP
458
Country
Gambia, The
NTR-CFW can redirect RomFS access to SD card using the LayeredFS plugin, so that you could simply place the modified files on the SD card and it would load them. The old NTR-CFW versions are based on the Gateway launcher and will work with the GW cart but only support emuNAND up to 6.3 I think it was.
Good to know :P
But their are some problems then:
1. I don't own any Flashcard, so I'm not able to install anything to EmuNAND.
2. I own this Game on eSHop, but cannot download it on a EmuNAND below 9.7 (because I can't use the eshop).

I think it would be a nice idea by creating a .cia-patch.
But Right now, I don't know what I've to change to get it to work.
I guess I need do modify some entrys in rsf?
BasicInfo:
Title : "BOKUJYOM"
CompanyCode : "CU"
ProductCode : "CTR-P-ABQP"
ContentType : Application
Logo : Nintendo

TitleInfo:
UniqueId : 0x0eae
Category : Application

CardInfo:
MediaSize : 512MB
MediaType : Card1
CardDevice : NorFlash

Option:
UseOnSD : true
EnableCompress : true
FreeProductCode : true
EnableCrypt : false
MediaFootPadding : false

AccessControlInfo:
# UseExtSaveData : true
ExtSaveDataId : 0x0eae
SystemSaveDataId1 : 0x00000eae
SystemSaveDataId2 : 0x00000000
OtherUserSaveDataId1 : 0x00000
OtherUserSaveDataId2 : 0x00000
OtherUserSaveDataId3 : 0x00000
UseOtherVariationSaveData : false

SystemControlInfo:
SaveDataSize : 512K
RemasterVersion : 0
StackSize : 0x00004000
JumpId : 0x00040000000eae00L

Can someone tell me how I can make it to a patch-cia?
I've build a romfs.bin just with the modified files in it (with the correct path etc.)
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
Good to know :P
But their are some problems then:
1. I don't own any Flashcard, so I'm not able to install anything to EmuNAND.
2. I own this Game on eSHop, but cannot download it on a EmuNAND below 9.7 (because I can't use the eshop).

I think it would be a nice idea by creating a .cia-patch.
But Right now, I don't know what I've to change to get it to work.
I guess I need do modify some entrys in rsf?

Can someone tell me how I can make it to a patch-cia?
I've build a romfs.bin just with the modified files in it (with the correct path etc.)
if sysnand is on 9.0-9.2 use the eshop patch to access eshop, then download the game from eshop, downgrade to 4.x and use NTR 1.0

bit long winded, but i dont think there is too much info on building patches.....although it *should* be possible, there isn't much/any examples for you to go on except looking on 3Dbrew and looking at normal retail patches, i tried making the custom theme files a while back and they didnt work even though they *should* of, so im not 100% on whether GW supports modded cxi files or if its just system titles it doesnt play nice with
 

ChrisX930

Banned!
OP
Banned
Joined
Sep 3, 2013
Messages
788
Trophies
0
Location
Germany
XP
458
Country
Gambia, The
if sysnand is on 9.0-9.2 use the eshop patch to access eshop, then download the game from eshop, downgrade to 4.x and use NTR 1.0
that's a bit much work... SysNAND is 4.5...
I guess it would be better to understand how we can create our own patches.

bit long winded, but i dont think there is too much info on building patches.....although it *should* be possible, there isn't much/any examples for you to go on except looking on 3Dbrew and looking at normal retail patches, i tried making the custom theme files a while back and they didnt work even though they *should* of, so im not 100% on whether GW supports modded cxi files or if its just system titles it doesnt play nice with
That's weird :/
Own patches would be awesome!
tried to modify the rsf in some ways (changed "Application" to "Patch") but it doesn't work :/
 

Oishikatta

Well-Known Member
Member
Joined
Oct 30, 2014
Messages
971
Trophies
0
XP
603
Country
United States
  • Like
Reactions: gamesquest1

Oishikatta

Well-Known Member
Member
Joined
Oct 30, 2014
Messages
971
Trophies
0
XP
603
Country
United States
Can I use this Patch as base for another game?
As I know, Harvest Moon 3D - A New Beginning" has never got any patches or DLCs


No, I don't know of anyone that's done it on a game that never got any patches. (Doesn't mean it hasn't happened, I just haven't seen it.)
 

ChrisX930

Banned!
OP
Banned
Joined
Sep 3, 2013
Messages
788
Trophies
0
Location
Germany
XP
458
Country
Gambia, The
NTR-CFW is only for the new 3DS.. at least that's what it says.
There's a version of NTR-CFW for the old3DS (NTRCFW 1.0) but It's to much work to install it to my 3DS because I've to get a copy of the game from the eshop, downgrade the NAND and such...

So I just want to find a "new" way to install new Patches to the game.
Si I want to create a "Patch" for HM3D
 

DarkFlare69

Well-Known Member
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,749
Country
United States
There's a version of NTR-CFW for the old3DS (NTRCFW 1.0) but It's to much work to install it to my 3DS because I've to get a copy of the game from the eshop, downgrade the NAND and such...

So I just want to find a "new" way to install new Patches to the game.
Si I want to create a "Patch" for HM3D

Where can I get NTR-CFW v1.0? Does it have to be from the eShop? (I have it on cartridge and on Gateway)
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
NTR-CFW is only for the new 3DS.. at least that's what it says.
NTR-CFW 1.0 = 4.x o3DS, NTR-CFW 2.0 = n3DS only

There's a version of NTR-CFW for the old3DS (NTRCFW 1.0) but It's to much work to install it to my 3DS because I've to get a copy of the game from the eshop, downgrade the NAND and such...

So I just want to find a "new" way to install new Patches to the game.
Si I want to create a "Patch" for HM3D
best bet is simply looking at how other game patches are put together see if you can simply copy the process
 

ChrisX930

Banned!
OP
Banned
Joined
Sep 3, 2013
Messages
788
Trophies
0
Location
Germany
XP
458
Country
Gambia, The
Where can I get NTR-CFW v1.0? Does it have to be from the eShop? (I have it on cartridge and on Gateway)
You can find NTR-CFW on GBATemp, I guess.
No, you don't need the eshop version, but I have to use this version because:
- I've bought the eShop version 2 Years ago
- I don't own any flashcard
- I don't have this Game as Retail Cartridge
 
  • Like
Reactions: DarkFlare69

ChrisX930

Banned!
OP
Banned
Joined
Sep 3, 2013
Messages
788
Trophies
0
Location
Germany
XP
458
Country
Gambia, The
NTR-CFW 1.0 = 4.x o3DS, NTR-CFW 2.0 = n3DS only


best bet is simply looking at how other game patches are put together see if you can simply copy the process
Nice idea, but where can I find this DLCs as decrypted version? :/
Will go to sleep now, If someone knows how to do that, tell me via PM or in this thread Please
 

Zidapi

Well-Known Member
Member
Joined
Dec 1, 2002
Messages
3,112
Trophies
3
Age
42
Website
Visit site
XP
2,681
Country
The solution is easy, if you view it as difficult then you should probably give up on the rewrite now.

Get a second SD, run the eShop patch and re-download the game to the new SD card.

Backup the contents of the SD card and prepare an emuNAND via the gateway menu.

Restore your backup and copy Gateway's 2.6 launcher.dat, arm11.bin and the plugin directory to your SD card.

Load the Gateway menu via the DS profile exploit and boot into Classic Mode.

Done.

Edit: Google translated setup instructions should you need it are here
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/@legolambs