Hacking Custom Patches via CIA?

soneek

Well-Known Member
OP
Member
Joined
Jun 27, 2012
Messages
179
Trophies
0
XP
337
Country
United States
Someone had mentioned this to me months ago when I brought up the idea of 3iivolution. I'd like to be able to play custom music for Smash Bros., but I'd like to insert the new files as a custom patch, rather than building a full edit of the game. Has anyone worked on anything like this before?
 

osm70

Well-Known Member
Member
Joined
Apr 17, 2011
Messages
1,243
Trophies
1
XP
2,737
Country
Czech Republic
It could work, but the game must be programmed to look for patches or DLC, so it wont work for all games.
 

soneek

Well-Known Member
OP
Member
Joined
Jun 27, 2012
Messages
179
Trophies
0
XP
337
Country
United States
Custom patches have been used for, e.g. MH4G to duplicate items.

What you want is probably NTR's LayeredFS though. KARL will also probably have something like that if they release something. Anyways, check the NTR threads.

https://github.com/44670/layeredFS/wiki/manual


That's pretty awesome. Unfortunately, I'm unable to use that since I don't have a N3DS. That'll be useful for some of my friends though. I'd need a method that could be used alongside Gateway's emunand for now.
 

Zidapi

Well-Known Member
Member
Joined
Dec 1, 2002
Messages
3,112
Trophies
3
Age
42
Website
Visit site
XP
2,681
Country
StapleButter is working on something similar to LayeredFS.

He's yet to comment on whether or not it'll be part of the KARL project, or released seperately (and hopefully earlier).

My guess would be that it will be part of KARL, and therefore still months away.

It could very well be done through Ninjhax though, so who knows.

See below for a quick comparison between LayeredFS and his project.

This sort of discussion is better suited for ROM Hacking, Translations and Utilities.
I can't come up with a good name, so... who cares.


So...

LayeredFS -- hooking the game's code
* Probably easier to implement
* Limited to replacing/adding files
* Might cause problems with ASM hacks in games
* Requires users to decrypt their game's ExeFS and rebuild the LayeredFS plugin for each different game. Although this could probably be automated (plugin auto-patching the game's code before the game runs, or someshit).
* More straightforward -- the hook comes into play when the game says "I want file X" so you already have the filename

My method -- hooking Process9
* Less straightforward -- the game will translate filenames to file offsets, and then the hook will translate file offsets back to filenames
* Probably harder to implement
* Limited memory; there isn't enough free memory to store a RomFS file table
* More possibilities, like patching the game's code (ASM hacks) or redirecting saves
* Once it's done, it should work for all the games that embed a standard RomFS filesystem
* Doesn't require decrypting ExeFS's -- ROM hackers will still need to get the game's files, but people who just want to try a hack they downloaded just have to place the provided files on the SD card and play (although it may also be the case with LayeredFS if the hack is provided with a precompiled plugin)
* Hooking Process9 is definitely cool! :P


As far as speed goes, they should be the same.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    ooowwww a new way for me to beat NFS 510 :D @SylverReZ
    +1
  • SylverReZ @ SylverReZ:
    @AncientBoi, Yeah, believe you can do PSP games as well. But a Pi5 is much powerful in comparison.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure about other models of Pi4 but the Pi 4 B with 8GBs OCed to 2Ghz handles PSP really great except like 1 game I found and it is playable it just looks bad lol Motor Storm Arctic something or other.
  • Psionic Roshambo @ Psionic Roshambo:
    Other games I can have turned up to like 2X and all kinds of enhancements, Motorstorm hmmm nope 1X and no enhancements lol
  • Veho @ Veho:
    Waiting for Anbernic's rg[whatever]SP price announcement, gimme.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I will admit that one does seem more interesting than the usual Ambernic ones, and I already liked those.
  • Veho @ Veho:
    I dread the price point.
    +1
  • Veho @ Veho:
    This looks like one of their premium models, so... $150 :glare:
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    To me that seems reasonable.
  • Psionic Roshambo @ Psionic Roshambo:
    I mean since basically all the games are errmmm free lol
  • Veho @ Veho:
    I mean yeah sure but the specs are the same as a $50 model, it's just those pesky "quality of life" things driving up the price, like an actually working speaker, or buttons that don't melt, and stuff like that.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I think all in my Pi 4 was well north of 200 bucks 150ish for the Pi 4 the case the fancy cooler, then like 70 for the 500GB MicroSD then like 70 for the Xbox controller. But honestly it's a nice set up I really enjoy and to me was worth every penny. (even bought more controllers for 2 or 4 player games.) hmmm have never played any 2 player games yet :(
  • Veho @ Veho:
    Yeah that's what I hate about the RPi, it's supposedly $30 or something but it takes an additional $200 of accessories to actually turn it into a working something.
  • Psionic Roshambo @ Psionic Roshambo:
    yes that's the expensive part lol
  • Veho @ Veho:
    I mean sure it's flexible and stuff but so is uremum but it's fiddly.
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah a lot of it I consider a hobby, using Batocera I am constantly adjusting the collection adding and removing stuff, scraping the artwork. Haven't even started on some music for the theme... Also way down the road I am considering attempting to do a WiiFlow knock off lol
  • Veho @ Veho:
    I want everything served on a plate plz ktnx, "work" is too much work for me.
  • Veho @ Veho:
    Hmm, with that in mind, maybe a complete out-the-box solution with all the games collected, pacthed and optimized for me would be worth $150 :unsure:
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's all choice and that's a good thing :)
  • Bunjolio @ Bunjolio:
    animal crossing new leaf 11pm music
  • Bunjolio @ Bunjolio:
    avatars-kKKZnC8XiW7HEUw0-KdJMsw-t1080x1080.jpg
    wokey d pronouns
  • SylverReZ @ SylverReZ:
    What its like to do online shopping in 1998: https://www.youtube.com/watch?v=vwag5XE8oJo
    SylverReZ @ SylverReZ: What its like to do online shopping in 1998: https://www.youtube.com/watch?v=vwag5XE8oJo