Homebrew How To Create .Code For HANS?

Deleted member 411764

Well-Known Member
OP
Member
Joined
Jan 15, 2017
Messages
260
Trophies
0
Age
22
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?
 

Ryccardo

Penguin accelerator
Member
Joined
Feb 13, 2015
Messages
7,690
Trophies
1
Age
28
Location
Imola
XP
6,904
Country
Italy
".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)
 

Deleted member 411764

Well-Known Member
OP
Member
Joined
Jan 15, 2017
Messages
260
Trophies
0
Age
22
XP
495
Country
United Kingdom
".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)
 

Ryccardo

Penguin accelerator
Member
Joined
Feb 13, 2015
Messages
7,690
Trophies
1
Age
28
Location
Imola
XP
6,904
Country
Italy
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)
 

Deleted member 411764

Well-Known Member
OP
Member
Joined
Jan 15, 2017
Messages
260
Trophies
0
Age
22
XP
495
Country
United Kingdom
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
 
D

Deleted User

Guest
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

Ryccardo

Penguin accelerator
Member
Joined
Feb 13, 2015
Messages
7,690
Trophies
1
Age
28
Location
Imola
XP
6,904
Country
Italy
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.....
 

Deleted member 411764

Well-Known Member
OP
Member
Joined
Jan 15, 2017
Messages
260
Trophies
0
Age
22
XP
495
Country
United Kingdom
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

Recent Content

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: good night