Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Trying to find the dialog script in Dragon Quest Mobile (Android) ports UPDATE!! Current script incompatible with DQ III

Featured Replies

  • Author
  • Localization

Choppasmith, posted Tue Aug 07, 2018 2:14 am (37271)


UPDATE!!

So I figured out it's a file in all three games called retro_res.dat with a number based on which entry it belongs to. The Dragon Quest script on your site DOES INDEED work in extracting all the data from I AND II, but strangely does not work on III.

I've included a 7z with all three for comparison, I imagine there's probably some tiny little difference that makes the script not work right.

http://www.mediafire.com/file/y9m8v7l85 ... aw.7z/file

Thanks in advance for any help!



Hey there! Was hoping to find a way to extract the script for the first three Dragon Quest games on mobile. I have the Android APKs and there's an assets folder (at least with Dq1) with a folder full of files with no extension and nothing that shows up in a hex editor.

http://www.mediafire.com/file/6kmsbvc3cmcbddd/assets.7z

There's also a config.bin I threw in there too. I was able to follow aluigi's guide for determining what kind of compression the bin uses and it's 167, DYNAMIC UNZIP. But I'm honestly not sure how to apply that to multiple files without extensions to see if uses the same kind of compression. I'm kinda new to all this.

Thank you very much in advance for any help!
  • Author
  • Localization

Choppasmith, posted Wed Aug 08, 2018 9:31 pm (37333)


Not sure I'm doing somethign wrong or not but when I use the DQ Script on config.bin

Code:
Error: incomplete input file 0: C:\Users\mog11\Downloads\DQ1\assets\config.bin
       Can't read 31123 bytes from offset 000ff478.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.

  coverage file 0   100%   1045624    1045624    . offset 000ff478

Last script line before the error or that produced the error:
  9   getdstring NAME NAMESZ

Press ENTER or close the window to quit


and the assets folder

Code:
- filter   1: *
- start the scanning of the input folder: C:\Users\mog11\Downloads\DQ1\assets\dq1
- open input file C:\Users\mog11\Downloads\DQ1\assets\dq1\.\_05hcgo8ojs
- open script C:\Users\mog11\Downloads\dragon_quest.bms
- set output folder C:\Users\mog11\Downloads\DQ1\assets\extract

  offset   filesize   filename
--------------------------------------

Error: incomplete input file 0: C:\Users\mog11\Downloads\DQ1\assets\dq1\_05hcgo8ojs
       Can't read 6639 bytes from offset 000039b7.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.

  coverage file 0   100%   14775      14775      . offset 000039b7

Last script line before the error or that produced the error:
  9   getdstring NAME NAMESZ


And the Arslan script

Code:
open input file C:\Users\mog11\Downloads\DQ1\assets\config.bin
- open script C:\Users\mog11\Downloads\arslan.bms
- set output folder C:\Users\mog11\Downloads\DQ1\assets\extract

  offset   filesize   filename
--------------------------------------
- enter in folder C:\Users\mog11\Downloads\DQ1\assets
  coverage file 0     0%   0          1045624    . offset 00000000
- open input file C:\Users\mog11\Downloads\DQ1\assets\config.IDX

- error in src\file.c line 465: fdnum_open()
Error: No such file or directory

Last script line before the error or that produced the error:
  4   open FDDE "IDX"


Code:
 open input file C:\Users\mog11\Downloads\DQ1\assets\dq1\_1x3qd6qe1q
- open script C:\Users\mog11\Downloads\arslan.bms
- set output folder C:\Users\mog11\Downloads\DQ1\assets\extract

  offset   filesize   filename
--------------------------------------
- enter in folder C:\Users\mog11\Downloads\DQ1\assets\dq1
  coverage file 0     0%   0          1080174    . offset 00000000
- open input file C:\Users\mog11\Downloads\DQ1\assets\dq1\_1x3qd6qe1qIDX

- error in src\file.c line 465: fdnum_open()
Error: No such file or directory

Last script line before the error or that produced the error:
  4   open FDDE "IDX"


Am I missing something?
  • Author
  • Localization

aluigi, posted Wed Aug 08, 2018 11:51 pm (37337)


config.bin is just a png image.
The other files are all encrypted probably with aes.
  • Author
  • Localization

Choppasmith, posted Tue Aug 14, 2018 3:20 am (37490)


Anything else I can try? I tried running your comtype script on some of the large files and sadly got nothing.
  • Author
  • Localization

aluigi, posted Tue Aug 14, 2018 1:21 pm (37504)


Please NEVER use the comtype scanner.
And I told you that it's "encrypted" so why did you try a "compression"?
Without encryption algorithm (as I said it's probably aes) and key you can do nothing.
  • Author
  • Localization

Choppasmith, posted Tue Aug 14, 2018 1:37 pm (37507)


aluigi wrote:
Please NEVER use the comtype scanner.
And I told you that it's "encrypted" so why did you try a "compression"?
Without encryption algorithm (as I said it's probably aes) and key you can do nothing.


Sorry, I guess with all the compression types it scanned for, I thought types of encrypted compression would be in there as well. My bad.

Bummer :/
  • Author
  • Localization

Choppasmith, posted Wed Aug 15, 2018 3:30 am (37530)


Okay so I got good news! Sorry for the double post! Hopefully after this, I'll be out of your hair!

So I figured out it's a file in all three games called retro_res.dat with a number based on which entry it belongs to. The Dragon Quest script on your site DOES INDEED work in extracting all the data from I AND II, but strangely does not work on III.

I've included a 7z with all three for comparison, I imagine there's probably some tiny little difference that makes the script not work right.

http://www.mediafire.com/file/y9m8v7l85 ... aw.7z/file

Thanks in advance for any help!
  • Author
  • Localization

aluigi, posted Wed Aug 15, 2018 12:48 pm (37543)


At line 6 before "get FILES long" put the following:
filexor "0x4e 0x69 0x29 0x75"
(you can replace the existent filexor command if you prefer)
  • Author
  • Localization

Choppasmith, posted Wed Aug 15, 2018 3:29 pm (37549)


Thank you SO MUCH aluigi! Worked like a charm!

I've attached the modified scripts (I took the original script and gave it the title of "Dragon Quest 1 and 2 Mobile (retro_res.dat)") to avoid confusion in case someone happens to want to do the same thing. I've also attached the modified script for DQ3.

Thanks again!

dragon_quest_3_mobile.bms

dragon_quest_1_2_mobile.bms

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.