DayZ
Community-Online-Tools
Ekhos 10 May, 2021 @ 12:15am
Adding cars in the vehicles folder??
How do I add new cars to the vehicles folder. Every time I add new cars that I would like to be able to spawn it looks fine. right up until I start up the server. Then it deletes all content in the car name so that it only says:

{
"VehicleName": "",
"DisplayName": "",
"Parts": []
}

And all the data I've written is gone :( Anyone know what I'm doing wrong?

Before restart it was:
{
"VehicleName": "UAZ3303",
"DisplayName": "",
"Parts": [
"SparkPlug",
"TruckBattery",
"CarRadiator",
"HeadlightH7",
"HeadlightH7",
"UAZ3303_Doors_Driver",
"UAZ3303_Doors_CoDriver",
"UAZ3303_doors_Trunk",
"HatchbackWheel",
"HatchbackWheel",
"HatchbackWheel",
"HatchbackWheel"
]
}
Last edited by Ekhos; 10 May, 2021 @ 12:18am
< >
Showing 1-4 of 4 comments
Merk 10 May, 2021 @ 3:44am 
@The Ominous One
Do this.
1) You need to save the file only when the server is turned off.
2) The file name must be different from the machine class. (file- Sarka.json --- "VehicleName": "Sedan_02",)
3) All parts of the machine must be correctly spelled according to the example.
4) If this does not work, there may be a problem in the car.




file - Sarka.json

{
"VehicleName": "Sedan_02",
"DisplayName": "",
"Parts": [
"Sedan_02_Hood",
"Sedan_02_Trunk",
"Sedan_02_Door_1_1",
"Sedan_02_Door_1_2",
"Sedan_02_Door_2_1",
"Sedan_02_Door_2_2",
"Sedan_02_Wheel",
"Sedan_02_Wheel",
"Sedan_02_Wheel",
"Sedan_02_Wheel",
"CarBattery",
"CarRadiator",
"SparkPlug",
"HeadlightH7",
"HeadlightH7"
]
}
Ekhos 10 May, 2021 @ 6:27am 
Thx Merk ill do that :D
Borilion 15 May, 2021 @ 8:26am 
Heyho!
I got the same problem as Ekhos.
I Named the .json file like "Kamaz Plane" und the VehicleName is KamazCovered, but I still got the result that the file afterwards is like that:

{
"VehicleName": "",
"DisplayName": "",
"Parts": []
}

What do I miss? :'D

And Merk, U say the file has to be another Name than the VehicleName, but in the exsiting files it´s the same file Name and VehicleName¿

I tried both, differend Names and same Names but I have no luck, maybe U can help me there :)
HaywardGG 6 Jun, 2021 @ 8:36am 
Filename should be the same as the classname..

Example:

ExpansionMerlin_President.json

{ "VehicleName": "ExpansionMerlin_President", "DisplayName": "", "Parts": [ "ExpansionHelicopterBattery", "ExpansionHydraulicHoses", "ExpansionIgniterPlug", "HeadlightH7", "ExpansionMerlinFrontWheel", "ExpansionMerlinFrontWheel", "ExpansionMerlinBackWheel", "ExpansionMerlinBackWheel" ] }

New files can be added while the server is running, but they won't be recognised until the server has restarted. Also, existing files (files already loaded into memory) cannot be edited while the server is running (it will simply overwrite the changes at restart).
Last edited by HaywardGG; 6 Jun, 2021 @ 8:40am
< >
Showing 1-4 of 4 comments
Per page: 1530 50