ROM Hack Pokemon Sun and Moon GARC files

Giodude

GBAtemp's official rock
OP
Member
Joined
May 17, 2015
Messages
5,094
Trophies
1
Age
23
Location
New York
XP
2,761
Country
United States
So apparently the sun and moon demo has been datamined to show that every pokemon exists within the game. This proves it can be unpacked. I've been using garc unpacker to extract a/0/2 to replace the playermodel, but i keep getting errors. I can unpack the ORAS files fine, so it must be an issue with sun and moon's GARC files. Has anybody gotten past these or know how to unpack the sun and moon garc files?
 

Giodude

GBAtemp's official rock
OP
Member
Joined
May 17, 2015
Messages
5,094
Trophies
1
Age
23
Location
New York
XP
2,761
Country
United States

Giodude

GBAtemp's official rock
OP
Member
Joined
May 17, 2015
Messages
5,094
Trophies
1
Age
23
Location
New York
XP
2,761
Country
United States
Hey guys, I've looked into the source code of GARC Unpacker and I've pretty sure I understand what's going on in the header. Give me a few minutes to see if I can make up a new GARC Unpacker.
either way, apparently it uses a different model format as well, but thank you im gonna need this too.
 

goteniai

Active Member
Newcomer
Joined
Oct 18, 2016
Messages
39
Trophies
0
Age
30
XP
86
Country
United States

goteniai

Active Member
Newcomer
Joined
Oct 18, 2016
Messages
39
Trophies
0
Age
30
XP
86
Country
United States
Guys, I failed=.= Writing it back seems to be much more difficult. But I've sent my work to the author of pk3ds. See if he can come up with something.
 

vgmoose

Well-Known Member
Member
Joined
Jan 31, 2016
Messages
360
Trophies
1
Website
github.com
XP
3,060
Country
United States
Hey guys, try this out. Up to now, I still don't understand several bytes. The new GARC has a longer header storing some extra stuff. But as long as I don't write back, it should be fine. And then I'll move onto the encryption part.

https://drive.google.com/file/d/0B7_vosH0Fm0yNkF5clZZSHlwOFE/view?usp=sharing
Very cool! Thank you for this. I tried a small change to fix the header thing, but in the end it only worked on some of the italian garcs. What did I miss in my change? https://github.com/vgmoose/GARC-Unpack/commit/b39fa557351170089cb0640d384b7b536ff2571f (probably something to do with the bytes I ignored)

Guys, I failed=.= Writing it back seems to be much more difficult. But I've sent my work to the author of pk3ds. See if he can come up with something.
What about packing in particular makes it that much more difficult than unpacking?

Also, have you seen the other project that does both packing/unpacking by kwsch here? https://github.com/kwsch/GARCTool/blob/master/GARCTool/GARCTool.cs#L122 Maybe this can just be offset for the new header?
 

goteniai

Active Member
Newcomer
Joined
Oct 18, 2016
Messages
39
Trophies
0
Age
30
XP
86
Country
United States
Very cool! Thank you for this. I tried a small change to fix the header thing, but in the end it only worked on some of the italian garcs. What did I miss in my change? https://github.com/vgmoose/GARC-Unpack/commit/b39fa557351170089cb0640d384b7b536ff2571f (probably something to do with the bytes I ignored)

Cool! It's always nice to see others make contribution to this. Please take at a look at this page. I put my changed Form1.cs there.
https://github.com/kwsch/pk3DS/issues/28

What about packing in particular makes it that much more difficult than unpacking?

Also, have you seen the other project that does both packing/unpacking by kwsch here? https://github.com/kwsch/GARCTool/blob/master/GARCTool/GARCTool.cs#L122 Maybe this can just be offset for the new header?

The GARC-Unpack code also has the packing stuff. It's just that there's something new. You can take a look at the above page as well. Hopefully it helps.
 
  • Like
Reactions: vgmoose

vgmoose

Well-Known Member
Member
Joined
Jan 31, 2016
Messages
360
Trophies
1
Website
github.com
XP
3,060
Country
United States

Sliter

Well-Known Member
Member
Joined
Dec 7, 2013
Messages
3,264
Trophies
0
Location
ᕕ( ᐛ )ᕗ
XP
1,771
Country
Brazil
Haha, my role is more of a translator, so it doesn't affect me that much. I'm sorry to hear that you cannot get your Great Maxie right at the moment xD.

Take a look at this:
https://github.com/kwsch/pk3DS/issues/28
to what is the langauge you gonna translate? I want do it as well but I don't know how to get to the graphics and texts :x

Here's a repo with some text files locations and instructions, using @goteniai's tool and xytext: https://github.com/vgmoose/sm-demo-text
where are the korean, chinese and chinese? xD
ok, awesome that it'salready already extracted! Thanks!!
now I need to find the graphics!
And to import them again?
 
