[Release] Quickly merge vehicle .meta files

A quick work around is adding the carcols to files like this

Then make the __resource.lua like this

7 Likes

Ofcourse, I just took this one more step and made everything easier. No need for the merge program at all, just modify a _resource.lua file to look like this: (used 2 cars as example: gauntletc and gto )

resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'

files {
    --gauntletc    
    'cars/gauntletc/vehicles.meta',
    'cars/gauntletc/carvariations.meta',
    'cars/gauntletc/carcols.meta',
    'cars/gauntletc/handling.meta',
   	
   	--gto    
    'cars/gto/vehicles.meta',
    'cars/gto/carvariations.meta',
    'cars/gto/carcols.meta',
    'cars/gto/handling.meta'
    
    
    
    --  THE LAST LINE ITEM ABOVE SHOULD NOT HAVE A COMMA ( , ) AT THE END
    
    --'vehiclelayouts.meta',    -- Not Required, only used on some addons
}

--gauntletc
data_file 'HANDLING_FILE' 'cars/gauntletc/handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'cars/gauntletc/vehicles.meta'
data_file 'CARCOLS_FILE' 'cars/gauntletc/carcols.meta'
data_file 'VEHICLE_VARIATION_FILE' 'cars/gauntletc/carvariations.meta'

--gto
data_file 'HANDLING_FILE' 'cars/gto/handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'cars/gto/vehicles.meta'
data_file 'CARCOLS_FILE' 'cars/gto/carcols.meta'
data_file 'VEHICLE_VARIATION_FILE' 'cars/gto/carvariations.meta'


--data_file 'VEHICLE_LAYOUTS_FILE' 'vehiclelayouts.meta' --not required, only used on some addons

client_script {
    'vehicle_names.lua'    -- Not Required, but you might as well add the cars to it (USE GAMENAME not ModelName)
}

Ill attach the file for you:

__resource.lua (1.3 KB)

obviously, I just put the cars .metas into a folder with the cars name, all within a folder called ‘cars’. all of the stream files are in the single ‘stream’ folder. The vehicle_names.lua is concatenated (put all the cars names in the one file)

anyway I found this is the easiest way to combine cars into one resource. yes the car mods still work this way too. and if you want to temporarily remove a car you just have to comment out that section of the _resource.lua

12 Likes

I believe i have done everything right but when i try to go into my server after i restart i get "couldn’t load resource cars
If you find anything wrong pls let me know
here are some screenshots of the files
https://gyazo.com/2191b2d6eeca20ae22570fe933f29551
https://gyazo.com/7ec1ebe4dcfbddae733681c5e9ccdf0f
https://gyazo.com/cdf696f0e6bf1920575335e9256f5cb9

You should only have ‘stream’ and ‘cars’ in your main folder.

Put all your vehicle folders in one ‘cars’ folder and you’ll be set.

I am tryin to merge carcols.meta, and it says set it to offset? but when i do it doesnt change? any ideas?
@MsQuerade

Ok i merged 6 meta files in to one but after none of them can add stuff to them like up grading, motor, transmission, brakes, window tint, change tires, ext. can some one help

file appears to be deleted, can you please reupload?

Thank you for posting this, helped me out massively

can you upload the file and give me a download? The old link doesn’t work and I lost it on my old computer

Is this thread even being maintained or supported anymore? Broken link, Broken github. Needs new link or something.

look at like post 4 or 5

Same here,
And also the cars that not are in the pack bugg also if I used the program and put the pack in my server… So whats Going wrong?

I can’t tune the cars, can anyone solve?

Some cars can’t tune

is this correct?

how did you fix this issue?

is it possible to skip xml syntax error as i belive i dont have one or atleast it still works in game even if there is one but i need to merge few handling files

Just. Because it works doesnt mean you dont have a syntax error. Better you find the error and fix or it may cause you issues on other areas. There are all kinds of XML validators on the internet such as wc3school.

any idea… i still belive this is a bug…

See where the button says offset, click that and go to the line.