Jump to content
jbowen73

Christmas Gifts continue to Stack

Recommended Posts

I have enabled the Christmas Tree, Christmas Tree Event and Christmas gifts, every time the server restarts the Christmas gifts continue to stack up.  Is there a way to make it so the Christmas Gifts don't spawn if the the loot floor already contains loot under the Christmas tree?  I have played with the nominal settings but it seems the random spawner for the Christmas event disregards the parameters in the types.xml .  Maybe I'm looking at it the wrong way?  Is there some other parameter I can change to make it spawn a single set of Gifts?  If the gifts are taken or interacted with then the respawner should spawn the missing gifts.

Share this post


Link to post
Share on other sites

Apparently the behavior now seems to be ignoring everything except water bottles spawning at the Christmas trees.  This seems to be a recent change.

Share this post


Link to post
Share on other sites

Gifts seem to be spawning but back to stacking instead of replacing or leaving one gift on the loot floor.

Share this post


Link to post
Share on other sites

I’m having the exact same problem with the gift boxes continuing to stack under the Christmas tree.  I have 4 hr restarts on my server,  any idea how to fix this? 

Share this post


Link to post
Share on other sites

Does anybody have any fixes regards this topic.?
Thanks!

Edited by pj slasher

Share this post


Link to post
Share on other sites
4 hours ago, pj slasher said:

Does anybody have any fixes regards this topic.?
Thanks!

I have a kinda fix it adds more variety of gift boxes to both the santa wrecks and trees but there are less double spawns (adjusting your globals loot cleanup / giftbox types lifetime can help too)

Update the mapgroupproto.xml entries to these (i added one of the trees so if you dont have it leave it be)

<group name="ChristmasTree" lootmax="19">
        <usage name="SeasonalEvent"/>
        <container name="lootFloor" lootmax="19">
            <category name="containers"/>
            <tag name="floor"/>
            <point pos="2.621 1 -3.694" range="0.30" height="1"/>
            <point pos="-2.043 1 -3.967" range="0.40" height="1"/>
            <point pos="-2.616 1 -3.121" range="0.40" height="1"/>
            <point pos="-3.926 1 -2.848" range="0.30" height="1"/>
            <point pos="-4.417 1 -1.566" range="0.40" height="1"/>
            <point pos="-1.880 1 3.781" range="0.40" height="1"/>
            <point pos="-0.243 1 3.917" range="0.30" height="1"/>
            <point pos="0.957 1 4.190" range="0.40" height="1"/>
            <point pos="2.621 1 3.644" range="0.40" height="1"/>
            <point pos="3.494 1 2.662" range="0.30" height="1"/>
            <point pos="4.313 1 1.817" range="0.40" height="1"/>
            <point pos="4.667 1 0.753" range="0.40" height="1"/>
            <point pos="4.777 1 -0.366" range="0.30" height="1"/>
            <point pos="4.449 1 -1.593" range="0.40" height="1"/>
            <point pos="4.013 1 -3.367" range="0.40" height="1"/>
            <point pos="1.066 1 -3.585" range="0.30" height="1"/>
            <point pos="-0.543 1 -3.912" range="0.40" height="1"/>
            <point pos="-4.771 1 0.725" range="0.40" height="1"/>
            <point pos="-4.144 1 3.808" range="0.30" height="1"/>
        </container>
    </group>

<group name="ChristmasTree_Green" lootmax="19">
        <usage name="SeasonalEvent"/>
        <container name="lootFloor" lootmax="19">
            <category name="containers"/>
            <tag name="floor"/>
            <point pos="2.621 1 -3.694" range="0.30" height="1"/>
            <point pos="-2.043 1 -3.967" range="0.40" height="1"/>
            <point pos="-2.616 1 -3.121" range="0.40" height="1"/>
            <point pos="-3.926 1 -2.848" range="0.30" height="1"/>
            <point pos="-4.417 1 -1.566" range="0.40" height="1"/>
            <point pos="-1.880 1 3.781" range="0.40" height="1"/>
            <point pos="-0.243 1 3.917" range="0.30" height="1"/>
            <point pos="0.957 1 4.190" range="0.40" height="1"/>
            <point pos="2.621 1 3.644" range="0.40" height="1"/>
            <point pos="3.494 1 2.662" range="0.30" height="1"/>
            <point pos="4.313 1 1.817" range="0.40" height="1"/>
            <point pos="4.667 1 0.753" range="0.40" height="1"/>
            <point pos="4.777 1 -0.366" range="0.30" height="1"/>
            <point pos="4.449 1 -1.593" range="0.40" height="1"/>
            <point pos="4.013 1 -3.367" range="0.40" height="1"/>
            <point pos="1.066 1 -3.585" range="0.30" height="1"/>
            <point pos="-0.543 1 -3.912" range="0.40" height="1"/>
            <point pos="-4.771 1 0.725" range="0.40" height="1"/>
            <point pos="-4.144 1 3.808" range="0.30" height="1"/>
        </container>
    </group>

