Tutorial  Updated

Creating Hans Shortcuts

I could never find good documentation on HANS shortcuts, so I decided to document it myself!

This tutorial should allow you to easily create working hans shortcuts, capable of having multiple romhacks on the SD card at once (I use them mostly for VC injected romfs hacks)

Code:
<shortcut>
    <executable>/3ds/hans/hans.3dsx</executable>
    <icon>/3ds/eshop.smdh</icon>
    <arg>-f/3ds/hans/titles/eshop.txt</arg>
</shortcut>
<targets selectable="false">
    <title mediatype="0">0004001000020900</title>
    <title mediatype="0">0004001000021900</title>
    <title mediatype="0">0004001000022900</title>
    <title mediatype="0">0004001000027900</title>
    <title mediatype="0">0004001000028900</title>
</targets>

This is an example of the default eshop hans xml

First things first, the main shortcut to Hans

Code:
<executable>/3ds/hans/hans.3dsx</executable>

This is just a simple path to your hans executable, should generally always be the same, unless you're using special folders (Like with the gridlauncher HBL)

Code:
<icon>/3ds/eshop.smdh</icon>

Path to your SMDH (Icon, basic info) For your HANS Shortcut.

Code:
<arg>-f/3ds/hans/titles/eshop.txt</arg>

Path to the hans boot argument text
your romfs for romhacks should be named the same as your text file, no additional lines in the text file are needed for custom named romfs files. (IE: neoy.romfs will load from neoy.txt)

Code:
<title mediatype="0">0004001000020900</title>

This is the title you wish to launch, alone with the media type

For Mediatype there are 3 options
0 for a NAND title (eshop, System Settings, etc)
1 for SD card titles (Most games downloaded from the eshop)
2 for Gamecart (self Explanatory)

You can have multiple lines for alternate titles and locations

Code:
<title mediatype="1">0004001000020900</title>
<title mediatype="2">0004001000021900</title>

So this would first attempt to find the title on the SD card, and then move on to the game cart, should the SD title not be found.

For the title string, an easy eay to grab it is the folder name of your braindump.

Let's move on to the HANS title text file

Code:
region : 1
language : -1
clock : 0
romfs : 1
code : 1
nim_checkupdate : 1

This is a default launch text file(For USA) for a title

Code:
Region : 1

This is which region you'd like to launch from
0 - Japan
1 - USA
2 - Europe

Code:
Language : -1

This is the language in which to launch the title, there can be some conflicts with certain regions and languages that I have experienced.
-1 - System Default Language
0 - Japanese

Code:
Clock : 0

This specifies which clockrate the game runs with
0 - 268Mhz
1 - 804Mhz

Code:
romfs : 1

This line specifies whether to load the default romfs in the title, or another in the root/hans folder
0 - Custom romfs, named the same as the text file
1 - Default romfs

Code:
code : 1
The same as the romfs argument, but with the code file
0 - custom code, named the same as the text file
1 - Default code

Code:
nim_checkupdate : 1
Simple firmware spoofer for the title you are launching
0 - Spoofer active
1 - Default, no spoof



There are a few things I left out, such as all of the language settings, I didn't quite have the time to go through every language, heh.

And if it was confusing I'll reiterate a little bit of the file structure

shortcut.xml:
Location - /3ds
Description - Main shortcut to the hans executable with locations for the smdh, title ID, and boot arguments text file.

shortcut.smdh
Location - /3ds (Or somewhere else specified in the XML)
Description - Icon and info for the title/romhack

title.txt
Location - /3ds/hans/title
Description - Boot arguments for HANS when booting your title. Should be named the same as your romfs file when using romhacks. IE Neoy.romfs would have a complementary Neoy.txt in the /3ds/hans/title folder.
 
Last edited by Flerp,

Keizel

Well-Known Member
Member
Joined
Jun 28, 2015
Messages
381
Trophies
0
XP
372
Country
United States
I take this opportunity to indicate how to put in a folder eShop, I said yesterday this:

1. Create a file named "eShop" inside: SD:/3DS/eShop/.

2. Cut and paste the file "eShop.xml" and "eShop.smdh": SD:/3DS/eShop/eShop.xml and SD:/3DS/eShop/eShop.smdh.

3. Copy Hans.3dsx (SD:/3DS/hans/hans.3dsx to SD:/3DS/eShop/) and renamed to "eShop.3dsx": SD:/3DS/eShop/eShop.3dsx

