DayZ
Trader
f00 18 Oct, 2021 @ 9:30am
FIXED - Vehicle spawn blocked by Hardigg
Hey all,

I have a fully functional trader except for 1 small problem. I cannot buy a car. I get the error Spawn blocked by Hardigg every time. I have verified the coordinates of the cones and where it should spawn and all is correct. I have added the bit of config for the traders.

<TraderMarker> 0 // Trader ID
<TraderMarkerPosition> 8802.72, 102.15, 5073.92 // Coordinate X, Coordinate Y, Coordinate Z
<TraderMarkerSafezone> 160 // Safezone Radius

<TraderMarker> 1
<TraderMarkerPosition> 8798.23, 102.158, 5080.12
<TraderMarkerSafezone> 160

<TraderMarker> 2
<TraderMarkerPosition> 8817.55, 102.856, 5108.8
<TraderMarkerSafezone> 160

<TraderMarker> 3
<TraderMarkerPosition> 8809.67, 102.856, 5115.63
<TraderMarkerSafezone> 160

<TraderMarker> 4
<TraderMarkerPosition> 8805.24, 102.158, 5076.6
<TraderMarkerSafezone> 30

<TraderMarker> 5
<TraderMarkerPosition> 8814.16, 103.664, 5106.34
<TraderMarkerSafezone> 30

<TraderMarker> 6
<TraderMarkerPosition> 11130, 93.715, 2322
<TraderMarkerSafezone> 50

<TraderMarker> 7
<TraderMarkerPosition> 12540, 41.145, 12093
<TraderMarkerSafezone> 100

<VehicleSpawn> 8810.59, 102.437, 5101.95 // Vehicle Spawnpoint for Trader; Coordinate X, Coordinate Y, Coordinate Z (optional)
<VehicleSpawnOri> 280, 0, 0 // Vehicle Spawnpoint Orientation; Yaw, Pitch, Roll (optional)
Last edited by f00; 23 Oct, 2021 @ 4:59am
< >
Showing 1-6 of 6 comments
f00 18 Oct, 2021 @ 11:28pm 
and just to make sure everyone understands. There is not a hardigg inside 1 km of the trader so that cannot be the problem. I believe it is ignoring the given coordinates for the spawn and might be using a default Chernarus coordinates. not sure though.
Last edited by f00; 18 Oct, 2021 @ 11:28pm
f00 19 Oct, 2021 @ 12:05pm 
OK. so I have verified that the spot in the middle of the cones is NOT seen as the spawn point by Trader even though that is what is configured. spawned in a car and tried to buy a key for it and no good.
f00 22 Oct, 2021 @ 12:00pm 
so. just as a test I moved my storage directory out and restarted the server. i then joined gave myself enough for a car and bought one. it did spawn. however, nowhere near the coordinates I have set in my traderobjects.txt

would ANYONE have an idea WTF is going on here?

thanks
f00 23 Oct, 2021 @ 4:57am 
I fixed it.

Basically it boils down to either questionable coding logic or questionable coding ability.

The parsing of the config file for traderobjects.txt is done so that the trader that is the vehicle trader will have the VehicleSpawn value DIRECTLY below the TraderMarkerSafezone value for that trader object. Thus NO EMPTY LINE FEED after TraderMarkerSafezone.

My original config had all 8 traders listed and then the VehicleSpawn at the bottom. This is an invalid config for Traders parser. I now have the following:

<TraderMarker> 5
<TraderMarkerPosition> 8814.16, 103.664, 5106.34
<TraderMarkerSafezone> 50
<VehicleSpawn> 8810.59, 102.437, 5101.95
<VehicleSpawnOri> 280, 0, 0

This works as intended but there is nothing in the documentation alluding to this quirk/requirement of the mod.

Thanks again for the assist and I hope this info will be able to help you folks in the future.
f00 23 Oct, 2021 @ 5:09am 
After thinking about this a bit more I have come to the conclusion that this is NOT questionable coding logic or ability. it is most certainly NOT those.

With the way the mod is made and the parsing of the config the way it is, you can have multiple vehicle traders each with its own spawn points. so the parsing is quite good actually.

The only problem here is bad documentation. As such well done on coding but not so hot on docs.
Survivalist 14 Sep, 2022 @ 5:03am 
Hello man, all good? Do you know if it is possible to have 2 vehicle spawns at the same trader?
< >
Showing 1-6 of 6 comments
Per page: 1530 50