LucasForums (
-   KotOR Tool (
-   -   Having trouble with opening .Uti files (

SGTDJONES 10-19-2009 10:01 AM

Having trouble with opening .Uti files
Ok im new here and ive recently downloaded kotor tool, now i mainly got it so i could edit certain properties on robes, one of them was Redhawkes Revan robes, i am trying to edit the rh_revan01.uti file but whenever i try and open it it gives me this message:

An unhandled exception has occurred in your application. If you click continue, the application will ignore this error and attempt to continue.
if you click quit, the application will shut down immediately.

Cast from string "ERROR" to type 'integer' is not valid.

and this is the details:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Cast from string "ERROR" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format.
at Microsoft.VisualBasic.CompilerServices.DoubleType. Parse(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.IntegerType .FromString(String Value)
--- End of inner exception stack trace ---
at Microsoft.VisualBasic.CompilerServices.IntegerType .FromString(String Value)
at kotor_tool.frmUTI_Editor.ReadPropsAndLoadGrid()
at kotor_tool.frmUTI_Editor.Setup()
at kotor_tool.frmUTI_Editor..ctor(clsUTI UTIClass, Int32 KotorVerIndex, Boolean IsDirectEdit, String EditingPath)
at kotor_tool.frmMain.OpenGFFFileInEditor(String filepath, Int32 formLocationOffset)
at kotor_tool.frmMain.OpenFileFromCmdLine()
at kotor_tool.frmMain.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2443
CodeBase: file:///c:/windows/
Assembly Version: 1.0.2210.16738
Win32 Version: 1.0.2210.16738
CodeBase: file:///C:/Program%20Files/Kotor%20Tool/kotor_tool.exe
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2443
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
Assembly Version:
Win32 Version: 1.1.4322.2443
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
Assembly Version: 1.0.2118.32981
Win32 Version: 1.0.2118.32981
CodeBase: file:///C:/Program%20Files/Kotor%20Tool/FMODCL.DLL
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the section.
The application must also be compiled with debugging

For example:

< jitDebugging="true" />

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.

is there anything that can be done? any tips or suggestions?

Qui-Gon Glenn 10-19-2009 08:45 PM

Have you tried ignoring it? KTool burps and farts all over the place, but generally gets the job done despite the OS' complaining about it.

SGTDJONES 10-19-2009 09:01 PM

what do you mean ignore it? you mean just click continue? no that does help, it just opens the kotor tool without opening the editor so i can change the properties for the uti file

Qui-Gon Glenn 10-20-2009 01:51 AM

Well, I have not played with KTool in a minute, but KGFF can do this for you as well. Try the newer tool... perhaps not as handy as KTool, but in my experience more reliable overall.

Don't get me wrong though.... KotOR Modding is not possible without KTool.

SGTDJONES 10-20-2009 07:46 AM

I am aware of this other editor and it does work but I don't know to use it rightly, it's very confusing and I'm not sure what to alter or delete to remove what I want from the .uti
its like one big code and i need to know which line to remove so i may delete the restriction to a certain alignment so i can wear it freely without being on the dark or light side of the force

RedHawke 10-21-2009 02:00 AM


You will need to edit the items uti files for this. They are in the properties section. I believe you would need to delete the nodes/structures in the files propertieslist that have the PropertyName(Word) of 43 in them as that is the alignment restricting ones. I believe there are 2 nodes per robe uti file, one allowing neutral and one for light and dark side.

Of course this would all be very easy in KT, but it is buggy with certain files and all/most of mine it doesn't like because I edit my uti files 'old school' with a gff editor as it is faster for me.

I hope this helps.

SGTDJONES 10-21-2009 09:19 AM

Ok ive done what you have suggested and it works for one the darkside Revan robes, the other one, the one with the mask, doesnt seem to do it, i changed the propertyname thing to 0 instead of 43 but it doesnt work, even though it does for the other one

RedHawke 10-23-2009 01:42 AM

You spawned a new one (made a new one at the bench) to test your changes right?

If you have an old one in your inventory just changing the uti file won't do anything with the one you have (as that one is stored in your save game). The changes you make will only apply to new ones the game generates.

All times are GMT -4. The time now is 01:53 PM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.