Don't Starve Together

Don't Starve Together

467 ratings
Less lags
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.103 KB
9 Jan, 2016 @ 8:44pm
18 Feb, 2016 @ 8:44am
12 Change Notes ( view )

Subscribe to download
Less lags

Description
===============================================================
WARNING: This mod was made for experienced admins of long running public
dedicated servers with huge amount of players. It is not recommended to use this
mod in any other case!

It is also recommended to read discussions before using this mod.
===============================================================

I hate to see how lag most old dedicated servers (1000+ days), and how admins are being forced to erase whole world and restart game only because of lags. That is why I publish this mod.

What it does
First, it periodically perform cleaning of the server. Cleaning deletes some items on the ground. You can specify maximum of each item type.
Second, it allows for bird to steal small items, like gold nugget (everyone knows that crows like shiny objects).

With these two features you will never have tons of spider silk or millions of spiders or beefalos on your server (wich causes a lot of lags).

With this mod you can have 1000+ days dedicated server without any lags (as I did).

Item list
Full list of items see in discussion.

Recomendations
To reach the best result, it is also highly recommended to:
1. Add foodie mod (allows some items to spoil slowly, including grass, silk, etc)
2. Add No walls mod
3. Add More drops mod, but set minimum amount of trees, grass, boulders
4. Turn off frog rain
5. Set maximum amount of birds (they will eat a lot of items from the ground)


UPDATES
1. Fixed compatability issue with moderator commands mod
2. Added ability to show additional warning message about cleaning
3. Made it possible to run cleaning immediately using console: TheWorld.Clean()

Idea of stealing birds belongs to Star
Popular Discussions View All (3)
5
22 Dec, 2023 @ 3:32pm
Configuring modoverride.lua
Astro
3
8 Jun, 2022 @ 6:02am
Feature request
Muche
1
1 May, 2018 @ 12:56pm
List of items
Astro
167 Comments
Sativia 16 Sep, 2024 @ 3:07am 
this got me crash lately when it says <cleaning server< idk why
dano 9 Jul, 2024 @ 8:01am 
Is this mod still working? It runs on my server, I see the messages but it does not clean everything.
CozyCouch 12 Oct, 2023 @ 4:59am 
@hero can you make a fork or update this mod? for the beefalo problem?
Metheus 3 Aug, 2023 @ 7:31am 
will clean my trained beefalo
Playeroth 9 Jul, 2023 @ 4:54pm 
2016 mod
Busetinha de furry 19 May, 2023 @ 7:51am 
:steamthumbsup:
TroN 29 Jan, 2023 @ 4:26pm 
All spiders disappeared from the map and now I have to reset the world :(
Doug 1 Dec, 2022 @ 1:18pm 
this mod delete my last spider egg
hero 10 Oct, 2022 @ 9:22am 
I found a solution for the beefalo problem. Don't know if you want to add it to the mod?

new function:
function IsDomesticated(b)
local owner = nil

if b.components.domesticatable and b.components.domesticatable:IsDomesticated() then
print ("Domesticated prefab found.")
return true
end
return false
end

and calling the new function from CleanPrefab:
[...]
for k,v in pairs(GLOBAL.Ents) do
if v.prefab == prefab then
if not IsInInventory(v) and not IsDomesticated(v) then
table.insert(b, v)
end
end
end
[...]