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

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,797
Country
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 anyways. Which MH4U ROM is it and have you altered the original template in any way?

EU Contrast scene release (trimmed). Only thing i did to the original template after downloading it was removing the couple of blank lines at the top that prevented it from being opened in sky army knife. Other than that nothing was changed in it.

I did get it to work though as per my edit in previous post which is kinda odd that it worked alone in its own txt file.
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
29,927
Trophies
3
Location
Gaming Grotto
XP
28,381
Country
Poland
EU Contrast scene release (trimmed). Only thing i did to the original template after downloading it was removing the couple of blank lines at the top that prevented it from being opened in sky army knife. Other than that nothing was changed in it.

I did get it to work though as per my edit in previous post which is kinda odd that it worked alone in its own txt file.
Is the error repeatable or did it happen just once?

EDIT: Sorry for all the questions, I'm just trying to figure out what could've caused this and my only idea is that the template file is longer than the maximum length of the string, but that's unlikely and poses some difficulties for the future, plus it would happen with all games, not just this one.
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
29,927
Trophies
3
Location
Gaming Grotto
XP
28,381
Country
Poland
Thanks for the detailed report, it does help. Looking into it now. :)

UPDATE: The bug *was* repeatable and did occur on my end as well, I have no idea what caused it though. The template for this game (CTR-P-BFGP) starts with the same magic, has the same length and ends with the same terminating characters as every other template on the list, there's no real reason why it wouldn't load and yet somehow it just refuses. I'm confused. Anywho, I've fixed the problem by shortening the string length (now it doesn't load the terminating white signs, I'm injecting them myself during generation instead), it seems to load the ROM fine now. Can you please test this Quick Fix version on your end before I publish it?

EDIT: Problem found - you forgot a newline again, Sky3DS. :angry:

http://filetrip.net/3ds-downloads/utilities/download-sky-army-knife-v-1-4-1-f33083.html
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,797
Country
Thanks for the detailed report, it does help. Looking into it now. :)

UPDATE: The bug *was* repeatable and did occur on my end as well, I have no idea what caused it though. The template for this game (CTR-P-BMRP) starts with the same magic, has the same length and ends with the same terminating characters as every other template on the list, there's no real reason why it wouldn't load and yet somehow it just refuses. I'm confused. Anywho, I've fixed the problem by shortening the string length (now it doesn't load the terminating white signs, I'm injecting them myself during generation instead), it seems to load the ROM fine now. Can you please test this Quick Fix version on your end before I publish it?

http://filetrip.net/dl?5OTFabqSdX

Just tested a few times, seems to have fixed the issue. :) The title ID you listed above ^ is different to mine (CTR-P-BFGP) though or maybe it was a typo.

But yes your quick fix seems to have done the job. :)
 
  • Like
Reactions: Foxi4

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
29,927
Trophies
3
Location
Gaming Grotto
XP
28,381
Country
Poland
Just tested a few times, seems to have fixed the issue. :) The title ID you listed above ^ is different to mine (CTR-P-BFGP) though or maybe it was a typo.

But yes your quick fix seems to have done the job. :)
Typo on my end, it is BFGP. Herp-a-derp. :P Good to hear that it's working now, I'll upload the new version, thanks!

EDIT: Yeeeaahh, I finally found the problem - the template file is at fault. Every template entry ends with two newlines (\r\n\r\n) while the CTR-P-BFGP does not - the string loader got confused because it reached EOF when it shouldn't have. Thanks for f*cking up the template file again, Sky! :rofl2: Doesn't matter now anyways, the spacing shouldn't be a problem anymore.
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
29,927
Trophies
3
Location
Gaming Grotto
XP
28,381
Country
Poland
haha figured it was a typo. :)

Hopefully my sky arrives tomorrow so i can see if my template making is actually working. Sky3ds is all new to me, so still figuring things out. Have had a gateway for ages though.
They should work absolutely fine. Sky3DS is super-easy to use, you shouldn't run into any problems. The only thing you need to keep in mind is avoiding online unless you have your own private Unique ID for Online games or you feel like taking a gamble and using the Randomize tool. :P
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,797
Country
They should work absolutely fine. Sky3DS is super-easy to use, you shouldn't run into any problems. The only thing you need to keep in mind is avoiding online unless you have your own private Unique ID for Online games or you feel like taking a gamble and using the Randomize tool. :P

Yeah i have a few legit carts i can use the header from, so no real issue with public headers. :)

I guess it doesn't matter which header i use as i only need the unique id correct? All other details are already in the template for me to read and select in the appropriate boxes in army knife if I'm looking at things right.
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
29,927
Trophies
3
Location
Gaming Grotto
XP
28,381
Country
Poland
Yeah i have a few legit carts i can use the header from, so no real issue with public headers. :)

