DayZ
zimnl Nov 12, 2019 @ 9:44am
cars local host question
For some reason cars do not spawn at all, is this a config file issue?
If so, what do i need to edit to make cars spawn again?
Would love to drive a car
< >
Showing 1-8 of 8 comments
it sounds like you may have edited something on your server that is stopping cars spawning as i run my own server from another pc i have setup and cars spawn fine for myself and the people on my server i would look back at any modding you have done to the server and see if you messed something up.
zimnl Nov 12, 2019 @ 9:55am 
Originally posted by ᛞᚱᚨᚲᛟᚾᛞᚨᚱᚲ:
it sounds like you may have edited something on your server that is stopping cars spawning as i run my own server from another pc i have setup and cars spawn fine for myself and the people on my server i would look back at any modding you have done to the server and see if you messed something up.

Can u please do me one favor, look at your types file, open it up, search for sedan, and then copy paste what ever is there, in here? So i can compare it to my types file?
<type name="Sedan_02">
<nominal>0</nominal>
<lifetime>3</lifetime>
<restock>1800</restock>
<min>0</min>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
</type>
<type name="CivilianSedan">
<nominal>0</nominal>
<lifetime>3</lifetime>
<restock>1800</restock>
<min>0</min>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
</type>



that is what i have.
Last edited by ᛃᚨᛗᛖᛊ ᛒᛖᛚᛚ; Nov 12, 2019 @ 10:07am
SmashT Nov 12, 2019 @ 10:06am 
You have a lifetime of 3 seconds, so after 3 seconds the car will despawn. 45 days would be 3888000 seconds.

<lifetime>3</lifetime>

I believe this only kicks in when a part is ruined though but it will result in cars possibly disapering as soon as you look away when damaged.
Last edited by SmashT; Nov 12, 2019 @ 10:10am
Originally posted by SmashT:
You have a lifetime of 3 seconds, so after 3 seconds the car will despawn.

<lifetime>3</lifetime>



i am aware of that i have mine set that way as i do not like the sedans in game i also have custom vehicles on my server.
zimnl Nov 12, 2019 @ 10:13am 
What i have is this:
<type name="CivilianSedan">
<nominal>20</nominal>
<lifetime>3888000</lifetime>
<restock>1800</restock>
<min>0</min>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
<category name="vehicle"/>
<usage name="Village"/>
<usage name="Hunting"/>
<usage name="Town"/>
<usage name="Police"/>
<usage name="Farm"/>
<value name="Tier1"/>
<value name="Tier2"/>
<value name="Tier3"/>
<value name="Tier4"/>
<category name="vehicle"/>
<usage name="Village"/>
<usage name="Hunting"/>
<usage name="Town"/>
<usage name="Police"/>
<usage name="Farm"/>
<value name="Tier1"/>
<value name="Tier2"/>
<value name="Tier3"/>
<value name="Tier4"/>


i don't believe you need any of that as the server seems handles vehicles differently from loot items.
Caxton Gibbet Nov 13, 2019 @ 2:35am 
In my experience the <nominal> value for vehicles in the types.xml must be set at zero or vehicle will not spawn.

The <nominal> value for vehicles is set in the events.xml, not the types.xml

Also all that stuff you tacked on the end, "category name" "usage name" and "value name" should not be there.

Also, if you want to stop a vehicle type spawning in game that is done in the events.xml by changing the value <active>1</active> to <active>0</active> for the vehicle that you don't want spawning.

FYI, the value <lifetime>3</lifetime> in the types.xml is the default value that the server files ship with at the moment.
Last edited by Caxton Gibbet; Nov 13, 2019 @ 2:47am
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Nov 12, 2019 @ 9:44am
Posts: 8