Potentially very silly question: How do I convert string files to CSV and back?
sv3672;n2136218 said:Update: also added the source code of the dialogue utility, however, as explained above, its usability could be improved: w3utils.zip More utilities may be added or updated later.
tes4oblivion;n6891570 said:Does anyone here still keep the files, if yes, could you send me link to download w3utils.zip, please?
sv3672;n7657050 said:It can still be downloaded from here in case the utility is still useful.
sv3672;n9191571 said:Fixed errors on empty .wav files in rupc.w3speech in content4 and Hearts of Stone: w3utils.zip.
Cercaphus;n9193251 said:Thanks for the update. A small off-topic question, since from what I gathered this file extracts from both TW2 and TW3. Is there a similar program for scene files from both games (TW2+3) to extract them?
sv3672;n9193421 said:It is possible to extract the .w2scene files (or anything else that is in bundles or DZIP files, but it will not be uncooked) from both games with this tool, and also their dialogue lines in text format, and some of the raw data in the same format as the output of inspect_cr2w.lua. Dumping Witcher 2 CR2W files can be somewhat unreliable, and for both games the Lua format output only includes some of the data types, however.
Edit: the above package has been updated with a new utility called "w3unpack.exe", the download link is the same as before. This program can be used for the following:
- extract files from bundles (TW3) or DZIP files (TW2), using a name filter specified by the user
- convert .w2strings or .w3strings files to text (UTF-8 ) format, similarly to inspect_w3strings.lua
- the above can be done recursively on directory trees, all bundle or localization files are processed in alphabetical order
- dump dialogues from .w2scene files (TW2 or TW3) in any of the supported languages
- dump the contents of CR2W files in Lua format, similarly to the output of inspect_cr2w.lua (not all variables are supported, however, only these types: Bool, Int32, Uint/Uint32, Float, String, CName, LocalizedString, element pointer, array of element pointers). When used with the -l option, localized strings are also written as comments in that language
Examples:
w3unpack -d -l pl "F:\SteamLibrary\steamapps\common\The Witcher 3" all_dialogues_pl.txt
w3unpack -w -l en "F:\SteamLibrary\steamapps\common\The Witcher 3" all_strings_en.txt
w3unpack -u -i /q310_ -s .w2scene "F:\SteamLibrary\steamapps\common\The Witcher 3" final_preparations_scenes
Running the program without any arguments prints the usage. Note: this version may still be buggy, so use it at your own risk.
Edit for version 1.30: there have been some changes to the w3strings and CR2W formats in this patch, which break the tool, I will fix that soon.
Hi! please tell me, were you able to get such a file as is shown in the picture? If so, how? I tried to use different arguments for w3unpack, but I got hex codes (names of voice files) only with the-c argument. But this doesn't work for dlc. Thanks.Hello,
your tool is very useful. Thank you.
One Question: Is it possible to insert the "Speech ID" from the w3strings automatically into the command:
w3unpack -d -l pl "F:\SteamLibrary\steamapps\common\The Witcher 3" all_dialogues_pl.txt
Like that:
View attachment 11051261
I am thankful for all help and information.
Greetings
Hi. I don't know if I understood your problem exactly, but have a look at this thread:Hi! please tell me, were you able to get such a file as is shown in the picture? If so, how? I tried to use different arguments for w3unpack, but I got hex codes (names of voice files) only with the-c argument. But this doesn't work for dlc. Thanks.