ROM Hack Pokemon Sun and Moon GARC files

goteniai

Active Member
Newcomer
Joined
Oct 18, 2016
Messages
39
Trophies
0
Age
30
XP
86
Country
United States
Okay, good news! I've successfully been able to unpack, edit, and repack the text files!

Tool here:
https://github.com/vgmoose/GARC-Unpack/releases/

And here's a 2006-esque ROM hack demonstrating it:


To fix the ROM packing, I had to subtract 4 from the offset outside of the modulus. (see source) I know it works on text, not sure about other files.


Sorry if my DUMMY MESSAGES annoys people. It's just because I have a bad habit to delete messages. I cannot fall into asleep without doing this. The subtraction of 4 works for the font files as well. I think the text case is easy somehow, but for the font file, the BTAF and OTAF no longer have the same file number. It's so annoying... I want to replace the font, but it sort of failed. Anyway, I've got the new names from this one, and I'll spend time working on porting these to my XY and ORAS.

--------------------- MERGED ---------------------------

i click on import button then i select the changed textures but the program won't import my modified textures

SORRY FOR MY BAD ENGLISH

For this one, I think only the old Ohana3DS handles the job.
 

vgmoose

Well-Known Member
Member
Joined
Jan 31, 2016
Messages
360
Trophies
1
Website
github.com
XP
3,060
Country
United States
Yep, to patch the rom, I used @Asia81's HackingToolkit3ds.exe to get the 3ds builder to make a .3ds file, then used the Simple CIA tool to make it into a CIA. Is there a faster way to do this?

Sorry if my DUMMY MESSAGES annoys people. It's just because I have a bad habit to delete messages. I cannot fall into asleep without doing this. The subtraction of 4 works for the font files as well. I think the text case is easy somehow, but for the font file, the BTAF and OTAF no longer have the same file number. It's so annoying... I want to replace the font, but it sort of failed. Anyway, I've got the new names from this one, and I'll spend time working on porting these to my XY and ORAS.

My - 4 was put in a slightly different place: https://github.com/vgmoose/GARC-Unpack/blob/master/Pack/Form1.cs#L252

I noticed that your change did make the output slightly off, even on the text files, but are you saying it's still not repacked correctly with these new changes?
 

Asia81

Yuri Lover ~
Member
Joined
Nov 15, 2014
Messages
6,656
Trophies
3
Age
29
XP
3,490
Country
France
Oh. I completely forgot about that XD
or of course just use layeredfs redirection, it's what I do

--------------------- MERGED ---------------------------

Yep, to patch the rom, I used @Asia81's HackingToolkit3ds.exe to get the 3ds builder to make a .3ds file, then used the Simple CIA tool to make it into a CIA. Is there a faster way to do this?



My - 4 was put in a slightly different place: https://github.com/vgmoose/GARC-Unpack/blob/master/Pack/Form1.cs#L252

I noticed that your change did make the output slightly off, even on the text files, but are you saying it's still not repacked correctly with these new changes?
Yes
Extract cia
do what you want in it
rebuild cia

why even use 3ds builder and have a .3ds ?
 
  • Like
Reactions: vgmoose

Sliter

Well-Known Member
Member
Joined
Dec 7, 2013
Messages
3,264
Trophies
0
Location
ᕕ( ᐛ )ᕗ
XP
1,771
Country
Brazil
Sorry if my DUMMY MESSAGES annoys people. It's just because I have a bad habit to delete messages. I cannot fall into asleep without doing this. .
why? It's helpfull to get thing to read again (like you told mee fore about chinese etc )

Yep, to patch the rom, I used @Asia81's HackingToolkit3ds.exe to get the 3ds builder to make a .3ds file, then used the Simple CIA tool to make it into a CIA. Is there a faster way to do this?
I'm tring the inverse , still stuck on part1 of messing with these files XD I can't "unpack" it with HackingToolkit3DS:, It go like was ok but no folder is created õ3o it's in .3ds and was decrioted because I could run with citra
 

goteniai

Active Member
Newcomer
Joined
Oct 18, 2016
Messages
39
Trophies
0
Age
30
XP
86
Country
United States
Yep, to patch the rom, I used @Asia81's HackingToolkit3ds.exe to get the 3ds builder to make a .3ds file, then used the Simple CIA tool to make it into a CIA. Is there a faster way to do this?



My - 4 was put in a slightly different place: https://github.com/vgmoose/GARC-Unpack/blob/master/Pack/Form1.cs#L252

I noticed that your change did make the output slightly off, even on the text files, but are you saying it's still not repacked correctly with these new changes?
I haven't looked at it carefully. I'll try this one later as I'm busy porting the new translations to my old games. Thanks for your effort!

--------------------- MERGED ---------------------------

why? It's helpfull to get thing to read again (like you told mee fore about chinese etc )


I'm tring the inverse , still stuck on part1 of messing with these files XD I can't "unpack" it with HackingToolkit3DS:, It go like was ok but no folder is created õ3o it's in .3ds and was decrioted because I could run with citra
I know... One reason is that some Chinese guys started to use my tool to unpack the game. And it caused some problem in our forum. That's why I kinda regret posting my solution here.

