Homebrew [Tutorial + Scripts] Usage of HANS.

TheFlamingFurret

Active Member
Newcomer
Joined
Aug 18, 2015
Messages
28
Trophies
0
XP
128
Country
You're the best!
Thank you!
It works with Star Sapphire, will edit this post w/ images.
1ojiB0B.png
NBqlqD3.png
 
Last edited by TheFlamingFurret,

Gocario

GBAFail'd
Member
Joined
Sep 5, 2015
Messages
640
Trophies
0
Location
Bourg Palette
XP
804
Country
France
3ds/cia -> roms.
romfs -> rom files
Encryption -> Games are encrypted, so nobody can see them. There are several ways to decrypt them.
I mean... more detailed...
What is the difference between .3ds and .cia?
romfs.bin is like an archive, isn't it? with folders like 0/0/a/1?
What is exactly in the cartrdige, how does it works?
Is the romfs.bin dumped with braindumper encrypted?
What is the exefs.bin?
People are talking about header, what is that?

I would really like a small F.A.Q. about this, just for knowledge.
 

RaptorDMG

Well-Known Member
Member
Joined
Sep 13, 2015
Messages
402
Trophies
0
Age
23
Location
Stirling
XP
1,977
Country
United Kingdom
You need to extract your romfs.bin with braindump.
Put the romfs.bin in the folder with extract_romfs.bat
run extract_romfs.bat
when you have the extracted romfs folder
goto the romfs folder in Pokemon NeoXY1.33\Installation hub\data\Full
drag it into the folder with the extracted romfs folder
when prompted click "replace files with same name"
then run romfs builder.exe click your romfs folder and click go then wait till it's done and save it as a .bin
then run gen_romfs.bat and type the name you saved the romfs as in the above step and type the titleid 00055d00
when thats done you should have a working romfs file to put on your sd card
 

PabloMK7

Red Yoshi! ^ω^
OP
Developer
Joined
Feb 21, 2014
Messages
2,604
Trophies
2
Age
24
Location
Yoshi's Island
XP
5,026
Country
Spain
I mean... more detailed...
What is the difference between .3ds and .cia?
romfs.bin is like an archive, isn't it? with folders like 0/0/a/1?
What is exactly in the cartrdige, how does it works?
Is the romfs.bin dumped with braindumper encrypted?
What is the exefs.bin?
People are talking about header, what is that?

I would really like a small F.A.Q. about this, just for knowledge.
I can't put all of that information here it would took a lot of time. 3dbrew has all the info about that and you can also use google, but basically:

3ds -> games dumped from a cartrdige
cia -> games downloaded from eshop
Romfs -> filed used by the game such as music, scenary, models....
Code -> Code it is what controls the game and make things work, such as loading the music, calculating values...
Header -> It has info about the game such as the title how should it be run, etc
 

darklordrs

Well-Known Member
Member
Joined
Aug 16, 2015
Messages
791
Trophies
0
Age
23
XP
434
Country
United States
Hey Pablo, got any method by which I can repack the dt file in Smashbros? As soon as I've got that I can probably continue checking if any hacks for Smash work at all.
 

darklordrs

Well-Known Member
Member
Joined
Aug 16, 2015
Messages
791
Trophies
0
Age
23
XP
434
Country
United States
There is a dt unpacker, but I think it can't repack... not sure.
the original "lsdt.exe" unpacks wrong and doesn't repack, Sammi Husky's dt unpacker unpacks right but doesnt repack, so i cant find any way to do it atm.

edit: qq: how hard would it be to simply reverse the process of an unpacker? it sounds like something that's definitely not so simple, given how compression on things works, but I have to ask.
 
Last edited by darklordrs,

PabloMK7

Red Yoshi! ^ω^
OP
Developer
Joined
Feb 21, 2014
Messages
2,604
Trophies
2
Age
24
Location
Yoshi's Island
XP
5,026
Country
Spain
the original "lsdt.exe" unpacks wrong and doesn't repack, Sammi Husky's dt unpacker unpacks right but doesnt repack, so i cant find any way to do it atm.

edit: qq: how hard would it be to simply reverse the process of an unpacker? it sounds like something that's definitely not so simple, given how compression on things works, but I have to ask.

Not sure, I didn't create that tools.

i cant see emunand titles on HANS... how do i play faster clock on emunand installed games?
That may be a issue with homebrew launcher.... it has lots of bugs that should be fixed
 

BurningDesire

Well-Known Member
Member
Joined
Jan 27, 2015
Messages
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,885
Country
United States
I'm making this tutorial so you can easily generate a proper romfs to use with hans.

Here is the video version.


Requirements
Procedure
  1. Extract the tools.
  2. Put the 3ds/cia/romfs.bin in the same forder (if encrypted, put the romfs xorpad there aswell.)
  3. Run extract_romfs.bat and follow the indications.
  4. If everything goes correctly, a romfs folder should be created.
  5. Edit whatever you want in romfs folder.
  6. Once you are done, run Romfs builder, a tool made by @SciresM.
  7. On Romfs Builder select the romfs folder and click go, after a bit it will prompt you to save. Save it as whatever.bin but in the same folder as the bat files.
  8. Run gen_romfs.bat, it will ask you for the whatever.bin file name, and then for the low titleID (last 8 characters of titleID) of the game you are trying to use with hans. If you don't know it, you can run hans with the game you want to hack and it will show the titleID at the bottom of the config screen.
  9. If everything goes fine, a titleid.romfs file will be created. Copy that to SD:/hans and you are done.
Notes.

If the romfs folder is empty and/or the tool returns an error, it will be copied to log/error.txt. If you can't manage to solve the error, post it here.

Only decrypted cia has been tested, so other modes may not work or be buggy, sorry about that but I don't have much time to test.

Sorce code?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Sonic Angel Knight @ Sonic Angel Knight: Or, I also heard that if you use flash memory, it can act as more "RAM" at least windows tell me...