Weyland Yutani (DayZ) 1159 Posted October 30, 2018 (edited) Topic: Extend an item from despawning & respawning to a greater value. Goal: Prevent Loot Farming and Camp Despawning. Examples: Player picks up item('s), drops the item('s) which despawn and a new item appears x amount if minutes later: I want to change minutes to hours. Player finds camp, empties contents of storage containers, items despawn: I want items to stay x amount of hours instead of x amount of minutes. type name="Raincoat_Green"> <nominal>60</nominal> <lifetime>5600</lifetime> <restock>0</restock> <min>30</min> <quantmin>-1</quantmin> <quantmax>-1</quantmax> <cost>100</cost> Nominal = amount per server? Lifetime: Once dropped, this is seconds to how it takes before an item respawns? Restock: ? Min: ? I also read the following and a bit confused: Source: www.reddit.com/r/dayz/comments/9hamlp/the_dayz_server_owner_howto_and_faq Quote "globals.xml" globals.xml changes the values of certain game variables, such as item despawning (which is distance-based), zombie and animal counts. The variables in the mission files are completely undocumented which means that understanding what each variable does will come down to trial and error. "types.xml" types.xml defines the different types of loot, and contains an entry for every single entity in the game. Inside the item configurations are parameters such as "lifetime" (likely used for the item despawning script), min quantity per map, "cost" (not sure what this could be used for), and "flags", which defines whether the item is counted in your cargo, whether it was a crafted item, etc. Questions What does he mean by distance based? Like you need to be a certain distance away, which I doubt. The mod was distance based, but loot farming in SA isn't? There is a despawning script? Any help is greatly appreciated. Edited October 30, 2018 by Weyland Yutani (DayZ) Share this post Link to post Share on other sites
DannyDog 532 Posted October 31, 2018 https://docs.google.com/spreadsheets/d/1jFQOkaU6kSZJFzMV4NHHgmi95htJzS0_1iM8aCWYCvI/edit#gid=1900203649 Share this post Link to post Share on other sites
Weyland Yutani (DayZ) 1159 Posted October 31, 2018 19 hours ago, DannyDog said: https://docs.google.com/spreadsheets/d/1jFQOkaU6kSZJFzMV4NHHgmi95htJzS0_1iM8aCWYCvI/edit#gid=1900203649 Thank you DannyDog. I set the lifetime of certain items to 24 hours in my init.c, but they despawn after a server restart. Do I need to adjust something somewhere else? Thanks again! Share this post Link to post Share on other sites
Aussie Cleetus 57 Posted November 1, 2018 yes, you need to save and load Dynamic in economy.xml <dynamic init="1" load="1" respawn="1" save="1"/> Share this post Link to post Share on other sites
Weyland Yutani (DayZ) 1159 Posted November 1, 2018 1 hour ago, Aussie Cleetus said: yes, you need to save and load Dynamic in economy.xml <dynamic init="1" load="1" respawn="1" save="1"/> That entry is the same as my economy.xml. I haven't altered it either. Share this post Link to post Share on other sites
Aussie Cleetus 57 Posted November 2, 2018 Are you using anything that clears your storage_1\Types.bin file? I believe that's where loot from the ground is stored Share this post Link to post Share on other sites
Weyland Yutani (DayZ) 1159 Posted November 2, 2018 34 minutes ago, Aussie Cleetus said: Are you using anything that clears your storage_1\Types.bin file? I believe that's where loot from the ground is stored No, I haven't touched any .bin file yet. Share this post Link to post Share on other sites