Current Situation / Problem
Many, if not all, models require some additional work to unlock all features with XPMP2. They might not use correct dataRefs for all features or use unsupported parameters like passing textures as parameters.
The Python script CSL2XSB has been created to correct these issues. Documentation of what the script does is there. This requires an additional setup step by users.
Suggested Solution
Instead of having the user run a spearate script let XPMP2 do the conversions on the fly while reading the .obj models but in a lasting way:
[X] Replace dataRefs with dataRef names as supported by XPMP2 (provides for rotating props and the like)
[X] Create separate .xpmp2.obj files for each texture parameter (allows usage of X-CSL models)
[X] Write new copies of the files in a way that XPMP2 notices on next use that the model does not need to be converted once again, but uses the already converted version right away, e.g. by adding another extension to the file name.
[X] Provide configuration options for dataRef replacement and texture replacement
[x] Documentation:
[x] xsb_aircraft.txt format of OBJ8 parameters as now the 2 texture parameters are recognized again
[x] copy-on-use feature including what the config parameters mean
Alternatives
Have the user run the Python script as of now.
Benefits
All users, also less experienced not willing to fiddle with Python, benefit from feature like rotating props and a larger choice of models.
Current Situation / Problem Many, if not all, models require some additional work to unlock all features with XPMP2. They might not use correct dataRefs for all features or use unsupported parameters like passing textures as parameters.
The Python script CSL2XSB has been created to correct these issues. Documentation of what the script does is there. This requires an additional setup step by users.
Suggested Solution Instead of having the user run a spearate script let XPMP2 do the conversions on the fly while reading the
.obj
models but in a lasting way:.xpmp2.obj
files for each texture parameter (allows usage of X-CSL models)xsb_aircraft.txt
format ofOBJ8
parameters as now the 2 texture parameters are recognized againAlternatives Have the user run the Python script as of now.
Benefits All users, also less experienced not willing to fiddle with Python, benefit from feature like rotating props and a larger choice of models.
Additional context LiveTraffic's documentation of the CSL2XSB script