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.
Zero Tolerance for Disrespect

DragonSlayerOnline

Featured Replies

  • Author
  • Localization

omfgpota, posted Wed Aug 27, 2014 3:14 am (306)


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
  • Author
  • Localization

aluigi, posted Wed Aug 27, 2014 6:46 am (311)


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.
  • Author
  • Localization

omfgpota, posted Wed Aug 27, 2014 8:34 am (314)


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!
  • Author
  • Localization

omfgpota, posted Fri Sep 12, 2014 10:05 pm (480)


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!
  • Author
  • Localization

aluigi, posted Sun Sep 14, 2014 9:30 am (487)


Script 0.1.2 released.
  • Author
  • Localization

yuzumi, posted Sat Sep 20, 2014 12:16 pm (536)


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..~
  • Author
  • Localization

aluigi, posted Sat Sep 20, 2014 12:57 pm (537)


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.
  • Author
  • Localization

yuzumi, posted Sat Sep 20, 2014 3:06 pm (541)


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?
  • Author
  • Localization

yuzumi2015, posted Fri Jan 23, 2015 1:38 pm (2851)


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?
  • Author
  • Localization

aluigi, posted Fri Jan 23, 2015 7:18 pm (2855)


quickbms supports also deflate64, yes.
  • Author
  • Localization

yuzumi2015, posted Fri Jan 23, 2015 11:28 pm (2864)


aluigi wrote:
quickbms supports also deflate64, yes.


comtype deflate64 ?
  • Author
  • Localization

aluigi, posted Sat Jan 24, 2015 12:59 pm (2876)


Yes. The full list of available compression algorithms is in quickbms.txt.
  • Author
  • Localization

yuzumi2015, posted Sat Jan 24, 2015 2:35 pm (2878)


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?
  • Author
  • Localization

yuzumi2015, posted Sun Jan 25, 2015 1:23 am (2881)


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?
  • Author
  • Localization

aluigi, posted Sun Jan 25, 2015 7:50 pm (2900)


The deflate64 algorithm in quickbms works perfectly.
Create a zip with 7-zip using deflate64 and you can use zip.bms with it.
  • Author
  • Localization

Darkboy140, posted Sun Aug 23, 2015 12:29 pm (6907)


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
  • Author
  • Localization

aluigi, posted Fri Oct 09, 2015 8:12 pm (8273)


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
  • Author
  • Localization

drx, posted Fri Oct 09, 2015 8:55 pm (8285)


Thanks Luigi!
  • Author
  • Localization

Paj30, posted Thu Dec 03, 2015 4:35 pm (10280)


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.
  • Author
  • Localization

Ekey, posted Thu Dec 03, 2015 6:35 pm (10284)


This script not supported for reimport.
  • Author
  • Localization

aluigi, posted Thu Dec 03, 2015 6:48 pm (10286)


I have an idea.
I used a MEMORY_FILE simply because the "zlibx" method wasn't implemented at that time but now quickbms fully supports it.
The only bug (that will be fixed in 0.7.2) is that in reimport mode it doesn't switch to zlib and so would give an error.

So, what to do:
- download the new 0.2.1 version of the script
- open it with notepad and replace "zlibx" at line 9 with "zlib"
- now do the reimport mode as you did before

You do not have to re-extract because it's the same result, so do that only fore reimporting the modified files.
It "should" work because zlibx and zlib are compatible.
Keep us update.
  • Author
  • Localization

Paj30, posted Thu Dec 03, 2015 8:04 pm (10292)


Thank you very much for your answer but both scripts, 0.2 and 0.2.1, have the same link on http://aluigi.altervista.org/quickbms.htm site. They both redirect me to THAT PAGE which is the 0.2 one. So, I don't know where I can find the 0.2.1 version. I would gladly try your method if I could have that updated file.
  • Author
  • Localization

aluigi, posted Thu Dec 03, 2015 8:47 pm (10293)


Try pressing CTRL-F5 and you should see the 0.2.1 version.
  • Author
  • Localization

Paj30, posted Fri Dec 04, 2015 6:45 am (10296)


Thanks, Aluigi. This works like a charm now. ^_^ My final issue is now to find a way to decrease the size of the modded files because QuickBMS refuse to reimport them, which is normal because they are bigger than the original ones. I will try myself all the formats of compression (crossing fingers it will succeed) but if somebody already knows the compression method of textures from AeriaGames games, feel free to contribute. In any case, thank you again for your answer.
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.