I guess it doesn't matter which header i use as i only need the unique id correct? All other details are already in the template for me to read and select in the appropriate boxes in army knife if I'm looking at things right.
It doesn't matter which one you use as long as it's private, it can even be an offline game.
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
29,927
Trophies
3
Location
Gaming Grotto
XP
28,381
Country
Poland
Hello, can the function "Random" Unique ID can generate a valid header ?
It can, but your chances are slim to none. It merely picks completely random values and strings them together - if you're lucky, a game with that ID exists and you'll connect, if not, you'll get an error and no harm is done. Only Nintendo has a list of valid ID's so your chances are 255 to the 16th power versus the number of cartridges manufactured to date, meaning worse than the worst lottery, but "possible".
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
29,927
Trophies
3
Location
Gaming Grotto
XP
28,381
Country
Poland
when I open the tool and select the template appears, template file is invalid.
what am I doing wrong?
Read the thread and find out, this question was already answered. ;) Seriously though, you need to delete the first two empty lines of the template in Notepad - for some reason Sky3DS put two empty lines in the beginning of their latest templates which throws SAK off as it can't check template magic. I'm thinking of adjusting the code to account for this, but who knows when they'll change that - they're not very tidy with their template files.
 

Maicon

New Member
Newbie
Joined
Mar 26, 2015
Messages
3
Trophies
0
Age
32
Location
Lavras, Brazil
XP
31
Country
Brazil
Read the thread and find out, this question was already answered. ;) Seriously though, you need to delete the first two empty lines of the template in Notepad - for some reason Sky3DS put two empty lines in the beginning of their latest templates which throws SAK off as it can't check template magic. I'm thinking of adjusting the code to account for this, but who knows when they'll change that - they're not very tidy with their template files.


thanks and good job
 

RennyFlame

Well-Known Member
Newcomer
Joined
Mar 19, 2015
Messages
93
Trophies
0
Age
28
Location
Georgia
XP
116
Country
United States
It can, but your chances are slim to none. It merely picks completely random values and strings them together - if you're lucky, a game with that ID exists and you'll connect, if not, you'll get an error and no harm is done. Only Nintendo has a list of valid ID's so your chances are 255 to the 16th power versus the number of cartridges manufactured to date, meaning worse than the worst lottery, but "possible".



I took a Smash Bros rom, put it in this tool, randomized the Unique ID like 10 times, autodetected the Unknown ID, saved to txt and then put the game on my card using that template...I went online and..it worked?

So I tested my luck and thought, there's no way I could possibly be that lucky, so I opened up the template file manually and just typed in a bunch of random characters that I figured would be not random enough to work and....that worked too?

I'm confused. The very first line above the three rows of FFs is the header string right? The one that allows you to go online? Did I really just create a random header that worked and also found a random header that worked?
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
29,927
Trophies
3
Location
Gaming Grotto
XP
28,381
Country
Poland
RennyFlame ...did you change the template to the new one in DiskWriter? If you have, congratulations, you found a working Unique ID, two in fact. If not, you flashed the game with Sky's public ID and may have screwed yourself.

As for the hex data, both the cart ID and the unique ID have to be valid to connect, check the chart in the OP.
 

RennyFlame

Well-Known Member
Newcomer
Joined
Mar 19, 2015
Messages
93
Trophies
0
Age
28
Location
Georgia
XP
116
Country
United States
RennyFlame ...did you change the template to the new one in DiskWriter? If you have, congratulations, you found a working Unique ID, two in fact. If not, you flashed the game with Sky's public ID and may have screwed yourself.


Yeah, I'm positive I changed it to the different template in DiskWriter. To make absolutely sure I was positive I did it, I changed it to a blank template that wouldn't read any game, and then I changed it to the one with the random ass Unique ID. Put it on the sky and well...It worked. Both of them.
 

Foxi4

Endless Trash
OP
Global Moderator
Joined
Sep 13, 2009
Messages
29,927
Trophies
3
Location
Gaming Grotto
XP
28,381
Country
Poland
Yeah, I'm positive I changed it to the different template in DiskWriter. To make absolutely sure I was positive I did it, I changed it to a blank template that wouldn't read any game, and then I changed it to the one with the random ass Unique ID. Put it on the sky and well...It worked. Both of them.
Well, this just means you're a magnificent lucky bastard, I suppose. Just to be sure though I'd dump the game from the Sky cart via DiskWriter and check if the ID is used by the game and you didn't mess up. HxD will help you find the data. If it does work then wow, talk about Las Vegas kind of luck, buy a lottery ticket or something cause you're on a roll. XD
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Skelletonike @ Skelletonike:
    3h left until work finishes, bah
  • Skelletonike @ Skelletonike:
    link doesn't work
    +2
  • Skelletonike @ Skelletonike:
    1H left, such a slow week.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Okay, I had spaghetti :P
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
    K3N1 @ K3N1: Plug in*