Hacking Official Corbenik - Another CFW for advanced users (with bytecode patches!)

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
OP
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,248
Country
United States
What did you all use to format your SD cards? Mine was formatted using emunand9.
I ask this, because back in the old DS days, when microSD cards started acting up, it was always a formatting issues. What if it's the same problem here?

That would be caused by fatfs and we already have everything in memory by the time we actually run the cache, so it would manifest much earlier.

The problem is consistent with the logs I've read through, and TWL/AGB/memfind are the only ones that use an odd number of bytes (and therefore, it becomes unaligned - which never happened in earlier versions)

Either way, I *think* I've fixed it so once I finish up some changes I'll be making another test release. Even if not, I've much improved the logging to give me the ability to see what the VM is actually doing.
 
Last edited by chaoskagami,

The Catboy

GBAtemp Official Catboy™: Big Smug
Member
Joined
Sep 13, 2009
Messages
26,705
Trophies
4
Location
Making a non-binary fuss
XP
33,795
Country
Antarctica
That would be caused by fatfs and we already have everything in memory by the time we actually run the cache, so it would manifest much earlier.

Either way, I *think* I've fixed it so once I finish up some changes I'll be making another test release.
I tried ^_^
If you need a beta tester, you know my systems are always up for grabs
 

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
OP
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,248
Country
United States
I tried ^_^
If you need a beta tester, you know my systems are always up for grabs

I've pushed the commits to github. I had to revert the dynamic TWL stuff since it's broken.

I think I'll go ahead and PM you a zip before I release it. I want to make sure nothing is crashing. You up for that?
 

The Catboy

GBAtemp Official Catboy™: Big Smug
Member
Joined
Sep 13, 2009
Messages
26,705
Trophies
4
Location
Making a non-binary fuss
XP
33,795
Country
Antarctica
Alright guys, 0.0.9 up. Have fun. Just remember, you crash it somehow, enable `Verbose` and `Logging` and attach those here.
I would like to mention that I tested the shit out of DS/GBA patching and can safely confirm that everything should be working just fine on the old3DS ^_^
 
  • Like
Reactions: chaoskagami

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
OP
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,248
Country
United States
I would like to mention that I tested the shit out of DS/GBA patching and can safely confirm that everything should be working just fine on the old3DS ^_^

I will confirm that she tested the shit out of them very well. Like, we're talking trying every possible combination. Hopefully nothing explodes anymore.
 

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
OP
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,248
Country
United States
Anyone tracking the git will know I'm still working on stuff pretty consistently, but the next release is mainly going to be bugfixes again, it seems.

Features, though - courtesy @Wolfvak (who is very quickly proving he is beyond awesome) there will be something to demonstrate the usefulness of the bytecode patches next release as an optional: https://github.com/chaoskagami/corbenik/blob/master/contrib/mysterymachine.pco

That is exactly what it looks like. It applies the mysterymachine patch to X/Y/OR/AS. It doesn't require using the official patcher or HANS, statically patching or whatever it is people do now to use this. Like everything else, it is toggleable. Any patches like this in the future will come in a `/contrib` directory and you'll have to manually copy what you want to use to `/corbenik/patch`.
 

The Catboy

GBAtemp Official Catboy™: Big Smug
Member
Joined
Sep 13, 2009
Messages
26,705
Trophies
4
Location
Making a non-binary fuss
XP
33,795
Country
Antarctica
Anyone tracking the git will know I'm still working on stuff pretty consistently, but the next release is mainly going to be bugfixes again, it seems.

Features, though - courtesy @Wolfvak (who is very quickly proving he is beyond awesome) there will be something to demonstrate the usefulness of the bytecode patches next release as an optional: https://github.com/chaoskagami/corbenik/blob/master/contrib/mysterymachine.pco

That is exactly what it looks like. It applies the mysterymachine patch to X/Y/OR/AS. It doesn't require using the official patcher or HANS, statically patching or whatever it is people do now to use this. Like everything else, it is toggleable. Any patches like this in the future will come in a `/contrib` directory and you'll have to manually copy what you want to use to `/corbenik/patch`.
So am super existed for this update! Just like I am with every update!
sample_79c3f2aafba3c665fab3db727c37d20a.jpg
 
  • Like
Reactions: chaoskagami

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
OP
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,248
Country
United States
So am super existed for this update! Just like I am with every update!
View attachment 52752

<3

Next update probably isn't going to be all that huge, sadly. Most of the changes were framework and just cleaning up more crashy pointer math.

The only real downside to developing this CFW is once I've fixed all the bugs, the code should never need to be touched again unless Nintendo breaks it somehow or there's something I want as a feature. We're very quickly approaching the fabled 'stability'. ;)
 
  • Like
Reactions: DjoeN and klear

The Catboy

GBAtemp Official Catboy™: Big Smug
Member
Joined
Sep 13, 2009
Messages
26,705
Trophies
4
Location
Making a non-binary fuss
XP
33,795
Country
Antarctica
<3

Next update probably isn't going to be all that huge, sadly. Most of the changes were framework and just cleaning up more crashy pointer math.

The only real downside to developing this CFW is once I've fixed all the bugs, the code should never need to be touched again unless Nintendo breaks it somehow or there's something I want as a feature. We're very quickly approaching the fabled 'stability'. ;)
You could always throw features from RXTools at it. IDK, it's something.
 

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
OP
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,248
Country
United States

Wolfvak

nyaa~
Member
Joined
Oct 25, 2015
Messages
918
Trophies
1
XP
3,158
Country
Uruguay
You could always throw features from RXTools at it. IDK, it's something.
I'd rather set up a bootloader and use d0k3's *9 tools. They do the same job but are separate from the CFW, which helps it keep the code clean, something which is very important in projects of this magnitude (THERE'S A WHOLE VM IN THERE FFS)
 
  • Like
Reactions: astronautlevel

The Catboy

GBAtemp Official Catboy™: Big Smug
Member
Joined
Sep 13, 2009
Messages
26,705
Trophies
4
Location
Making a non-binary fuss
XP
33,795
Country
Antarctica
I've never even gone through the code of RxTools.



You know, I see so much rxTools bashing. I've never used it nor looked at the code, so what exactly is so inherently wrong with it?
It lost support and lagged behind, now everyone hates it for it's lack of old support.
 

astronautlevel

Well-Known Member
Member
Joined
Jan 26, 2016
Messages
4,127
Trophies
0
Location
Maryland
Website
ataber.pw
XP
4,975
Country
United States
You know, I see so much rxTools bashing. I've never used it nor looked at the code, so what exactly is so inherently wrong with it?
It was originally a closed source project that Roxas released after he got salty that someone RE'd it, so the codebase is pretty shit for starters. There's a "bloat" meme with Luma, but rxTools deserves the bloat label. There are the "tools" that are totally outclassed by the *9 tools (and half the rxTools tools don't even work) and a good deal of the CFW features (ie TWL_FIRM on n3ds) don't work either. The main dev Roxas abandoned support and left it to the Pasta team, which now is abandoning it because they can't figure out how the codebase works.
 
General chit-chat
Help Users
    SylverReZ @ SylverReZ: Lol