Don't Starve Together

Don't Starve Together

Increase Animals + Setpieces
147 Comments
cadevandevort 14 Mar @ 12:58pm 
Can you add reeds, ponds and others into it, after the quilty of life update it wasn't really fun to play because there wasn't much going on. is there anyway to make them on to it or make a new mod?
FoxKnight64 16 Sep, 2024 @ 2:02am 
Cool mod, but sometimes can get spawn killed when loading new world with extra mobs or the pigs guarding chests
Serp  [author] 14 Aug, 2024 @ 9:04am 
@Eddie the Mammoth:
Short answer: I don't know, feel free to test and report back (in console "LongUpdate(1000)" (or higher numbers) can kind of speed up the time).

Long answer:
My code does not add any repopulation. Back then when I modded DST (wholy moly already 8 years ago I made this mod), there was also no kind of world-regeneration, so most things were finite.
I do not mod DST anymore and did not really follow the new additions, but I think many things got some kind of respawn. I don't know how this respawn works and if it affects the population added by this mod ..

since I do not mod dst anymore, there won't be another mod adding more prefabs. But feel free to write the code and we can share this mod or you make a new one adding several new prefabs to it.
Eddie the Mammoth 14 Aug, 2024 @ 4:07am 
"I can make a mod for increasing every prefabs, so e.g I could also increase plants."
I'd love to be able to increase amount of grass but only in savanna! Just an idea ofc.
Eddie the Mammoth 14 Aug, 2024 @ 4:01am 
Mod works great, makes the world much more alive! I also have a question, will the extra mobs repopulate if a lot of them died off? Especially for something that weren't supposed to exist in that biome like surface rock lobsters. Basically I'd like to know if the population will stay roughly the same as when first generated. Ty.
Serp  [author] 30 May, 2024 @ 9:12am 
@Cascade: if I recall correctly no. Its long time ago I wrote it, I think the biomes are tied to the setpieces. But I think in theory one could make a mod to change this for sure, but I'm not activevly modding DST currently.
Cascade 20 May, 2024 @ 9:24pm 
Very, very specific question. But is there a way to choose what biome a set piece spawns?
Serp  [author] 20 May, 2024 @ 3:51am 
yes still should work.
I can recommend this together with my teleportato mod, to automatically generate a new randomized world on each worldjump.
Cascade 19 May, 2024 @ 1:03pm 
Still work! :>
Cascade 19 May, 2024 @ 1:32am 
Still work?
Serp  [author] 16 Jul, 2021 @ 6:54am 
works fine in my tests.
This mod is only active during worldgeneration. So it can only cause a crash during world generation, if at all.
Ponyta 16 Jul, 2021 @ 2:50am 
crashou meu jogo :'(
Dex Enfvaras 25 Feb, 2021 @ 11:00am 
Ah alright.
Serp  [author] 24 Feb, 2021 @ 2:44am 
Of course game updates may break this mod, but I dont play the beta, so please write again when the mod does not work on the live branch or send me a logfile.
Dex Enfvaras 23 Feb, 2021 @ 5:09pm 
For some reason, this mod is causing an endless generation loop when making a new world with this mod turned on. I tested it with just this mod with no client-side mods or server-side mods for the ReturnofThemBeta. Not sure if this intended, but it may just be me. Thought I would just share this in case someone else might be having the same issue.
Serp  [author] 10 Feb, 2021 @ 4:51am 
enable it as a server mod and go to modsettings to enable/disable/set values for things you would like to generate on worldgeneration. (only for worldgeneration, not after world was already created). And read the description above.
b ♡ 10 Feb, 2021 @ 4:38am 
how do i use this?
johnsir 30 Aug, 2020 @ 4:44pm 
It does make sense in a way, but on paper it makes no sense since "wasps" come out of regular hives when you attack nearby bees or the hive itself. Also I'm glad you fixed that error in the description cause I just said that cause I thought it was a funny way of pointing it out.
Serp  [author] 30 Aug, 2020 @ 3:15am 
@johnsir: added a "," between GuardPigs and Bees....
And yes, wasps are the killer bees, the code often refers to wasps eg. "wasphive".
-shhfiftyfive 29 Aug, 2020 @ 1:57pm 
what a pointless comment...

