RimWorld

RimWorld

1,055 ratings
While You Are Nearby
5
2
5
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
521.107 KB
25 Mar, 2022 @ 4:00pm
15 Jul @ 2:07pm
17 Change Notes ( view )

Subscribe to download
While You Are Nearby

In 1 collection by pureMJ
Common Sense +
5 items
Description
Colonist will now be more likely to do jobs nearby instead of walking long distances.



Have you been tired of seeing your colonist walking 100 tiles just to harvest that single corn before walking another 100 tiles back to sow the empty healroot fields, and then walk to the corn again because another corn plant just matured? Fear not as this mod comes into rescue to boost the efficiency of your colony.

Updates
v0.8.0 Now supports 1.6.
v0.7.1 Emergent bug fix: Error messages by v0.7.0.
v0.7.0 Now mechs from Biotech DLC can work nearby too! (1.4 and older versions will not be updated anymore)
v0.6.0 Now supports 1.5.
v0.5.1 Fixed a major bug introduced by v0.5.0. Now the AI logic won't crash on non-work jobs. As a byproduct, also improved the mod performance.
v0.5.0 Added settings to exclude work types from long distance work and from nearby work.
v0.4.0 Now supports 1.4.
v0.3.0 Added multiple language support. Now has an option to display debug messages in dev mode.
v0.2.4 Fixed a major bug. Colonist will no longer stand still when there are unreachable floors to smooth nearby.
v0.2.3 Fixed minor bugs/conflicts with some other mods so that basic jobs like go to medical beds will no longer by overridden by nearby job search.
v0.2.2 Performance improvement.

Details
- Nearby Job Search
Pawns will now boost priorities of work jobs nearby (12 tiles radius) by 1. This only activates if vanilla decides to give a work job that is too far away (32 tiles away). Non work jobs (eating, sleeping, etc.) are not affected.

- Vanilla Chance:
There is a 5% chance that colonist skip this mod logic and always stick to vanilla behavior. This makes sure that colonist will not be bind to the same location for too long.
(5% means we reduced the long walking cost by 20 times, which should be enough for efficiency purposes)

- Configuration:
The numbers mentioned above can be changed in the mod settings.

Tips: You can set the Priority Boost setting to 0 and it will still have an effect: You pawn will do works nearby first when it has the same priority with a far away job.

Recommendation: Use Fluffy's Work Tab mod so you have more priority tier to configure.

F.A.Q
How much impact does this mod have on performance?
  • In practice I tested multiple games and there is no observable performance impact.
  • Using Dubs Performance Analyzer I measured the impact in real game play and the number is tiny.
  • Theoretically, the average impact of this mod should be almost 0 and the worst case performance is the same as the worst case vanilla game performance.

Misc
Safe to add or remove from saves.

中文教程:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2786959896


Planned Feature Next
- Add more tiers for priority boost based on distance.
- Different settings for each colonist.

Known Issues:
- Occasionally a colonist will stubbornly do what vanilla game tells them to do and ignore this mod for a few seconds. Once that high priority job is done, the colonist will again be able to trigger this mod and search job nearby again. It's harmless and safe to ignore. The root cause is unclear but it's most likely some sort of cached job logic.

Recommended Mods
This mod is in the category of QOL mods that change behavior and make sense.
A few mods of the same type I really like are:
  • Common Sense
  • Pickup and Haul
  • While You're Up / PUAH+

Credits & Links

Many thanks to the members of the #mod-development channel on the Rimworld Discord server!

If you enjoy this mod, please check out my other Rimworld mods on Steam Workshop!
Popular Discussions View All (5)
51
7 Jun @ 10:29pm
Bug Report Thread
pureMJ
1
4 May, 2022 @ 8:53pm
Bug : BurnItForFuel
Winter
0
11 Jul @ 10:16pm
the age old "1.6 when"
Kowhaifan
261 Comments
Snuggl 9 Oct @ 3:11pm 
@Balthazad: I had the bug with pawns not working, even though there is work to do. I thought it was this mod here but it turned out to be Hospitality, even though i have neither guests nor guest beds on my map.

But maybe that solved your problem too.
xuelin 18 Sep @ 3:08am 
和Bulk Load For Transporters 兼容吗,这个mod可以做到一次搬运多种物品
Greysion 13 Sep @ 10:40am 
Unfortunately, I think this mod might have been a culprit in my rather large list of mods, causing some significant spikes during pathfinding calculations. I suspect it may have something to do with the multithreading present in 1.6

The Verse.MapPreTick especially for some reason with this mod, was overloading to about 200ms spikes, which I’m guessing is related to the nearby work search feature here.

Unloaded the mod and it doesn’t spit above 0.25ms.

I really love this mod, it's been a fantastic boon to all of my playthroughs, but perhaps it's incompatible with something in my list. Most of this information was verified using Dubs Performance Trace, but it was quite hard to pinpoint the actual problem.
Balthazad 5 Sep @ 2:21pm 
i'm having a "just...wtfh is going on"-moment. the bug that prevented prisoners from eating came back, altho it was gone in the meantime, after disabling this mod.
the issue that i don't have anymore without this mod, is the messed up priorities on jobs -thing.
Balthazad 4 Sep @ 4:31pm 
i think it was also this mod that prevented my pawns from finishing started jobs, as in "i order the slave with the backpack to haul away the clothes frorm the fridge" and he'd go collect them, then go to bed, then go unload the collected clothes.
Balthazad 4 Sep @ 4:28pm 
this mod prevented my prisoners from grabbing the food under their feet.
Balthazad 30 Aug @ 3:30am 
could pls all Pick Up And Haul, CommonSense, While You Are Nearby & While You're Up modders come together and make something functional as we had in times long, long ago?
literally half of all the ppl that ever bought rimworld are subbed to these mods - and as of now, it seems to not be working as intended for anyone.

@GoW Dennis
i know that error very well, it even plagued me enough to make it into my nightmares, but as i'm writing this i can state that your error is caused by something else because i have both those mods active (+over 300 others) and i'm not getting that error. i would assume tho that you have PUAH active too and there's 3 1.6-versions of that atm, with a lot of bug complaints.
······无言 29 Aug @ 8:41am 
现在跟While You're Up 兼容吗
boh mingle 25 Aug @ 6:28pm 
Thank you thank you thank you!!!!!!!!!!!!!!!
pureMJ  [author] 10 Aug @ 9:55pm 
@-=GoW=-Dennis
Good point. Crossed out WYU as a recommendation.