Freelancer XML Project
-
The Freelancer XML Project was written by Sir Lancelot to convert UTF files to and from XML. I’ve updated UTFXML and [d]attached[/d] it for you to have a play with while I write XMLUTF.
Differences from the earlier version:
- handles everything (that is used; there’s still a few hex dumps of things that don’t seem to be read);
- extracted files are written to a subdirectory, rather than appending the CRC to the name;
- removed the VMeshData and VWireData options, incorporating them into an “Include Files” option, which also applies to Animation scripts and deformable (.dfm) meshes;
- audio files are extracted using their name, not hash (provided you generate the list first).
As an example, if extracting audio from announcer.utf, the original version would create “0x90B150C3_E07AA74A.wav”; this version will create “announcer_utf\DX_M06_0229_ANNOUNCER.wav”.
-
An excellent update on this tool matey. I can now edit the VWireData, component parentage and rotation data in plain text, lovely. When is the reconvertor coming?
-
All eyes and ears as usual Adoxa.
-
After even more dilly-dallying than usual, the Project has been completed and released (it will also be available in Freelancer Editing Downloads). A few more improvements have been made to UTFXML, one of which prevents XMLUTF being incompatible with any earlier version (including the one I had attached; the order of the values for the VMeshRef bounding box changed). It can now directly convert radians to degrees, orientation to rotation and floating point colors to HTML-style RGB. If the ALE editor ever gave you grief (or even if it didn’t), you might like to try this as an alternative.
-
Thanks for the program, Adoxa. I’ll be sure to use it soon and give you feedback!
-
Hey guys,
This looks really exciting - but I don’t have a clue as to how to use it to best advantage.
Can anyone please write a short guide?
Please?
-
cool, this program worked wonders for me in the past, the updates sound great. will definitely give it a try.
@StarTrader:
one daily purpose would be, editing mat files.
extract all images at once, edit them, convert back to mat file in one go.
or you can use it to extract all textures, sounds, etc from whole of fl folder.
back in the days it helped me break the 18 groups cmp limit, by allowing to “hand build” the cmp file.
kind of a multi purpose tool, im sure there are more. -
Thanks, RimShot…
But that is too short for me!
-
Version 2.1 is now available. Fixes comments and tabs in XMLUTF. UTFXML optionally generates integer RGB values; is more flexible determining type; and generates different file names (no embedded path for VMeshData; no timestamp for VWireData; no duplicated extension and timestamp for some textures).
@StarTrader: Figured it out or given up?
-
Not used it in anger yet, but I will.
Thanks guys, these utilities are amazing, keep it up.
-
Hello adoxa,
I have come across a discrepancy using UTFXML, the interpretation of oZed’s bad .mat file is different from what I saw in UTF Edit v1.4
Please see the info in this post:-
http://the-starport.net/freelancer/forum/viewtopic.php?topic_id=2802&forum=9&post_id=26971#forumpost26971You can download both the original .mat and the one I have fixed for him with before and after XML dumps from there too.
His .mat file was badly created, the field byte sizes were almost all wrong in the Material Library section and some of the Dt_name and Bt_name field contents were also corrupted.
Thanks.
-
I have a problem to start both Tools, saying that i must have freelancer installed to use them.
Well i have - and think have found the problem.
In the OnInitDialog for UTFXML he tries to read the path from the registry. But i dont have the entries under HKEY_LOCAL_MACHINE.My freelancer entries are under HKEY_LOCAL_USER. Thatswhy i cannot start those tools. And what me bothers - why do i have the installation under a different registry key as nearly all here ;)?
I could change it for my needs and recompile - but that does not answer the question above.
Anyone an idea?
-
Huor wrote:
i dont have the entries under HKEY_LOCAL_MACHINE.My freelancer entries are under HKEY_CURRENT_USER.
When you installed Freelancer, did you install it just for yourself? Rather than installing it for all users on your computer?
HKEY_CURRENT_USER is the hive that contains stuff related to the currently logged-in user (you). HKEY_LOCAL_MACHINE refers to the entire computer.
An easy way to move (or copy) the Freelancer key is to:
- Export the key from the Registry
- Edit the resulting .reg file
- Change HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE
- Double-click the .reg file to add the changes to your Registry.
-
Yeah thanks Bullwinkel, I probably installed it only for me. Dunno why - but i am not concerned
Thought to share of something that is not yet considered in the source and its would be one or two lines to add to the source. That was my reason i posted - in the same moment i felt astonished that this matter havent happend before to anyone else^^
Thanks Adoxa for looking into this.
-
Version 2.2 of the Freelancer XML Project is now available.
Release 2.2 fixes converting integer RGB ALE values in XMLUTF. Prompt for the path to Freelancer, if the registry key is not found. Create the entire destination path. The logs are written to the temporary directory, adding the source and destination paths and the summary. The Alchemy type values have been given a name (e.g. type=“bool” instead of type=“0x001”). Animated Pris parts no longer use degrees and quaternions use angle (in degrees) plus axis (if the Rotation option is in effect). Handle command line options. Do not include “DATA” in the path attribute.
-
I’ve generated and extracted all files (UTF->XML). I don’t doubt this will prove to be very useful.
Right now I’m looking at the audio files, and notice they all have names like 0x8A94090E.wav… I had hoped for slightly more intelligible filenames. Is there a way to achieve this? Or are there no ‘more intelligible’ filenames?
-
to get the audio file crc (or any other) names in plain text you have to run the list generator. Make sure the source path is set to your freelancer file and hit he generate button. Once thats done, run the coversion. the hex names should now be converted to their ini names.
Make sure you havent left the “skip audio” tick in… -
@ Thaddeus: Thanks!!! It’s running now, very nice