4. Create a file named "titles" in SD:/3DS/eShop/ and copy since SD:/3DS/hans/titles the file "eShop.txt", and paste in SD:/3DS/eShop/titles

5. Open the file "eShop.xml" and copy and paste this code, erased the previous code:

Code:
<shortcut>
   <executable>/3ds/eshop/eshop.3dsx</executable>
   <icon>/3ds/eshop/eshop.smdh</icon>
   <arg>-f/3ds/eshop/titles/eshop.txt</arg>
</shortcut>
<targets selectable="false">
   <title mediatype="0">0004001000020900</title>
   <title mediatype="0">0004001000021900</title>
   <title mediatype="0">0004001000022900</title>
   <title mediatype="0">0004001000027900</title>
   <title mediatype="0">0004001000028900</title>
</targets>

6. * Opcional * Si tras seguir estos pasos, aparece el menú de HANS tras la ejecucción de eShop.3dsx, es totalmente normal. Solamente debes poner "Firmware Spoof -> Yes" y "Save Configuration -> Yes" y la próxima vez que ejecutes eShop, cargará directamente el spoof sin pasar por este menú.

6. *Optional* If you see the HANS menu after do this steps, is normal. You just must choose "Firmware Spoof" -> Yes and "Save Configuration" -> Yes. The next time the eShop load directly.

With this tutorial, you can use eShop spoofer in others Homebrew Launcher
 

pinguino1234

Well-Known Member
Newcomer
Joined
Sep 22, 2015
Messages
56
Trophies
0
Age
27
XP
89
Country
Mexico
Here is a two noob questions :rolleyes::

1.- Can i write the code in a simple notepad? (Or have i to use Notepad++ for example?)
2.- How can i make a .smdh file?

Tanks a lot for your help :grog:
 
Last edited by pinguino1234,

Flerp

Active Member
OP
Newcomer
Joined
Nov 1, 2015
Messages
34
Trophies
0
Age
33
XP
199
Country
United States
Here is a two noob questions :rolleyes::

1.- Can i write the code in a simple notepad? (Or have i to use Notepad++ for example?)
2.- How can i make a .smdh file?

Tanks a lot for your help :grog:

I would assume regular notepad would be fine, I use notepad++ for just about everything though xD

https://gbatemp.net/threads/release-the-smdh-creator-make-your-own-icon-pack.396765/
for making smdh files

(Note: I have been having some issues with that program, being that some smdh files created have blank text in the grid launcher HBL)
 
  • Like
Reactions: pinguino1234

pinguino1234

Well-Known Member
Newcomer
Joined
Sep 22, 2015
Messages
56
Trophies
0
Age
27
XP
89
Country
Mexico

Flerp

Active Member
OP
Newcomer
Joined
Nov 1, 2015
Messages
34
Trophies
0
Age
33
XP
199
Country
United States
If you manually launch HANS and a title, on the bottom it has the game ID number on the bottom before you hit ok.

And sadly I dunno for ubuntu smdh creation :(
 

pinguino1234

Well-Known Member
Newcomer
Joined
Sep 22, 2015
Messages
56
Trophies
0
Age
27
XP
89
Country
Mexico
Testing this, I got an idea to have the shortcuts on a folder! :grog: (This is not the big thing I now ;)):

1.- Copy the hans.3dsx on the Shortcut´s folder. (/3ds/name/hans.3dsx)
2.- Rename the .3dsx with the same name as .smdh
3.- Create a folder named "titles" and put the .txt on it. (/3ds/name/titles/xxxxxxxx.txt)
4.- Update the .xml with the new directions (e.j. <executable>/3ds/hans/hans.3dsx</executable> to <executable>/3ds/name/name.3dsx</executable>)

In the folder should be:

titles --- xxxxxxxx.txt
name.3dsx
name.smdh
name.xml
Enjoy!! :yaysp:
 

Lemon_

Well-Known Member
Member
Joined
Oct 31, 2015
Messages
100
Trophies
0
Age
29
XP
376
Country
Argentina
Is there a way to make two separate HANS shortcuts but with different ".romfs" files to redirect to?
Inyecting multiple roms onto the same VC title is getting kinda tedious.
 

Flerp

