Creating "Patches" for Cia-installed games?

Discussion in '3DS - Flashcards & Custom Firmwares' started by ChrisX930, Apr 23, 2015.

  1. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    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?
     


  2. gudenau

    gudenau Never a unique idea

    Member
    3,257
    1,224
    Jul 7, 2010
    United States
    /dev/random
  3. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    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?
     
  4. gudenau

    gudenau Never a unique idea

    Member
    3,257
    1,224
    Jul 7, 2010
    United States
    /dev/random
    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!
     
    ChrisX930 likes this.
  5. gamesquest1

    gamesquest1 Nabnut

    Member
    14,118
    9,453
    Sep 23, 2013
    use NTR with layeredFS......makes testing stuff out in game much easier
     
    ChrisX930 likes this.
  6. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,808
    4,992
    Mar 17, 2010
    Norway
    Alola
    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.
     
  7. gudenau

    gudenau Never a unique idea

    Member
    3,257
    1,224
    Jul 7, 2010
    United States
    /dev/random
    Forgot about the layeredfs thing. :-P
     
  8. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    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?
    ORIGINAL 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.)
     
  9. gamesquest1

    gamesquest1 Nabnut

    Member
    14,118
    9,453
    Sep 23, 2013
    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
     
  10. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    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.

    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 :/
     
  11. Oishikatta

    Oishikatta GBAtemp Advanced Fan

    Member
    971
    545
    Oct 30, 2014
    United States

    The others have all been done by modifying an existing patch, rather than creating a new one.

    E.g. https://gbatemp.net/threads/rom-hacking-item-duplicate-for-mh4g.379033/
     
    gamesquest1 likes this.
  12. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
  13. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    4,680
    2,509
    Dec 8, 2014
    United States
    Ohio
    NTR-CFW is only for the new 3DS.. at least that's what it says.
     
  14. Oishikatta

    Oishikatta GBAtemp Advanced Fan

    Member
    971
    545
    Oct 30, 2014
    United States

    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.)
     
  15. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    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
     
  16. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    4,680
    2,509
    Dec 8, 2014
    United States
    Ohio
    Where can I get NTR-CFW v1.0? Does it have to be from the eShop? (I have it on cartridge and on Gateway)
     
  17. gamesquest1

    gamesquest1 Nabnut

    Member
    14,118
    9,453
    Sep 23, 2013
    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
     
  18. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    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
     
    DarkFlare69 likes this.
  19. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    //doublepost, sorry
     
  20. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    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
     
  21. Zidapi

    Zidapi GBAtemp Psycho!

    Member
    3,020
    1,802
    Dec 1, 2002
    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