DayZ
Blackouts Truck Wrecks
Mirasaki 24 Oct, 2022 @ 8:29am
Current Issues and how to address them (mostly)
Before you continue, don't let this deter you from using the mod, or testing it for yourself at least. It's still a very good addition to my server, and will be for most servers.

! Server Configuration
(1) The default configuration no longer works, the DE fails to initialize:
'lootmax="30"' for the childs in events.xml should be 20 instead of 30 as the mapgroupproto definition container has lootmax set to 20 - Default configuration no longer works because of that and this change has to be made for the DE to spawn and be active.

!! Mod Issue
(2) Fueling from the vg7_FuelTruck no longer works. Would have been cool, but a minor issue I have too little knowledge off to address. Please let me know in the comments if it works for you (fuel point is showcased in description screenshots), as this might as well be a mod compatibility issue on my side.

! Server Configuration
EDIT: This is a result of teleporting there... If you come across a truck wreck while playing normally they will definitely spawn in!
(3) The defined secondary spawner "InfectedIndustrial" is logged as initialized in the server console, yet there's no zombies spawning around the wrecks. I am not sure why this specific secondary spawner fails to initialize, but simply looking at the StaticHeliCrash event and changing the secondary spawner to "<secondary>InfectedArmy</secondary>" seems to work just fine. "InfectedPoliceHard" from the 1.19 StaticPoliceSituation also works. Once again, I have no idea how or why

! Server Configuration
(4) The same items spawn consistently at the same mapgroupproto points across every active event, persisting across server restarts. The log message in the server's RPT file is as follows: "[CE][SpawnRandomLoot] (StaticTruckCrash) :: No item found to spawn for DE! Spawned: 8 / 17 (enable log_ce_dynamicevent to see item lists for event)" - and this tells us (everyone in the comments complaining about it) that there is simply not enough possible items to spawn at the defined mapgroupproto points, to fix this, add '<usage name="TruckWreck"/>' to x amount of types.xml entries, where x represents the difference between "8 / 17" (active items / target amount of items from the log message in your server's RPT file) for static item spawns OR add '<usage name="TruckWreck"/>' to even more types.xml entries to achieve truly dynamic loot.

My personal recommendation for configuring loot from this dynamic event:
Copy your original types.xml item config, add '<usage name="TruckWreck"/>' underneath the tag definition, and put this new item configuration in your TruckWreckTypes.xml file. Extend your CE in cfgeconomycore like so:
<!-- Blackouts Truck Wrecks --> <ce folder="CustomTypes/BlackoutTruckWrecks"> <file name="types.xml" type="types"/> <file name="events.xml" type="events" /> </ce> </economycore> <-- MIND THE CLOSING TAG: You want this to be loaded at the END of the file, overwriting previous vanilla/modded types entries -->

Here's a VPP TeleportLocation.json preset so you can take a look for yourself while testing and configuring:
{ "m_Name": "Truck Crash 1", "m_Position": [ 3998.0, 90.0, 11049.0 ] }, { "m_Name": "Truck Crash 2", "m_Position": [ 3366.0, 90.0, 15226.0 ] }, { "m_Name": "Truck Crash 3", "m_Position": [ 2242.0, 185.0, 5211.0 ] }, { "m_Name": "Truck Crash 4", "m_Position": [ 3351.0, 344.0, 6494.0 ] }, { "m_Name": "Truck Crash 5", "m_Position": [ 11457.0, 220.0, 7371.0 ] }, { "m_Name": "Truck Crash 6", "m_Position": [ 3082.0, 246.0, 4249.0 ] }, { "m_Name": "Truck Crash 7", "m_Position": [ 7517.0, 121.0, 12637.0 ] }, { "m_Name": "Truck Crash 8", "m_Position": [ 509.0, 296.0, 9462.0 ] }, { "m_Name": "Truck Crash 9", "m_Position": [ 10349.0, 49.0, 3622.0 ] }, { "m_Name": "Truck Crash 10", "m_Position": [ 2519.0, 255.0, 9617.0 ] }, { "m_Name": "Truck Crash 11", "m_Position": [ 6471.0, 464.0, 14962.0 ] }, { "m_Name": "Truck Crash 12", "m_Position": [ 731.0, 339.0, 12181.0 ] }
Last edited by Mirasaki; 24 Oct, 2022 @ 8:40am
< >
Showing 1-3 of 3 comments
YvonneMcGruder 24 Oct, 2022 @ 1:13pm 
Mirasaki--THANK YOU for explaining how to fix the loot spawns! I didn't know what to do so I ended up removing the mod. Maybe now I can reinstall it and have them going again. Thanks for all your explanations here.
Mirasaki 25 Oct, 2022 @ 7:00am 
Always happy to help! ^^/
HF 16 Sep, 2023 @ 2:25pm 
Hello, regarding the report of no entity appearing around the vehicle, this is due to a line missing in the "CFGEVENTSPAWNS.XML" file. Include this:
<zone smin="0" smax="0" dmin="5" dmax="10" r="20" />

ending up like this:

<event name="StaticTruckCrash">
<zone smin="0" smax="0" dmin="5" dmax="10" r="20" />
<pos x="3998" z="11049" a="-1" />
<pos x="3366.520020" y="330.389008" z="15226.000000" a="-0.004479" />
<pos x="2242.600098" y="185.350006" z="5211.220215" a="0.000000" />
<pos x="3351.129883" y="344.528992" z="6494.060059" a="0.253519" />
<pos x="11457.599609" y="220.326996" z="7371.049805" a="-0.049906" />
<pos x="3082.709961" y="246.494003" z="4249.529785" a="0.001834" />
<pos x="7517.100098" y="121.063004" z="12637.200195" a="0.004075" />
<pos x="509.806000" y="296.138000" z="9462.179688" a="-0.036530" />
<pos x="10349.799805" y="49.329800" z="3622.070068" a="0.008553" />
<pos x="2519.949951" y="255.307007" z="9617.459961" a="0.005806" />
<pos x="6471.439941" y="464.901001" z="14962.500000" a="0.006110" />
<pos x="731.054016" y="339.449005" z="12181.400391" a="-1.404856" />
</event>
< >
Showing 1-3 of 3 comments
Per page: 1530 50