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

NeroAngelo

Clueless Importer
Member
Joined
Dec 31, 2003
Messages
273
Trophies
2
XP
1,219
Country
Libya
Interesting, it definitely shouldn't do that. Can you post the product codes of affected games? It's set to read the whole line so it shouldn't be happening.

i noticed it while trying to generate separate templates for MH4U (us) and Pokemon Omega Red (us) ... kept telling me the unique id was invalid format and what not , then i noticed it was missing the last byte , even though it clearly read it in the text block underneath it.

other games i tried work fine though. weird :)
 

Attachments

  • MH4U.jpg
    MH4U.jpg
    27.5 KB · Views: 305
  • POR.jpg
    POR.jpg
    24.1 KB · Views: 251

ddarkeh

New Member
Newbie
Joined
Mar 20, 2015
Messages
4
Trophies
0
Age
39
Location
UK, North Wales
XP
44
Country
Hi Foxi, firstly great tool and post i've learnt more about headers and how templates are built in this thread than I have from anywhere else.

I've also had the issue with auto detect unknown ID option where it misses the last byte, not a problem however copying and pasting.

o3UIjk.png



My current issue is related to online play with MH4 Eur, I get the 002-0123 error and after numerous searching I believe it's related to how i'm building up the template. So the below is a template from SKY3DS and then edited to include a Private header, so unless there's a mistake with their template then the chip ID and all that must be correct? My question really is if my private header was invalid would my game boot up at all or not, because it does and I can play Single player but without online play. Again forgive my ignorance here but will your tool support 3dz file in the future (is that even possible)

** : CTR-P-BFGP

SHA1: A8A7F1848C8B3CBD04D7D6748CC9406F64055C74
00 00 00 00 C2 F0 02 90 C2 22 13 00 50 F7 AF 08
43 54 52 49 4D 41 47 45 00 00 00 00 00 00 00 00
9F 99 26 F3 63 F0 FB 87 D6 64 EA 46 D9 0C 5B 7C
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx <---- Private header
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
43 54 52 2D 50 2D 42 46 47 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 7C D5
 

NeroAngelo

Clueless Importer
Member
Joined
Dec 31, 2003
Messages
273
Trophies
2
XP
1,219
Country
Libya
Hi Foxi, firstly great tool and post i've learnt more about headers and how templates are built in this thread than I have from anywhere else.

I've also had the issue with auto detect unknown ID option where it misses the last byte, not a problem however copying and pasting.

o3UIjk.png



My current issue is related to online play with MH4 Eur, I get the 002-0123 error and after numerous searching I believe it's related to how i'm building up the template. So the below is a template from SKY3DS and then edited to include a Private header, so unless there's a mistake with their template then the chip ID and all that must be correct? My question really is if my private header was invalid would my game boot up at all or not, because it does and I can play Single player but without online play. Again forgive my ignorance here but will your tool support 3dz file in the future (is that even possible)

** : CTR-P-BFGP

SHA1: A8A7F1848C8B3CBD04D7D6748CC9406F64055C74
00 00 00 00 C2 F0 02 90 C2 22 13 00 50 F7 AF 08
43 54 52 49 4D 41 47 45 00 00 00 00 00 00 00 00
9F 99 26 F3 63 F0 FB 87 D6 64 EA 46 D9 0C 5B 7C
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx <---- Private header
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
43 54 52 2D 50 2D 42 46 47 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 7C D5

just a while ago i had an issue with SSB , turned out the Sky3DS official template had wrong ChipID info , once i fixed it with the proper values , all was well
maybe you have the same issue?
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,851
Country
Poland
NeroAngelo I can see the problem, yes. I'll look into it.
ddarkeh Sky templates are rubbish sometimes in terms of accuracy since they autogenerate them. I suggest comparing the EU and US templates and making a new one in SAK using the correct values, that should do the trick. ;) Generating templates from *.3dz files will be possible in future releases, all you have to do to flash them is rename the extension anyways. ;)
 
  • Like
Reactions: NeroAngelo

Stephens

Member
Newcomer
Joined
Jul 8, 2013
Messages
8
Trophies
0
Age
42
XP
151
Country
Brazil
Good to hear, good to hear.

UPDATE: Sky Army Knife v.1.4 is now public and live, get it at Filetrip.net!



Thank you, wonderful job.
Not good at English, so I will explain the easiest possible that the error found in version 1.4. When you try to save in .txt it saves the "Base Template" tab and not the new "Generated Template".
I hope I have informed correctly.
 
  • Like
Reactions: Foxi4

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,851
Country
Poland
Thank you, wonderful job.
Not good at English, so I will explain the easiest possible that the error found in version 1.4. When you try to save in .txt it saves the "Base Template" tab and not the new "Generated Template".
I hope I have informed correctly.
Oh crap, I need to label those textboxes better lol. My bad man, will be fixed for sure in a quick fix, gimme a sec.

EDIT: I just checked and it works fine on my end, it does save the generated template. You sure it's not saving the right textbox? There's no chance it should do that. Can you double-check that on your end?
 

Stephens

Member
Newcomer
Joined
Jul 8, 2013
Messages
8
Trophies
0
Age
42
XP
151
Country
Brazil
Oh crap, I need to label those textboxes better lol. My bad man, will be fixed for sure in a quick fix, gimme a sec.

EDIT: I just checked and it works fine on my end, it does save the generated template. You sure it's not saving the right textbox? There's no chance it should do that. Can you double-check that on your end?


Sorry my bad English.
So I'm in doubt, sorry.
Can I ask a few questions? Do not answer because I am NOOB rsss
1 - What is Unique ID "Randomize"?

2 - What is Unknown "Auto-Detect"?

3 - If checked the "1" and "2" the "Base Tempate" is equal to "Generated Tempate"?

4 - In my case when really "save for .txt" it actually saves the "Base Template" and does not save "Generated Template"

Thank you for listening.
001.jpg
 

NeroAngelo

Clueless Importer
Member
Joined
Dec 31, 2003
Messages
273
Trophies
2
XP
1,219
Country
Libya
Sorry my bad English.
So I'm in doubt, sorry.
Can I ask a few questions? Do not answer because I am NOOB rsss
1 - What is Unique ID "Randomize"?

2 - What is Unknown "Auto-Detect"?

3 - If checked the "1" and "2" the "Base Tempate" is equal to "Generated Tempate"?

4 - In my case when really "save for .txt" it actually saves the "Base Template" and does not save "Generated Template"

Thank you for listening.
View attachment 17347


Unique ID is basically the private ID of the cart , you need it unique to play online, better if you have your own extracted private one.
Unknown ID is the magic string of hex code only Sky3DS knows hehehe, if we figure that out , we won't need Sky3DS to make templates for us :D
 

Stephens

Member
Newcomer
Joined
Jul 8, 2013
Messages
8
Trophies
0
Age
42
XP
151
Country
Brazil
NeroAngelo thanks.
I do not know if you can ask the questions here, you can delete it against the rules.
1) If you get unique ID of my game, I can use the same in all my SKY3DS games?
2) How can I get unique ID of my game? Just got SKY3DS, is there a tutorial?
thank you very much
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,851
Country
Poland
NeroAngelo thanks.
I do not know if you can ask the questions here, you can delete it against the rules.
1) If you get unique ID of my game, I can use the same in all my SKY3DS games?
2) How can I get unique ID of my game? Just got SKY3DS, is there a tutorial?
thank you very much

You can't get a Unique ID with just a Sky card, it requires an additional hack, be it GW or some form of homebrew. This app only allows you to create headers for your games once you have that ID or, if you want to take your chances, use a Randomized one (your chances of hitting a valid one are smaller than in the world's most unfair lottery or casino, but you can try).

