Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Having trouble with opening .Uti files

Page: 1 of 1
 SGTDJONES
10-19-2009, 10:01 AM
#1
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 **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2443
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
kotor_tool
Assembly Version: 1.0.2210.16738
Win32 Version: 1.0.2210.16738
CodeBase: file:///C:/Program%20Files/Kotor%20Tool/kotor_tool.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
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
----------------------------------------
System.Drawing
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
----------------------------------------
Microsoft.VisualBasic
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
----------------------------------------
System.Xml
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
----------------------------------------
fhd6swaf
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.2443
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
fmodcl
Assembly Version: 1.0.2118.32981
Win32 Version: 1.0.2118.32981
CodeBase: file:///C:/Program%20Files/Kotor%20Tool/FMODCL.DLL
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------

************** 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 system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

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, 8:45 PM
#2
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, 9:01 PM
#3
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, 1:51 AM
#4
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, 7:46 AM
#5
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, 2:00 AM
#6
Hello,

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, 9:19 AM
#7
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, 1:42 AM
#8
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.
Page: 1 of 1