failed custom event spawn for container with loot

Dear forum members,
for some time now we have been creating and maintaining new ways to help game server admins with questions and problems as quickly as possible, e.g. our Guides section and the Nitrado Community Discord.

Therefore, we inform you that the Nitrado Forum will be closed on March 31, 2023. We are consolidating our community support to our Discord channel, which is faster and more efficient. We have also seen incredible growth in our community due to the hard work of our moderators and our bots. We are confident that this move will ensure that we provide the best support possible for our users.

Thank you to all members for your continued use of the forum!

Assistance with all questions concerning your Nitrado service can now be found in these spots:
Community Discord: https://discord.gg/nitrado
Guides section: https://server.nitrado.net/guides
Support Wizard: https://support.nitrado.net
  • After watching scalespeeder gaming's video for "DayZ XML Mods: How To Spawn In Backpack Full Of Loot In Custom Locations Xbox PlayStation PC Nitrado" on youtube. I got this to work 100% on my xbox server. except I changed it all out for a blue barrel and I added all different items and my own location. however it spawned once with everything which was perfect and I took the items from the barrel and moved the barrel into my base. I then tried to spawn another blue barrel with different items and a new location and it was not successful. then I noticed a second blue barrel spawned in the original location with the original items and so I thought maybe its because there's only supposed to be one according to the files so I tried deleting the original event and original event spawn and starting fresh with a new event to spawn that blue barrel with the new list of items I wanted to spawn, in the original location I tried at first and I cant get it to spawn anymore. I destroyed the original 2 barrels i got to spawn and still nothing. please help if you know what's wrong or give advice, like I said I've tried deleting the original event with the event spawn and created a new event with that same barrel in the first location I tried and I don't know what else to try.

  • Hi are you trying to spawn the backpacks with loot, trough events or types?

    i edited types, events, event spawns, and spawnable types as the video I cited instructed. I can paste or screen shot the codes for each file here if it would help determine an error in the coding but I'm pretty certain its all correct as I ran them through a code validation site and found no errors. I'm confused why it worked the first time and now it doesn't. I'm wondering if it only works after a reinstall of the server and not just a reset, I had edited the server files when I initially purchased it and uploaded the edited files followed by a reinstall to test everything I had done and it was all working the way i had the files coded and then i adjusted a few more item spawn chances such as food and tried to do another custom event spawn for a barrel with loot as i did before just with different cargo items and coordinates.

  • Hi feel free to show me the code snippets, i take a look.

    Types.xml:

    </type>

    <type name="Barrel_Blue">

    <nominal>0</nominal>

    <lifetime>3888000</lifetime>

    <restock>0</restock>

    <min>0</min>

    <quantmin>-1</quantmin>

    <quantmax>-1</quantmax>

    <cost>100</cost>

    <flags count_in_cargo="1" count_in_hoarder="0" count_in_map="1" count_in_player="1" crafted="0" deloot="0" />

    <category name="tools" />

    <tag name="floor" />

    <usage name="Industrial" />

    <usage name="Farm" />

    </type>



    CFGspawnabletypes.xml:

    <type name="Barrel_Blue">

    <cargo chance="1">

    <item name="AntiChemInjector" />

    </cargo>

    <cargo chance="1">

    <item name="AntiChemInjector" />

    </cargo>

    <cargo chance="1">

    <item name="AntiChemInjector" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="NailBox" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="Whetstone" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="DuctTape" />

    </cargo>

    <cargo chance="1">

    <item name="Hatchet" />

    </cargo>

    <cargo chance="1">

    <item name="Hatchet" />

    </cargo>

    <cargo chance="1">

    <item name="Hatchet" />

    </cargo>

    <cargo chance="1">

    <item name="Pliers" />

    </cargo>

    <cargo chance="1">

    <item name="Hacksaw" />

    </cargo>

    <cargo chance="1">

    <item name="Hacksaw" />

    </cargo>

    <cargo chance="1">

    <item name="Hacksaw" />

    </cargo>

    <cargo chance="1">

    <item name="Lard" />

    </cargo>

    <cargo chance="1">

    <item name="Lard" />

    </cargo>

    <cargo chance="1">

    <item name="Lard" />

    </cargo>

    <cargo chance="1">

    <item name="Lard" />

    </cargo>

    <cargo chance="1">

    <item name="Honey" />

    </cargo>

    <cargo chance="1">

    <item name="Honey" />

    </cargo>

    <cargo chance="1">

    <item name="Honey" />

    </cargo>

    <cargo chance="1">

    <item name="NBCJacketYellow" />

    </cargo>

    <cargo chance="1">

    <item name="GasMask_Filter" />

    </cargo>

    <hoarder />

    </type>



    Events.xml:

    <event name="ItemBarrel">

    <nominal>1</nominal>

    <min>1</min>

    <max>1</max>

    <lifetime>2500</lifetime>

    <restock>0</restock>

    <saferadius>0</saferadius>

    <distanceradius>0</distanceradius>

    <cleanupradius>200</cleanupradius>

    <flags deletable="0" init_random="0" remove_damaged="1"/>

    <position>fixed</position>

    <limit>child</limit>

    <active>1</active>

    <children>

    <child lootmax="0" lootmin="0" max="1" min="1" type="Barrel_Blue"/>

    </children>

    </event>



    CFGeventspawns.xml:

    <event name="ItemBarrel">

    <pos x="2034.72" z="6107.94" a="-1" />


    </event>

  • Hi feel free to show me the code snippets, i take a look.

    update- i reduced the item count to be spawned in the barrel thinking it may have been more than it could hold but still no barrel


    newest copy of CFGspawnabletypes.xml:

    <type name="Barrel_Blue">

    <cargo chance="1">

    <item name="AntiChemInjector" />

    </cargo>

    <cargo chance="1">

    <item name="AntiChemInjector" />

    </cargo>

    <cargo chance="1">

    <item name="AntiChemInjector" />

    </cargo>

    <cargo chance="1">

    <item name="Honey" />

    </cargo>

    <cargo chance="1">

    <item name="Honey" />

    </cargo>

    <cargo chance="1">

    <item name="Honey" />

    </cargo>

    <cargo chance="1">

    <item name="NBCJacketYellow" />

    </cargo>

    <cargo chance="1">

    <item name="GasMask_Filter" />

    </cargo>

    <hoarder />

    </type>

  • Hi putting stuff in an barrel via spawnabletypes does not work at this moment.

    i was able to get it to work and the issue is resolved. thank you for your time i appreciate it.

    i was suggested in a discord to stop the server and reset the event by changing the active line for the barrel under events to 0 instead of 1 (this enables and disables the event), save the changes and start the server back up (might need to give it a few minutes to despawn or spawn things), shut it back down and set the active line back to 1, save changes and start the server again and it was working fine. but i think the real issue was that i wasn't stopping the server to upload files and was just uploading and hitting restart. i tested the method a few ways and concluded you must manually stop the server to upload edited files and then manually start it and just restarting with the edited files already uploaded does not work.

  • Hi putting stuff in an barrel via spawnabletypes does not work at this moment.

    i was able to get it to work and the issue is resolved. thank you for your time i appreciate it.

    i was suggested in a discord to stop the server and reset the event by changing the active line for the barrel under events to 0 instead of 1 (this enables and disables the event), save the changes and start the server back up (might need to give it a few minutes to despawn or spawn things), shut it back down and set the active line back to 1, save changes and start the server again and it was working fine. but i think the real issue was that i wasn't stopping the server to upload files and was just uploading and hitting restart. i tested the method a few ways and concluded you must manually stop the server to upload edited files and then manually start it and just restarting with the edited files already uploaded does not work.

    I am trying to do that for myself, would you maybe send me the codes u used ?