边缘世界 RimWorld

边缘世界 RimWorld

1,049 个评价
就近工作
5
2
5
3
2
2
2
   
奖励
收藏
已收藏
取消收藏
Mod, 1.3, 1.4, 1.5, 1.6
文件大小
发表于
更新日期
521.107 KB
2022 年 3 月 25 日 下午 4:00
7 月 15 日 下午 2:07
17 项改动说明 ( 查看 )

订阅以下载
就近工作

在 pureMJ 的 1 个合集中
Common Sense +
5 件物品
描述
一个非常简单的Mod,加上之后无需操作,你的小人就会自动优先找旁边的工作。



想想看,你是不是经常看见你的小人走100格去收割一个玉米,然后走100格回来去种草药。结果刚种完一个草药,那边的玉米又新熟了一颗,于是你的小人又屁颠屁颠地走100格过去收割,然后再走100格回来,循环……

我每次看到这种场景都想死。不停地手动操作又太麻烦。而这个Mod就是来解决这个问题的。

Updates
v0.8.0 支持 1.6.
v0.7.1 紧急修复了v0.7.0带来的红字小bug
v0.7.0 现在Biotech DLC里的机器人也会就近工作了。(1.4及以前的老版本不再更新)
v0.6.0 支持 1.5.
v0.5.1 修复了一个v0.5.0带来的恶性BUG。现在AI的逻辑不会在遇到非工作型JOB时崩溃了。顺便提升了Mod的运行效率。
v0.5.0 增加了一个选项用于设置工作类型黑名单:远程不替换和附近不考虑.
v0.4.0 支持 1.4.
v0.3.0 多语言支持!现在直接支持中文了。增加了一个选项用于显示debug信息。
v0.2.4 重大BUG修复。现在你的小人不会再因为旁边有无法到达的地板工作而发呆了。
v0.2.3 BUG修复:不会再替换一些基本工作。
v0.2.2 效率提升

详解
加上这个Mod后,你的小人会优先在附近找活干。逻辑上这个Mod是这样的:
  • 判断原版游戏给你小人的工作是不是一个远距离(32格默认值)的工作。
  • 是的话在附近(默认12格)找一个别的工作
  • 将这个新工作的优先级增加一个值(默认为1)(数值上是减,因为小的数优先级高)再跟原版工作比较,如果不比原版低那就做这个比较近的工作。

所以如果你的小人附近有同优先级或者优先级只低一点的工作,那他会优先做这个,这样就不会总是走很远来来回回。

另外,为了防止小人一直在一个地方干很久,远处的高优先级工作完全不管了,可以用原版游戏行为百分比来解决。这个是一个百分数概率(默认5%),让你的小人有一个很小的概率会按原版游戏一样去全地图找最高优先级的工作。这样下来,你的小人会在一个地方干20个活(概率平均),走很远去另一个地方,再干20个。而原版游戏会让你的小人来回走很远走40次。

设置页面已经汉化!
这个MOD设置页面暂时是英文的,不会英文的朋友可以看这个教程:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2786959896

F.A.Q
这个Mod影响游戏速度吗?
  • 我实测了多个游戏,没有可见的影响
  • 我用 Dubs Performance Analyzer 测量了游戏内的数值,这个MOD的影响数值非常小.
  • 理论上讲, 这个MOD的平均影响几乎为0,而最坏情况下的影响跟完全不加MOD时的最坏情景差不多。

其它
不影响存档,可以随时加入或去除。

中文教程:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2786959896


计划以后加新功能
- 根据距离不同划分更多的优先级等级。
- 每个小人不同的设置

已知问题
- 偶尔在几秒钟内小人会忽略这个MOD的逻辑而只按原版游戏的方式去工作。一旦某个高优先级的工作被完成之后,这个MOD的逻辑就会对这个小人重新起效果。这种情况可以忽略,因为只会偶尔发生。. 具体原因不明,有可能是某种工作寻找算法的缓存机制,不清楚是原版游戏还是别的某个MOD造成的。

推荐一起玩的MOD
本MOD属于“改变了小人行为,但是是往合理的方向改”的MOD.
几个类似的MOD
  • Common Sense
  • Pickup and Haul
  • While You're Up / PUAH+

感谢和链接
非常感谢在Rimworld Discord 服务器里#mod-development频道的成员!

如果你喜欢这个Mod, 请关注我的其它Mod
热门讨论 查看全部(5)
51
6 月 7 日 下午 10:29
Bug Report Thread
pureMJ
1
2022 年 5 月 4 日 下午 8:53
Bug : BurnItForFuel
Winter
0
7 月 11 日 下午 10:16
the age old "1.6 when"
Kowhaifan
260 条留言
xuelin 9 月 18 日 上午 3:08 
和Bulk Load For Transporters 兼容吗,这个mod可以做到一次搬运多种物品
Greysion 9 月 13 日 上午 10:40 
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 9 月 5 日 下午 2:21 
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 9 月 4 日 下午 4:31 
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 9 月 4 日 下午 4:28 
this mod prevented my prisoners from grabbing the food under their feet.
Balthazad 8 月 30 日 上午 3:30 
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.
······无言 8 月 29 日 上午 8:41 
现在跟While You're Up 兼容吗
boh mingle 8 月 25 日 下午 6:28 
Thank you thank you thank you!!!!!!!!!!!!!!!
pureMJ  [作者] 8 月 10 日 下午 9:55 
@-=GoW=-Dennis
Good point. Crossed out WYU as a recommendation.
-=GoW=-Dennis 8 月 10 日 下午 8:58 
While You're Up should probably be removed from the recommendations, this mod and the updated version of WYU are incompatible in 1.6 - when both are installed map generation fails with an infinite spam of JobGiver errors until logging turns off to prevent infinite loops. Using each on its own works.