ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Jul 16, 2020 4:01 am

All times are UTC




Post new topic  Reply to topic  [ 24 posts ]  Go to page 1 2 Next
Author Message
 Post subject: DragonSlayerOnline
PostPosted: Wed Aug 27, 2014 3:14 am 

Joined: Tue Aug 26, 2014 10:43 pm
Posts: 3
Greetings everyone!

There's a new game from XLegends(most aeriagames developer), I've used the (http://aluigi.altervista.org/papers/bms/aeriagames.bms) script from their past games and it's working great but to this new one, It doesn't, I think they changed the compression method?(zlib) as in the error it shows,

Image

here are the files that you might need in checking it out,

https://www.sendspace.com/file/yn4gcp

thank you so much for the support and help!

regards


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Wed Aug 27, 2014 6:46 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 11380
I have updated the script to skip the 0x88 0x1c header and footer but there is for sure something like an obfuscated or truncated compressed bytes somewhere in the compressed file so some files will not be decompressed by quickbms and other may be incomplete.

It tooks me some time to analyze the problem because I got some results with offzip but in reality it was just a partial result (offzip is made to extract anything, even invalid).

Take an extracted file like "biology\animation\M009_Bip01 _condition02.kf", as you can see it doesn't contain the Gamebryo data.
offzip tells us that it was able to extract 0x00004982 compressed bytes.
I tried to cut some bytes around 0x4000 but nothing changed.

I'm sure this is the correct way, I just don't know the exact offset and what operation is performed.


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Wed Aug 27, 2014 8:34 am 

Joined: Tue Aug 26, 2014 10:43 pm
Posts: 3
thank you for the effort sir luigi! yes sir, I tried offzip on it too, just gives me with these error.

Image

as with respect to this game's cbt, I pm'ed you the client DL if you're interested sir.

thank you so much!


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Fri Sep 12, 2014 10:05 pm 

Joined: Tue Aug 26, 2014 10:43 pm
Posts: 3
hi guys!

I've successfully got pre-patched? samples from the game on with underscores ,

looks like just like the results on the sacred online thread here, the problem seems to be the NIF file format that are contained in the pkg archives, I think they are rehashed it in the idx or re-encrypted them in a way to work on their latest engine build(old one was 20.2.0.6, new one is 20.2.0.8)?

anyway here are the samples for you to see,
https://www.sendspace.com/file/vbkrxk

this as far as I can go, since my skills for these kinda work is close to none.

thank you very much!


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Sun Sep 14, 2014 9:30 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 11380
Script 0.1.2 released.


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Sat Sep 20, 2014 12:16 pm 

Joined: Sat Sep 20, 2014 11:48 am
Posts: 2
aluigi wrote:
Script 0.1.2 released.


Hello..My English is not very good,Please do not take offense..

I use QuickBMS Unpack Fantasy Frontier Online(Chinese Version) GameRes.. download:(http://filesty.changyou.com/hxsy/gw/HXS ... 140708.zip)
This script (http://aluigi.altervista.org/papers/bms/aeriagames.bms) success unpack head is 0x7801 and Most 0x881c..However, some 0x881c head file unpack is fail..I look Zdata like zlib.Similar is deform..

some unpack fail File:
\data\db\t_textindex.ini
\data\db\t_item.ini
\data\db\t_itemmall.ini
\data\db\t_biology.ini
\biology\texture\m74001.dds
\biology\texture\m74051.dds
\biology\texture\m74052.dds

GameRes is too big..I picked one can't unpack file to upload..

So I would like in this forum looking for your help..Thank you very much..~


Attachments:
File comment: \data\db\t_itemmall.ini
Desktop.rar [102.73 KiB]
Downloaded 138 times
Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Sat Sep 20, 2014 12:57 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 11380
That extracted data\db\t_itemmall.ini file is expected to be compressed but it doesn't containg compressed data.
The proof is that using offzip -S -z -15 returns nothing.
Currently I don't know how to handle these files.


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Sat Sep 20, 2014 3:06 pm 

Joined: Sat Sep 20, 2014 11:48 am
Posts: 2
aluigi wrote:
That extracted data\db\t_itemmall.ini file is expected to be compressed but it doesn't containg compressed data.
The proof is that using offzip -S -z -15 returns nothing.
Currently I don't know how to handle these files.


This GameProgram seemingly not packers (game.bin)
I use Ollydbg open game.bin (Command Line:game.bin Easyfun) Breakpoints ASCII .\data\db\BiologyList.ini (This File is 0x881c unpack fail)
I do not really understand Ollydbg..

Run the game after the break in this
Image

The call is unpack 0x881c key point?


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Fri Jan 23, 2015 1:38 pm 

Joined: Fri Jan 23, 2015 1:28 pm
Posts: 4
yuzumi wrote:
aluigi wrote:
Script 0.1.2 released.


Hello..My English is not very good,Please do not take offense..

I use QuickBMS Unpack Fantasy Frontier Online(Chinese Version) GameRes.. download:(http://filesty.changyou.com/hxsy/gw/HXS ... 140708.zip)
This script (http://aluigi.altervista.org/papers/bms/aeriagames.bms) success unpack head is 0x7801 and Most 0x881c..However, some 0x881c head file unpack is fail..I look Zdata like zlib.Similar is deform..

some unpack fail File:
\data\db\t_textindex.ini
\data\db\t_item.ini
\data\db\t_itemmall.ini
\data\db\t_biology.ini
\biology\texture\m74001.dds
\biology\texture\m74051.dds
\biology\texture\m74052.dds

GameRes is too big..I picked one can't unpack file to upload..

So I would like in this forum looking for your help..Thank you very much..~



There files is used deflate64 zlib format Compression (Zlib Default in deflate32).. Quickbms Can UnCompression There Files?
How is Edit Zlib Source code it support deflate64 format?


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Fri Jan 23, 2015 7:18 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 11380
quickbms supports also deflate64, yes.


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Fri Jan 23, 2015 11:28 pm 

Joined: Fri Jan 23, 2015 1:28 pm
Posts: 4
aluigi wrote:
quickbms supports also deflate64, yes.


comtype deflate64 ?


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Sat Jan 24, 2015 12:59 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 11380
Yes. The full list of available compression algorithms is in quickbms.txt.


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Sat Jan 24, 2015 2:35 pm 

Joined: Fri Jan 23, 2015 1:28 pm
Posts: 4
i'm use comtype deflate64 unpackfiles.. but Prompt error..
Image

I modify the file head (0x88,0x1c) is 0x78,0x9c and 0x78,0x01..This Game is Read success
pkg571 Z_size:542456 size:1036928

I need to upload this simplify game?


Attachments:
File comment: z_size:542456 size:1036928
pkg571.rar [529.27 KiB]
Downloaded 96 times
Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Sun Jan 25, 2015 1:23 am 

Joined: Fri Jan 23, 2015 1:28 pm
Posts: 4
I use comtype deflate64 unpack this file.. It's Fail..
But I to know zip format and use HaoZip(http://haozip.2345.com/ this soft support deflate64 Compression to zip) create new zip (Zip Compression is 0x09 == deflate64).. use winhex del zipdata and add filedata..(use 0x08 == deflate extracted is fail)
use haozip extracted this zip (use Retain the damaged file mode)..
The extracted file is incomplete..head is DDS.. pic width is 1920(0x0780) Height is 1080(0x0438) DXT1.. This information is correct .. But behind the data is corrupted
Image
The deflate64 metod is were altered?


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Sun Jan 25, 2015 7:50 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 11380
The deflate64 algorithm in quickbms works perfectly.
Create a zip with 7-zip using deflate64 and you can use zip.bms with it.


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Sun Aug 23, 2015 12:29 pm 

Joined: Fri Aug 21, 2015 6:59 am
Posts: 2
Hey are you guys still working on this any update on this project would be great I really need to be able to get into X-legend new files :c


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Fri Oct 09, 2015 8:12 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 11380
The technical reason behind the decompression issues was simply that the developers modified the zlib library to allow more than 30 distance bits.
I found the problem by using the great tinf library and debugging (with the library, not a debugger) a file till the occurrence of the malformed bytes.

I have released the script 0.2 that works at 100% with the current games::
http://aluigi.org/bms/aeriagames.bms


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Fri Oct 09, 2015 8:55 pm 

Joined: Wed Oct 01, 2014 4:14 pm
Posts: 5
Thanks Luigi!


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Thu Dec 03, 2015 4:35 pm 

Joined: Thu Dec 03, 2015 4:27 pm
Posts: 3
Greetings.

Sorry for being a total noob, Aluigi (and for unearthing a two months old topic) but I used the great script Aeriagames pkg.idx/pkg???.pkg (0.2) with QuickBMS in order to extract data (mainly textures) from Dragon Slayer Online (which worked properly) but when I tried to use the reimport.bat from QuickBMS with my modded *.dds files, it gave me that (see below). I know I'm the stupid one making mistakes but would you be kind enough to tell me what I did wrong ? Thank you so much.

Image

Thanks for reading. Regards.


Top
   
 Post subject: Re: DragonSlayerOnline
PostPosted: Thu Dec 03, 2015 6:35 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 1011
This script not supported for reimport.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 24 posts ]  Go to page 1 2 Next

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