quite sure you know he means the red killer bees / hives.
johnsir 29 Aug, 2020 @ 1:51pm 
What's a GuardPigs Bees? Also I'm sure there's no such thing as wasps in don't starve together.
Serp  [author] 16 Jul, 2020 @ 1:22am 
in case you want to try it, I just looked in the files, not only modinfo (line 1518 till 1661) needs to be enabled again, but also in modworldgenmain I removed clockworks line 105 till 107. The - ,Clockworks="clockwork" - must be within the list AnimalPrefabs.
KramerMcBarret 15 Jul, 2020 @ 6:56pm 
Ok thanks for the information
-shhfiftyfive 15 Jul, 2020 @ 1:59pm 
yeah, that was obnoxious, having chess enemies everywhere.
Serp  [author] 15 Jul, 2020 @ 7:21am 
@KramerMcBarret:
Unfortunately they have been removed from the settings. For some strange reason, even if you increased the amount of them by the tiniest bit, everything was full of clockworks. And double and triple checked all code, but I found no problem in my code, so I can only assume it is a game bug/game incompatibilty I dont see. (see mod changelog from 21 July 2019)

I think you can try to enable the settings in modinfo.lua again and see if it works. But I guess this "everything full of clockworks" is still the case.
KramerMcBarret 14 Jul, 2020 @ 2:24pm 
This looks really great but I don't see the clockworks in the settings. They are the ones i'd like to increase, is it normal ?
Serp  [author] 5 Jul, 2020 @ 3:58am 
@dvoice: No, this mod only changes worldgeneration.
dvoice 4 Jul, 2020 @ 10:26am 
I want to know if the world has been created, will it work to change the number of animals
WiseCog 15 May, 2020 @ 12:32pm 
Ok man. I figured it all out. So I deleted my posts.
Serp  [author] 30 Apr, 2020 @ 3:44am 
it's too long ago, cant remember exactly how the world generation works and even every game update could change it (eg. my mod does not include the new areas, like island or ocean).

My best guess would be, that the game is adding a default setpiece to the 1 you chose. But to be sure we would need to search through the files of world generation. Fact is, that if you set "1" then the setpiece entry will have a count of 1 after the mod loaded. So the game must add another one, after that step.
If you find out how to solve this, let me know. I unfortunately dont have the time for such a possibly time consuming research =/
WiseCog 30 Apr, 2020 @ 3:06am 
Now I noticed that two "PigGuardsGrass8" also spawned twice... I dont know if this is intended? But I assumed that the number I pick should be spawned in the world.
WiseCog 30 Apr, 2020 @ 2:58am 
Yea I have no clue either... Well, its a small problem.

PS: I did find a new bug today I think. I regenerated a world that spawned with two "Hound Rocks" even though I had only set 1 to spawn. Is this intended?
Serp  [author] 29 Apr, 2020 @ 10:14am 
@Greenpakto:
Hm... very strange. I have absolutely no clue why they aren't spawning. It is defined in game files map/layouts.lua that the default start is spawning pumpkin_lanterns, if hallowed night is active. And hallowed nights is active (not deactivated by the mod). And also the starting setpiece is neither replaced nor modified by this nor the advanced world generation mod.

