边缘世界 RimWorld

边缘世界 RimWorld

Repair in the Zone
40 条留言
Three 9 月 27 日 上午 7:42 
Huge thanks for this mod! I’ve used it in tons of my playthroughs. The fact that it got added to the base game feels like a big shoutout to your work. Take care!
AtomicCrater20 9 月 8 日 下午 12:11 
.o7, my dude! Thanks for the mod while it was needed!
FULL SEND 8 月 10 日 下午 9:12 
o7
无情长颈鹿 7 月 27 日 上午 5:12 
o7 Thank you for your efforts
Kathanon  [作者] 7 月 24 日 上午 7:38 
As far as I can see, the pathfinding changes in 1.6 means that this mod is no longer needed.
Myrmatta 7 月 13 日 下午 2:46 
From testing, this doesn't seem to work in 1.6 yet, probably because of the 1.6 pathfinding alterations.
Kathanon  [作者] 2024 年 4 月 13 日 上午 2:56 
Updated for RimWorld 1.5.
Farbott 2024 年 3 月 18 日 下午 11:35 
well im gonna make the assumption that a mod that makes pawns not stand in disallowed tiles while repairing doesnt have very many connections to the mod which makes combat AI a lot more aggressive and smarter (the ones who DONT care about repairing, they are destroyers >:))
Kathanon  [作者] 2023 年 8 月 29 日 上午 6:52 
Depends on exectly what code they replace. I only change the way the target square is chosen, but that is part of the pathfinding code.
Miguel V-DF 2023 年 8 月 28 日 下午 6:31 
I presume the code doesn't interfere with mods that change pathfinding like clean pathfinding 2, or CAI, but can anyone confirm?
Kathanon  [作者] 2023 年 7 月 26 日 上午 2:42 
It applies to any area that the pawn is set to. If they are set to unrestricted, the it does not affect them at all.
Monkey Magic 2023 年 7 月 26 日 上午 12:33 
Does this apply only to the "Home" zone then, or does it work on a building by building basis too? Would be nice to be able to repair a building from the inside when it's sweltering heat outside, even if it is well within the "Home" zone.
Kathanon  [作者] 2023 年 5 月 10 日 下午 3:15 
I think it would be better to make separate zones for each "island" for that.

Also, the change you are proposing would mean replacing or patching the vanilla pathfinding logic. Way to big a project for so little gain.
Nirahiel 2023 年 5 月 10 日 上午 10:07 
Or, what if you make zones that are "islands", on purpose, for these man-hunters moments, and you really don't want spawns to step out of their assigned zone. If they have to step out to reach another point within the zone, they can't do it at all. If there are man-hunters animals outside, I don't want my pawns to exit their zone to do whatever they planned on doing, even if their destination is inside the zone too. If you can't get there without getting out of your zone, consider you can't get there at all. The floor is lava.
Kathanon  [作者] 2023 年 3 月 15 日 下午 5:42 
With the vanilla behavior, if you make your zones such that there is always a path from any allowed square to any other allowed square (basically that it is contiguous, plus that the walkable parts must also be contiguous), then they will always stay within the zone.

The issue with the vanilla logic, that this mod fixes, is that when repairing a structure that is in the zone, it just picks a random walkable square next to it to stand on, but does not check if that square is also in the zone.

If a structure is in the zone, but no free square next to it is walkable, then they will pick one that isn't. So, to get them to always stay in the zone, you need to make it contiguous as above, and also ensure that all structures in the zone have a walkable square next to it, that is also in the zone.
Kathanon  [作者] 2023 年 3 月 15 日 下午 5:42 
That would add more complexity than it is worth, I think.

The vanilla mechanic is that pawns can walk to any square in the zone that is walkable and can repair any building that is in the zone. They first choose a square to walk to, and then check if they can path there without leaving the zone. If they can't, they try again with no regard to zone.

