Important information: this site is currently scheduled to go offline indefinitely by December 1st 2023.
If you wish to donate to attempt the preservation of tools and software somewhere else before it goes down, check the GoFundMe

M2 online

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
pixellegolas
ultra-veteran
ultra-veteran
Posts: 423
Joined: Mon Aug 11, 2008 11:30 pm
Has thanked: 27 times
Been thanked: 15 times

M2 online

Post by pixellegolas »

The contents of this post was deleted because of possible forum rules violation.
Emir
n00b
Posts: 18
Joined: Wed Mar 10, 2010 10:37 am

Re: M2 online

Post by Emir »

Magic World 2 packfile .mw2
Game Website: http://db.12ha.com/

Pack Header

string DLOG 14 / / file header
DWORD CRC / / CRC??
DWORD ZSIZE / / compressed size
DWORD SIZE / / decompressed size
DWORD FILENAMESIZE / / file name length
string FILENAME FILENAMESIZE / / file name
filedata .... / / file compression data

-------------------------------------------------------------------

Code: Select all


# Initialize the offset address of the variable OFFSET 
set OFFSET long 0 

# Loop
for 

# Jump to the offset address 
GOTO OFFSET 

# Read the file header in the variable 
getdstring DLOG 14 
get CRC long 
get ZSIZE long 
get SIZE long 
get FILENAMESIZE long 
getdstring FILENAME FILENAMESIZE 

# Define compression decompression format 
# ComType uncompress 

# Calculate offset address + header length + file name length
math OFFSET + = 30 
math OFFSET + = FILENAMESIZE 

# Read file data 
# clog FILENAME OFFSET ZSIZE SIZE 
log FILENAME OFFSET ZSIZE 

# Calculate offset address + file data length 
math OFFSET + = ZSIZE 

next 

Mw2 file compression in the file mw_pack.rar.

Expert analysis of the current assistance package compressed format (non-encrypted ZIP or have been) ComType what you can decrypt the file data? ?

Chinese friend add QQ:16381780 POST:解包
You do not have the required permissions to view the files attached to this post.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 667 times
Contact:

Re: M2 online

Post by aluigi »

no luck with the compression.
I have scanned all the compression algorithms supported by quickbms and I have also tried to apply the CryptDecrypt encryption with the key "#4sldfWERx*(^^*3" but still no luck
pixellegolas
ultra-veteran
ultra-veteran
Posts: 423
Joined: Mon Aug 11, 2008 11:30 pm
Has thanked: 27 times
Been thanked: 15 times

Re: M2 online

Post by pixellegolas »

there was some info in one of the dll about some kind of packing i think...like bcpacker...bgpacker or something. I am at work and cannot see the files now but look in the dll also
Emir
n00b
Posts: 18
Joined: Wed Mar 10, 2010 10:37 am

Re: M2 online

Post by Emir »

aluigi wrote:no luck with the compression.
I have scanned all the compression algorithms supported by quickbms and I have also tried to apply the CryptDecrypt encryption with the key "#4sldfWERx*(^^*3" but still no luck
I debug and found the zlib password in MwEngine_Shipping_dll.dll, How to use in my bms scripts ??
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 667 times
Contact:

Re: M2 online

Post by aluigi »

depends by the algorithm, personally I can't test it because the sample file no longer exists.
anyway if only the archived file is encrypted then use:

Code: Select all

encryption cryptdecrypt "Mw2zd198703k2001231237" 
log FILENAME OFFSET ZSIZE 
encryption "" ""
instead of the only "log FILENAME OFFSET ZSIZE"
but I don't remember if cryptdecrypt wanted different parameters (default is md5+rc4)
pixellegolas
ultra-veteran
ultra-veteran
Posts: 423
Joined: Mon Aug 11, 2008 11:30 pm
Has thanked: 27 times
Been thanked: 15 times

Re: M2 online

Post by pixellegolas »

the script emir provides 1 file but then it seems to extract that same file infinite times, so only one 1 file is extracted but quickbms keeps working

the encryption thingy did not do any difference
Post Reply