--------------------- MERGED ---------------------------

why? It's helpfull to get thing to read again (like you told mee fore about chinese etc )


I'm tring the inverse , still stuck on part1 of messing with these files XD I can't "unpack" it with HackingToolkit3DS:, It go like was ok but no folder is created õ3o it's in .3ds and was decrioted because I could run with citra
I can help you for the unpacking. Do you have other IMs so that I can reach you?

--------------------- MERGED ---------------------------

but the problem is them doing it, not you for helping everone here :/
but idk if we can controll it without loss
I think I missed your tool o-o

IM?
Instant Message, like facebook, google plus.
 

Sliter

Well-Known Member
Member
Joined
Dec 7, 2013
Messages
3,264
Trophies
0
Location
ᕕ( ᐛ )ᕗ
XP
1,771
Country
Brazil
I know... One reason is that some Chinese guys started to use my tool to unpack the game. And it caused some problem in our forum. That's why I kinda regret posting my solution here.
but the problem is them doing it, not you for helping everone here :/
but idk if we can controll it without loss
I think I missed your tool o-o

IM?
 

vgmoose

Well-Known Member
Member
Joined
Jan 31, 2016
Messages
360
Trophies
1
Website
github.com
XP
3,060
Country
United States
Yes
Extract cia
do what you want in it
rebuild cia

why even use 3ds builder and have a .3ds ?
Oh jeez, I think I have an old version!

Here's mine:
UHys3RO.png


So it looks like that's CE and CR to patch and extract in the new one?

I haven't looked at it carefully. I'll try this one later as I'm busy porting the new translations to my old games. Thanks for your effort!
Yes, I think this should work, let me know which files it has any issues with when repacking and I can try to modify it some more.

Sorry to hear about the situation with the deleted messages :(
 

vgmoose

Well-Known Member
Member
Joined
Jan 31, 2016
Messages
360
Trophies
1
Website
github.com
XP
3,060
Country
United States
I'm tring the inverse , still stuck on part1 of messing with these files XD I can't "unpack" it with HackingToolkit3DS:, It go like was ok but no folder is created õ3o it's in .3ds and was decrioted because I could run with citra
To unpack, I have the "sm.cia" file (decrypted) and then use the "cia" option in my HackingTookit3ds.exe (looks like CE in the new one) to extract the files. When it asks "Enter the name of your decrypted CIA file (Without .cia):" I enter just "sm".

Man, you are using the old version. Go and download one xD.
Oops. :P I will update... Thank you @Asia81!
 

goteniai

Active Member
Newcomer
Joined
Oct 18, 2016
Messages
39
Trophies
0
Age
30
XP
86
Country
United States
To unpack, I have the "sm.cia" file (decrypted) and then use the "cia" option in my HackingTookit3ds.exe (looks like CE in the new one) to extract the files. When it asks "Enter the name of your decrypted CIA file (Without .cia):" I enter just "sm".


Oops. :P I will update... Thank you @Asia81!
I suppose your subtraction by 4 is this line?

offset += (uint)(((4 - fi.Length % 4) + fi.Length) - 4);

If so, I've changed this part already. Maybe you didn't have my latest version. But I'm going try your compiled version=.=
 

Sliter

Well-Known Member
Member
Joined
Dec 7, 2013
Messages
3,264
Trophies
0
Location
ᕕ( ᐛ )ᕗ
XP
1,771
Country
Brazil
To unpack, I have the "sm.cia" file (decrypted) and then use the "cia" option in my HackingTookit3ds.exe (looks like CE in the new one) to extract the files. When it asks "Enter the name of your decrypted CIA file (Without .cia):" I enter just "sm".
well it come in .3ds here :/ so I tried the .3ds (duh XD)

Instant Message, like facebook, google plus.
yes, FB and skype XD
 

CrystalLink

Active Member
Newcomer
Joined
Oct 20, 2016
Messages
40
Trophies
0
Age
29
Location
Florida
XP
74
Country
United States
They probably said something and changed it later so co one could see the original message.


How did you run the patched rom?
Also to run the rom, you pack the RomFS With RomFS Builder then use 3DS Builder to pack the RomFS, ExeFS, and ExHeader. Then load onto Flashcart or convert to CIA and install.

Use Hacktoolkit3DS
 

Sliter

Well-Known Member
Member
Joined
Dec 7, 2013
Messages
3,264
Trophies
0
Location
ᕕ( ᐛ )ᕗ
XP
1,771
Country
Brazil
What do you mean?
Yes, but only the default model parts. they are in a/1/5/4 to a/1/6/5
well I tried to replace some of the files that
What do you mean?
Yes, but only the default model parts. they are in a/1/5/4 to a/1/6/5
well I tried to replace some of the files that @Capitán Retraso named for us, but all I got was a error in citra when I tried to load the rebuild :v

I wounder if she is incomplete? or if there a way to make game choose her instead of the boy?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    fluff663 @ fluff663: hoi