What's the difference between .elf files and .rpx files?

Jediweirdo

Well-Known Member
OP
Newcomer
Joined
Aug 3, 2021
Messages
90
Trophies
0
XP
476
Country
United States
I used to think that one was an executable that could be installed to the Wii U home menu, but I'm not sure anymore. I just want to know for the sake of knowledge, not because I'm trying to do something. Cheers!
 

V10lator

Well-Known Member
Member
Joined
Apr 21, 2019
Messages
2,648
Trophies
1
Age
36
XP
5,522
Country
Germany
From binary PoV: One is https://en.wikipedia.org/wiki/Executable_and_Linkable_Format while the other is a compressed and slightly modified version thereof.

From coding PoV: .elf is an old, no longer supported homebrew format which gets loaded through a lot of hacks, reducing what it can do a lot while the other one is the native executable format of the Wii U, so can be loaded with ease and can do anything.

From a CFW PoV: An .rpx can run from HBL or get packed as something installable from the home menu (when coded correctly). An .elf can run from HBL only.

These where just a few examples from different point of views, cause, you see, there are a lot of differences. We could probably write a 10 (double) sided essay with a small font size and would still not cover anything... So your question is extremely vague. What exactly do you want to know?
 
  • Like
Reactions: E1ite007

Jediweirdo

Well-Known Member
OP
Newcomer
Joined
Aug 3, 2021
Messages
90
Trophies
0
XP
476
Country
United States
What exactly do you want to know?
I wasn't really sure of exactly what I wanted to know until I read your response. Here are a few questions I thought up, and sorry if some seem

  • Why did .elf have to go through so many pf hacks? Isn't the Wii U already running homebrew if you need to run it?
  • Limitations aside, is there any changes to the code you have to write, or is it just exported through a different format?
  • If .rpx is objectively better than .elf, then why was .elf ever used at all?
  • Out in the wild, is it currently more common to see .elf or .rpx?
  • The answer is probably no, but is there anything that .elf can do even slightly better than .rpx?
 

V10lator

Well-Known Member
Member
Joined
Apr 21, 2019
Messages
2,648
Trophies
1
Age
36
XP
5,522
Country
Germany
1) Cause it is not the native executable format. You need to trick the Wii U into loading a different binary format.
2) Yes, you need to change the code: .elf is coded against a completely different environment than .rpx (dynlibs vs WUT and stuff like that).
3) Cause the homebrew scene wanted to start but the .rpx format / how to load native, unsigned binaries wasn't known back then. So this hacky way of loading .elf just got found before the way of loading .rpx. Also .rpx needs an advanced SDK which didn't exist back then, instead each homebrew basically used its own SDK (dynlibs and stuff).
4) Hard to say but more and more stuff gets ported from .elf to .rpx lately as next-gen CFWs (Aroma) can't run .elf anymore.
4) As you said: Answer is no.
 

Jediweirdo

Well-Known Member
OP
Newcomer
Joined
Aug 3, 2021
Messages
90
Trophies
0
XP
476
Country
United States
Ahh, I see. Thanks for your help! Sorry my answers are delayed; I'm doing this right in between the break period of back-to-back mid-term exams
Post automatically merged:

Oh, one last question (which has literally nothing to do with this thread lol): If you were to reinstall the Mii Maker, would you need saveMii, or are the Miis saved somewhere else and the Mii Maker just pulls the data from there?
 
Last edited by Jediweirdo,
Joined
Apr 19, 2015
Messages
1,023
Trophies
1
Location
Stuck in the PowerPC
Website
heyquark.com
XP
3,911
Country
Australia
  • The answer is probably no, but is there anything that .elf can do even slightly better than .rpx?
There is actually a little thing: for a long time .elf was the best way to have homebrew that stayed loaded whilst other apps ran (sdcafiine, etc.) That usecase was only covered with the release of Aroma and WUPS. If you care about Tiramisu support it's something you might still have to consider.
 
  • Like
Reactions: jeannotte

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
I think elf is a generic Linux file extension. Virtually everything I've compiled, an elf is compiled first before progressing to its final file type.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    How do you know if the night will be good when you're asleep
  • BakerMan @ BakerMan:
    because i didn't say i was asleep
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
    Karma177 @ Karma177: @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really...