I've tested the code through and through, there's no chance that it's saving the Base template, you must be reading it wrong or you're just inputting the exact same values as in the base template (the Base and Generated template are stored in two completely different strings, they can't get "mixed up"). Check the first post in this thread, you'll find a useful picture that'll help you find what values go where and why. Auto-detect copies over the Unknown ID from the original template - this is what it's supposed to do, it's required for the template to work, that's why it's the same. What isn't the same are the Unique ID, Cart ID and EEPROM ID lines. If the templates really do get mixed up on your end (I wouldn't know how that's even possible) then something's really wrong with your setup.
 

UsualNoise

Well-Known Member
Member
Joined
Jan 7, 2009
Messages
119
Trophies
1
XP
617
Country
United States
I may be missing something, but in the first box I selected the template0324.txt downloaded from Sky3DS and get "Template file is invalid!" I tried with a couple older versions and get the same message. Am I missing something obvious?
 

Stephens

Member
Newcomer
Joined
Jul 8, 2013
Messages
8
Trophies
0
Age
42
XP
151
Country
Brazil
I may be missing something, but in the first box I selected the template0324.txt downloaded from Sky3DS and get "Template file is invalid!" I tried with a couple older versions and get the same message. Am I missing something obvious?


Remove blank lines from the .txt file to the symbols ** and save the file and test again.
 

Stephens

Member
Newcomer
Joined
Jul 8, 2013
Messages
8
Trophies
0
Age
42
XP
151
Country
Brazil
You can't get a Unique ID with just a Sky card, it requires an additional hack, be it GW or some form of homebrew. This app only allows you to create headers for your games once you have that ID or, if you want to take your chances, use a Randomized one (your chances of hitting a valid one are smaller than in the world's most unfair lottery or casino, but you can try).

I've tested the code through and through, there's no chance that it's saving the Base template, you must be reading it wrong or you're just inputting the exact same values as in the base template (the Base and Generated template are stored in two completely different strings, they can't get "mixed up"). Check the first post in this thread, you'll find a useful picture that'll help you find what values go where and why. Auto-detect copies over the Unknown ID from the original template - this is what it's supposed to do, it's required for the template to work, that's why it's the same. What isn't the same are the Unique ID, Cart ID and EEPROM ID lines. If the templates really do get mixed up on your end (I wouldn't know how that's even possible) then something's really wrong with your setup.



I formatted my pc and solved the problem of saving .txt file. rssss

One last question I promise rsss
What happens if my unique ID is not correct, run risk of being banned or prevented from playing online forever? Or once you have a unique valid ID again I usually play online?

thank you very much
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,851
Country
Poland
I formatted my pc and solved the problem of saving .txt file. rssss

One last question I promise rsss
What happens if my unique ID is not correct, run risk of being banned or prevented from playing online forever? Or once you have a unique valid ID again I usually play online?

thank you very much
If the Unique ID is invalid, it won't work Online. If it's a banned Unique ID or one that's used by more than one system at the same time, you may get banned. The safest bet is obtaining a private ID.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Any reason why I'd be getting this happening when i try to open MH4U rom? @[user]Foxi4[/user]

Full error code in spoiler.

http://i.imgur.com/10B3wh4.jpg

EDIT: I seem to have gotten it past that and it opens the rom. For some reason it would do that with the default sky3ds template open, but i just searched the template file for the game ID and copied/pasted only that section to a new file and opened that instead and the rom opens and i can edit away. :)

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at SkyArmyKnife.Form1.button2_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Sky Army Knife
Assembly Version: 1.0.5558.38773
Win32 Version:
CodeBase: file:///C:/Users/teron_000/Desktop/Sky3ds/Sky%20Army%20Knife%20v.1.4.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
  • Like
Reactions: Foxi4

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,851
Country
Poland
That's odd. It seems to be trying to load data beyond the specified range and borks out as it fails. I'll investigate, but it really shouldn't be doing that. Which MH4U ROM is it and have you altered the original template in any way?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BigOnYa @ BigOnYa: Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi