Golselect

Can't save UTI files properly

Recommended Posts

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 :D

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.rar
In 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.

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Funny 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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.