PanAzej Posted Saturday at 04:23 PM Share Posted Saturday at 04:23 PM (edited) Hi Everyone, So I came back to look at my old character mods, and well... There have been many game updates. And the Wilson's default speech file grew exponentially. It would be hard to keep track of every single new entry (since new entries have been added in various places, some were changed, and some removed...). More than that, to actually come up with all the new strings would be a ton of work! So, I figured "why not simplify/automate this"? I created a new .NET Framework WinForms project and started working on a solution. I kept this little program to myself up to this point. Not too long ago ChatGPT API was made public (and most importantly - for free!), so I decided to incorporate ChatGPT into my program. And at this point, I think that this will be a great tool for a lot of modders who are not very creative writers, but love creating custom characters. Introducing: Don't Starve Speech File Editor! (actual file name is SpeechFileUpdater.exe) How to use this program: 1. Import the speech file of your choice from your local disk to table of your choice (from wide range of choices - the left table or the right table). 2. Harvest a ripe, freshly updated Wilson's speech file from game's files (Don't Starve Together\data\databundles\scripts.zip) 3. Load the Wilson's speech file into the second table. 4. Edit the file, copy keys, do whatever you must! 5. Export your edited speech file - from program's table, to your local disk path. Buttons: Filter - applies the filter written in text box on the left from the button's location (hides rows which don't match the typed string). Filter is always case-insensitive. Clear Filter - un-applies all filters for the table, making all speech file entries visible. Import - loads the LUA speech file from local disk into the table above the button. WARNING! This actually executes the LUA file you select. Don't launch anything weird or you might regret it! Editor tries to detect if the file contains anything malicious, but I'm not giving any guarantees it will actually protect your computer. Export - collects data from the table above the button and exports it as a LUA speech file to chosen local disk path. Mark differences - if you have both tables loaded, you can use this button to make the tool automatically compare and color-mark the differences (in comparison to the second table). Copy missing keys - if you have both tables loaded, you can use this button to make the tool copy missing speech file keys (e.g. ACTIONFAIL.GIVE.SLEEPING) with empty values. After inserting, these new entries will be at the bottom of your current table. After you save and reload the file, they will be placed in "correct" places in the table (so, all around the place). Settings - lets you turn off ChatGPT buttons, as well as modify the font for each table to your liking. ChatGPT - lets you set your API Key, prompt, and randomness factor of the ChatGPT response. After you're set, press the green ChatGPT button in the table row you would like the chatbot to generate text for you (HTTP request timeout is 15 seconds). Enjoy! Hopefully this will make some modders' lives easier. GitHub repo: https://github.com/JaroslawKargul/CSharp-SpeechFileUpdater Zipped executable: Don't Starve Speech File Editor v0.8.zip Edited 7 hours ago by PanAzej updated the tool again with Unicode support 2 Link to comment Share on other sites More sharing options...
mathem99 Posted Saturday at 04:34 PM Share Posted Saturday at 04:34 PM As a writer, this tool is a must-have. Great work, PanAzej! 1 Link to comment Share on other sites More sharing options...
. . . Posted 22 hours ago Share Posted 22 hours ago (edited) does this require ChatGPT or can be used without it too (like offline) just to see what quotes are missing from updated wilson speech file Edited 22 hours ago by . . . Link to comment Share on other sites More sharing options...
PanAzej Posted 19 hours ago Author Share Posted 19 hours ago 2 hours ago, . . . said: does this require ChatGPT or can be used without it too (like offline) just to see what quotes are missing from updated wilson speech file You can disable ChatGPT entirely by using the "Settings" button. It's just an option to write speech entries faster - if you don't need it, you can just use it as a comparer for speech files. I have updated the tool again to fix a couple of issues, also I have cleaned up the source code a little bit. I added a new feature in Settings - you can now specify the program to put empty speech lines at the bottom of the table upon file load. I have created a new GitHub repository for the project, since its structure changed entirely: https://github.com/JaroslawKargul/CSharp-SpeechFileUpdater And here's the new version of the editor (I'll update it in main post shortly): Don't Starve Speech File Editor v0.7.zip 1 Link to comment Share on other sites More sharing options...
Rickzzs Posted 10 hours ago Share Posted 10 hours ago Looks like it does not support unicode. Chinese characters are messed up. Link to comment Share on other sites More sharing options...
PanAzej Posted 7 hours ago Author Share Posted 7 hours ago 3 hours ago, Rickzzs said: Looks like it does not support unicode. Chinese characters are messed up. Thanks for the response. The issue was LuaInterface module I was using, it did not support Unicode. I have switched to Neo Lua module, and updated the tool with Unicode support: Don't Starve Speech File Editor v0.8.zip 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now