Active Member
OP
Newcomer
Joined
Nov 1, 2015
Messages
34
Trophies
0
Age
33
XP
199
Country
United States
Is there a way to make two separate HANS shortcuts but with different ".romfs" files to redirect to?
Inyecting multiple roms onto the same VC title is getting kinda tedious.

Whatever you name the .txt file will be the name of the romfs file it looks for.

Example, I have 6 "romhacks" for Wario Land 2 VC

The .xml files are identical, minus the miles looking for the SMDH and .txt file

So one xml looks for pkmy.txt, which loads pkmy.romfs
The other xml looks for pkmg.txt, which loads my pkmg.romfs

The XML and SMDH can be named whatever you like, as long as the XML and SMDH are in the /3ds folder and the XML points to the ".txt" file that you want to load.

The romfs files do not have to be named with the 8 digit ID, that's only if you are using HANS default "save configuration" which creates the text file with those 8 digits
 
  • Like
Reactions: Lemon_

pinguino1234

Well-Known Member
Newcomer
Joined
Sep 22, 2015
Messages
56
Trophies
0
Age
27
XP
89
Country
Mexico
Whatever you name the .txt file will be the name of the romfs file it looks for.

Example, I have 6 "romhacks" for Wario Land 2 VC

The .xml files are identical, minus the miles looking for the SMDH and .txt file

So one xml looks for pkmy.txt, which loads pkmy.romfs
The other xml looks for pkmg.txt, which loads my pkmg.romfs

The XML and SMDH can be named whatever you like, as long as the XML and SMDH are in the /3ds folder and the XML points to the ".txt" file that you want to load.

The romfs files do not have to be named with the 8 digit ID, that's only if you are using HANS default "save configuration" which creates the text file with those 8 digits

But... where do you have to put ".romfs"? I tried in /hans and /3ds without a result :unsure:
 

pinguino1234

Well-Known Member
Newcomer
Joined
Sep 22, 2015
Messages
56
Trophies
0
Age
27
XP
89
Country
Mexico
.romfs files go in the root/hans folder

I can not do this correctly. This is my .xml:

<shortcut>
<executable>/3ds/hans/hans.3dsx</executable>
<icon>/3ds/Castelvania.smdh</icon>
<arg>-f/3ds/hans/titles/Castelvania.txt</arg>
</shortcut>
<targets selectable="false">
<title mediatype="1">000400000006f100</title>
</targets>

.txt= /3ds/hans/titles/Castelvania.txt
.romfs=/hans

I have "0006f100.romfs" and "Castelvania.romfs" but the last dont work. What is wrong? Thanks again for the help.
 

Flerp

Active Member
OP
Newcomer
Joined
Nov 1, 2015
Messages
34
Trophies
0
Age
33
XP
199
Country
United States
When you say it doesn't work, what error are you having? Does it return to homebrew menu? what happens?
 

duwen

Old Man Toad
Member
Joined
Sep 6, 2013
Messages
3,193
Trophies
2
Location
Bullet Hell
Website
www.exophase.com
XP
4,297
Country
United Kingdom
Great guide! I set up a nice shortcut for Bravely Default: Uncensored a few days ago from these instructions... actually from the post over at se7ensins... was that you Flerp, or has someone else ripped off your guide?

I can not do this correctly. This is my .xml:



.txt= /3ds/hans/titles/Castelvania.txt
.romfs=/hans

I have "0006f100.romfs" and "Castelvania.romfs" but the last dont work. What is wrong? Thanks again for the help.
Any reason you're spelling Castlevania as Castelvania? Thought I'd point it out in case that's the problem...
 
Last edited by duwen,
  • Like
Reactions: Sev501

pinguino1234

Well-Known Member
Newcomer
Joined
Sep 22, 2015
Messages
56
Trophies
0
Age
27
XP
89
Country
Mexico
Great guide! I set up a nice shortcut for Bravely Default: Uncensored a few days ago from these instructions... actually from the post over at se7ensins... was that you Flerp, or has someone else ripped off your guide?


Any reason you're spelling Castlevania as Castelvania? Thought I'd point it out in case that's the problem...

An old friend say the same, (I dont know it writes "Castlevania" :sad:) But whitout this error it isnt work (all the files named "Castelvania")
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Sicklyboy @ Sicklyboy: Welp I'm off to best buy because I figured out how to shove another 14tb hard drive in this server 😂