Hacking [Release][v.1.5.1] Sky Army Knife - a Sky3DS Template Tool

Xive

Member
Newcomer
Joined
Apr 1, 2015
Messages
9
Trophies
0
Age
38
XP
111
Country
Senegal
What's the first line in the template?


After removing empty line the first line start like this:

** : KTR-P-CAFJ

Seems like Korea region? I try to make a work around by cutting 1 of the CTR entries and shifting it to the top. No complains by SAK, and I don't need template for Korea region games at least for now.
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
30,840
Trophies
3
Location
Gaming Grotto
XP
29,927
Country
Poland
Hey guys, just a quick heads-up. The next update might take some time because I'm implementing loads of new features. So far the release isn't ready for public use, but here's a quick changelog:
  • Template Magic Check fixed - no more worries about KTR entries or the two empty lines in the beginning of new templates, it's all sorted out
  • New items in drop-down fields, including the bizarre 0x80 and 0x88 Mystery Bytes from the latest Sky templates
  • All fields are now free-form in addition to drop-down - you can input any values you want, even values not expected by SAK, provided they are valid Hex numbers
  • Further optimizations - getting close to a source code release, but I keep cramming in new things. One step forwards, two steps back sort of a dealio
If I get the time, I'll also add a ROM trimming tool. Please be patient guys, the next release is coming soon. ;)

could you tell me how to calculate the crc16 checksum?
Sure.
Code:
unsigned short Calculate_CRC16(unsigned char* Source, int Length){
 
unsigned short Result = 0;
 
for (int i = 0; i < (0 + Length); i++){
Result = (unsigned short)(((Result >> 8) & 0xff) | (Result << 8));
Result = (unsigned short)(Result ^ Source[i]);
Result = (unsigned short)(Result ^ ((unsigned short)((Result & 0xff) >> 4)));
Result = (unsigned short)(Result ^ ((unsigned short)(Result << 12)));
Result = (unsigned short)(Result ^ ((unsigned short)((Result & 0xff) << 5)));
}
 
return Result;
 
}
This piece of code isn't mine, I only cleaned it up for C++ use.
 

KhwajaKhan

Member
Newcomer
Joined
Mar 28, 2015
Messages
19
Trophies
0
Age
31
XP
58
Country
Canada
This isn't loading the template0403.txt I downloaded from sky3ds today?

Is it only supposed to work with the first original template file they released?
 

crea

Well-Known Member
Member
Joined
Mar 20, 2013
Messages
167
Trophies
1
XP
1,032
Country
Lesotho
Sure.
Code:
unsigned short Calculate_CRC16(unsigned char* Source, int Length){
 
unsigned short Result = 0;
 
for (int i = 0; i < (0 + Length); i++){
Result = (unsigned short)(((Result >> 8) & 0xff) | (Result << 8));
Result = (unsigned short)(Result ^ Source[i]);
Result = (unsigned short)(Result ^ ((unsigned short)((Result & 0xff) >> 4)));
Result = (unsigned short)(Result ^ ((unsigned short)(Result << 12)));
Result = (unsigned short)(Result ^ ((unsigned short)((Result & 0xff) << 5)));
}
 
return Result;
 
}
This piece of code isn't mine, I only cleaned it up for C++ use.


Hey thanks for the code. May I ask a further question, how is char* Source defined, what's included in Source?
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
30,840
Trophies
3
Location
Gaming Grotto
XP
29,927
Country
Poland
Hey thanks for the code. May I ask a further question, how is char* Source defined, what's included in Source?
It's the template structure (without the product code and SHA1 lines, start at the first byte) minus the last two bytes (which are the CRC you're calculating).
 

KhwajaKhan

Member
Newcomer
Joined
Mar 28, 2015
Messages
19
Trophies
0
Age
31
XP
58
Country
Canada
Move the KTR entries lower on the list and remove the empty lines from the top.


So make the first two entries like this??

** : KTR-P-CAFJ
SHA1: 2136BBF38844407133927BA84F567B4C0E814A63
00 00 00 00 C2 F0 02 90 C2 22 13 00 9E 23 61 DC
43 54 52 49 4D 41 47 45 00 00 00 00 00 00 00 00
E8 00 55 6E DC 52 75 E0 B8 72 57 D4 2A 1F F7 89
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
4B 54 52 2D 50 2D 43 41 46 4A 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 DA 6D


** : KTR-P-CAFPSH
A1: 7DB6EE2B8C06649D31AA2D5A69E05653722BE4E4
00 00 00 00 C2 F0 02 90 C2 22 13 00 E0 83 1F 7C
43 54 52 49 4D 41 47 45 00 00 00 00 00 00 00 00
72 29 98 09 08 8C 64 A6 1D D0 41 E5 FF 92 65 17
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
4B 54 52 2D 50 2D 43 41 46 50 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 BA 6F
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
30,840
Trophies
3
Location
Gaming Grotto
XP
29,927
Country
Poland
So make the first two entries like this??

** : KTR-P-CAFJ
SHA1: 2136BBF38844407133927BA84F567B4C0E814A63
00 00 00 00 C2 F0 02 90 C2 22 13 00 9E 23 61 DC
43 54 52 49 4D 41 47 45 00 00 00 00 00 00 00 00
E8 00 55 6E DC 52 75 E0 B8 72 57 D4 2A 1F F7 89
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
4B 54 52 2D 50 2D 43 41 46 4A 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 DA 6D


