What's the first line in the template?
** : KTR-P-CAFP wait... that's 0402 template
** : KTR-P-CAFJ is 0403 template
What's the first line in the template?
That explains it - SAK looks for "** : CTR-P" as a magic check. Expect a quick fix.** : KTR-P-CAFP
What's the first line in the template?
Sure.could you tell me how to calculate the crc16 checksum?
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;
}
Move the KTR entries lower on the list and remove the empty lines from the top.
Sure.
This piece of code isn't mine, I only cleaned it up for C++ use.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; }
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).Hey thanks for the code. May I ask a further question, how is char* Source defined, what's included in Source?
Move the KTR entries lower on the list and remove the empty lines from the top.
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.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
is there anychance that we can make our own template files in near future and don't wait for sky3ds to release them?