Join also our Discord channel! Click here.
The Witcher 2
- chrrox
- Moderator
- Posts: 2569
- Joined: Sun May 18, 2008 3:01 pm
- Has thanked: 57 times
- Been thanked: 1323 times
Re: The Witcher 2
I doubt this format will be supported they seem to have ripped off unreal engine's format without actually using the unreal engine.
Re: The Witcher 2
Smaller sample at http://filevo.com/dnvemmwnixa7.html
The retail/GOG/Steam releases all seem to be set up differently in the way the files are laid out in the game directory.
The folder CookedPC would point to Unreal though - but I thought this engine was custom?
The retail/GOG/Steam releases all seem to be set up differently in the way the files are laid out in the game directory.
The folder CookedPC would point to Unreal though - but I thought this engine was custom?
-
- Moderator
- Posts: 388
- Joined: Tue Aug 09, 2005 10:10 pm
- Location: California
- Been thanked: 84 times
- Contact:
Re: The Witcher 2
What? their archive format looks nothing like unreal packages.chrrox wrote:I doubt this format will be supported they seem to have ripped off unreal engine's format without actually using the unreal engine.
http://blog.gib.me/
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
- chrrox
- Moderator
- Posts: 2569
- Joined: Sun May 18, 2008 3:01 pm
- Has thanked: 57 times
- Been thanked: 1323 times
-
- Moderator
- Posts: 388
- Joined: Tue Aug 09, 2005 10:10 pm
- Location: California
- Been thanked: 84 times
- Contact:
Re: The Witcher 2
Yes, I have not committed my code to my repository yet though.chrrox wrote:you got an extractor working?
http://blog.gib.me/
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
-
- Moderator
- Posts: 388
- Joined: Tue Aug 09, 2005 10:10 pm
- Location: California
- Been thanked: 84 times
- Contact:
Re: The Witcher 2
It won't, w2strings files are another beast entirely, not an archive file.
http://blog.gib.me/
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
Re: The Witcher 2
Rick wrote:Yes, I have not committed my code to my repository yet though.chrrox wrote:you got an extractor working?
Is it GitHub or something so I can subscribe to your commits?
-
- Moderator
- Posts: 388
- Joined: Tue Aug 09, 2005 10:10 pm
- Location: California
- Been thanked: 84 times
- Contact:
Re: The Witcher 2
http://cia.vc/stats/project/redvoltagex wrote:Is it GitHub or something so I can subscribe to your commits?
http://svn.gib.me/public/red
http://blog.gib.me/
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
-
- Moderator
- Posts: 388
- Joined: Tue Aug 09, 2005 10:10 pm
- Location: California
- Been thanked: 84 times
- Contact:
Re: The Witcher 2
I'll probably commit my unpacking code soon; today I've been working on the w2scripts file (got most of it read -- need to write disassembler
).

http://blog.gib.me/
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
- chrrox
- Moderator
- Posts: 2569
- Joined: Sun May 18, 2008 3:01 pm
- Has thanked: 57 times
- Been thanked: 1323 times
Re: The Witcher 2
ok here is a basic bms its not done yet.
but you re right the file format is not that bad.
Can you help me understand this
also the bit about the cd key needed for dlc packages.
but you re right the file format is not that bad.
Code: Select all
idstring DZIP
get unk01 long
get files long
get unk02 long
get tableoff long
goto tableoff
for i = 0 < files
get nsize short
getdstring name nsize
get unk03 long
get unk04 long
get size long
get null01 long
get offset long
get null02 long
get zsize long
get null03 long
log name offset zsize
next i
Code: Select all
while (i < input.Length)
{
var op = input[i++];
var control = (op >> 5) & 0x07;
if (control == 0)
{
// uncompressed blob
int length = 1 + (op & 0x1F);
Array.Copy(input, i, output, o, length);
i += length;
o += length;
}
else
{
int length;
if (control == 7)
{
length = 6 + input[i++];
}
else
{
length = control - 1;
}
length += 3;
int offset = (op & 0x1F) << 8;
offset |= input[i++];
offset = o - 1 - offset;
if (offset + length > o)
{
while (length > 0)
{
output[o++] = output[offset++];
length--;
}
}
else
{
Array.Copy(output, offset, output, o, length);
o += length;
}
}
}
-
- Moderator
- Posts: 388
- Joined: Tue Aug 09, 2005 10:10 pm
- Location: California
- Been thanked: 84 times
- Contact:
Re: The Witcher 2
That's the compression scheme Witcher 2 uses in its archive files. As for the CDKey -- file names are obfuscated in DLC DZIPs using the CDKey.
http://blog.gib.me/
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.
Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.