Golselect 1 Posted June 27, 2017 As the title says, I've been encountering with this problem recently. Kotor Tool seems to not be able to save UTI files properly anymore after I change some minor things, or even saving them as they are (with no changes). The strange thing is that not so long ago (a day or so) it worked as usual, with no problems at all, so it isn't a problem with the installation of the program. If anyone knows the reason for this problem, I'd be grateful if they could help me with it Quote Share this post Link to post Share on other sites
Kexikus 995 Posted June 27, 2017 What do you mean by "not saving properly". No changes are saved? Some changes are missing? The file is corrupted? Quote Share this post Link to post Share on other sites
Golselect 1 Posted June 27, 2017 What do you mean by "not saving properly". No changes are saved? Some changes are missing? The file is corrupted? A little bit of both, sometimes the files work well but with no changes applied, but in other cases the files end up being corrupted and the game crashes (those files can't be changed again also, because Kotor Tool throws an error when opening those files and crashes) Quote Share this post Link to post Share on other sites
Fair Strides 509 Posted June 28, 2017 We need details. What system do you have? What is your OS? How are you running KT, if not on a Windows machine? Are you running as an Admin? What do you have for your options in KT? Do you have any particular files we could check as examples? Quote Share this post Link to post Share on other sites
Golselect 1 Posted June 28, 2017 I'm working entirely on windows 10, running KT on it (not as an Admin, though). On KT I have the default installation configuration (with the Override's 2DA option activated). For the files, how should I share them with you guys? I'm relatively new, so I'd appreciate the advice Quote Share this post Link to post Share on other sites
Kexikus 995 Posted June 28, 2017 Put them in a .zip file and then when posting here click the "More Reply Options" button in the bottom right. There you'll find an "Attach Files" section that allows you to upload files. Just make sure that once they're uploaded, you actually add it to the post itself. Quote Share this post Link to post Share on other sites
Golselect 1 Posted June 28, 2017 Also, now all the files I try to edit end up corrupted and with errors such as "The arithmetic operation has caused overflow" or "It's not possible to read further from the end of the sequence". Here I send some examples of files that I've been trying to edit but failed. UTI Files.rarIn the .rar file, the file that isn't in the "corrupted files" folder is an unedited file so you can try. In the "corrupted files" folder there is a file named g_a_class6012.uti. That was the last file I could edit before this happened, but when I tried to simply save that file again without changes it became corrupted. Quote Share this post Link to post Share on other sites
Fair Strides 509 Posted June 28, 2017 Two things I recommend: 1. Uninstall KotOR Tool, then delete the KotOR Tool folder (which is in either your Program Files or Program Files (x86). Then re-install KotOR Tool. 2. Your items seem to be KotOR 2 items, but the KTGameIndex field in the .uti files is set to 0, indicating that you've told KotOR Tool the files are for KotOR 1. If KotOR Tool can't tell right off the bat which game a file goes to, it'll bring up a popup asking you which game. It's important that you select the proper game so KotOR Tool knows how to work with the file properly. I'm not saying the above will fix it or has been the cause of your issues, but there's a possibility. I also noticed you're trying to give the items text in three different languages inside the file (the description on one of the .uti files had text entered for English, Spanish, and one other language, though the actual text was written in English). Quote Share this post Link to post Share on other sites
Golselect 1 Posted June 28, 2017 1. Uninstall KotOR Tool, then delete the KotOR Tool folder (which is in either your Program Files or Program Files (x86). Then re-install KotOR Tool. I've tried that, but it seems it doesn't fix it. 2. Your items seem to be KotOR 2 items, but the KTGameIndex field in the .uti files is set to 0, indicating that you've told KotOR Tool the files are for KotOR Some of them (the lightsaber ones) are from Kotor 2 indeed, but I used the method to change them to Kotor properly (until now they have worked fine). 1. If KotOR Tool can't tell right off the bat which game a file goes to, it'll bring up a popup asking you which game. It's important that you select the proper game so KotOR Tool knows how to work with the file properly. I've never encountered with this issue before. I also noticed you're trying to give the items text in three different languages inside the file (the description on one of the .uti files had text entered for English, Spanish, and one other language, though the actual text was written in English). The reason why the text is entered for Spanish is because I have a Spanish version of the game myself, and the texts didn't show until I added that. I don't know about the other language and why it's there. Which language is it? Quote Share this post Link to post Share on other sites
Fair Strides 509 Posted June 29, 2017 A question for you, based on what you've said: have you tried editing a completely untouched .uti file, one that you haven't even opened before? It could be that a file was corrupted the first time and any further attempts to use the file just added onto it. I noticed that some of your .uti files had multiple Template Resref fields and the like. Quote Share this post Link to post Share on other sites
Golselect 1 Posted June 29, 2017 A question for you, based on what you've said: have you tried editing a completely untouched .uti file, one that you haven't evenFunny that you mention it. That's what I just did XD. I took an original file from the game and edited it with the same values of the one I shared, and after saving it, it's not corrupted and works fine ingame. Also it can be re-edited. It could be that a file was corrupted the first time and any further attempts to use the file just added onto it. I noticed that some of your .uti files had multiple Template Resref fields and the like.I don't know about the multiple Resref fields or why it would be corrupted in the first place. Quote Share this post Link to post Share on other sites
Fair Strides 509 Posted June 30, 2017 It sounds like the issue just got worse when you tried to re-edit corrupted files. You might try starting over on those corrupted ones and seeing if the issue happens with the brand-new copies. Quote Share this post Link to post Share on other sites