mwl4 / ConverterPIX

Conversion tool that is able to convert from the game binary formats (.pmx) to the middle formats (.pix) in Euro Truck Simulator 2 & American Truck Simulator.
https://truckersmp.com/
GNU Lesser General Public License v3.0
67 stars 28 forks source link

Added support for pma version 5 #42

Closed theHarven closed 2 years ago

theHarven commented 2 years ago

With game version 1.44 comes a new pma file format version. It adds 40 bytes of new data to the file header. This new data consists of:

  1. Bounding sphere calculated from bones (float3 sphere origin + float sphere radious),
  2. Bounding box calculated from bones (float3 box min + float3 box max)

This data can be ignored when converting to pix format. New version of scs conversion tools will calculate it when converting from pix to the game format.