Timberborn

Timberborn

94 ratings
Bobingabout's Housing Optimize
3
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
287.414 KB
3 Mar @ 3:24pm
25 Jun @ 4:00pm
3 Change Notes ( view )

Subscribe to download
Bobingabout's Housing Optimize

Description
Based on the original mod by AllTheNamesAreGone.
At the beginning of each workday, all beavers are shuffled between houses to minimize travel distance between their homes and workplaces.

The algorithm used is based on a first come first served ordering. The calculations are therefore not guaranteed to make the best result, but it does execute quickly and gives a far better result than assignment to homes and jobs at random that the game uses by default.
41 Comments
Skunk 26 Jun @ 6:40pm 
amazing :steamthumbsup:
Lego 9 Jun @ 7:18am 
Thank You!
fabio.capela 9 Jun @ 7:10am 
The original (abandoned) project source is linked from its mod.io page (the "Visit Homepage" link at the top).
Bobingabout  [author] 8 Jun @ 1:14pm 
I don't use actively use github, none of my projects are online.

I don't have access to the original project, it has been abandoned. I updated it by popular demand.
Lego 8 Jun @ 8:36am 
Found your github, but you've not uploaded your mods.
Would you mind sharing the source? I would like to take a look at it without needing to decompile it. :)
fabio.capela 7 Jun @ 8:04am 
You could improve the results by making a slight change to the algorithm. Before starting to assign beavers to houses, find how many child slots will need to be taken up by adult beavers (i.e., number of adult beavers minus the number of non-child housing slots) and assign the beavers with no regard for which kind of slot they go into until that number of child slots are taken; after that you revert to only assigning adult beavers to non-child slots.

This should make it a lot rarer for housing dedicated to isolated workplaces to be taken by unrelated beavers.
Bobingabout  [author] 26 May @ 6:53pm 
The tests I did... there's a lot of strange CPU usage going on, the game seems to use MORE CPU while paused than running...

but the behaviour is the same with and without this mod. it doesn't seem to have any effect on CPU usage at all, as far as I can tell.

Tested on various savegames of IronTeeth and Emberpelts.
Bobingabout  [author] 26 May @ 5:47pm 
@illerayn You're not the first to mention this mod causing lag, but I'm not sure how it could be possible.
This mod doesn't do anything except for at Day Start, where it re-assigns where beavers live.
I'll make a note to look into it.
illerayn 26 May @ 1:16pm 
Hello there,
This is a wonderful mod that both made me expend a bit more where I place my houses, but also reduced commute times a lot in my game !
Thanks a lot for making it !

Addendum : I realised today that the latest update (2025/05/26, yyyy/mm/dd) seems to have broken something in the mod. Now, I get weird stutters every few seconds, with the beavers gradually slowing down until the game fast forward them to their normal position. It seems like it comes from this mod after I tried deactivating my other 2 mods, which didn't change anything. If you have the time, I would love to see this fixed, if you manage to reproduce it ofc.
Loyalist 22 May @ 7:40pm 
Wow, night and day change in my colony. TYVM