Pokemon Sun and Moon GARC files

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by Giodude, Oct 18, 2016.

  1. Giodude
    OP

    Giodude Ruler of Italy

    Member
    GBAtemp Patron
    Giodude is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,740
    1,077
    May 17, 2015
    United States
    New York
    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?
     


  2. goteniai

    goteniai Member

    Newcomer
    39
    32
    Oct 18, 2016
    United States
    Dummy Message
     
    Last edited by goteniai, Oct 21, 2016
  3. Giodude
    OP

    Giodude Ruler of Italy

    Member
    GBAtemp Patron
    Giodude is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,740
    1,077
    May 17, 2015
    United States
    New York
    well i've got bad news: https://twitter.com/RandomTBush/status/788483134337617920
     
  4. goteniai

    goteniai Member

    Newcomer
    39
    32
    Oct 18, 2016
    United States
    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
     
    Giodude likes this.
  5. goteniai

    goteniai Member

    Newcomer
    39
    32
    Oct 18, 2016
    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.
     
    Tomato Hentai, Slowbeatle and Giodude like this.
  6. Giodude
    OP

    Giodude Ruler of Italy

    Member
    GBAtemp Patron
    Giodude is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,740
    1,077
    May 17, 2015
    United States
    New York
    either way, apparently it uses a different model format as well, but thank you im gonna need this too.
     
  7. Slowbeatle

    Slowbeatle Advanced Member

    Newcomer
    70
    3
    Jul 29, 2014
    Trujillo Alto
    AWESOME NEWS
     
  8. goteniai

    goteniai Member

    Newcomer
    39
    32
    Oct 18, 2016
    United States
  9. Slowbeatle

    Slowbeatle Advanced Member

    Newcomer
    70
    3
    Jul 29, 2014
    Trujillo Alto
    extracted files like a charm....not to extract those darn bin files to get the pokemon models
     
  10. goteniai

    goteniai Member

    Newcomer
    39
    32
    Oct 18, 2016
    United States
    I guess you can try the earlier pk3ds for the bin files. I can extract the font files already. xD
     
  11. Giodude
    OP

    Giodude Ruler of Italy

    Member
    GBAtemp Patron
    Giodude is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,740
    1,077
    May 17, 2015
    United States
    New York
    According to the link i posted earlier. Importing models is possible, but we arent there yet
     
  12. goteniai

    goteniai Member

    Newcomer
    39
    32
    Oct 18, 2016
    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.
     
  13. vgmoose

    vgmoose GBAtemp Regular

    Member
    226
    618
    Jan 31, 2016
    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)

    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?
     
  14. goteniai

    goteniai Member

    Newcomer
    39
    32
    Oct 18, 2016
    United States
    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.
     
    vgmoose likes this.
  15. Jackson Ferrell

    Jackson Ferrell Naked Banana

    Member
    233
    53
    Nov 28, 2015
    Australia
    How'd you obtain the text files? And have you figured out a way to get the models yet?
     
  16. vgmoose

    vgmoose GBAtemp Regular

    Member
    226
    618
    Jan 31, 2016
    United States
    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.
     
    Jackson Ferrell and Sliter like this.
  17. Sliter

    Sliter GBAtemp Psycho!

    Member
    3,020
    787
    Dec 7, 2013
    Brazil
    ᕕ( ᐛ )ᕗ
    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?
     
    Last edited by Sliter, Oct 19, 2016
  18. goteniai

    goteniai Member

    Newcomer
    39
    32
    Oct 18, 2016
    United States
    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.

    — Posts automatically merged - Please don't double post! —

    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, Oct 19, 2016
  19. Sliter

    Sliter GBAtemp Psycho!

    Member
    3,020
    787
    Dec 7, 2013
    Brazil
    ᕕ( ᐛ )ᕗ
    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
     
  20. goteniai

    goteniai Member

    Newcomer
    39
    32
    Oct 18, 2016
    United States
    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, Oct 19, 2016