Why merge the meta files? This serves no real purpose and just makes it harder to debug when you mess something up.
You can specify more than one data file of a given type in the manifest, and it’s really easy to do this in mass by using the globbing feature.
For example, you could have a folder for each car that would contain vehicles.meta
, handling.meta
, carcols.meta
, etc. and just specify this in the manifest.
files {
'data/**/*.meta'
}
data_file 'HANDLING_FILE' 'data/**/handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'data/**/vehicles.meta'
data_file 'CARCOLS_FILE' 'data/**/carcols.meta'
data_file 'VEHICLE_LAYOUTS_FILE' 'data/**/vehiclelayouts.meta'
data_file 'VEHICLE_VARIATION_FILE' 'data/**/carvariations.meta'
This will mount each data file individually and makes it a lot easier to add/remove cars.