** : KTR-P-CAFPSH
A1: 7DB6EE2B8C06649D31AA2D5A69E05653722BE4E4
00 00 00 00 C2 F0 02 90 C2 22 13 00 E0 83 1F 7C
43 54 52 49 4D 41 47 45 00 00 00 00 00 00 00 00
72 29 98 09 08 8C 64 A6 1D D0 41 E5 FF 92 65 17
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
4B 54 52 2D 50 2D 43 41 46 50 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 BA 6F
Just make sure the template starts with a CTR template, SAK will work out the rest. This is just a minor magics bug, I didn't expect N3DS product codes to be different. Paste the KTR entries to the end of the file.
 

KhwajaKhan

Member
Newcomer
Joined
Mar 28, 2015
Messages
19
Trophies
0
Age
31
XP
58
Country
Canada
ok gotcha, thank you I got it working. I would like to consult you on something else, I have some .3ds roms for offline play, like fire emblem bravely default and zelda games. They don't work with action replay. Is it because they have no Unique ID? I am going to try to update the template and give them a random ID, just wondering if it might recognize the game in action replay in that case. Or are the games not being recognized with powersaves also related to have an illegitimate header. Do I need to find a .3dz rom to make it work with powersaves?
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
30,840
Trophies
3
Location
Gaming Grotto
XP
29,927
Country
Poland
Powersaves, as the name implies, should read saves, right? I might be wrong since I don't have one of those, but I think the only exception here are SLC-NAND games, I don't know if the header has anything to do with Powersaves but if anything, the EEPROM ID is what you should focus on. You're better off making a new thread about this issue but I believe you have to restart Powersaves in order to detect a Sky cart and you can only access the currently selected game.
 

Datalogger

Living the Dream
Member
Joined
Dec 21, 2009
Messages
416
Trophies
1
Location
Maui
XP
712
Country
United States
is there anychance that we can make our own template files in near future and don't wait for sky3ds to release them?

If we could only convince yifan.lu to look into Sky3DS with the same diligence as Gateway, we would have what we need.

Aside from that, unfortunately the Unknown is too complicated for anyone to else to figure out so we are forever at the mercy of SKY3DS to produce new updated templates to feed us at their will.

I just hope they never cash-out and leave us all hanging...
 

Osmosis

Accidents Happen. Don't be one of them.
Member
Joined
Dec 20, 2014
Messages
823
Trophies
0
XP
397
Country
United States
Action Replay =/= Powersaves

One is for DS games and the other for 3DS.

If you are trying to use Sky3DS with Powersaves, take it to a new thread. Because I've got bad news for you...



BTW Foxi, I miss the old tails look. So much more brooding now... :-S

Good news is no ban hammer since we found headers through powersaves. So they are merely checking cart IDs and not Chip IDs. (you were so right on that)

But like I said above, Powersaves seems to be blocking Sky3DS. More people having my problem. Apparently Pokemon ORASXY is still okay.

So N3DS spit out a new template? Or Sky3DS making boo boos?

w00t!!!! ROM TRIMING TOOL!!!! FTW!!!!

And a header ID extractor.

Oooo!!! And make it slice bread too!! Or at least spread jam on my toast...

You know, it should really have a "foot massage" option...

But really? Take it easy. Last thing we want is burn-out from the SAK master. :bow:
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • light27 @ light27:
    fun fact
  • light27 @ light27:
    the first time i ever played on a wii u EVER was when I was getting my ear tubes removed
  • light27 @ light27:
    i was playing wii party
  • light27 @ light27:
    u*
  • light27 @ light27:
    but i only got to play for like
  • light27 @ light27:
    3 seconds
  • light27 @ light27:
    younger me would've never thought that I would have a wii u now
  • Xdqwerty @ Xdqwerty:
    @light27, i wanted a Wii u as a kid when i watched a Mario kart 8 commercial on tv
  • Psionic Roshambo @ Psionic Roshambo:
    I had a Wii-U it sucked lol
  • Psionic Roshambo @ Psionic Roshambo:
    Even hacked it sucked lol
  • The Real Jdbye @ The Real Jdbye:
    nah the Wii U wasn't bad
    +1
  • The Real Jdbye @ The Real Jdbye:
    the hardware is good
  • Psionic Roshambo @ Psionic Roshambo:
    The controller sucked
  • The Real Jdbye @ The Real Jdbye:
    it has good games, just not enough of them
    +2
  • ColdBlitz @ ColdBlitz:
    the indie games on wii u were amazing though
  • ColdBlitz @ ColdBlitz:
    and also some of nintendo's first party games
  • ColdBlitz @ ColdBlitz:
    some of the best selling games on the switch are wii u ports (that are priced way too high
    like come on 60 for a game thats a decade old??)
    +1
  • Xdqwerty @ Xdqwerty:
    @ColdBlitz, i forgot breath of the wild released for the Wii u
  • The Real Jdbye @ The Real Jdbye:
    $60 for a game that's a decade old might be unheard of on PC but actually is not uncommon on consoles
    +1
  • The Real Jdbye @ The Real Jdbye:
    especially Nintendo because they only ever lower the price of games when they do a greatest hits/platinum hits/players choice re-release
  • Xdqwerty @ Xdqwerty:
    @The Real Jdbye, and the HD collections released for 7th gen consoles too
  • The Real Jdbye @ The Real Jdbye:
    but they don't seem to have done any of those for the switch yet and maybe never will
  • ColdBlitz @ ColdBlitz:
    I think we all forgot breath of the wild released for the wii u tbh
    +1
  • Xdqwerty @ Xdqwerty:
    @The Real Jdbye, tbh the HD collections are more justified since they include more than just 1 game per copy
    Xdqwerty @ Xdqwerty: @The Real Jdbye, tbh the HD collections are more justified since they include more than just 1...