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
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)
- aluigi
- 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)
download QuickBMS 0.5.6 (the new algorithm is available from this version) and try this script:
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
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
- aluigi
- 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)
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.
- 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)
H.misc.cache> language.cl (root folder after extraction)quattro65 wrote:what are the file dialogs english?
@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.
Re: The Darkness II Demo archives (similar to Dark Sector)
tnxHerdell wrote:H.misc.cache> language.cl (root folder after extraction)quattro65 wrote:what are the file dialogs english?
@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.
Herdell next problem open file .cl
- aluigi
- 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)
the reimport feature works only with native recompressions.Herdell wrote:Anyway to write a reimport script without compression?
I may add it to the next quickbms version but sincerely I don't know because only this game uses it
- 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)
Would be great if you do it. I'm interested in game localization.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
- aluigi
- 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)
I have found the solution, using the "EXECUTE" feature I implemented in the latest quickbms.
in short for reimporting would be enough to replace:with
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
in short for reimporting would be enough to replace:
Code: Select all
comtype COMPRLIB_RLE3
Code: Select all
comtype EXECUTE "codrle3 #INPUT# #OUTPUT#"
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.
- aluigi
- 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)
yes wait the new version I will release probably tomorrow
- aluigi
- 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)
eh eh eh looks like you don't follow my website :)