Important information: this site is currently scheduled to go offline indefinitely by end of the year.

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 »

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: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

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

Post by OrangeC »

yes seconded.
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: 664 times
Contact:

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

Post by aluigi »

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: 103
Joined: Sun Dec 13, 2009 8:35 pm
Has thanked: 30 times
Been thanked: 34 times

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

Post by Herdell »

Will reimport feature work for this game/files?
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: 664 times
Contact:

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

Post by aluigi »

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 »

what are the file dialogs english? :oops: :oops:
User avatar
Herdell
veteran
Posts: 103
Joined: Sun Dec 13, 2009 8:35 pm
Has thanked: 30 times
Been thanked: 34 times

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

Post by Herdell »

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 »

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: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

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

Post by aluigi »

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: 103
Joined: Sun Dec 13, 2009 8:35 pm
Has thanked: 30 times
Been thanked: 34 times

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

Post by Herdell »

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: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

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

Post by aluigi »

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: 103
Joined: Sun Dec 13, 2009 8:35 pm
Has thanked: 30 times
Been thanked: 34 times

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

Post by Herdell »

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: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

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

Post by aluigi »

yes wait the new version I will release probably tomorrow
User avatar
Herdell
veteran
Posts: 103
Joined: Sun Dec 13, 2009 8:35 pm
Has thanked: 30 times
Been thanked: 34 times

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

Post by Herdell »

Any news?
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: 664 times
Contact:

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

Post by aluigi »

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