UTF Editor
-
Hello, folks!
First, great job everyone! It’s a wonderful tool.
Second, a little bug report from the 3.0-wip:
Open some string data and try to interpret it as float array (which is apparently wrong). There’s a good chance of an unhandled exception to pop up (the program survives). Same with Integer array.I used it on the file “data\interface\hud\3dnavpoint.3db” where I opened the material in there and its “Type” entry (screenshot).
Exception text (interpreting as float, Integer says basically the same)
System.ArgumentException: Destination array is not long enough to copy all the items in the collection. Check array index and length.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.BitConverter.ToInt32(Byte[] value, Int32 startIndex)
at UTFEditor.EditFloatArrayForm…ctor(TreeNode node)
at UTFEditor.UTFForm.EditFloatArray()
[…]Third, a few ideas / feature requests.
-
Some way of viewing wireframes. I’m not sure how they are commonly edited, but maybe some feature could help with that as well,
-
Viewing/export of materials with the modifications they did to the basic texture (like colouring),
-
I have common extensions associated with UTF Editor, but it doesn’t seem to pick up the files if I tell Windows to open them in it,
-
Maybe even drag&drop of files onto the program window to open them…
I’ll be sure to post if I find something else.
EDIT:
It has trouble with “data\interface\interface.generic.vms”, whatever that contains. If I try to “Show Model” or “View” the VMeshData of its part interface.generic-2.vms, it shows an error:
-
-
interface.generic.vms isn’t a model. You can’t use normal techniques to view it.
-
The attachment has been updated.
FriendlyFire wrote:
I’m having an issue which may be related to x64. When attempting to view a model I get
“Error ’ is not a valid Win32 application”Did as Cannon said, explicitly making it x86.
Cannon wrote:
One other note, this ‘missing assembly’ problem still exists even though directx is installed.I’ve set the “specific version” property to false, see if that helps.
MarvinCZ wrote:
Open some string data and try to interpret it as float array (which is apparently wrong). There’s a good chance of an unhandled exception to pop up (the program survives). Same with Integer array.
Well really, what do you expect? Anyway, it now ignores float/integer if the size is not a multiple of four.
Some way of viewing wireframes. I’m not sure how they are commonly edited, but maybe some feature could help with that as well,
No editing, but viewing will be done before the release.
Viewing/export of materials with the modifications they did to the basic texture (like colouring),
That might wait for another version.
I have common extensions associated with UTF Editor, but it doesn’t seem to pick up the files if I tell Windows to open them in it,
Maybe even drag&drop of files onto the program window to open them…Both done. Invalid files will be quietly ignored.
It has trouble with “data\interface\interface.generic.vms”, whatever that contains. If I try to “Show Model” or “View” the VMeshData of its part interface.generic-2.vms, it shows an error
Fixed, but I’m still working on getting them to display (via pretty much everything else in INTERFACE).
In addition, the initial model scale has been improved and DDS textures are flipped by default.
-
Thanks. Sorry if some of my comments look like nitpicking.
Well really, what do you expect? Anyway, it now ignores float/integer if the size is not a multiple of four.
I just expected it to handle the exception, really.
I admire your fast reaction time
-
yep, it’s definitely a great tool ^^
just a request …
can you put back the keyboard shortcuts ?i mean on the v1.0.0.4 we can for example do CTRL + R to rename
when i work on a cmp i earn a lot of time doing all at the keyboard
and i can also use some macro to do multiple shortcut in one keyall the buttons for that are great but you know switching between mouse and keyboard …
anyway thx a lot ^^
-
Updated the attachment.
Mirkha wrote:
can you put back the keyboard shortcuts ?Done. On a related note, have you tried pressing F1 in the model view?
Also got the INTERFACE stuff displaying (but possibly only as a white wireframe) and added a color editor for the Ac/Dc/Ec/Constant nodes. That’ll probably be it until the release.
-
Problem report…
Open the dagger (SHIPS\BORDER_WORLD\BW_FIGHTER\bw_fighter.cmp).
Click Edit Rev Data.
Child Baydoor02_lod1 and its values are shown.
Using the drop-down Child box, select the other baydoor, Baydoor01_lod1.
The values don’t change to those for Baydoor01_lod1.
Using the Part drop-down box, the child and its values are shown as expected.
Thanks!
I also note that this version is DirectX version dependent, it won’t use my DirectX 9.0c and won’t show the model display. If it can be made version-independent it would be good.
-
Updated the attachment.
StarTrader wrote:
The values don’t change to those for Baydoor01_lod1.Fixed.
I also note that this version is DirectX version dependent, it won’t use my DirectX 9.0c and won’t show the model display. If it can be made version-independent it would be good.
I hoped that was fixed with the first update, when I set “Specific Version” to false. What else do I need to do? Have you tried updating DirectX (I’m using March 2009)?
Additionally, it sets the application icon (the main form was okay, but the other forms didn’t show in the taskbar); the hardpoint editor uses Apply/Close and updates the model; the hardpoint display includes the rotation. Now that will be it…
-
Thanks for the fix bud.
The message I get when clicking on Show Model is:-
"Error ‘Could not load file or assembly ‘Microsoft.DirectX, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856as364e35’ or one of its dependencies. The system cannot find the file specified.’
So it seems to be still looking for a specific version?
My DirectX 9.0c shows as version 4.09.0000.0904
I will try to upgrade at some time, but I hate applying new upgrades from Grandma MS that are so huge for little good reason. This version of UTF is almost good enough reason, but if you can make it independent with little effort… ?
Thanks pal.
-
Just a dumb question: are you compiling as “Release” or “Debug”?
-
Using the power of google, the answer is to run the “DirectX End-User Runtime Web Installer” (dxwebsetup.exe). This installs the missing .NET assemblies and makes it work.
I’ve confirmed this on a machine that was not working.
-
I don’t know why but I keep getting wierd values when I’m editing Rev, Pris and Fix data.
It really dosn’t matter what ship I open, it’s the same with them all for me.
-
If you need this now, FL Model Cloner can do it for you. It modifies both the model .mat file and the model.cmp file.
-
@SilentAssassin82: The earlier version would just use six decimal places, so these numbers would show up as 0. I prefer to know what the actual values are, so I use seven significant digits (the “g” format of C#). Some values also need to be small to work correctly (as discovered by the XML Project, when heads and hands disappeared). You can remove them by clicking one of the rotation values, then somewhere else - that will calculate the orientation based on the rotation.
@Ozed: So you mean renaming a node under “Material Library” will update the CRC in the VMeshData nodes? Shouldn’t be a problem when they’re in the same file, or in any loaded file, but I’m not about to go searching for them (although I guess if you’ve loaded “model.mat”, it could automatically try and load “model.cmp” and/or “model.3db”). Good enough? Should the update be done automatically or prompt first?
-
Another update is available. I don’t want to spoil the surprise… (It’s read-only for now, but I will be adding editing.)
BTW, I’ve modified the handling of text boxes for floats, so you’ll have to actually change a rotation value now to update the orientation. Perhaps I should add a command to redo every orientation (and axis?) in the file?