The rules have been updated, read them now: Rules!

The Witcher 2

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Modman69
veteran
Posts: 108
Joined: Wed Jun 17, 2009 4:33 pm
Has thanked: 19 times
Been thanked: 3 times

Re: The Witcher 2

Post by Modman69 » Fri May 27, 2011 10:02 am

Is there a way to view the .usm movies or extract/convert them to something viewable?

oveja
beginner
Posts: 23
Joined: Wed Feb 23, 2011 9:35 pm
Has thanked: 3 times

Re: The Witcher 2

Post by oveja » Fri May 27, 2011 1:24 pm

Modman69 wrote:Is there a way to view the .usm movies or extract/convert them to something viewable?
nothing.
*.usm file is Scaleform Video file.
only *.avi convert *.usm.
don't convert *.usm to *.avi.
You do not have the required permissions to view the files attached to this post.

Arxel
n00b
Posts: 18
Joined: Wed May 25, 2011 11:32 pm

Re: The Witcher 2

Post by Arxel » Fri May 27, 2011 11:32 pm

Just to be sure - in items/ we have some .xml files.. Do You guys have all items names in english or maybe in your foreign language? I'm not sure if all inside .xml names are in english and the translation is somewhere in .w2strings or maybe I did something wrong while installing game ;)

inforsir
ultra-n00b
Posts: 7
Joined: Mon May 23, 2011 8:45 pm

Re: The Witcher 2

Post by inforsir » Sat May 28, 2011 12:25 am

anyone know how to open .w2comm files because i want to a take a peek into the quest files.to change the quest exp/orens rewarded from the said quest

chalon
n00b
Posts: 16
Joined: Sat May 21, 2011 8:20 pm
Been thanked: 1 time

Re: The Witcher 2

Post by chalon » Sat May 28, 2011 12:26 am

Arxel wrote:Just to be sure - in items/ we have some .xml files.. Do You guys have all items names in english or maybe in your foreign language? I'm not sure if all inside .xml names are in english and the translation is somewhere in .w2strings or maybe I did something wrong while installing game ;)
The item names in the xml files are basically in english, but they are not the item names displayed. It uses the name in the xml file as a key in the .w2strings file to get the actual localized name that it displays.

I'm trying to figure out the w2strings format. I've got it to read all the key strings in the first part of the file, which was pretty easy, but the second part of the file is compressed, encoded, or encrypted somehow.

The basics of the format I've figured out is the file starts out with a magic number first four bytes (c9 00 00 00).

Then there are 4 bytes, followed by 1 byte of the key string size, followed by the key string itself. This repeats until you get through all the key strings, except for one key in the middle that seems to be slightly malformed.

The most significant bit of the string size tells you whether the key string is UTF-8 or UTF-16. Set to 1 means UTF-8, set to 0 means UTF-16. Then the rest of the bits tell you the actual size of the string.

I haven't really figured out what the 4 bytes before the string size byte mean, though. If I load it up as a little endian int32, the two most significant bytes are almost always 0x7933, then the next two bytes vary quite a bit.

Anyway, just writing a real simple program that grabs the 4 bytes as an int32, reads the string, and outputs both, I get a lot of output like this:

Code: Select all

0x79336953: templars camp
0x79338317: temple
0x7933842e: temple cemetery
0x7933a633: tentadrake armor
0x79336b6c: tentadrake armor enhancement
0x79336ab5: tentadrake eyes

Arxel
n00b
Posts: 18
Joined: Wed May 25, 2011 11:32 pm

Re: The Witcher 2

Post by Arxel » Sat May 28, 2011 12:50 am

Good work! I only want stuff names etc. ;)

oh, .w2comm would also be great..!

odrin
mega-veteran
mega-veteran
Posts: 171
Joined: Mon May 23, 2011 2:43 am
Has thanked: 3 times
Been thanked: 7 times

Re: The Witcher 2

Post by odrin » Sat May 28, 2011 2:07 am

but the downside is, those xml files will be referring to complete w2 files, not the individual names from inside.

am i wrong in assuming this?

chalon
n00b
Posts: 16
Joined: Sat May 21, 2011 8:20 pm
Been thanked: 1 time

Re: The Witcher 2

Post by chalon » Sat May 28, 2011 2:15 am

The w2strings file, when decoded, is going to be a lot of key,value pairs that are essentially along the lines of:
Key=tentadrake armor,Value=Kayran Armor

The XML files refer to those Keys. So if you want the correct item names you just have to match the key with the actual values.

The localization process would probably involve just localizing all those values and then encoding the new w2strings file.

But the w2strings file has to be figured out first. Right now I have the "keys", but none of the "values."

odrin
mega-veteran
mega-veteran
Posts: 171
Joined: Mon May 23, 2011 2:43 am
Has thanked: 3 times
Been thanked: 7 times

Re: The Witcher 2

Post by odrin » Sat May 28, 2011 2:35 am

alright, thanks.

inforsir
ultra-n00b
Posts: 7
Joined: Mon May 23, 2011 8:45 pm

Re: The Witcher 2

Post by inforsir » Sat May 28, 2011 6:33 am

anybody have any info on how to change the sell amount on a item? so u can sell it for a lot. or change how much orens is drop off a body?

Rick
Moderator
Posts: 388
Joined: Tue Aug 09, 2005 10:10 pm
Location: California
Been thanked: 84 times
Contact:

Re: The Witcher 2

Post by Rick » Sat May 28, 2011 8:56 am

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.

odrin
mega-veteran
mega-veteran
Posts: 171
Joined: Mon May 23, 2011 2:43 am
Has thanked: 3 times
Been thanked: 7 times

Re: The Witcher 2

Post by odrin » Sat May 28, 2011 9:11 am

hi, i compiled that with microsoft network 4. what does it do? i try inputting w2 files but it just shuts down.

chalon
n00b
Posts: 16
Joined: Sat May 21, 2011 8:20 pm
Been thanked: 1 time

Re: The Witcher 2

Post by chalon » Sat May 28, 2011 10:14 am

Thanks a lot. I was basically getting nowhere trying to look at it in IDA, now I can get all this localization stuff in my item DB!

Modman69
veteran
Posts: 108
Joined: Wed Jun 17, 2009 4:33 pm
Has thanked: 19 times
Been thanked: 3 times

Re: The Witcher 2

Post by Modman69 » Sat May 28, 2011 5:48 pm

oveja,

Thanks for the info.

Arxel
n00b
Posts: 18
Joined: Wed May 25, 2011 11:32 pm

Re: The Witcher 2

Post by Arxel » Sat May 28, 2011 6:01 pm

Quick question - Does anyone know where to look for a script that disable HUD?
When we save the game, images are without hud.. In preview version [H] key allow to switch on/off hud in-game..

I don't have any files from preview version so can't look for some files that references to controls.. :(

Post Reply