[HELP] PW - Dual Destines gmd files

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by ZackNeji, Mar 15, 2015.

  1. ZackNeji
    OP

    ZackNeji Newbie

    Newcomer
    9
    0
    Feb 2, 2013
    Hi.
    I'm trying to translate PW5 to my lenguage.
    But I have problems with this kind of files.
    This files should be the game script, but I can`t extract them. Can anyone help me?

    thx.
     
  2. Feroz El Mejor

    Feroz El Mejor GBAtemp Fan

    Member
    326
    68
    Jan 26, 2014
    Spain
    Villa Raíz (Hoenn)
    Interesting, I can't help you, but I like to see the progress...
     
  3. MRJPGames

    MRJPGames Pretty great guy

    Member
    1,111
    717
    Aug 17, 2013
    Netherlands
    The Netherlands
    I personally don't have anything against it, but if those files are from PW:DD you should remove the link as you're not allowed to share those on GBATemp.

    Furthermore I don't know what to do with those files and wish you luck in the translation of the game!
     
  4. david_keen

    david_keen Member

    Newcomer
    25
    2
    Jun 30, 2015
    any luck with the GMDs?, (¿hubo suerte con los GMDs?)

    i am stuck too with that files.
     
  5. Melon__Bread

    Melon__Bread ~It's A Magik~

    Member
    710
    400
    Dec 9, 2013
    United States
    Welcome to the world of rom hacking!
    Where many games have their own file format where you need to learn how to edit the files
     
  6. david_keen

    david_keen Member

    Newcomer
    25
    2
    Jun 30, 2015
  7. sarkwalvein

    sarkwalvein More coffee, please!

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

    Our Patreon
    5,223
    5,564
    Jun 29, 2007
    Germany
    Niedersachsen
    It seems to use Python 3. So:
    • Install Python 3
    • Put the py files in some folder
    • Create the "assets", "c", "j", and "import" folders in that same folder
    • Put your gmd files in the assets folder
    • Run (double click) the export_gmd.py script
    • Find and edit your exported text scripts in the j folder (perhaps)
    For rebuilding the gmd files double click the import_gmd.py script

    If it doesn't work as expected, take a better look at the py files (I just took a brief look).
     
  8. david_keen

    david_keen Member

    Newcomer
    25
    2
    Jun 30, 2015
    always get this error.
     
  9. sarkwalvein

    sarkwalvein More coffee, please!

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

    Our Patreon
    5,223
    5,564
    Jun 29, 2007
    Germany
    Niedersachsen
    PM me a link to some gmd file to test and I will check on my PC.
     
  10. sarkwalvein

    sarkwalvein More coffee, please!

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

    Our Patreon
    5,223
    5,564
    Jun 29, 2007
    Germany
    Niedersachsen
    It actually requires Python 2.7 (not Python 3, my bad).
    You also have to create a "p" folder.
    In my side it works, executes, but doesn't decode shit.
    It seems not to find any text string, all the "text string" decoded files in the j folder are 0 bytes.
    Are there more gmd files? Perhaps the text is somewhere else?

    EDIT: That Python script doesn't do anything special trying do decode the text, and I can't figure out what coding they have used. Out of luck.
     
    Last edited by sarkwalvein, Jul 8, 2015
  11. david_keen

    david_keen Member

    Newcomer
    25
    2
    Jun 30, 2015
    the script do some things that i try to understand how, the export.py get the code still encrypted, but get the "text" in the folder "p" but "j" get 0 kbs because cant decrypt it.

    when i try to use, import.py, if i copy the "p" files in "c" give me a incomplete .gmd but even if is incomplete, is with the same codification i mean

    this lines dont appears
    "|sc6../xgu)mv:<zkzl~b'#2..?ydt/jhxgyu#!!(..:7n.8a{~9lyl<dfxe&.[el4isj8/xch}..n.2mrmp*{AU+3?-,1/'j{~{op...,jub)78"Ue:$'9=i.z...."

    and again the same code.
    and this lines dont appears
    "|t;CU2`a.~Mu;>x3kbc1|afc%.E?i`tc)S7-0gnp+9a!l>|rf!../yaq+~h7m/qcgn7!9t,.B~s4?.x|?~xp}yeqo..z/F&r{sg>:v#...l0".yf}o`t/~}uyhb>..&&):7n.tcxg7j2l0e3rh"...@4.th/hgr..:^n(sq4o1j0l9da1#".....Iisz{gch)[g!3~m4h?i0AU..?-m.k-{qx.r?k/kc(."

    if the script is rewriting right but not the complete text, so now i am reading it to know what is failing, and also why the code with "|" is always the parts that dont rewrite.
     
  12. sarkwalvein

    sarkwalvein More coffee, please!

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

    Our Patreon
    5,223
    5,564
    Jun 29, 2007
    Germany
    Niedersachsen
    Can you modify some short string, reinsert it in the game, find what string changed in the text and then write down here the decoded full string along with the corresponding coded one.
    Perhaps that can give a clue about how is it coded.
     
  13. MRJPGames

    MRJPGames Pretty great guy

    Member
    1,111
    717
    Aug 17, 2013
    Netherlands
    The Netherlands
    Are they trying to avoid fan translations or something?
     
  14. david_keen

    david_keen Member

    Newcomer
    25
    2
    Jun 30, 2015
    i am trying it, but is not easy, when i make any change, like i dont know how works the gmd structure, any change make the game fail, and 3ds just show somethings go wrong, power off the console, so when i fail i never know what was wrong.

    thats why i was trying to know how works gmd files.
     
  15. david_keen

    david_keen Member

    Newcomer
    25
    2
    Jun 30, 2015
    i already use the tool with iOS version, in iOS version, the .arcs are encrypted but the gmds are in plain text.

    iOS
    Code:
    GMD.........................$...".......DetectiveMemo......N.I.....N.I.....N.I.....N.ISUMMARY_00.CAP_DEF.CAP_VIC.CAP_MEMO.Case Brief.Defendant.Victim.Notes.
    3ds
    Code:
    GMD..........s.4............$...".......DetectiveMemo......=.).....=.).....>.).....>.)SUMMARY_00.CAP_DEF.CAP_VIC.CAP_MEMO.H}t?/Mtol|..:tgzo?j!L.bpkda.Ab}qx.
    the tool use blowfish and zlib decode, dont know if someone could with that info, help to know how to decrypt the files

    and also if really use blowfish how could be that files have the same lenght?, when i try to use blowfish the strings are always longer or shorter.
     
  16. david_keen

    david_keen Member

    Newcomer
    25
    2
    Jun 30, 2015
    Sorry for the triple post, but finally with the help of skye from Romxhacking we know how to get the files from the gmds, to do it need to do a xor with 2 strings, both strings was in code.bin searching for gmds they appears.

    Then she write a tool for extract -e and insert the gmds.

    http://www.mediafire.com/download/8ncczwfcz75g49p/gmd.zip

    that link have the executable and the source code in c#

    that extract the file and make a .txt then u can write the .txt with -i, (opcional -encoding for say what character set https://msdn.microsoft.com/en-us/library/system.text.encodinginfo.getencoding(v=vs.110).aspx)

    now everyone can translate the english version for Gateway.