ROM Hack [HELP] PW - Dual Destines gmd files

ZackNeji

Member
OP
Newcomer
Joined
Feb 2, 2013
Messages
9
Trophies
0
Age
38
XP
146
Country
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.
 

MRJPGames

Pretty great guy
Member
Joined
Aug 17, 2013
Messages
1,199
Trophies
1
Location
The Netherlands
Website
fizazy.com
XP
1,676
Country
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!
 

Melon__Bread

~It's A Magik~
Member
Joined
Dec 9, 2013
Messages
833
Trophies
0
Age
31
XP
938
Country
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
 

sarkwalvein

There's hope for a Xenosaga port.
Member
Joined
Jun 29, 2007
Messages
8,521
Trophies
2
Age
41
Location
Niedersachsen
XP
11,282
Country
Germany
i find 1 tool for ios version, that extract the gmd but i cant run it and i dont know python, could anyone read it, and tell me what to do, to try it?

https://github.com/wmltogether/Phoenix-Wright-5-iOS-Mod-Tools

is just the modules for extract gmd, i already have the arcs extracted.

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).
 

david_keen

Active Member
Newcomer
Joined
Jun 30, 2015
Messages
25
Trophies
0
Age
39
XP
104
Country
Traceback (most recent call last):
File "C:\Dual destinies japo\ARCtool\ios\export_gmd.py", line 2, in <module>
from libMT_Framework import dir_fn
File "C:\Dual destinies japo\ARCtool\ios\libMT_Framework.py", line 4, in <module>
import libBlowFish
File "C:\Dual destinies japo\ARCtool\ios\libBlowFish.py", line 83
raise RuntimeError, "Attempted to initialize Blowfish cipher with key of invalid length: %s" % len (key)
^
SyntaxError: invalid syntax

always get this error.
 

sarkwalvein

There's hope for a Xenosaga port.
Member
Joined
Jun 29, 2007
Messages
8,521
Trophies
2
Age
41
Location
Niedersachsen
XP
11,282
Country
Germany
always get this error.
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,

david_keen

Active Member
Newcomer
Joined
Jun 30, 2015
Messages
25
Trophies
0
Age
39
XP
104
Country
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

GMD...........05............d...........kokoro_00.....p..)....z..).......).......).......).......).......).......).......).......)TEXT_0_00.TEXT_0_01.TEXT_0_02.TEXT_0_03.TEXT_0_04.TEXT_1_00.TEXT_1_01.TEXT_1_02.TEXT_1_03.TEXT_1_04.\yk6#/rnhn7*>k,:%S.ul.+3?-,;lb

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.
-z`jns?k/`gev~ 8<,:..pu*:g.?bb1{by4dz.P/bc('47d<}wscr$6#*l{5...F-}fbycz{`&t

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"[email protected]/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.
 

sarkwalvein

There's hope for a Xenosaga port.
Member
Joined
Jun 29, 2007
Messages
8,521
Trophies
2
Age
41
Location
Niedersachsen
XP
11,282
Country
Germany
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.
 

david_keen

Active Member
Newcomer
Joined
Jun 30, 2015
Messages
25
Trophies
0
Age
39
XP
104
Country
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.
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.
 

david_keen

Active Member
Newcomer
Joined
Jun 30, 2015
Messages
25
Trophies
0
Age
39
XP
104
Country
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.
 

david_keen

Active Member
Newcomer
Joined
Jun 30, 2015
Messages
25
Trophies
0
Age
39
XP
104
Country
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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • OctoAori20 @ OctoAori20:
    I stopped believing or caring about that dude when I found out about some of the more questionable nonsense he did in his life.
  • BigOnYa @ BigOnYa:
    Like what? I didn't know or hear.
  • K3Nv2 @ K3Nv2:
    You mean like every famous person that ever existed
    +1
  • K3Nv2 @ K3Nv2:
    I get so tired of hearing oh I liked him until...
  • OctoAori20 @ OctoAori20:
    I just know dude was a chronic alcoholic and such.
  • BigOnYa @ BigOnYa:
    I've been to his chicken restaurant he started in his 2nd movie, Holy Chicken, was pretty good. It is only 15-20 miles from me in Ohio. It only lasted 1 yr or so then closed tho.
  • OctoAori20 @ OctoAori20:
    There are very few people I just have just an immense dislike of and he's one of those very few people, the only other example is Gene Simmons. My musician uncle on my mother's side of the family actually met Gene once during some event and said he was the most unpleasant person to be around.
  • K3Nv2 @ K3Nv2:
    I met myself once turns out that guy is a giant piece of shit that doesn't deserve any of my respect
  • BigOnYa @ BigOnYa:
    Damn alcoholics! (Sshhh- Opens another beer)
  • OctoAori20 @ OctoAori20:
    Agreed, Ken
  • OctoAori20 @ OctoAori20:
    I can't say I've ever tried even a sip of beer tbh-
  • K3Nv2 @ K3Nv2:
    You met yourself also and is a giant piece of shit?
    +1
  • OctoAori20 @ OctoAori20:
    Then again, I don't think I'd really enjoy it //shrug
  • OctoAori20 @ OctoAori20:
    I'm sure it's an acquired taste :P
  • K3Nv2 @ K3Nv2:
    Poor lad can never enjoy the amazing taste of four loko
    +1
  • BigOnYa @ BigOnYa:
    Root beer is a gateway drink, don't ever try it either.
  • K3Nv2 @ K3Nv2:
    @BigOnYa, don't you love how smooth MD20 is
  • BigOnYa @ BigOnYa:
    Mad dog 20 20? Oh yea fixed the typo. I haven't seen that or had forever. Do they still make it?
  • K3Nv2 @ K3Nv2:
    I think it's why I'm alive
    +1
  • BigOnYa @ BigOnYa:
    What happens if when playing Paper Mario, you start a fire in-game?
  • Psionic Roshambo @ Psionic Roshambo:
    Paper Mario is a drug dealer and he is all about the paper yo lol
    +1
  • OctoAori20 @ OctoAori20:
    Ffft
  • OctoAori20 @ OctoAori20:
    On another note, I love how folks are drawing Callie in that suit that Splatoon NA dropped on Twitter
    OctoAori20 @ OctoAori20: On another note, I love how folks are drawing Callie in that suit that Splatoon NA dropped on...