Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!

Forum rules: Click here

Evolution Engine Cache Extractor

Programs that are related to this or that game.
User avatar
GMMan
veteran
Posts: 139
Joined: Fri Nov 05, 2010 10:14 pm
Been thanked: 54 times

Evolution Engine Cache Extractor

Post by GMMan » Tue Sep 17, 2013 3:25 pm

Download from Tools Blog (Source code included)

This program allows you to extract cache files (.toc/.cache) from games using Digital Extremes' Evolution Engine. Just drag and drop a cache file on to the program and it will extract it into a subdirectory containing the file name. Make sure both .toc and .cache files are in the same folder. You can also specify where you want the files to be extracted using the /d switch.

Why use this instead of the Darkness II BMS? Because this keeps the proper directory structure and actually properly decompresses all the files. If you tried to extract the caches from any recent Evolution Engine games, the BMS script will produce junk.

Note: This extractor only works on version 20 caches. If you have a different version cache, send me a PM.

Other notes: 'H' caches contain file headers, 'B' caches contain the corresponding binary files (except for sounds, and maybe textures), and 'F' caches contain full sound files and textures. Also note that file extensions typically don't mean anything in these cache files. Those extensions are from before the files were cooked and compiled, so .fbx files are not in Autodesk FBX format, .wav files don't have WAVE headers, and .png files are not PNGs.

Version history:
[1.0.1.0 09/18/2013]
- Changed boilerplate console app text left over from app template (oops)
- Optimized LZ coder decoding (just a little bit, maybe)
- Writes file date from the TOC on to the extracted file
- Added some debugging workarounds (won't affect operation)
- Added cache version 16 to extractable versions (not fully tested; PM if you have any problems)
- Extractor can take filenames without the extension (e.g. "H.Font" instead of "H.Font.cache" or "H.Font.toc")

[1.0 09/17/2013]
- Initial release
Last edited by GMMan on Wed Sep 18, 2013 8:49 pm, edited 1 time in total.
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC

pixellegolas
ultra-veteran
ultra-veteran
Posts: 423
Joined: Mon Aug 11, 2008 11:30 pm
Has thanked: 27 times
Been thanked: 15 times

Re: Evolution Engine Cache Extractor

Post by pixellegolas » Tue Sep 17, 2013 6:02 pm

Trying the extractor but cannot get it to work. I use it on the latest update and on an old version I kept on the harddrive. Folders are there but no png can be seen. Most pngs in different folders are named like this:

0_I_l1.png
0_l0.png
0_l1.png
1_l0.png
1_l1.png

User avatar
GMMan
veteran
Posts: 139
Joined: Fri Nov 05, 2010 10:14 pm
Been thanked: 54 times

Re: Evolution Engine Cache Extractor

Post by GMMan » Tue Sep 17, 2013 8:02 pm

What game are you extracting from? The files I've extracted from Warframe seem to have intelligible names. Also look at what I've mentioned in the first post. The .pngs are probably not PNGs. The ones in Warframe look like they could be uncompressed ARGB. When the extractor is working, check the console to see if it's giving any errors.
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC

User avatar
GMMan
veteran
Posts: 139
Joined: Fri Nov 05, 2010 10:14 pm
Been thanked: 54 times

Re: Evolution Engine Cache Extractor

Post by GMMan » Wed Sep 18, 2013 8:50 pm

I've posted an update at the tools blog. It has a couple of new features, as outlined in the first post.
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC

pixellegolas
ultra-veteran
ultra-veteran
Posts: 423
Joined: Mon Aug 11, 2008 11:30 pm
Has thanked: 27 times
Been thanked: 15 times

Re: Evolution Engine Cache Extractor

Post by pixellegolas » Wed Sep 18, 2013 11:39 pm

Yeah I think I missed that small text about the fbx, pngs etc :) It is warframe I have and probably extracts exactly how it should. So what do we do with the files to make them work? Some more codedigging?

hoodlum47
beginner
Posts: 21
Joined: Sat Jan 29, 2011 11:01 pm
Been thanked: 4 times

Re: Evolution Engine Cache Extractor

Post by hoodlum47 » Sat Sep 21, 2013 4:52 pm

Um, is The Darkness 2 supported? Because the program keeps telling me that it can't read the archive.

User avatar
GMMan
veteran
Posts: 139
Joined: Fri Nov 05, 2010 10:14 pm
Been thanked: 54 times

Re: Evolution Engine Cache Extractor

Post by GMMan » Sat Sep 21, 2013 11:10 pm

I apparently forgot to move the latest build to the zip, so if you're seeing the program making new ".cache.cache" and ".cache.toc" files, download it again (from the same post). Also, make sure you have write access to both the cache files and the path you're extracting files to.
hoodlum47 wrote:Um, is The Darkness 2 supported? Because the program keeps telling me that it can't read the archive.
It probably has a different cache version. If the BMS script is to be trusted, this version could be using a different compression algorithm than later games. Send me a sample.
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC

