MSTS Shape Fixer 1.0

This program fixes several of the common problems with S files that can cause crashes when starting or running MSTS.

  1. Objects over 10,000 polygons can crash on external view
  2. Individual parts of an object can be no more than about 3000 polys
  3. Rollingstock animation using more than 8 frames needs to correct the fps or the wheels rotate too quickly
  4. TSM sometimes adds a blank animation section which can cause odd artifacts when coupling.
  5. Tiny Polygons (triangles with at least 1 edge < 2mm) can cause the "flying polygon" syndrome.

To Run The Program

Running the program prompts for a few parameters (best to leave default values).

Press the "Select Model" button to find the S file. The S file must be uncompressed unicode text.

The file is processed and if any changes are needed, a new file with SFIXED file extension is created. This can then be used as the model instead of the original file.

 

Processing Performed

1 is fixed by splitting into sub objects. If you have a model over 20,000 polys you may need to process it twice.
NOTE - Shape Viewer 1.6 will not display the model correctly if you have transucent parts. This will be fixed in the next version. MSTS should display the model correctly.

2 splits large primitives into smaller chunks.

3 The fps parameter is adjusted to frames * 8/30 e.g. 16 frames is 60fps

4 The redundant animation section is removed

5 There is an option to move parts of these tiny polygons up by 1m - they can then be seen in the shape viewer. It is then up to the modeller to fix them and re-export the S file.
3D Canvas users have a "Weld To Range" plugin that will assist with this.

Finally - Ideally this program should be run after Polymaster as I can't guarantee polymaster will be able to process a "fixed" file.

email me with any problems : sfix@highworth.freeuk.com