So I really have no explanation for this and cant fix it. Lets hope it is only this "minor" bug. The lanters in all other setpieces are there as intended.
WiseCog 29 Apr, 2020 @ 1:39am 
@Serp You can choose any event you want when creating server. Hallowed Nights is one of them.
Serp  [author] 29 Apr, 2020 @ 1:31am 
@HyperBlaster:
can you provide more information? Eg. how could I test this? Is there currently an event that should spawn these lanterns, although it is not halloween?
Hypermun 28 Apr, 2020 @ 3:56pm 
the mod when activated prevents the hallowed nights jack-o-lanterns from spawning around the portal
WiseCog 3 Apr, 2020 @ 1:56pm 
Wait what @Serp, are you saying that these traps have already been removed by the devs?? That's very strange because they spawned for me earlier this week. Oh but yea right that's cause I used your mod maybe? I know 100% for a fact they could spawn when your mod was released 2016 and even 2017 (I didn't use your mod back then but they still spawned).

PS: It seems the code works anyway so far. No crashes at least, so I have faith that the code works properly. I want to thank you for all the help man, very appreciated! I can probably learn from that code to turn off other set pieces as well which is great.
Serp  [author] 3 Apr, 2020 @ 12:35pm 
ok, guess the empty "tasks" is causing the crash, so better might be:
AddTaskSetPreInitAny(function(tasksetdata)
tasksetdata.set_pieces["Chilled Decid Base"] = nil
tasksetdata.set_pieces["Chilled Base"] = nil
tasksetdata.set_pieces["Hot Base"] = nil
end)

But... I just searched the game files, and these traps are commented out in the code. So I would assume, that they can not appear in a game without any mods. Not sure how it was back in 2016, when I released this mod.
WiseCog 3 Apr, 2020 @ 11:05am 
It crashes when I add what you pasted into my own "modworldgenmain". Am I suppose to add more things? I didnt add anything else into my own mod.
It says something like this and tons more errors (just copy pasted the first error lines)...

[00:00:11]: DoLuaFile Error: #[string "scripts/map/level.lua"]:198: Trying to add set piece 'Chilled Base' but no choices given.
#LUA ERROR stack traceback:
@=[C]:-1 in (global) assert (C) <-1--1>
@scripts/map/level.lua:198 in (method) ChooseSetPieces (Lua) <160-215>
self =
Serp  [author] 3 Apr, 2020 @ 9:43am 
@Greenpakto:
Try this in modworldgenmain.lua:

AddTaskSetPreInitAny(function(tasksetdata)
tasksetdata.set_pieces["Chilled Decid Base"] = { count = 0, tasks={}}
tasksetdata.set_pieces["Chilled Base"] = { count = 0, tasks={}}
tasksetdata.set_pieces["Hot Base"] = { count = 0, tasks={}}
end)
-shhfiftyfive 2 Apr, 2020 @ 4:20pm 
or use his other mod that lets you build the "things" and start a new world. that way who cares if these exist, if the world is just temporary.
WiseCog 2 Apr, 2020 @ 12:39pm 
@shhfiftyfive, I would never open these chests myself and rookies tend to open them at random times. And since I never would open them anyway I don't want them to spawn at all. I know I could ignore every time they spawn but I rather have them gone forever.
-shhfiftyfive 2 Apr, 2020 @ 10:45am 
the traps are just there for new players to experience.
after that, you just ignore them?
-shhfiftyfive 2 Apr, 2020 @ 10:44am 
just ignore the traps?
WiseCog 2 Apr, 2020 @ 10:21am 
@Serp thank you for the reply. Yes I think I didn't explain myself well enough. I would like to have a mod purely for that without any other options and such. Just a simple mod to add to my mod folder, turn it on, and then traps would be removed automatically for my world (no need for any settings and such). I would do it myself if I could. I tried to borrow that code from you but its just so many other lines and changes that I cant tell what to borrow (my lua skills are FAR below yours).
Serp  [author] 2 Apr, 2020 @ 9:54am 
@Greenpakto:
As far as I remember you can already do this? I think the options in modsettings should be "0, default, 1, 2 ...". Settings it to 0 should disable it, if I remeber right. You can try in console: c_gonext("winterometer"), to check if there really spawned none of these traps.
WiseCog 2 Apr, 2020 @ 3:57am 
No one in the mod workshop except you have done something similar.
WiseCog 2 Apr, 2020 @ 3:56am 
Hey there Serp! Do you mind doing me an enormous favor? Create a mod purely for disabling winter and summer traps (no need for option "yes" and "no")... I really hate these traps but I have no clue how to mod it in myself...
-shhfiftyfive 4 Nov, 2019 @ 9:42am 
@mandrake for one, lureplants are seasonal
Babadrake 3 Nov, 2019 @ 4:22pm 
@Serp i want a world where lure plants spawn constantly and for there to be a ton more