Smash Wii U RPX Editing?

Discussion in 'Wii U - Hacking & Backup Loaders' started by coolioguy, Aug 18, 2016.

  1. coolioguy
    OP

    coolioguy Member

    Newcomer
    20
    0
    Sep 28, 2013
    United States
    I know that in order to add new stage slots and character slots into Smash Wii U, you need to edit the RPX. What programs can I use to edit RPX files?
     
  2. wiiu more like pee u

    wiiu more like pee u GBAtemp Regular

    Member
    273
    107
    Jan 31, 2016
    United States
    Are you trying to mod the dlc in or something?
     
  3. coolioguy
    OP

    coolioguy Member

    Newcomer
    20
    0
    Sep 28, 2013
    United States
    No, I'm trying to make it so I can add custom stages to the game and custom characters to the game without replacing anything already in the game. I already bought the DLC.
     
  4. CreeperMario

    CreeperMario GBAtemp Advanced Fan

    Member
    625
    366
    Jun 18, 2016
    Australia
    Adelaide, South Australia
    Way back when, Hykem (I think, don't turn this into a ****fest) released a tool that (theoretically) decodes an RPX file into an ELF file which can be decoded back into assembly (or C if your decompiler is good enough). But this tool was never finished, and it doesn;t fully work (I tried to reverse Virtual Console using rpx2elf and powerpc-eabi-objdump to no avail).

    The Decaf emulator team (and @shinyquagsire23) are currently developing a custom toolkit that can create RPX files. It also contains a program called "readrpx" or something like that, but I have no idea what it does.
     
  5. NexoCube

    NexoCube stop using piracy :(

    Member
    1,184
    588
    Nov 3, 2015
    France
    Stack Pointer
    Tiny Tutorial:

    - Use rpl2elf on your smash .rpx (it will output an .elf)
    - Write changes to your .elf
    - Use makerpl64 (google it) to pack your modified .elf into a .rpx again
    - Put your .rpx back in your game directory
     
  6. coolioguy
    OP

    coolioguy Member

    Newcomer
    20
    0
    Sep 28, 2013
    United States
    How do you use rpl2elf, I can't figure out how to do this.
     
  7. NexoCube

    NexoCube stop using piracy :(

    Member
    1,184
    588
    Nov 3, 2015
    France
    Stack Pointer
  8. shinyquagsire23

    shinyquagsire23 SALT/Sm4sh Leak Guy

    Member
    1,966
    3,249
    Nov 18, 2012
    United States
    Las Vegas
    wut has elf2rpl and readrpl, elf2rpl can take a .elf into a .rpx, and readrpl is just readelf but for rpl/rpx. In the master repository elf2rpl doesn't work with rpl2elf'd .elfs, but it might work in the rewrite branch since that branch moved to generating import and export sections directly (so the .elfs look a lot closer to what you'd get with rpl2elf). There's also https://github.com/0CBH0/wiiurpxtool but I haven't tested it.

    Only problem is that makerpl64 is an SDK tool, which is kinda... ehh.
     
  9. NexoCube

    NexoCube stop using piracy :(

    Member
    1,184
    588
    Nov 3, 2015
    France
    Stack Pointer
    meh, it's not a problem, ninty is not going to hack your pc to see if you have some copyrighted contents
     
  10. shinyquagsire23

    shinyquagsire23 SALT/Sm4sh Leak Guy

    Member
    1,966
    3,249
    Nov 18, 2012
    United States
    Las Vegas
    I mean yeah, but it's always better in the long run to have open tools to do things rather than relying on a closed and NDA'd SDK.
     
  11. coolioguy
    OP

    coolioguy Member

    Newcomer
    20
    0
    Sep 28, 2013
    United States
    I got converted the RPX to an ELF, and opened it in a hex editor to view the files. I found some parts on stages, but no luck on increasing the stage count. If anyone wants to try it as well,