hoodlum47
beginner
Posts: 21
Joined: Sat Jan 29, 2011 11:01 pm
Been thanked: 4 times

Re: Evolution Engine Cache Extractor

Post by hoodlum47 » Sun Sep 22, 2013 12:24 am

It probably has a different cache version. If the BMS script is to be trusted, this version could be using a different compression algorithm than later games. Send me a sample.
Actually, your "fixed" version seems to be doing the trick now. :)

musterfox
ultra-n00b
Posts: 1
Joined: Tue Jun 08, 2010 10:30 am

Re: Evolution Engine Cache Extractor

Post by musterfox » Sat Oct 26, 2013 9:11 am

Hi.

Trying to find some way to extract the music from Dark Sector (Steam Version).

I tried using the "Evolution Engine Cache Extractor 1.0.1.0" tool but I ran into a couple of issues.

1) The Steam ver of DS does not have any .toc files, just .cache files whereas your first post says "Make sure both .toc and .cache files are in the same folder."

2) When I drag a .cache file onto EvolutionUnpack.exe, all it does it create a .toc file with the same name and its always a zero byte file. There is no sign of the extracted data.

Please tell me what I am doing wrong so I can extract the music files from DS.

Thanks in advance. :)

User avatar
GMMan
veteran
Posts: 139
Joined: Fri Nov 05, 2010 10:14 pm
Been thanked: 54 times

Re: Evolution Engine Cache Extractor

Post by GMMan » Mon Nov 11, 2013 2:23 am

musterfox wrote:1) The Steam ver of DS does not have any .toc files, just .cache files whereas your first post says "Make sure both .toc and .cache files are in the same folder."
Interesting. Could you PM me a sample?
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC

User avatar
zaramot
double-veteran
double-veteran
Posts: 726
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 776 times

Re: Evolution Engine Cache Extractor

Post by zaramot » Fri Nov 29, 2013 7:58 pm

Hi GMMan. I'm trying to write maxscript to import models from Warframe online, and it seems that textures aren't extracted correctly from this game with Evolution Extractor, maybe you could fix this issue in future? It will help me greatly, thanks for great tool!
Making model-import scripts, PM

pixellegolas
ultra-veteran
ultra-veteran
Posts: 423
Joined: Mon Aug 11, 2008 11:30 pm
Has thanked: 27 times
Been thanked: 15 times

Re: Evolution Engine Cache Extractor

Post by pixellegolas » Sat Nov 30, 2013 8:30 pm

so .fbx files are not in Autodesk FBX format, .wav files don't have WAVE headers, and .png files are not PNGs.
The next thing to do is to figure out these new files that are spitted out but that is same amount of work again :)

I am also hoping because they keep adding cooler and cooler robots in warframe but lets see

User avatar
zaramot
double-veteran
double-veteran
Posts: 726
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 776 times

Re: Evolution Engine Cache Extractor

Post by zaramot » Sat Nov 30, 2013 11:12 pm

I have some progress with meshes, it's will be great if textures will extract fine and we could convert them.
You do not have the required permissions to view the files attached to this post.
Making model-import scripts, PM

User avatar
GMMan
veteran
Posts: 139
Joined: Fri Nov 05, 2010 10:14 pm
Been thanked: 54 times

Re: Evolution Engine Cache Extractor

Post by GMMan » Tue Dec 03, 2013 4:54 pm

zaramot wrote:Hi GMMan. I'm trying to write maxscript to import models from Warframe online, and it seems that textures aren't extracted correctly from this game with Evolution Extractor, maybe you could fix this issue in future? It will help me greatly, thanks for great tool!
I actually don't know what format textures are in. As far as I can tell they look like some sort of raw file. It's been a long time since I've touched any Revolution Engine stuff, but I think the extractor's working properly, since there were no warnings from the decompressed size check the last time I extracted various caches.

If I can find time I might add repacking into the program. If anyone needs it fast, I'll make a new version that will pack uncompressed.
Currently researching: Alpha Prime scripting (AI and mods)
Queued: EE .cache repacking, CustomPak repacking, Gameloft Scrambled Zip multitool, GRAF Extractor Skeleton repacking, Gun Metal filenames CRC

User avatar
zaramot
double-veteran
double-veteran
Posts: 726
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 776 times

Re: Evolution Engine Cache Extractor

Post by zaramot » Wed Dec 04, 2013 11:20 am

Hello GMMan. Thanks a lot for support and info. To say truth, I really hoped it's some issues from Cache Extractor side :) Because in this case there was hope, that you can fix this. If textures extracted right, I have no idea what to do with them to convert into any known format.
Last edited by zaramot on Thu Dec 05, 2013 10:44 am, edited 1 time in total.
Making model-import scripts, PM

Post Reply