Hacking [Tutorial] How to decompress and repack RPX/RPL files

H2fans

Member
Newcomer
Joined
Jan 6, 2006
Messages
12
Trophies
0
XP
221
Country
Switzerland
You've the wrong version.
i've got a new version, but still get a error msg:
1445158463706.jpg

what's wrong with it?
 

Deathbot64

Well-Known Member
Member
Joined
Dec 15, 2014
Messages
336
Trophies
0
Age
31
XP
1,359
Country
Canada
what would be a good phase to good to found the latest sdk, i cant seem to find it and the older one isnt working for me, i really want to try this with mario party 10
 

liomajor

Well-Known Member
Member
Joined
Jun 10, 2008
Messages
1,468
Trophies
0
XP
1,373
Country
United States
Something interesting for you guys.

Code:
c:\whoismama\fifa>makerpl64 -f -z9 -t BUILD_TYPE=NDEBUG fifa.elf

D:\whoismama\fifa>dumprpl -fileinfo fifa.rpx

Section # 29, RPL File Info (SHT_RPL_FILEINFO, 216 bytes)
File Information Version 4.2
  SRC "D:\whoismama\fifa\fifa.rpx"
  RPL MIN VERSION  2.06.00
  SDK VERSION  2.12.13
  SDK REVISION  67491
  TEXT ALIGN 32  SIZE  40367072
  DATA ALIGN 64  SIZE  17636568
  LOAD ALIGN 4  SIZE  20761168
  FILE INFO PAD  SIZE  120
  TEMP  SIZE  9232832
  TRAMP ADJUST  SIZE  32
  TRAMP ADDITION  SIZE  0
  SDA  BASE  0x00008000
  SDA2 BASE  0x00008000
  STACK INIT  SIZE  65536
  SYS HEAP  SIZE  32768
  COMPRESSION LEVEL  9
  FLAGS:
  FILE IS AN RPX
  TAGS:
  "CAFE_OS_SDK_REVISION" = "67491"
  "CAFE_OS_SDK_VERSION" = "21213"
  "BUILD_TYPE" = "NDEBUG"
 

CosmoCortney

i snack raw pasta and chew lollipops
Member
Joined
Apr 18, 2013
Messages
1,768
Trophies
2
Location
on the cool side of the pillow
Website
follow-the-white-rabbit.wtf
XP
3,017
Country
Germany
Just tried to make an uncompressed .rpx and got the following error:
H:\Cafe_SDK-2.12.13\system\bin\tool\makerpl>makerpl64 -f -zx -s Turbo.elf
***Error 0xBAD00004 reloading generated file "H:\Cafe_SDK-2.12.13\system\bin\too
l\makerpl\Turbo.rpx"

makerpl64 FAILED Error = -1160773628

Any idea what's wrong?
(I want it uncompressed to be able to mess around with the assembly code without the need to convert it everytime)
However, it built a .rpx that is only 2Bytes bigger than the .elf
 
  • Like
Reactions: paulloeduardo

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
I've tried that, for me is the smallest size i get 23.050.880 Bytes (Disc Version)
(makerpl64 -f -z8 -s -t BUILD_TYPE=NDEBUG fifa.elf) -z9 makes it bigger.

What's the command line you used?

....would have just been the usual -s -z9.....maybe i messed up and checked the wrong file or something as when i just re-did it it came out at 23,062,464 :blink:....it did work though either way, i will check if this does now
 

EclipseSin

Ignorant Wizard
Member
Joined
Apr 1, 2015
Messages
2,063
Trophies
1
Age
35
Location
221b Baker Street
XP
1,737
Country
United Kingdom
with -z8 i got the same error
@CosmoCortney
ax is a tool from Green Hill Software. You need ghs to repack the RPX. even then, it migh tnot work. I haven't been able repack RPLs from Assassin's Creed 3 update, which also calls ax (-ts is supposed to regenerate table of content)
 
  • Like
Reactions: CosmoCortney

CosmoCortney

i snack raw pasta and chew lollipops
Member
Joined
Apr 18, 2013
Messages
1,768
Trophies
2
Location
on the cool side of the pillow
Website
follow-the-white-rabbit.wtf
XP
3,017
Country
Germany
@CosmoCortney
ax is a tool from Green Hill Software. You need ghs to repack the RPX. even then, it migh tnot work. I haven't been able repack RPLs from Assassin's Creed 3 update, which also calls ax (-ts is supposed to regenerate table of content)
Oh I see. For me it works without that Green Hill tool.
What I'm using is this in a .bat:
SET CAFE_ROOT=C:\WiiU\Cafe_SDK-2.12.13\
makerpl64 -f -z8 -s Turbo.elf
pause
 

rufuszombot

Assassin
Member
Joined
Apr 13, 2010
Messages
571
Trophies
1
Location
The Moon
XP
2,086
Country
United States
I'm trying to compress Epic Mickey 2's RPL, but I can't seem to get anything to work. When converting from RPL to ELF I get a few errors,I didn't know if this was normal since I still get an .elf file. When I try to compress it with makerpl64 I get "Error 0xBAD00025 paring ELF file" I thought I had everything set up right, but I seem to be missing something.
 

VinsCool

Persona Secretiva Felineus
Global Moderator
Joined
Jan 7, 2014
Messages
14,600
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,217
Country
Canada
I wonder guys, has anyone tried to reverse the leaked sdk tools, and make an open source version?

That way, we wouldn't need to use the copyrighted stuff anymore :P
 

liomajor

Well-Known Member
Member
Joined
Jun 10, 2008
Messages
1,468
Trophies
0
XP
1,373
Country
United States
i got this error when i try to compress devils third

SjbaVOh.png


only with this game :(

Most likely the games rpx was created by a higher sdk, if there is an xxxx.a plus returned 1 message, add "-nolib".

Using "-z8" or "-z9" simply depends on the compressed filesize. As for Fifa13 using stronger compression (-z9) it got larger than "-z8".

For all .rpl or .rpx you should add "-t BUILD_TYPE=NDEBUG".

For Devils Third EUR i used:

makerpl64 -f -s -z8 -nolib -t BUILD_TYPE=NDEBUG DevilsThirdGame-WiiU-Shipping.elf

The game works well without spoof to 5.5, but ElmoMC had to install SSB Update to get the game working with latest loadiine.

To fetch details on your .rpx/rpl use "dumprpl -fileinfo <name_of_rpx/rpl> | >>> #49

Recompressing your rpx/rpl adds the files path to the output file, i suggest not to use a path under your user/home directory (you should know why) ^_^
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BigOnYa @ BigOnYa: https://torrentfreak.com/one-nintendo-dmca-notice-just-wiped-out-8535-yuzu-emulator-forks-240502/