I just released version 18.0225 of the add-on.
Download and documentation: https://yethiel.github.io/re-volt-addon/
- NCP: *Only export selected* option added (check the documentation for details)
- Rewrote the parameters.txt parser, should now load all cars
- The light panel now only shows up if at least one object is selected
- New system for handling import and export errors
Have fun testing this one out. Please report any bugs or post feature requests in this forum thread. (Or even better, raise an issue on GitHub
Let me explain the two most important changes:
This is a feature that some track makers requested. Up until now, you only could export the entire scene as NCP.
This new option allows you to mark only one or many objects for export.
This is an example of a normal scenario of exporting collision objects for a track:
Let's say the cubes are some detail models and the ground plane is your track's mesh.
The exported NCP file would look exactly the same way. All objects are offset from the center.
However, if you want to export your detail objects as separate files (PRM instances), you will also have to export their collision to separate NCP files.
To export the collision of one single object, just enable the setting:
and then select the object in question and export as ncp.
After importing that file again, you will notice that the object is going to be at the very center again. This is exactly what happens when you export a single PRM mesh.
And that way you can easily export the collision for your PRM instances.
I rewrote the parameters.txt completely to work just like the one used in Re-Volt. That way you can import all cars that RVGL would load as well.
As an addition, it will warn you about any errors in the parameters.txt you loaded. Patriot, for example, is missing a final closing brace } in its parameters file:
The car will still be imported with the values that could be read. In this case nothing went horribly wrong but it will still prompt you a bout it so you can fix it.
Keep in mind that parameters.txt files will also be loaded to find out a car model's texture, even when you're only importing the body or wheels.