<group name="Wreck_SantasSleigh" lootmax="15">
        <usage name="SeasonalEvent"/>
        <usage name="Military"/>
        <container name="lootFloor" lootmax="15">
            <category name="containers"/>
            <tag name="floor"/>
            <tag name="shelves"/>
            <point pos="1.283224 1 -0.872620" range="0.30" height="1"/>
            <point pos="-1.003567 1 0.976502" range="0.40" height="1"/>
            <point pos="0.771655 1 2.138381" range="0.40" height="1"/>
            <point pos="0.998553 1 0.158799" range="0.30" height="1"/>
            <point pos="1.605129 1 1.281335" range="0.40" height="1"/>
            <point pos="-1.012351 1 -0.473981" range="0.40" height="1"/>
            <point pos="-0.610815 1 2.343904" range="0.30" height="1"/>
            <point pos="0.103881 1 -0.902266" range="0.40" height="1"/>
            <point pos="2.383885 1 2.355577" range="0.40" height="1"/>
            <point pos="0.708669 1 -1.836880" range="0.30" height="1"/>
            <point pos="-1.474670 1 -1.190255" range="0.40" height="1"/>
            <point pos="-4.483139 1 -0.584931" range="0.40" height="1"/>
            <point pos="-1.714593 1 1.032358" range="0.30" height="1"/>
            <point pos="-2.765030 1 2.362644" range="0.40" height="1"/>
            <point pos="-2.282524 1 0.761707" range="0.40" height="1"/>
            <point pos="-2.252261 1 -0.204986" range="0.30" height="1"/>
            <point pos="-2.941752 1 -2.424465" range="0.40" height="1"/>
            <point pos="-1.537683 1 -0.255560" range="0.40" height="1"/>
            <point pos="-4.679821 1 0.926455" range="0.30" height="1"/>
            <point pos="-1.446346 1 1.257269" range="0.40" height="1"/>
            <point pos="0.446721 1 0.364553" range="0.40" height="1"/>
            <point pos="-1.717637 1 -0.415192" range="0.30" height="1"/>
            <point pos="-2.966341 1 -1.205247" range="0.40" height="1"/>
            <point pos="2.117364 1-0.015760" range="0.40" height="1"/>
            <point pos="1.443674 1 -1.879323" range="0.30" height="1"/>
            <point pos="1.512164 1 0.118903" range="0.40" height="1"/>
            <point pos="0.410479 1 1.644631" range="0.40" height="1"/>
            <point pos="-3.291279 1 0.795169" range="0.30" height="1"/>
            <point pos="-3.150294 1 0.074545" range="0.40" height="1"/>
            <point pos="-0.564277 1 -2.646985" range="0.40" height="1"/>
        </container>
        <dispatch dechance="1.000000">
            <proxy type="GiftBox_Large_3" pos="-0.221761 -0.583313 0.805818" rpy="0.000000 0.000000 0.000000" dechance="1.00"/>
            <proxy type="GiftBox_Large_4" pos="-0.351653 -0.609894 0.023589" rpy="0.000000 0.000000 0.000000" dechance="1.00"/>
            <proxy type="FireworksLauncher" pos="-1.726919 -0.39 0.223045" rpy="0.000000 0.000000 0.000000" dechance="1.00"/>
        </dispatch>
    </group>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<types>
	<type name="GiftBox_Large_1">
		<nominal>30</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>20</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
	<type name="GiftBox_Large_2">
		<nominal>30</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>20</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
	<type name="GiftBox_Large_3">
		<nominal>30</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>20</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
	<type name="GiftBox_Large_4">
		<nominal>30</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>20</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
	<type name="GiftBox_Medium_1">
		<nominal>40</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>30</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
	<type name="GiftBox_Medium_2">
		<nominal>40</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>30</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
	<type name="GiftBox_Medium_3">
		<nominal>40</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>30</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
	<type name="GiftBox_Medium_4">
		<nominal>40</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>30</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
	<type name="GiftBox_Small_1">
		<nominal>50</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>40</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
	<type name="GiftBox_Small_2">
		<nominal>50</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>40</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
	<type name="GiftBox_Small_3">
		<nominal>50</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>40</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
	<type name="GiftBox_Small_4">
		<nominal>50</nominal>
		<lifetime>7200</lifetime>
		<restock>0</restock>
		<min>40</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="containers"/>
		<tag name="floor"/>
		<tag name="shelves"/>
		<usage name="SeasonalEvent"/>
	</type>
</types>
	

Update the gifts in types.xml to these values (Above) ...
Update events to this (Below)

	<event name="StaticChristmasTree">
        <nominal>13</nominal>
        <min>0</min>
        <max>0</max>
        <lifetime>43200</lifetime>
        <restock>0</restock>
        <saferadius>1000</saferadius>
        <distanceradius>1000</distanceradius>
        <cleanupradius>1000</cleanupradius>
        <flags deletable="1" init_random="0" remove_damaged="1"/>
        <position>uniform</position>
        <limit>child</limit>
        <active>0</active>
        <children>
            <child lootmax="15" lootmin="10" max="13" min="13" type="ChristmasTree"/>
        </children>
    </event>

	<event name="StaticChristmasTree_Green">
        <nominal>13</nominal>
        <min>0</min>
        <max>0</max>
        <lifetime>43200</lifetime>
        <restock>0</restock>
        <saferadius>1000</saferadius>
        <distanceradius>1000</distanceradius>
        <cleanupradius>1000</cleanupradius>
        <flags deletable="1" init_random="0" remove_damaged="1"/>
        <position>uniform</position>
        <limit>child</limit>
        <active>0</active>
        <children>
            <child lootmax="15" lootmin="10" max="13" min="13" type="ChristmasTree_Green"/>
        </children>
    </event>

(activate the tree and santa wrecks (i change the green tree to brown after a bit for realism) )

Edited by Kitty Shackleford

Share this post


Link to post
Share on other sites

Thank you so very much will keep this, appreciated  @Kitty Shackleford  😀

Edited by pj slasher

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×