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,233
Trophies
1
XP
2,465
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,102
Trophies
3
Age
41
Website
Visit site
XP
2,631
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.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
  • Iron_Masuku @ Iron_Masuku:
    Hello
    Skelletonike @ Skelletonike: hmm