Hey there, So far, it's a nice tool, thanks. I'll be using it for the strings of my mods. :)
I can think of a huge improvement: - At the end of the encode routine, would it be possible to create all the *.w3strings language files even if there is only one .csv file in input ?
Cheers, Takit
Edit: Nevermind, I created a very simplified version on my own to fit my needs. It only asks for one thing (the mod's name), it only encodes, and it creates all the *.w3strings files according to the existing *.csv files.
Easy fix. Looks like you forgot to set the location / variable for the W3strings executable.
Make sure you have the w3strings encoder downloaded, and in "W3-DEEN.ps1" change $W3STRINGS = "X:\[i] Mods\The Witcher 3\[i] Tools\W3strings\w3strings.exe" to your specific file path. Something like: $W3STRINGS = "<your_file_path>\w3strings.exe"
Im trying to replace the original en.w3strings file from W3GOTY\content\content0 folder with the same one but edited by me. Decoding works easily but I couldn't encode it back to w3strings from csv. The detected ID space is 6875 and yet it still fails to encode. I only wanna edit the gwent cards' names and description, from the original file of course, however each of them has a different ID space.
Hey boss, the issue is that modifying vanilla '.w3strings' files doesn't fit within the parameters of the w3strings executable. More specifically, modded '.w3strings' files have an ID space of between '211xxxx000' and 211xxxx999', whereas the vanilla files have all sorts of nutty ID spaces.
However, if you download DEEN v4.0.1, I now included an option that will allow an ID space bypass for those rare occasions.
Glad you find it helpful man. If you think of any ideas on how to make the script better, or extra functionality I should include just leave a comment and I'll see what I can do.
Is there any way to display the errors that the exe produces? I couldnt figure out what I was doing wrong until I ran the command prompt, turned out my ID was 1 number too long but took me a while to notice!
I could try something like that. The issue is that the way the script is ran, it sends all the user input into the Start-Process cmdlet, which (to my knowledge) doesn't actually show output (including errors, functionality, etc). So all the pseudo error checking, steps, etc. in the script were all manually written. But yeah, I'll double check it. I wrote this a month back, and I've actually gotten a lot more PowerShell knowledge and experience under my belt now so I'll see what I can do. No promises though.
11 comments
So far, it's a nice tool, thanks.
I'll be using it for the strings of my mods. :)
I can think of a huge improvement:
- At the end of the encode routine, would it be possible to create all the *.w3strings language files even if there is only one .csv file in input ?
Cheers,
Takit
Edit:
Nevermind, I created a very simplified version on my own to fit my needs.
It only asks for one thing (the mod's name), it only encodes, and it creates all the *.w3strings files according to the existing *.csv files.
How can I convert .csv files to w3strings?
Could someone willingly explain to me?
it always throws me this error
Make sure you have the w3strings encoder downloaded, and in "W3-DEEN.ps1" change
$W3STRINGS = "X:\[i] Mods\The Witcher 3\[i] Tools\W3strings\w3strings.exe"
to your specific file path. Something like:$W3STRINGS = "<your_file_path>\w3strings.exe"
However, if you download DEEN v4.0.1, I now included an option that will allow an ID space bypass for those rare occasions.