Possable to merge update into game CIA?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by SirECK, Apr 15, 2017.

  1. SirECK
    OP

    SirECK GBAtemp Fan

    Member
    303
    83
    Jul 1, 2009
    Canada
    Ontario, Canada
    Can anyone point me to any info on how to integrate a eshop update into a game?
    I would like to backup my Pokemon ORAS games and update 1.4 into a one stop cia install then do some modding later.

    Any advice?
     
  2. McWhiters9511

    McWhiters9511 That's Rad Bro

    Member
    1,144
    567
    Mar 28, 2016
    United States
    Space
  3. DarkSynopsis

    DarkSynopsis GBAtemp Fan

    Member
    373
    216
    Oct 15, 2014
    New Zealand
    New Zealand
    I've found taking the code.bin, ExHeader.bin from the Update and Merging the Update romfs with the base game is the way to go, also make sure makerom has the correct -ver set.

    I don't believe online works when you do this though, could be wrong its been awhile since I tested but pretty sure when I first tried this out the game told me to update when I tried to connect online, maybe when connecting online it looks for the TitleID of the update or something along those lines?
     
  4. ThisIsDaAccount

    ThisIsDaAccount GBAtemp Fan

    Member
    464
    184
    Apr 8, 2016
    United States
    By "taking the code.bin and exheader" do you mean removing them entirely, or adding them to the final cia with the update incorporated?
     
  5. SirECK
    OP

    SirECK GBAtemp Fan

    Member
    303
    83
    Jul 1, 2009
    Canada
    Ontario, Canada
    Basically I want to have Pokemon ORAS integrated with update 1.4 as a single CIA.
    Ie New console > install 1 CIA > Game is installed with update 1.4.
     
  6. DarkSynopsis

    DarkSynopsis GBAtemp Fan

    Member
    373
    216
    Oct 15, 2014
    New Zealand
    New Zealand
    I mean copying the code.bin and exheader.bin from the update cia and placing them over the versions in the base game cia.
     
  7. McWhiters9511

    McWhiters9511 That's Rad Bro

    Member
    1,144
    567
    Mar 28, 2016
    United States
    Space
    just copy the save to ur pc do whatever ur trying to do and inject the save after. just download the update and game from freeshop
     
  8. SirECK
    OP

    SirECK GBAtemp Fan

    Member
    303
    83
    Jul 1, 2009
    Canada
    Ontario, Canada
    Not the save talking about game and update.
     
  9. McWhiters9511

    McWhiters9511 That's Rad Bro

    Member
    1,144
    567
    Mar 28, 2016
    United States
    Space
    just download them after as i also said. noone uses cias anymore just use freeshop for games
     
  10. ThisIsDaAccount

    ThisIsDaAccount GBAtemp Fan

    Member
    464
    184
    Apr 8, 2016
    United States
    Thank you. I was trying to merge Pokemon moon with the 1.1 update earlier, but it didn't work, probably because I didn't do that.
     
  11. SirECK
    OP

    SirECK GBAtemp Fan

    Member
    303
    83
    Jul 1, 2009
    Canada
    Ontario, Canada
    I extracted the game and update with HackingToolkit3DS I found the code.bin but can locate the exheader.bin.
    I'm new to this, if there is a guide to follow I would like to give it a look over. Otherwise where is the exheader.bin normally located?
     
  12. Koko-Kun

    Koko-Kun A Guppy

    Member
    122
    87
    Jun 10, 2016
    United States
    Paradisum
    You can just copy the romfs of the update and just merge it into the romfs of your base game cia. You don't need the exheader.bin and code.bin as far as I know. That's just for the update to actually work with the game AFAIK.
     
  13. SirECK
    OP

    SirECK GBAtemp Fan

    Member
    303
    83
    Jul 1, 2009
    Canada
    Ontario, Canada
    Cool, Ill try it and get back to you.
     
  14. OfficialBrony

    OfficialBrony

    Banned
    789
    168
    Jan 6, 2016
    Canada
    Which installs a cia on to your system. Without the use of cias, you can't install anything or play anything unless you have a cart that can run .3ds files.

    Sent from my SM-G903W using Tapatalk
     
    Koko-Kun likes this.
  15. Toady231

    Toady231 Currently down a well

    Member
    193
    34
    Feb 6, 2017
    Ukraine
    Eastern Europe
    Use decrypt 9 to dump card to cia. It'll convert the game with the current update data into one cia. I just did this with pokemon moon.
     
  16. SirECK
    OP

    SirECK GBAtemp Fan

    Member
    303
    83
    Jul 1, 2009
    Canada
    Ontario, Canada
    Can you tell me what you selected in D9?
     
  17. DarkSynopsis

    DarkSynopsis GBAtemp Fan

    Member
    373
    216
    Oct 15, 2014
    New Zealand
    New Zealand
    If the game makes any changes to the code you will need that and then the ExHeader is needed since that contains a reference to the size of the code.bin.

    Some games you might get away with just the romfs but if an update has the code.bin you should be taking it.
     
  18. Toady231

    Toady231 Currently down a well

    Member
    193
    34
    Feb 6, 2017
    Ukraine
    Eastern Europe
    I pressed dump card to cia. It then took about 10 minutes but it took the recent update and merged them together.
     
  19. Koko-Kun

    Koko-Kun A Guppy

    Member
    122
    87
    Jun 10, 2016
    United States
    Paradisum
    Oops yeah you're right, I forgot about that.