• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other] How viable to use decomp + CFRU side by side? With decomp source easy to build and CFRU having a huge feature set

  • 1
    Posts
    3
    Years
    • Seen Dec 30, 2022
    Newcomer to romhacking here.
    I have experience with GBA homebrew programming.

    I was wondering:
    How viable to use decomp + CFRU side by side? With decomp source easy to build and CFRU having a huge feature set, it seems like we could get the best of both worlds by combining them.

    So I have a build setup where I'm using the decomp source tree to build the FireRed 1.0 base ROM, and then applying DPE + CFRU patches to the ROM.

    I was wondering if anyone has experience with using this hybrid method:
    - edit the decomp source tree, make various modifications there, then go to patch in CFRU and get all those sweet extra features

    Is this even viable for larger projects? How dependent is CFRU on specific offsets within the base ROM? When modifying the decomp tree inserting code etc, that would change some of the offsets. Should I expect this to end up breaking CFRU + DPE? Or is this actually doable?
     
    You should never, ever patch anything onto a decomp rom unless it is completely unaltered. The data would be shifted otherwise and a patch would therefore corrupt everything.

    The only way to make these two projects work together is to manually port the C code from CFRU over to pokefirered. It's not exactly a drag-n-drop situation though. Some users such as Lunos have ported features from CFRU already. Other than this, the two projects are completely incompatible as CFRU is a binary resource and binary resources 100% don't work in decomp projects.
     
    It wouldnt be easier to port decomp stuff in binary?
    I mean, in case of FireRed for instance, we can use the file BPRE.ld for all the addresses and keep working in C. Its viable?
     
    If anything, you'd be better off contributing to the currently ever-expanding expansions to the decomps. Given the ease of working with them from the beginning, and that more experienced hackers are moving on into programming in them, you'd get a bit of a better start working straight from it. People are already looking between the CFRU and decomps and porting ideas between them.

    If it's your first time hacking and you have even a limited amount of code skill, you have literally no reason not to start off pokeemerald/pokefirered.
     
    Spoiler:

    Yes you can easily do it.And there is only one successful result.
    The Rom Corrupted Successfully!
     
    Well if you want to do it, you'll have to port the cfru code to decompilation
     
    Back
    Top