1. LucaFraga

    OP LucaFraga Advanced Member
    Newcomer

    Joined:
    Aug 10, 2009
    Messages:
    80
    Country:
    Italy

    Today we introduce hacbuild, a tool capable of rebuilding XCI files from scratch!

    early warning: This is still developer oriented for now, there is not much to see for end users (yet)

    This tool makes it possible (or rather will make it in the future) to:

    - Rebuild games with edited files (rom hacks, translations)
    - Ultra trim XCI games by removing the update partition (but leaving one file) and by having a more optimized HFS0 builder (this is already possible)
    - Load eShop titles as (virtual) cartridges!
    - Load homebrew as (virtual) cartridges! (I guess it's viable?)

    Unfortunately there are a few limitations:
    - XCI Signature becomes invalid (this is a non-issue with SX OS since it bypasses it)
    - NCAs can't be edited for now (since there is no way to bypass their RSA signature yet)
    - eShop titles won't launch due to the fact that, until we can edit NCAs, they still look for a ticket (should work if you own the game tho)


    You can find more info on the GitHub page

    We do appreciate (and encourage) helping hands! Here's a list of things to do
     
    Last edited: Jun 28, 2018
    dreambottle, Rel, Subötaï and 39 others like this.
  2. kozi

    kozi Newbie
    Newcomer

    Joined:
    Jun 28, 2018
    Messages:
    5
    Country:
    Belgium
    thank you!! i'll test it right now
     
  3. Xyphoseos

    Xyphoseos Hack or no games
    Member

    Joined:
    Jun 29, 2016
    Messages:
    1,669
    Country:
    France
    Remove the partition update

    With a SX OS can I play Super Mario Odyssey in 3.0.0 ?
     
  4. ganons

    ganons GBAtemp Addict
    Member

    Joined:
    Jun 12, 2005
    Messages:
    2,756
    Country:
    So would it be possible to replace the roms in Street Fighter 30th Anniversary? They use arcade roms so maybe swap with a better version I.e. street fighter zero 2 alpha
     
  5. LucaFraga

    OP LucaFraga Advanced Member
    Newcomer

    Joined:
    Aug 10, 2009
    Messages:
    80
    Country:
    Italy
    That's a good question. You can try but I don't think it'll work.

    — Posts automatically merged - Please don't double post! —

    Not for now unfortunately. NCAs contain pretty much every resource of every game and we can't run edited ones (yet).
     
    damiano2712, ganons and Xyphoseos like this.
  6. Xyphoseos

    Xyphoseos Hack or no games
    Member

    Joined:
    Jun 29, 2016
    Messages:
    1,669
    Country:
    France
    I don't buy it yet
     
  7. LucaFraga

    OP LucaFraga Advanced Member
    Newcomer

    Joined:
    Aug 10, 2009
    Messages:
    80
    Country:
    Italy
    Unfortunately I don't own a 3.0.0 Switch, otherwise I'd try
     
  8. McWhiters9511

    McWhiters9511 GBAtemp Maniac
    Member

    Joined:
    Mar 28, 2016
    Messages:
    1,375
    Country:
    United States
    fantastic. cant wait to see this as a finished product
     
  9. KiiWii

    KiiWii Reporter
    Reviewer

    Joined:
    Nov 17, 2008
    Messages:
    9,924
    Country:
    United Kingdom
    Brilliant thank you!
     
  10. steven89

    steven89 Advanced Member
    Newcomer

    Joined:
    Dec 17, 2016
    Messages:
    92
    Country:
    @LucaFraga i know this dev oriented but i do own a 3.0.0 switch to test such edits out i also have .xci's just no idea how to use this any directions i would gladly help
     
    Last edited: Jun 28, 2018
  11. Cubuss

    Cubuss GBAtemp Fan
    Member

    Joined:
    Aug 4, 2017
    Messages:
    452
    Country:
    Netherlands
    Molto Bene,
     
  12. LucaFraga

    OP LucaFraga Advanced Member
    Newcomer

    Joined:
    Aug 10, 2009
    Messages:
    80
    Country:
    Italy
    I can't explain step by step, but here's a brief explaination:

    - Extract the source xci using hactool
    - Read the xci info to an ini file using hacbuild read xci xciname.xci
    - Copy the generated ini inside a folder containing "secure", "normal" and "update" extracted from the source and rename it game_info.ini
    - Do whatever modification you wish to do (for example delete all the update files but leave a non-empty file)
    - Rebuild the xci with hacbuild xci_auto xci_folder out_xci.xci
     
    Masterwin and steven89 like this.
  13. Creatable

    Creatable GBAtemp Advanced Fan
    Member

    Joined:
    Jul 10, 2017
    Messages:
    586
    Country:
    United States
    Say I wanted to load the homebrew app store from the home screen so I pack it as an XCI. How do I pack it as an xci from your tool, how do I customize the icon, and change the text is shows on the home screen?
     
  14. LucaFraga

    OP LucaFraga Advanced Member
    Newcomer

    Joined:
    Aug 10, 2009
    Messages:
    80
    Country:
    Italy
    Doing this requires a bit of knowledge of the NCA and XCI format.

    For starters you'd need to edit the metadata NCA ( http://switchbrew.org/index.php?title=NCA for more info ) .
    Having done that you'd have to pack your exeFS/romFS inside a NCA container

    Having done that and that you can rebuild your XCI. Unfortunately we still can't forge/edit NCAs

    — Posts automatically merged - Please don't double post! —

    Also, for anyone willing to help I laid out some Issues that could prove very useful in this tool development: https://github.com/LucaFraga/hacbuild/issues
     
  15. thequickbrownfox

    thequickbrownfox Advanced Member
    Newcomer

    Joined:
    May 7, 2018
    Messages:
    91
    Country:
    Poland
    LOAD ESHOP TITLES AS CARTRIDGES?
    OH MY GOD!
    I CAN DIE NOW! :O
    SOMEONE START DUMPING ESHOP TITLES!
     
    The14thfly, scionae and Xyphoseos like this.
  16. GhostlyCrowd

    GhostlyCrowd Member
    Newcomer

    Joined:
    Aug 5, 2017
    Messages:
    21
    Country:
    Canada
    Notice, it was stated they dont work yet.
     
    Sp1tFire92 likes this.
  17. scionae

    scionae *clicking circles*
    Member

    Joined:
    Dec 28, 2016
    Messages:
    514
    Country:
    Italy
    So good! I hope we could rebuild ncas downloaded from CDN and repack them as xci easily! I look forward to that!
     
    Vantis likes this.
  18. Sp1tFire92

    Sp1tFire92 Member
    Newcomer

    Joined:
    Jun 25, 2018
    Messages:
    21
    Country:
    Luxembourg
    Pokemon Lets Go Hack with increased difficulty incoming? :P
     
  19. ProNiteBite

    ProNiteBite Member
    Newcomer

    Joined:
    Jan 27, 2015
    Messages:
    49
    Country:
    United States
    Quick question, how do you go about repacking exeFS/romFS to NCA?

    Edit: Read a little closer and found out that it's not yet possible. Ignore me.
     
    Last edited: Jun 29, 2018
  20. Naked_Snake

    Naked_Snake Constant Miscreant
    Member

    Joined:
    Oct 6, 2013
    Messages:
    1,735
    Country:
    Australia
    Can we rebuild Flog or DevMenu into an app with this
     
    cearp likes this.
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - rebuilder, hacbuild,