ROM Hack Pokemon Sun and Moon GARC files

trainboy2019

Well-Known Member
Member
Joined
Oct 6, 2015
Messages
1,114
Trophies
0
Age
23
Location
GA
XP
1,107
Country
United States
well I tried to replace some of the files that

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?
I think she has more model parts. That could be the problem.
 

secret1234

Member
Newcomer
Joined
Nov 2, 2014
Messages
17
Trophies
0
Age
29
XP
119
Country
I tried "NPC overworld models" change.
For example, 1/6/6/029.bin(Tauros) to 1/6/6/027.bin (Success)
But 1/6/6/002.bin to 1/6/6/027.bin (Not change)
Why...?
 
  • Like
Reactions: Sliter

secret1234

Member
Newcomer
Joined
Nov 2, 2014
Messages
17
Trophies
0
Age
29
XP
119
Country
I'm sorry continuous writing.
I found a/1/8/1/dec_069/file_00006.bin etc... are may be map model.
But I don't know tool that repack dec_069 folder.
 

Sliter

Well-Known Member
Member
Joined
Dec 7, 2013
Messages
3,264
Trophies
0
Location
ᕕ( ᐛ )ᕗ
XP
1,771
Country
Brazil

Sliter

Well-Known Member
Member
Joined
Dec 7, 2013
Messages
3,264
Trophies
0
Location
ᕕ( ᐛ )ᕗ
XP
1,771
Country
Brazil
ok for the more not use fill this can be, where the banners languages :v
banner.cgfx : english, + 3D model
the rest are textures only (If i'm not wrong...)
banner2.bcmdl : French
banner3.bcmdl : German
banner4.bcmdl : Italian
banner5.bcmdl : Spanish
banner9.bcmdl : Japanese
banner11.bcmdl : French (again? )
banner14.bcmdl : Simplified Chinese
banner15.bcmdl : Korean
banner16.bcmdl : Traditional Chinese

Thanks @Queno138 for helping to identify the chinese xD

Edit> I changed the banner.cgfx to my translated logo but I tried to see it ingame and nothing, still the english logo o-o
Thanks @banzai200 !
 
Last edited by Sliter,

goteniai

Active Member
Newcomer
Joined
Oct 18, 2016
Messages
39
Trophies
0
Age
30
XP
86
Country
United States
Hey man, your solution doesn't work for the font file (0/2/5), which I'm particularly interested. For the earlier GARCs, the OTAF and BTAF have the same file number, but this is no longer the case for the font in the new GARC. If possible, could you please take some time to look at that? My packing tool here works for the text as well but failed for the fonts. I would really appreciate it if you could solve this problem xD.

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

I'm sorry continuous writing.
I found a/1/8/1/dec_069/file_00006.bin etc... are may be map model.
But I don't know tool that repack dec_069 folder.
Try pk3ds, it's supposed to be LZZZ unpacker I remember. It's in the menu.
 

secret1234

Member
Newcomer
Joined
Nov 2, 2014
Messages
17
Trophies
0
Age
29
XP
119
Country
I'm sorry.
a/1/8/1/dec_069.bin is mistake. a/0/8/1dec_069.bin is correct.
I tried pk3ds, but from file_00000.bin to file_00006.bin inside dec_069.bin can't compress.
 

hacksn5s4

Banned!
Banned
Joined
Aug 12, 2015
Messages
4,332
Trophies
0
XP
1,322
Country
weres the collsion data stored some one made an oras demo rom hack that allows you to go though walls how would you do it with the sun and moon one
 

trainboy2019

Well-Known Member
Member
Joined
Oct 6, 2015
Messages
1,114
Trophies
0
Age
23
Location
GA
XP
1,107
Country
United States
where are the pokemon in battle models stored

1/4/0 according to this list.
Also, how did you double-post without it merging?
1/0/0 ???
1/0/1 ???
1/0/2 ???
1/0/3 ???
1/0/4 empty
1/0/5 1 .ALYT
1/0/6 ???
1/0/7 empty
1/0/8 empty
1/0/9 many containers inside containers (containerception!)
1/1/0 1 .ALYT
1/1/1 ???
1/1/2 ???
1/1/3 .SESD files
1/1/4 japanese types, status and language icons
1/1/5 empty
1/1/6 empty
1/1/7 empty
1/1/8 2 .ALYT
1/1/9 1 .ALYT
1/2/0 ???
1/2/1 ???
1/2/2 1 .ALYT
1/2/3 ???
1/2/4 ???
1/2/5 empty
1/2/6 empty
1/2/7 1 .ALYT
1/2/8 empty
1/2/9 empty
1/3/0 empty
1/3/1 empty
1/3/2 plain hexagon
1/3/3 empty
1/3/4 ???
1/3/5 1 .ALYT
1/3/6 ???
1/3/7 city model parts?
1/3/8 ???
1/3/9 ???
1/4/0 trainer and pokeball models
1/4/1 ???
1/4/2 mc face?
1/4/3 mc white/gray hair?
1/4/4 ???
1/4/5 male mc backpack
1/4/6 bracelet
1/4/7 male mc pants
1/4/8 male mc cap
1/4/9 legs?
1/5/0 male mc shoes
1/5/1 male mc mounting clothes
1/5/2 male mc white tshirt
1/5/3 ???
1/5/4 mc face?
1/5/5 mc white hair?
1/5/6 butterfly model?
1/5/7 weird buggy model (?)
1/5/8 female mc bag
1/5/9 bracelet
1/6/0 white shorts
1/6/1 female mc red flower hat
1/6/2 someone's legs (?)
1/6/3 female mc shoes
1/6/4 female mc mounting clothes
1/6/5 female mc floral tshirt
1/6/6 npc and pokemon overworld models
1/6/7 ???
1/6/8 mc face?
1/6/9 mc white/gray hair?
1/7/0 ???
1/7/1 male mc backpack
1/7/2 bracelet
1/7/3 male mc pants
1/7/4 male mc cap
1/7/5 legs?
1/7/6 male mc shoes
1/7/7 male mc mounting clothes
1/7/8 male mc white tshirt
1/7/9 ???
1/8/0 mc face?
1/8/1 mc white/grey hair
1/8/2 butterfly?
1/8/3 ???
1/8/4 female mc bag
1/8/5 bracelet
1/8/6 white shorts
1/8/7 female mc red flower hat
1/8/8 legs?
1/8/9 female mc shoes
1/9/0 female mc mounting clothes
1/9/1 female mc floral tshirt
1/9/2 1 .SMDH file
1/9/3 empty
1/9/4 ???
1/9/5 question mark, pikachu and greninja images
1/9/6 empty
1/9/7 ??? (many containers)
1/9/8 .ALYT files
1/9/9 low poly pokeballs (overworld model?)
2/0/0 empty
2/0/1 empty
2/0/2 ???
2/0/3 empty
2/0/4 ribbons?
2/0/5 ???
2/0/6 ???
2/0/7 ???
2/0/8 empty
2/0/9 ???
2/1/0 ???
2/1/1 ???
2/1/2 1 .ALYT
2/1/3 1 .DVLB
2/1/4 ???
2/1/5 ???
2/1/6 empty
2/1/7 empty
2/1/8 ???
2/1/9 empty
2/2/0 1 .ALYT
2/2/1 empty
2/2/2 empty
2/2/3 ???
2/2/4 ???
2/2/5 ???
2/2/6 ???
2/2/7 1 .ALYT
2/2/8 some random unreadable coloured text
2/2/9 model?
2/3/0 1 .ALYT
2/3/1 1 .ALYT
2/3/2 1. ALYT
2/3/3 ???
2/3/4 ???
2/3/5 ???
2/3/6 854 pokemon images
2/3/7 1 .ALYT
2/3/8 1 .ALYT
 

vgmoose

Well-Known Member
Member
Joined
Jan 31, 2016
Messages
360
Trophies
1
Website
github.com
XP
3,058
Country
United States
Hey man, your solution doesn't work for the font file (0/2/5), which I'm particularly interested. For the earlier GARCs, the OTAF and BTAF have the same file number, but this is no longer the case for the font in the new GARC. If possible, could you please take some time to look at that? My packing tool here works for the text as well but failed for the fonts. I would really appreciate it if you could solve this problem xD.
Dang, that's too bad. I took a look at the file, and it seems like the issue may be with the unpacking rather than the packing? For me, my tool crashes when trying to extract that file (maybe you can PM me your latest?). As a result, it extracts 8 files, but the last one (7) looks incorrect.

And I think it has to do with the "naming" of the GARC (whatever this means). In the "unpacking" code there's a comment about how the part that reads the otaf entries "names" is "wrong anyway". And then the rest of the code makes the assumption that the first file has the value 10000000, the second file 2000000, third 30000000, and so on. But in the file you mentioned, the 8th file, which would normally be 7000000 is instead D000000. To me, this seems to imply that the extracted files from the GARC should be (1, 2, 3, 4, 5, 6, C). I also noticed that the btaf section size changes, and is offset by apparently the sum of the "filename values". So I think that that these are more than "names" and actually play some role in calculating offsets for things.

Anyway... maybe I'm totally off base here, or this part is obvious, and I'm not really certain on much of my terminology... but I'm going to keep trying different things to try to get it to unpack and repack correctly.
 

goteniai

Active Member
Newcomer
Joined
Oct 18, 2016
Messages
39
Trophies
0
Age
30
XP
86
Country
United States
Dang, that's too bad. I took a look at the file, and it seems like the issue may be with the unpacking rather than the packing? For me, my tool crashes when trying to extract that file (maybe you can PM me your latest?). As a result, it extracts 8 files, but the last one (7) looks incorrect.

And I think it has to do with the "naming" of the GARC (whatever this means). In the "unpacking" code there's a comment about how the part that reads the otaf entries "names" is "wrong anyway". And then the rest of the code makes the assumption that the first file has the value 10000000, the second file 2000000, third 30000000, and so on. But in the file you mentioned, the 8th file, which would normally be 7000000 is instead D000000. To me, this seems to imply that the extracted files from the GARC should be (1, 2, 3, 4, 5, 6, C). I also noticed that the btaf section size changes, and is offset by apparently the sum of the "filename values". So I think that that these are more than "names" and actually play some role in calculating offsets for things.

Anyway... maybe I'm totally off base here, or this part is obvious, and I'm not really certain on much of my terminology... but I'm going to keep trying different things to try to get it to unpack and repack correctly.
Thanks for taking a look at this. When using our tools to do the packing, the file name becomes 7000000, and the btaf file number becomes 8, which is supposed be a greater value. I just don't know how we can use 8 files at hand to fill in more files in the archive. I don't have any time for this anymore, but if you are interested, you can continue working on this. I think this is the biggest mystery around the new GARC file. P.S. In the header, you might notice that I denote two 32-bit ints to store the size of the biggest file. This is wrong. The first one is the size of the biggest file, which I'm pretty sure about. I guess the second one is the size of the second biggest file. You can dig it up if you want. And after finishing these two up, you can test around all the files. And with this done, you can release your tool for general use.
 

Sliter

Well-Known Member
Member
Joined
Dec 7, 2013
Messages
3,264
Trophies
0
Location
ᕕ( ᐛ )ᕗ
XP
1,771
Country
Brazil
no clue yet about text graphics? I'm a bit lost here , I tried to sue the garc thing to try to explore the files and see if I could find somehing but all I got was " bin" files that I could't open õ3o
 

goteniai

Active Member
Newcomer
Joined
Oct 18, 2016
Messages
39
Trophies
0
Age
30
XP
86
Country
United States
no clue yet about text graphics? I'm a bit lost here , I tried to sue the garc thing to try to explore the files and see if I could find somehing but all I got was " bin" files that I could't open õ3o
For the graphics, they are stored in dec_0x.bin files for XY and ORAS. Try to see if you can find these files. If so, try using pk3ds's unpack module to extract it and pack it.

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

I'm sorry.
a/1/8/1/dec_069.bin is mistake. a/0/8/1dec_069.bin is correct.
I tried pk3ds, but from file_00000.bin to file_00006.bin inside dec_069.bin can't compress.
Interesting, I haven't got a chance to take a look at it yet.
 
  • Like
Reactions: Sliter

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: Probably like a 10,000 dollar build back then