Shadow Warrior 2 (*.bin)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Shadow Warrior 2 (*.bin)

Post by happyend »

BMS script written by Ekey doesn't work on this.
viewtopic.php?f=9&t=2547


Samples:
http://www56.zippyshare.com/v/34ugwT3i/file.html


thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shadow Warrior 2 (*.bin)

Post by aluigi »

happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Re: Shadow Warrior 2 (*.bin)

Post by happyend »

Error: [myfseek] the offset 0xffffffffffffffff in the file 0 can't be reached

Last script line before the error or that produced the error:
21 log NAME OFFSET SIZE

Script doesn't work on pc_arch_common.bin (7.40 GB)big files
use filecutter script
Samples:http://www17.zippyshare.com/v/up2JlifW/file.html

thx
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shadow Warrior 2 (*.bin)

Post by aluigi »

Script 0.1.1
The format uses the offset -1 for the old files that have been removed from the archive.
zaramot
Posts: 51
Joined: Mon Sep 01, 2014 7:19 pm

Re: Shadow Warrior 2 (*.bin)

Post by zaramot »

Thanks a lot for the script Aluigi! :) I don't know if it's an error from my side, but all extracted files are 64kb in size or less. It seems it's extracting only beginning of the file.
Last edited by zaramot on Mon Oct 17, 2016 3:51 pm, edited 1 time in total.
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Re: Shadow Warrior 2 (*.bin)

Post by happyend »

Script 0.1.1 is cool,Thanks aluigi!!!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shadow Warrior 2 (*.bin)

Post by aluigi »

@zaramot
You are perfectly right: it's a chunk-based format.
Script 0.2

I don't know if you want to reimport the files, in that case it's enought to replace MEMORY_FILE with NAME and remove the following lines:
putvarchr MEMORY_FILE SIZE 0
log NAME 0 SIZE MEMORY_FILE

This rule is valid for most of my scripts for chunk-based formats with files that have a name (not nameless).
I prefer ever to use a temporary memory file mainly for performances.
zaramot
Posts: 51
Joined: Mon Sep 01, 2014 7:19 pm

Re: Shadow Warrior 2 (*.bin)

Post by zaramot »

Thanks a lot again and again Aluigi! :) Will try to get rigged models out, looks like not a bad game, worth to make an import script

Image
alientech
Posts: 8
Joined: Thu Oct 13, 2016 5:43 am

Re: Shadow Warrior 2 (*.bin)

Post by alientech »

Can't wait for the script to import 3d model files to 3ds max. I got everything extracted from the game.
qw_zzz
Posts: 3
Joined: Mon Jan 23, 2017 1:55 pm

Re: Shadow Warrior 2 (*.bin)

Post by qw_zzz »

how do i export the assets for shadow warrior 2 for 3dsmax?
Frizione
Posts: 1
Joined: Mon Mar 27, 2017 8:41 pm

Re: Shadow Warrior 2 (*.bin)

Post by Frizione »

I extracted pc_arch_common.bin and I tried to open katana hkt file with Havok Content Tool 2013.0.1 but it gives me this error

"Patching to latest version failed.Have you registered the necessary patches? Patches may be missing because your assets are older than HK_SERIALIZE_MIN_COMPATIBLE_VERSION (if defined).Make sure that the patches are registered properly (see hkRegisterPatches.cxx,included by hkProductFeatures.cxx).See the hkError output for more details"

What does this mean? I think that probably the version are not compatibles but I'm not sure I never tried to extract these types of files. I just need to export static meshes file I don't need skeletons or animations (but if there's a way good to know :D). Opening the file I wanted to import with notepad I found that in one of the first lines there is : "hk_2013.3.0-r1" but I couldn't find any version with this name. What version of Havok SW2's files use?
Amagakuro
Posts: 46
Joined: Wed Sep 23, 2015 4:47 pm

Re: Shadow Warrior 2 (*.bin)

Post by Amagakuro »

Ehi there, i just found out that with havoc content tool 2014 models seems to be openable, and... maybe, animations may be loaded too!
Unfortunately they're all inside .animset files and i didn't find anything helpful for extracting them, was wondering if someone could give them a look, maybe make a script :P i uploaded a few
http://www.mediafire.com/file/bx3a9997nd87g0h/Animset.rar

Thanks in advance~
pooly32
Posts: 1
Joined: Mon Feb 05, 2018 9:29 pm

Re: Shadow Warrior 2 (*.bin)

Post by pooly32 »

Can you link to this script?
(I want to get co op ninja skin 1)
https://pbs.twimg.com/media/CpBqtu9VUAAGiS1.jpg
DJ Normality
Posts: 647
Joined: Tue Jul 24, 2018 8:52 am

Re: Shadow Warrior 2 (*.bin)

Post by DJ Normality »

zaramot wrote:Thanks a lot again and again Aluigi! :) Will try to get rigged models out, looks like not a bad game, worth to make an import script

Image


This ever get finished ?