Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

TrackerQueen

Fruit not spawning

Recommended Posts

I just purchased a new server and the fruit has not spawned from trees since activating it. I tried to adjust the code, but it still does not work to no avail. I want to have this server open by tomorrow, but not having fruit below trees puts a real damper on new spawns in a server. I changed all the coding in types XML file back to the original settings as follows but it is still not working. I have attempted to active fruit in the server by running under and into the trees and nothing spawns either. I play on xBox, but access the server as admin through my Macbook for management. Purchased through Nitrado, but their support states they only provide server and do not support code of game. Below is a copy of the Apple code in the types.xml file. Pear and Plum have the same issue. Any advise is needed.

</type>
    <type name="Apple">
        <nominal>0</nominal>
        <lifetime>900</lifetime>
        <restock>0</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="1" deloot="0"/>
        <category name="food"/>
    </type>

Share this post


Link to post
Share on other sites

Fruit spawns when players are in the vicinity of those trees -- so when you first start up a server with nobody on it yet, no fruit will be present.  If you are testing this with just you on the server, I suggest you go to a town, run through that town, leave the town, turn around and go back to that town.  At that point, check the trees as your presence should have spawned some fruit in.

Share this post


Link to post
Share on other sites

Also the spawning is controlled by the trajectory fruit events in events.xml, but these are active by default - you should not need to do anything.

For apples for example, in events.xml you should have the below code:

 

<event name="TrajectoryApple">
        <nominal>140</nominal>
        <min>2</min>
        <max>4</max>
        <lifetime>180</lifetime>
        <restock>0</restock>
        <saferadius>25</saferadius>
        <distanceradius>100</distanceradius>
        <cleanupradius>25</cleanupradius>
        <flags deletable="0" init_random="0" remove_damaged="0"/>
        <position>player</position>
        <limit>mixed</limit>
        <active>1</active>
        <children>
            <child lootmax="0" lootmin="0" max="0" min="0" type="Apple"/>
        </children>
    </event>

Check that it is indeed active and that nominal is at 140 and not less. If so it is as drgullen says - you just need to give them time to spawn. When you are alone on a server there is nobody else moving around triggering fruit to spawn, so best way of testing is to just run around a village, then afk in a safe spot for about 15 minutes and then run around checking all fruit trees. You'll find all you can eat basically.

Share this post


Link to post
Share on other sites

×