Homebrew How To Create .Code For HANS?

Deleted member 411764

Well-Known Member
Member
Joined
Jan 15, 2017
Messages
260
Reaction score
91
Trophies
0
Age
24
XP
495
Country
United Kingdom
I been wondering for a while, how do you make .code (rom hacks) for games with HANS, I've created a few plugins (by hand) and need helping making .code for friends, no one has to give me a tutorial on making .code cause this could lead to killing the 3ds game hacking scene. But how do I make them, what do I need to know?
 
".code.bin" is the decompressed code.bin from the exefs:
3dstool -uvf code.bin --compress-type blz --compress-out .code.bin

(Luma's overlay also wants a decompressed .code.bin, despite calling it "code.bin" without the conventional dot)
(Exefs support was broken in Hans, last time I checked over a year ago)
 
".code.bin" is the decompressed code.bin from the exefs:
3dstool -uvf code.bin --compress-type blz --compress-out .code.bin

(Luma's overlay also wants a decompressed .code.bin, despite calling it "code.bin" without the conventional dot)
(Exefs support was broken in Hans, last time I checked over a year ago)

The reason why I'm asking this question is because Fishguy6564 made an item hack for hans, Is there a guide I could follow for help (not a guide to making .code)
 
The reason why I'm asking this question is because Fishguy6564 made an item hack for hans, Is there a guide I could follow for help (not a guide to making .code)
The command I posted is the one for converting code.bin to .code.bin

Any patches you may apply to the extracted .code.bin are inherently app specific, and require some disassembling/reverse engineering skill (ideally an accurate emulator with breakpoints, which I don't think exists outside of 2000 dollar dev boxes; manual hunting through the code plus trial and error is possible but not necessarily practical)
 
The command I posted is the one for converting code.bin to .code.bin

Any patches you may apply to the extracted .code.bin are inherently app specific, and require some disassembling/reverse engineering skill (ideally an accurate emulator with breakpoints, which I don't think exists outside of 2000 dollar dev boxes; manual hunting through the code plus trial and error is possible but not necessarily practical)

ok so what do I do with the gateshark code?

sorry for annoying you with questions 'U_U
 
ok so what do I do with the gateshark code?

sorry for annoying you with questions 'U_U
You must be confused. You are thinking cheat codes. We are talking executable code. The difference is one modifies RAM/Saves and the other modifies the game itself. I'm not sure how to help, but i am pretty sure there is a Gateshark -> NTR converter for use with Non-Gateway systems
 
  • Like
Reactions: Ryccardo
ok so what do I do with the gateshark code?

sorry for annoying you with questions 'U_U
I don't know, since I don't use cheats; but they're probably (button checks and) memory writes, so you would need to translate the code to assembly and stick it somewhere in the game's executable (exactly this .code.bin) inside of a function that gets called continuously...

Finding one such function, writing code equivalent to the cheats you want, and especially placing it in a way that doesn't move around other code... is an exercise for the reader.....
 
You must be confused. You are thinking cheat codes. We are talking executable code. The difference is one modifies RAM/Saves and the other modifies the game itself. I'm not sure how to help, but i am pretty sure there is a Gateshark -> NTR converter for use with Non-Gateway systems

I make NTR Plugins (online ones) lol, I just want to make a .code for a friend via HANS

--------------------- MERGED ---------------------------

I don't know, since I don't use cheats; but they're probably (button checks and) memory writes, so you would need to translate the code to assembly and stick it somewhere in the game's executable (exactly this .code.bin) inside of a function that gets called continuously...

Finding one such function, writing code equivalent to the cheats you want, and especially placing it in a way that doesn't move around other code... is an exercise for the reader.....

That'll be hard I don't understand how to shorten codes (ASM) lol but I'll ask a friend if they know

thanks for the help
 

Site & Scene News

Popular threads in this forum