It also allows you to convert to different X formats, by using the compressed format you can save ~80% disk space + load time c/w bin & txt formats which are the PCK defaults.
Code: Select all
Usage: konvix <options> <input filename> <output filename>
<input file> Input .x file
<output file> Output .x file (optional)
/t Convert to text format (default)
/b Convert to binary format
/c Convert to compressed format
/n Generate normals
/o Optimize mesh
/x Display mesh-flat bounding box
/v Verbose
/r <#F|%S> Simplify mesh #new-faces or %original-size
/d <r,g,b,a> Diffuse color
/s <r,g,b> Specular color
/e <r,g,b> Emissive color
/p <power> Specular power
konvix.exe /v /c /n /o /d "255,255,255,255" /p 1.0 /s "255,255,255" /e "0,0,0" myfile.x
would set the diffuse & specular lighting to white, specular power to 1.0, emissive to black (as it should be for most things), renormalize + optimize, be verbose and save in a compressed format by overwriting myfile.x
I have also included a batch filed called FixDX.bat which calls konvix.exe
If you place these two files at the root directory (eg PCK main dir) and run FixDX.bat, then the batch file will transverse the dir struture and perform the above operation on all *.X files (would take ~ 5 minutes). This will end up saving you loads of memory to boot.
Note: I suggest that you make a full backup before proceding! Obviously any bugs have the potential to destroy all your *.X files if you are in batch mode. It is for this reason that only people who know what they are doing should use this software at the moment. When it has been tested some more then it will be of benefit to all.
Note (2): The simplify mesh (/r) option doesn't work just now and is disabled (this is the auto LOD generator, to be enabled in the future)
The bounding box functionality should allow the MM to autodraw structure "red" around appropriate objects on the AI map in the future [;)], meaning there will then be no reason whatsoever to go into SE!
Note (3): I have included DX Viewer in the zip so you can quickly check out what your *.X files look like wthout loading them up in MS3D or SE or the game.
Note (4): konvix short for Kharkov cONVert and fIX. Also homage to good 'Stralan convict(s) stock.
Note (5): Whilst I found a huge amount of junk frames in the TCs using konvix (I was hoping this was going to be the root cause of the dead TC bug), it turns out that the bug remains even when the junk is cleaned up, so unfortuneatly no go from that perspective [:@]
Regards
S.



