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
  • The Real Jdbye @ The Real Jdbye:
    or is Hunter Fox just copying Chuck Tingle?
  • K3Nv2 @ K3Nv2:
    That pussy is two faced af
  • The Real Jdbye @ The Real Jdbye:
    https://www.amazon.com/Tentacles-Made-Gay-Hunter-Fox-ebook/dp/B00M0VCUPK let's be real, who isn't at least a little gay for tentacles though?
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe a ghost writer?
  • BigOnYa @ BigOnYa:
    "Oh my God the graphics are so realistic looking." Lol of course it was the shiznit back then tho.
  • BigOnYa @ BigOnYa:
    I've never stood in line overnight or for hours, to buy anything. I can just wait and buy it later.
  • RedColoredStars @ RedColoredStars:
    I have never done that either.
  • RedColoredStars @ RedColoredStars:
    closest ive done is getting to target a couple hours early in the moring to get some amiibos.
  • Xdqwerty @ Xdqwerty:
    Im back
  • RedColoredStars @ RedColoredStars:
    But that topic makes me sad. :(
  • RedColoredStars @ RedColoredStars:
    Abusive narcissistic ex shame guilted me into selling them becasue my gaming and interests were childish like a little kid collecting toys. :(
  • RedColoredStars @ RedColoredStars:
    I had soooooooooooo many of them. All still sealed.
    +1
  • RedColoredStars @ RedColoredStars:
    I eventually had to contact a domestic abuse advocate to help me get out of the apartment I was in a lease with her. And filed a restraining order on her cuz she kept harassing me after i left her.
  • Xdqwerty @ Xdqwerty:
    I didnt bring my Charger and nobody here has one compatible with my phone
  • RedColoredStars @ RedColoredStars:
    either you have usb C and no one else does, or everone else has usb c except you. haha
    +1
  • Xdqwerty @ Xdqwerty:
    @RedColoredStars, i don't have usb c
  • RedColoredStars @ RedColoredStars:
    That happened to me for like a year. lol. I was the only one of all my friends and family to still have an old phone.
  • Xdqwerty @ Xdqwerty:
    @RedColoredStars, my phone is from around 2019
  • RedColoredStars @ RedColoredStars:
    Mine was from 2017. lolol. I just got this new one like 6 months ago. Not even new, second hand cheapo $40 phone. But it has usb c. lol
  • RedColoredStars @ RedColoredStars:
    I cant justify $1k+ on a nice ass phone. I can spend that on a 75" tv screen. Why a 6" screen device cost me the same? lol
    +2
  • BigOnYa @ BigOnYa:
    I had a iPhone 5 for like 6 years, till last year, and had to get new phone, when phone companies stop using the cdna networks, which the iphone5 used.
  • K3Nv2 @ K3Nv2:
    A phone can do more than a TV
    +2
  • BigOnYa @ BigOnYa:
    These smart TVs are getting close tho. Gonna be like "back to future" TVs before long.
    BigOnYa @ BigOnYa: These smart TVs are getting close tho. Gonna be like "back to future" TVs before long.