DayZ
Community-Online-Tools
Ekhos 2021 年 5 月 10 日 上午 12:15
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"
]
}
最后由 Ekhos 编辑于; 2021 年 5 月 10 日 上午 12:18
< >
正在显示第 1 - 4 条,共 4 条留言
Merk 2021 年 5 月 10 日 上午 3:44 
@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 2021 年 5 月 10 日 上午 6:27 
Thx Merk ill do that :D
Borilion 2021 年 5 月 15 日 上午 8:26 
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 2021 年 6 月 6 日 上午 8:36 
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).
最后由 HaywardGG 编辑于; 2021 年 6 月 6 日 上午 8:40
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50