FLModelTool v1.0a Beta 6
========================

by Anton (hitchhiker54@yahoo.com) - an Xtreme Team Studios release.

Fixed from 1.0a Beta 5
----------------------

Auto sizing of sur to cmp fixed - huge sorry to all that wasted time downloading.

Updates from 1.0
----------------

* Loads all valid CMP files without fuss.
* Resizes sur files according to loaded cmp size or manual size setting.
* Changes sur types so surs used for scenery or damage sections (type 2 & 3) can be used for ships/stations (type 4)
    and vice versa, adding or removing file sections as required.
* Renaming damage sections (wings etc) optional.
* Radius calculation allows some extra for cuboid objects.

Still buggy
-----------

The cmp resize still fails with some stock Freelancer models. All custom ships tried work fine.

Special thanks to Argh, Crabtree, Harrier, Glock36 and Silvik for testing and bug reporting the interim versions :)
noteably Argh, whose exploits with the FL engine made sur retyping a viable addition and showed me where the bugs were!

What the hell is it?
--------------------

* FLModelTool is the successor to fladdradius2. It is designed to complement the excellent HardCMP by Louva-Deus & Shsan
  (http://www.lancersreactor.com/t/Download/Download.asp?ID=1257) You will need this tool to see the results of this one :)

* It fixes boundary box, center and radius information that the current CMP Exporter for Milkshape does not do.
  Practical worth of this? Custom ships no longer disappear if their center is not on screen :)

* Resizes .cmp files, including the hardpoint data as this is a nightmare to do with the buggy CMP importer that
  crashes Milkshape and loses the hardpoint data.

* Resizes .sur files to a given .cmp file (just choose the one with the closest shape to your spanking new ship) 
  and automatically lines up the center of the .sur file with the center of the .cmp file. Alternately choose your
  own scaling. Making damage sections (wings etc) is now optional.

* Double clicking on VMeshData, VMeshRef & VWireData gives readable dumps of those sections in
  the feedback section of CMP if it is useful to anyone.

* Is GUI based (no more .bat files with my typo's in them :D ).

* The code now compiles with Borland C++Builder 6 with LMD Tools 6.1 SE installed.

Updates for FLAddRadius functionality
-------------------------------------

* Fixes center values now instead of assuming 0,0,0 origin.
* Better calculation of radius.

Credits
-------

* Mario 'HCl' Brito - UTF (CMP) file structures
* Twex, Phantom Fox, Free Spirit, Dr Del, CCCP, shsan, Skyshooter - SUR file structures
* Colin Sandby - CMP Exporter, SUR Importer, SurDump.exe (the source code to which saved much of my sanity) and
  other patient help he has given me.
* Brutus - discovering the radius value.
* Dev - hints on making my version of the sur resizing work properly.
* Silvik - Always there to point out where my code is bugged :)

License
-------

This program is free and open source (yes I appreciate the irony that I made it on a non-free compiler).
Do what the hell you please with it, but don't call it your own work. 
Anyone trying to make profit from this software will be tutted at by an elderly aunt. 

I take no responibility for any loss, damage, ill-health, injury, death or
stampeding goats that occur during use of this program.

Problems/Bug Reports/Whatever
-----------------------------

mail/msn : hitchhiker54@yahoo.com
yahoo : hitchhiker54
TLR forums : Anton
Xtreme Team Studios : http://www.xts.fnhq.net/

Cheers, Tony