If pawns are restricted to not pathing between zones, then any "island" part of the zone becomes useless, as the pawns can't get there. To fix that you would have to make the zone contiguous, which would negate the need for that limitation.
lol 2023 年 3 月 15 日 上午 11:28 
@Kathanon, np. Yes, in case parts of the zone are not connected. Mostly applicable for situations when everyone's locked in during manhunters attack and pawns shouldn't come out to repair walls.
Kathanon  [作者] 2023 年 2 月 15 日 下午 7:22 
@vlad-lecteur
Sorry, I missed your comment. Do you mean for the case where parts of the zone are not connected?
Kathanon  [作者] 2023 年 2 月 15 日 下午 7:19 
No, it does not influence performance. Technically there is a penalty, but it is way too small to measure.
star 2023 年 2 月 15 日 下午 5:55 
I wonder if it increases the performance.
lol 2022 年 11 月 26 日 上午 12:11 
Thank you for the mod! Please consider adding "Do not leave allowed area" toggle in the mod options. That's the behavior I had supposed the mod had in the first place, to be fair.
Michiko 2022 年 8 月 7 日 上午 1:04 
Ah that makes sense. Thanks!
Kathanon  [作者] 2022 年 8 月 6 日 下午 12:39 
It does not add any UI. The "zone" refers to the "allowed area" in vanilla. This mod just changes their behavior, so that they actually consider their allowed area when deciding where to stand when interacting with something.

I have updated the description to use the correct phrase. It was a mistake on my part to call it a "zone" - probably because the area tools are under "Zone" in th architect menu.
Michiko 2022 年 8 月 6 日 上午 8:05 
Hi, I can't seem to figure out how to use this mod. Where do I find the zone itself?
Kathanon  [作者] 2022 年 6 月 9 日 上午 7:39 
@ LumpyArbuckle I have not specifically tested that, but I would expect so. This mod affects pathfinding, not selecting what building to work on (which is what I would expect Better Construction to do).
LumpyArbuckle 2022 年 6 月 9 日 上午 1:31 
Does this mod work with Smarter Construction?
Kathanon  [作者] 2022 年 4 月 30 日 上午 6:59 
Yes, it is safe to add or remove at any point.
χø£¡Ŧ <(´= w =`)> 2022 年 4 月 29 日 下午 9:52 
Can I add it mid-playthrough to an existing save?
Emilie Sackenball 2022 年 4 月 28 日 下午 5:18 
Sir you're a legend
Jakov 2022 年 4 月 27 日 上午 9:31 
Finally my pawns won't go over a wall to repair it right next to the raiders blowing it up. Thank you good sir
Kathanon  [作者] 2022 年 4 月 25 日 上午 1:20 
@WeskerMo : I have not done any testing of performance specifically, but I do not expect there to be any measureable impact.
WeskerMo 2022 年 4 月 24 日 下午 5:23 
How about the impact on performance? Is that high?
SaNSaI 2022 年 4 月 24 日 上午 6:52 
Thanks!
J 2022 年 4 月 23 日 下午 3:05 
I see, thanks again for clearing it up. <3
Star~Verse 2022 年 4 月 23 日 下午 12:05 
An example is toxic fallout, or temperatures you just don't care to deal with. Or some other weathers caused by mods. But yes, good mod, thank you.
Kathanon  [作者] 2022 年 4 月 23 日 上午 11:05 
@J : When you have set up walls, and a "safe" zone inside it. If the zone does not include the walls, then you can not repair them. If it does include the walls, then your pawns will sometimes run outside the wall to repair them instead of doing it from the inside.
J 2022 年 4 月 23 日 上午 9:38 
Why is it an issue gameplay-wise? Can’t think of in-game scenarios where this behavior can be problematic, but I haven’t played the game in a year, so I probably need to have my memory refreshed. Thanks.
greyghostie 2022 年 4 月 23 日 上午 8:32 
The zombie mod users will love this. Thanks for your effort.
Zen 2022 年 4 月 23 日 上午 8:08 
As with many things, surprised this isn't vanilla behaviour.
Lekoda 2022 年 4 月 23 日 上午 7:09 
Good Mod and Much NEEDED.