Last edited by Sliter,

goteniai

Active Member
Newcomer
Joined
Oct 18, 2016
Messages
39
Trophies
0
Age
30
XP
86
Country
United States
to what is the langauge you gonna translate? I want do it as well but I don't know how to get to the graphics and texts :x


where are the korean, chinese and chinese? xD
ok, awesome that it'salready already extracted! Thanks!!
now I need to find the graphics!
And to import them again?

I translated XY and ORAS into Chinese. Btw, the new official Chinese translation for Sun and Moon sucks. I'm not sure if I'm gonna optimize it. But I'll replace the font for sure. The graphics are kinda tricky to get, but there's a general rule. When you extract files from the garc, if it contains the graphs you need to translate, you always end up with the same number of files as the languages. Maybe sometimes there's one or two more. And the extracted files should be compressed as well. See if you can use the old pk3ds to extract them. I have no idea how I can pack the new garcs. The old one cannot be used as I just tested it.

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

Here's a repo with some text files locations and instructions, using @goteniai's tool and xytext: https://github.com/vgmoose/sm-demo-text

For models it looks like Ohana has recently had some changes? So maybe it can be coerced into loading something, otherwise looks in progress.

Nice job, man. I haven't gone that far yet. I'll definitely take a look at the text file and update my XY and ORAS.
 
Last edited by goteniai,

Sliter

Well-Known Member
Member
Joined
Dec 7, 2013
Messages
3,264
Trophies
0
Location
ᕕ( ᐛ )ᕗ
XP
1,771
Country
Brazil
I translated XY and ORAS into Chinese. Btw, the new official Chinese translation for Sun and Moon sucks. I'm not sure if I'm gonna optimize it. But I'll replace the font for sure. The graphics are kinda tricky to get, but there's a general rule. When you extract files from the garc, if it contains the graphs you need to translate, you always end up with the same number of files as the languages. Maybe sometimes there's one or two more. And the extracted files should be compressed as well. See if you can use the old pk3ds to extract them. I have no idea how I can pack the new garcs. The old one cannot be used as I just tested it.
really? wow I'm a big fan of chinese pokemon fan translations!(even not being able to read it :x) I even admired the logos (do you have one for XY and ORAS? ) and how you guys ADD so much hanzi to the game without replacing existing font! I even wanted to make my platinum translation compatible with the Hanzi just because I admired it, even not really going to be useful there anyway XD.
And every pokemon game is translated, it is awesome hahah I want to follow your progress there if you don't mind.
Sorry for this fan hype XD
I don't know how different is the oficial translation but I heard some fans wasn't happy with some names changes :/

Well for the graphic/file hunting I'm totally noob at 3DS games so I have to learn the very starte of what I do when I get the decripted cia/cxi in hands :v
 

goteniai

Active Member
Newcomer
Joined
Oct 18, 2016
Messages
39
Trophies
0
Age
30
XP
86
Country
United States
really? wow I'm a big fan of chinese pokemon fan translations!(even not being able to read it :x) I even admired the logos (do you have one for XY and ORAS? ) and how you guys ADD so much hanzi to the game without replacing existing font! I even wanted to make my platinum translation compatible with the Hanzi just because I admired it, even not really going to be useful there anyway XD.
And every pokemon game is translated, it is awesome hahah I want to follow your progress there if you don't mind.
Sorry for this fan hype XD
I don't know how different is the oficial translation but I heard some fans wasn't happy with some names changes :/

Well for the graphic/file hunting I'm totally noob at 3DS games so I have to learn the very starte of what I do when I get the decripted cia/cxi in hands :v

Haha, we definitely have to replaced the font. xD We got rid of the Korean characters and some of the accent letters. And we only use the hanzi in our script instead of all the hanzi. Otherwise the font size would be too big to load. Even after this, we have to get the font height a little bit smaller…

Man, don't worry about this. I learned all of the things within a few days (2 or 3 days I guess) assuming I have some programming experience. This is our page for Chinese translation for XY. There is a ORAS you can find but it's not translated by me. The quality isn't so good, so people ask me to make another one. This one hasn't been done yet. Do not try to include hanzi as it would ruin your game =.=

http://tieba.baidu.com/p/4777183519?lp=5027&mo_device=1&is_jingpost=1

As for Sun and Moon, people in Chinese mainland, Hong Kong and Taiwan have different accents and word choice. So it's really hard to make a name with everyone satisfied. Hong Kong people are the ones who suffer the most. While I'm totally fine with the new name, the translated scripts really suck..... Some of them don't even make sense, and I can even guess out what Japanese sentence was before the translation. The English translation is really good though.
 
Last edited by goteniai,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/@legolambs