cxitool -- convert 3dsx to cia directly

Discussion in '3DS - Homebrew Development and Emulators' started by zoogie, Sep 3, 2016.

Sep 3, 2016
  1. zoogie
    OP

    Member zoogie simple pimp tool

    Joined:
    Nov 30, 2014
    Messages:
    5,719
    Country:
    United States
    What is this:
    cxitool is a useful PC app that converts *.3dsx homebrew executables directly to cxi's, which are the building blocks of the CIAs that all you pirates know and love. This app was released a few months ago, but is was buried in a devkitpro repo so it has largely gone unnoticed. The author, fincs, has chosen not to publicize it for whatever reason, even though the source is public. I assume it will be a part of a devkipro update sometime in the future, but that seems like forever given there has not been an official update since January.

    This can be very useful for instances where the 3dsx author has chosen not to provide a cia, and has the source code closed (or too difficult to compile). A lot of older 3dsx homebrew has suffered this fate and this app could be of great benefit to making them more accessible to a new audience.

    Instructions:
    Usage: cxitool [options] input.3dsx output.cxi
    Options:
    -n, --name=<value> Specifies the process name of the application
    -c, --code=<value> Specifies the product code of the application
    -t, --tid=<value> Specifies the title ID of the application
    -s, --settings=<file> Specifies the settings file
    -b, --banner=<file> Specifies the banner file to embed in the CXI
    -v, --version Displays version information
    -?, --help Displays this text


    Example usage:

    cxitool game.3dsx game.cxi
    makerom -f cia -o game.cia -target t -i game.cxi:0:0

    Source:
    https://github.com/devkitPro/3dstools/tree/cxi-stuff

    Download notes:
    I have attached a windows build for your convenience. It has been verified:

    Filename | sha256
    cxitool.exe | 08e2d0e8a853171d344b0c4feb0854c841fe197fb4f6dfcdde679917c15ae607
    https://www.virustotal.com/en/file/...b4f6dfcdde679917c15ae607/analysis/1473556082/
     

    Attached Files:

    Last edited by zoogie, Sep 11, 2016


  2. MagicInventor

    Newcomer MagicInventor Member

    Joined:
    Jul 23, 2016
    Messages:
    30
    Country:
    Argentina
    Good tool.
     
    zoogie likes this.
  3. Wolfy

    Member Wolfy Person That Never Was

    Joined:
    Aug 18, 2015
    Messages:
    533
    Location:
    Somewhere In The Aether...
    Country:
    United States
    The pirates thank you I believe :3

    Though it'll help out other Homebrew Developers hopefully so again, thank you sir.
     
    Last edited by Wolfy, Sep 3, 2016
    RainThunder and zoogie like this.
  4. zoogie
    OP

    Member zoogie simple pimp tool

    Joined:
    Nov 30, 2014
    Messages:
    5,719
    Country:
    United States
    So has anyone been using this yet? It works well for me, but the occasional title doesn't convert if I add too many arguments. The default config I showed in the Example Usage seems to always work though.
     
  5. Ericjwg

    Member Ericjwg Good

    Joined:
    Jul 2, 2015
    Messages:
    2,663
    Country:
    Canada
    nice tool!!!!!!
     
  6. hippy dave

    Member hippy dave Butts Butts Megabutts

    Joined:
    Apr 30, 2012
    Messages:
    2,528
    Country:
    United Kingdom
    Thanks, haven't tried yet but will do. I tried months ago to figure out how to do it manually and failed, so this is nice.
     
  7. CrystalForce

    Member CrystalForce I'm gonna "fix" that spaghetti.

    Joined:
    Feb 10, 2015
    Messages:
    283
    Country:
    United States
    Umm, help? Trying to open this asks me for some DLL files, and putting them in the same location as the file and then opening it gives me this error:
    The application was unable to start correctly (0xc000007b). Click OK to close the application.
     
  8. Skyshadow101

    Member Skyshadow101 The Sky Is The Limit!

    Joined:
    May 22, 2016
    Messages:
    853
    Location:
    The Underground
    Country:
    Antarctica
    How do you convert the
    cxi's to cia's if I may ask? I'm so confused. Lol.

    Sent from my Browser on a New 3DS XL with A9LH
     
  9. zoogie
    OP

    Member zoogie simple pimp tool

    Joined:
    Nov 30, 2014
    Messages:
    5,719
    Country:
    United States
    Read the OP more carefully :P
     
  10. CrystalForce

    Member CrystalForce I'm gonna "fix" that spaghetti.

    Joined:
    Feb 10, 2015
    Messages:
    283
    Country:
    United States
    hey can you help with my issue?
     
  11. Returnofganon

    Member Returnofganon Show ya moves

    Joined:
    Jul 1, 2015
    Messages:
    506
    Location:
    Dimension C-137
    Country:
    Korea, North
    Wow I can see my self using this in the near future, thanks!
     
  12. zoogie
    OP

    Member zoogie simple pimp tool

    Joined:
    Nov 30, 2014
    Messages:
    5,719
    Country:
    United States
    I have no idea what dlls it's looking for. Maybe try compiling it yourself. That's what I'd recommend anyway with instead of trusting exe's from some stranger :P

    not that im out to hurt anybody but still
     
  13. jimmyleen

    Member jimmyleen GBAtemp Maniac

    Joined:
    Feb 28, 2016
    Messages:
    1,102
    Country:
    Honduras
    Deleted
     
    Last edited by jimmyleen, Sep 6, 2016
    zoogie likes this.
  14. jimmyleen

    Member jimmyleen GBAtemp Maniac

    Joined:
    Feb 28, 2016
    Messages:
    1,102
    Country:
    Honduras
    At first I thought this is used for converting official games to cia, but then I quickly figured out that this is only for the developers.
     
  15. zoogie
    OP

    Member zoogie simple pimp tool

    Joined:
    Nov 30, 2014
    Messages:
    5,719
    Country:
    United States
    It clearly says in the title, 3dsx to cia, lol. It's even repeated in the first sentence.

    Now, this begs the question: if converting 3dsx to cia is possible, shouldn't the reverse be possible? If it is, you have to wonder if CTR-SDK apps could be converted to 3dsx. There would be a lot of issues to work around, sure, but it's something to think about.
     
    Last edited by zoogie, Sep 7, 2016
  16. Mrrraou

    Member Mrrraou GBAtemp Advanced Maniac

    Joined:
    Oct 17, 2015
    Messages:
    1,863
    Country:
    France
    it's not that easy, especially because of romfs, memory mapping and stuff
     
    gnmmarechal and zoogie like this.
  17. HeyItsJono

    Member HeyItsJono Breath of Fresh Heir

    Joined:
    Mar 26, 2011
    Messages:
    208
    Country:
    Australia
    Exact same issue here.
     
  18. gnmmarechal

    Member gnmmarechal Priest of Serielism

    Joined:
    Jul 13, 2014
    Messages:
    4,183
    Location:
    Edgeland
    Country:
    Portugal
    some versions of said dll won't work.
     
  19. Februarysn0w

    Member Februarysn0w School Idol Festival

    Joined:
    Oct 31, 2014
    Messages:
    1,189
    Location:
    Mino city Osaka
    Country:
    Japan
    Sorry, It's worked now! thank you
     
    Last edited by Februarysn0w, Sep 9, 2016
  20. HeyItsJono

    Member HeyItsJono Breath of Fresh Heir

    Joined:
    Mar 26, 2011
    Messages:
    208
    Country:
    Australia
    Would someone be able to upload their working version of the DLL?
     

Share This Page