Join also our Discord channel! Click here.

The Darkness II Demo archives (similar to Dark Sector)

The Original Forum. Game archives, full of resources. How to open them? Get help here.
hoodlum47
beginner
Posts: 21
Joined: Sat Jan 29, 2011 11:01 pm
Been thanked: 4 times

The Darkness II Demo archives (similar to Dark Sector)

Post by hoodlum47 » Wed Jan 25, 2012 2:11 am

Hi all, I'm currently trying to extract the music from this demo (PC version). So I looked around and low and behold the structure of these archives seems similar to that of Dark Sector, probably because they have the same developer. The thing that seems to be different is the compression of the .cache files and the inclusion of .toc files (idk if those were in Dark Sector too). I'll upload some example files now.

H.Misc.cache:
http://www.mediafire.com/download.php?jd35zag9fsax315

H.Misc.toc:
http://www.mediafire.com/download.php?9v39gw7x5e6w8xl

OrangeC
double-veteran
double-veteran
Posts: 862
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 34 times

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by OrangeC » Thu Jan 26, 2012 8:51 pm

yes seconded.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 645 times
Contact:

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by aluigi » Fri Jan 27, 2012 4:41 pm

download QuickBMS 0.5.6 (the new algorithm is available from this version) and try this script:

Code: Select all

# Darkness 2
#   the folders structure is incomplete, I save only the last one so type 'r' when requested
# script for QuickBMS http://quickbms.aluigi.org

open FDDE "toc"
open FDDE "cache" 1

comtype COMPRLIB_RLE3
set PATH string ""
get DUMMY long
get DUMMY long
get FILES asize
math FILES -= 8
math FILES /= 0x60
for i = 0 < FILES
    get OFFSET longlong
    get TSTAMP longlong
    get ZSIZE long
    get SIZE long
    get DUMMY long
    get ID long
    getdstring NAME 0x40

    if OFFSET == -1
        set PATH string NAME
        string PATH += /
    else
        set FNAME string PATH
        string FNAME += NAME
        if SIZE == ZSIZE
            log FNAME OFFSET SIZE 1
        else
            math OFFSET += 4
            math ZSIZE  -= 4
            clog FNAME OFFSET ZSIZE SIZE 1
        endif
    endif
next i
the only problem is that the folders structure is not complete at the moment so you must select the 'r' option for continuing the extraction

User avatar
Herdell
veteran
Posts: 104
Joined: Sun Dec 13, 2009 8:35 pm
Has thanked: 30 times
Been thanked: 30 times

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by Herdell » Mon Jan 30, 2012 2:54 am

Will reimport feature work for this game/files?

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 645 times
Contact:

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by aluigi » Mon Jan 30, 2012 11:48 am

no, I have not added the recompression algorithm because it comes from a "not widely known" library so I doubt about its usage in more games.

quattro65
beginner
Posts: 34
Joined: Sat Jan 21, 2012 4:23 pm
Has thanked: 2 times

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by quattro65 » Tue Jan 31, 2012 6:09 pm

what are the file dialogs english? :oops: :oops:

User avatar
Herdell
veteran
Posts: 104
Joined: Sun Dec 13, 2009 8:35 pm
Has thanked: 30 times
Been thanked: 30 times

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by Herdell » Tue Jan 31, 2012 9:19 pm

quattro65 wrote:what are the file dialogs english? :oops: :oops:
H.misc.cache> language.cl (root folder after extraction)

@aluigi
Anyway to write a reimport script without compression?

In Dark Sector game (diferent compression method) we were able to repack the .cache
files without any compression, and the game read it. Just the file size increase, but no problem.

quattro65
beginner
Posts: 34
Joined: Sat Jan 21, 2012 4:23 pm
Has thanked: 2 times

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by quattro65 » Tue Jan 31, 2012 10:33 pm

Herdell wrote:
quattro65 wrote:what are the file dialogs english? :oops: :oops:
H.misc.cache> language.cl (root folder after extraction)

@aluigi
Anyway to write a reimport script without compression?

In Dark Sector game (diferent compression method) we were able to repack the .cache
files without any compression, and the game read it. Just the file size increase, but no problem.
tnx
Herdell next problem open file .cl

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 645 times
Contact:

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by aluigi » Wed Feb 01, 2012 12:16 pm

Herdell wrote:Anyway to write a reimport script without compression?
the reimport feature works only with native recompressions.
I may add it to the next quickbms version but sincerely I don't know because only this game uses it

User avatar
Herdell
veteran
Posts: 104
Joined: Sun Dec 13, 2009 8:35 pm
Has thanked: 30 times
Been thanked: 30 times

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by Herdell » Wed Feb 01, 2012 6:19 pm

aluigi wrote: the reimport feature works only with native recompressions.
I may add it to the next quickbms version but sincerely I don't know because only this game uses it
Would be great if you do it. I'm interested in game localization.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 645 times
Contact:

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by aluigi » Wed Feb 01, 2012 7:18 pm

I have found the solution, using the "EXECUTE" feature I implemented in the latest quickbms.
in short for reimporting would be enough to replace:

Code: Select all

comtype COMPRLIB_RLE3
with

Code: Select all

comtype EXECUTE "codrle3 #INPUT# #OUTPUT#"
there is only a little obstacle at the moment, I must fix a little thing in quickbms to do it because I forgot to allow the EXECUTE mode enabled also during reimporting (oh well errors happen).

in attachment there is the precompiled version of the code you can find here:
http://library.thinkquest.org/C008719/f ... /CODRLE3.C
You do not have the required permissions to view the files attached to this post.

User avatar
Herdell
veteran
Posts: 104
Joined: Sun Dec 13, 2009 8:35 pm
Has thanked: 30 times
Been thanked: 30 times

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by Herdell » Thu Feb 02, 2012 12:26 am

Sorry, but what I need to do?
Wait for the compiled version?

I'm a n00b. :P

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 645 times
Contact:

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by aluigi » Thu Feb 02, 2012 1:05 am

yes wait the new version I will release probably tomorrow

User avatar
Herdell
veteran
Posts: 104
Joined: Sun Dec 13, 2009 8:35 pm
Has thanked: 30 times
Been thanked: 30 times

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by Herdell » Sat Feb 04, 2012 2:17 am

Any news?

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 645 times
Contact:

Re: The Darkness II Demo archives (similar to Dark Sector)

Post by aluigi » Sat Feb 04, 2012 2:27 am

eh eh eh looks like you don't follow my website :)

Post Reply