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

Eligium (Magic World 2) (*.MW2)

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1713 times

Eligium (Magic World 2) (*.MW2)

Post by Ekey »

Image

Again ZipCrypto format. Currently can't decompress some files i dont know why and temporarily set deflate_noerror

Code: Select all

# Eligium (Magic World 2) (MW2 format) 0.1
#
# Based on script Legendary Champions by Aluigi
# Modified by Ekey (h4x0r)
#
# http://forum.xentax.com
#
# script for QuickBMS http://quickbms.aluigi.org

set ZIP_PASSWORD string "Mw2zd198703k%lu"
ComType deflate_noerror

goto -0x16
savepos OFFSET
get MW_sign             long	#2owm
get disk_num            short
get disk_start          short
get central_entries     short
get central_entries     short
get central_offset      long

math OFFSET -= central_offset
goto OFFSET

for i = 0 < central_entries
    get LOC_sign 		long	#looc
    get sign            short
    get ver_made        short
    get ver_need        short
    get flag            short
    get modtime         short
    get moddate         short
    get crc             long
    get comp_size       long
    get uncomp_size     long
    get name_len        short
    get extra_len       short
    get comm_len        short
    get disknum         short
    get int_attr        short
    get ext_attr        long
    get rel_offset      long
    getdstring name     name_len
    getdstring extra    extra_len
    getdstring comment  comm_len

    savepos CENTRAL_OFFSET
    goto rel_offset
        get PK_sign 		    long	#dlog
        get ver             	short
        get flag            	short
        get method          	short
        get modtime         	short
        get moddate         	short
        get crc             	long
        get skip_comp_size	    long
        get skip_uncomp_size	long
        get name_len        	short
        get extra_len       	short
        getdstring name	name_len
        getdstring extra extra_len
        savepos offset
		
        set NEW_CRC = crc
        math NEW_CRC -= 87
        string NEW_PASSWORD p= ZIP_PASSWORD NEW_CRC

        if flag != 0
            if flag & 1
                encryption zipcrypto NEW_PASSWORD 1
            endif
            if method == 0
                log name offset uncomp_size
            else
                clog name offset comp_size uncomp_size
            endif
            if flag & 1
                encryption "" ""
            endif
        endif

    goto CENTRAL_OFFSET
next i
User avatar
CriticalError
double-veteran
double-veteran
Posts: 678
Joined: Sun Jul 05, 2009 2:03 am
Has thanked: 104 times
Been thanked: 116 times

Re: Eligium (Magic World 2) (*.MW2)

Post by CriticalError »

the files unpacked very well but a lot files broken, I think 50% of files are broken after all unpack so maybe you can try update script?
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1713 times

Re: Eligium (Magic World 2) (*.MW2)

Post by Ekey »

They not broken, they encrypted.
User avatar
CriticalError
double-veteran
double-veteran
Posts: 678
Joined: Sun Jul 05, 2009 2:03 am
Has thanked: 104 times
Been thanked: 116 times

Re: Eligium (Magic World 2) (*.MW2)

Post by CriticalError »

Ekey wrote:They not broken, they encrypted.
the files have 0kb size so how is possible? in any case they need be have correct size don't think?
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1713 times

Re: Eligium (Magic World 2) (*.MW2)

Post by Ekey »

0 kb because can't be decompressed
User avatar
CriticalError
double-veteran
double-veteran
Posts: 678
Joined: Sun Jul 05, 2009 2:03 am
Has thanked: 104 times
Been thanked: 116 times

Re: Eligium (Magic World 2) (*.MW2)

Post by CriticalError »

Ekey wrote:0 kb because can't be decompressed
ok many thanks for try anyway, take care.
Milkom
ultra-n00b
Posts: 1
Joined: Wed Sep 28, 2016 11:51 am
Been thanked: 1 time

Re: Eligium (Magic World 2) (*.MW2)

Post by Milkom »

help write a script for importing into Farmat mw2.
Post Reply