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

The Witcher 2

The Original Forum. Game archives, full of resources. How to open them? Get help here.
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: The Witcher 2

Post by chrrox »

ah the compression is lzf
Rick
Moderator
Posts: 388
Joined: Tue Aug 09, 2005 10:10 pm
Been thanked: 84 times
Contact:

Re: The Witcher 2

Post by Rick »

Thanks, it was simple enough that I didn't go hunting for what algo it was.
https://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.
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: The Witcher 2

Post by chrrox »

here is the bms script.
you need to use the 64 bit quickbms to extract it all.

Code: Select all

idstring DZIP
comtype COMP_LZF
get unk01 long
get files long
get unk02 long
get tableoff longlong
for i = 0 < files
goto tableoff
get nsize short
getdstring name nsize
get unk03 long
get unk04 long
get size longlong
get offset longlong
get zsize longlong
savepos tableoff
goto offset
get offadd long
math offset + offadd
math zsize - offadd
clog name offset zsize size
next i
voltagex
ultra-n00b
Posts: 9
Joined: Wed May 18, 2011 12:04 am
Has thanked: 1 time

Re: The Witcher 2

Post by voltagex »

How do you guys work this stuff out so quickly? I'd love to learn to write unpackers.
voltagex
ultra-n00b
Posts: 9
Joined: Wed May 18, 2011 12:04 am
Has thanked: 1 time

Re: The Witcher 2

Post by voltagex »

Edit: I'm an idiot
Last edited by voltagex on Fri May 20, 2011 6:21 am, edited 1 time in total.
Rick
Moderator
Posts: 388
Joined: Tue Aug 09, 2005 10:10 pm
Been thanked: 84 times
Contact:

Re: The Witcher 2

Post by Rick »

voltagex wrote:Rick, that code is pretty cool, but it's missing Gibbed.Helpers - are you keeping it secret? :D
No, if you export with a proper SVN client it will pull it from an external.
https://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.
Nemmay
ultra-n00b
Posts: 5
Joined: Fri May 20, 2011 7:58 am

Re: The Witcher 2

Post by Nemmay »

Hey Rick, took a look at your code, pretty neat; sadly, I don't understand most of it, haha. Have you made any progress on reversing the process and repacking into a dzip?
Rick
Moderator
Posts: 388
Joined: Tue Aug 09, 2005 10:10 pm
Been thanked: 84 times
Contact:

Re: The Witcher 2

Post by Rick »

Don't need to, the game will override dzip contents with those that are on the disk.
https://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.
Nemmay
ultra-n00b
Posts: 5
Joined: Fri May 20, 2011 7:58 am

Re: The Witcher 2

Post by Nemmay »

Rick wrote:Don't need to, the game will override dzip contents with those that are on the disk.
So, you just place the folder where the dzip would usually be and the game will use it?

EDIT: Just tried it, doesn't seem to work. I don't want to sound too needy, but you sure there wouldn't be away you can release something to repack it into dzip for the heck of it?
Rick
Moderator
Posts: 388
Joined: Tue Aug 09, 2005 10:10 pm
Been thanked: 84 times
Contact:

Re: The Witcher 2

Post by Rick »

It does work as far as I can tell.

IE:

From pack0.dzip: engine\textures\icons\witcher.xbm
Placed in CookedPC\engine\textures\icons\witcher.xbm

The game will read the one on the disk.
https://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.
Nemmay
ultra-n00b
Posts: 5
Joined: Fri May 20, 2011 7:58 am

Re: The Witcher 2

Post by Nemmay »

Rick wrote:It does work as far as I can tell.

IE:

From pack0.dzip: engine\textures\icons\witcher.xbm
Placed in CookedPC\engine\textures\icons\witcher.xbm

The game will read the one on the disk.
Say, if you used your legit serial to deserialize your .dlc file and extract it, how would you get it back into dzip form for it to work? I've tried this, and it wont load anything from just a folder.
Rick
Moderator
Posts: 388
Joined: Tue Aug 09, 2005 10:10 pm
Been thanked: 84 times
Contact:

Re: The Witcher 2

Post by Rick »

Why would you want to repack DLC? :?
https://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.
Nemmay
ultra-n00b
Posts: 5
Joined: Fri May 20, 2011 7:58 am

Re: The Witcher 2

Post by Nemmay »

Rick wrote:Why would you want to repack DLC? :?
They wont load from just a folder, only dzip.
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: The Witcher 2

Post by chrrox »

To export the svn just use
"C:\Program Files\Subversion\bin\svn.exe" export http://svn.gib.me/public/red C:\red\
Psientist
ultra-n00b
Posts: 7
Joined: Thu Feb 17, 2011 2:27 pm

Re: The Witcher 2

Post by Psientist »

.XBM textures? What manner of witchcraft is this?!

Seriously though, anyone got a program to recommend for err... doing anything with them? :)
Post Reply