ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Sep 19, 2018 2:49 am

All times are UTC




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Tue Aug 07, 2018 2:14 am 

Joined: Tue Aug 07, 2018 2:03 am
Posts: 6
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!


Last edited by Choppasmith on Wed Aug 15, 2018 3:39 am, edited 2 times in total.

Top
   
PostPosted: Wed Aug 08, 2018 2:19 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8779
In the meantime you can try these 2 scripts:
http://aluigi.org/bms/arslan.bms
http://aluigi.org/bms/dragon_quest.bms


Top
   
PostPosted: Wed Aug 08, 2018 9:31 pm 

Joined: Tue Aug 07, 2018 2:03 am
Posts: 6
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?


Top
   
PostPosted: Wed Aug 08, 2018 11:51 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8779
config.bin is just a png image.
The other files are all encrypted probably with aes.


Top
   
PostPosted: Tue Aug 14, 2018 3:20 am 

Joined: Tue Aug 07, 2018 2:03 am
Posts: 6
Anything else I can try? I tried running your comtype script on some of the large files and sadly got nothing.


Top
   
PostPosted: Tue Aug 14, 2018 1:21 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8779
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.


Top
   
PostPosted: Tue Aug 14, 2018 1:37 pm 

Joined: Tue Aug 07, 2018 2:03 am
Posts: 6
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 :/


Top
   
PostPosted: Wed Aug 15, 2018 3:30 am 

Joined: Tue Aug 07, 2018 2:03 am
Posts: 6
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!


Top
   
PostPosted: Wed Aug 15, 2018 12:48 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8779
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)


Top
   
PostPosted: Wed Aug 15, 2018 3:29 pm 

Joined: Tue Aug 07, 2018 2:03 am
Posts: 6
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!


Attachments:
File comment: DQ3 mobile script
dragon_quest_3_mobile.bms [444 Bytes]
Downloaded 16 times
File comment: Slightly tweaked DQ mobile script
dragon_quest_1_2_mobile.bms [449 Bytes]
Downloaded 9 times
Top
   
PostPosted: Wed Aug 15, 2018 11:42 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8779
The current version 0.1.1 of the script now automatically detects if the game is 3 or 1/2:
http://aluigi.org/bms/dragon_quest.bms


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited