RimWorld

RimWorld

391 ratings
Spatial Priorities
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1
File Size
Posted
Updated
297.048 KB
Feb 11, 2020 @ 3:15pm
Mar 5, 2020 @ 2:46pm
5 Change Notes ( view )

Subscribe to download
Spatial Priorities

Description
Some spaces are more important than others

IMPORTANT
This mod is a work-in-progress. You may find more bugs than you’re used to in my mods. You may find that I have suddenly changed the save format, breaking your save games. You have been warned.

In particular, it is also currently INCOMPATIBLE WITH THESE MODS:
- Hospitality (visitors will not do work, which is probably fine)
- Prison Labour (prisoners will not do work, which rather defeats the purpose)


And any other mod that relies on altering
JobGiver_Work
, as this mod completely overrides it.

Features
Pawns follow the priorities you set in the Work tab, but will choose to do jobs in high priority areas (e.g. your medicine crops) before jobs in low priority areas (e.g. the hay fields). You can set priorities with the designator in the “Zone” category of the architect, or with the 1-5 buttons above the game speed indicators.

In the vanilla game, the priority of jobs is decided by (in order);

1) Priority of the work type,

2) Left-right order of the work type,

3) ‘natural’ priority of the task (WorkGivers, normally invisible),

4) Distance to the target.

This mod changes that to;

1) Priority of the work type (Work Tab support for workgiver level priorities is planned)

2) Left-right order of the work type,

3) Priority of the target area,

4) ‘natural’ priority of the task,

5) Distance to the target.

In other words, we evaluate all workgivers in the same worktype, with the same priority, at the same time. Within this ‘batch’ of potential jobs, we try to find a job in the area that has the highest priority.

Future plans
I plan to add a bunch of tweaking options, primarily in deciding how big the ‘batches’ of potential jobs will be. That may mean batching all potential jobs with the same priority in all worktypes together, or even considering the priority of the area before looking at the priority of jobs. I’ll need playtesting data and suggestions, which is why I chose to release this work in progress on steam.

Notes
Adds a MapComponent;

- Can be safely added to existing games.
- Can be safely removed from existing games (although you will get an error when you load the game, the error goes away after saving without this mod active).


Performance
Performance will vary, depending on how much you use priorities, and how often work is done in high priority areeas. I’d love to hear feedback on how it runs in your game.

Think you found a bug?
Please read this guide before creating a bug report, and then create a bug report here[github.com]

Older versions
All current and past versions of this mod can be downloaded from GitHub[github.com].

License
All original code in this mod is licensed under the MIT license[opensource.org]. Do what you want, but give me credit. All original content (e.g. text, imagery, sounds) in this mod is licensed under the CC-BY-SA 4.0 license[creativecommons.org].

Parts of the code in this mod, and some content may be licensed by their original authors. If this is the case, the original author & license will either be given in the source code, or be in a LICENSE file next to the content. Please do not decompile my mods, but use the original source code available on GitHub[github.com], so license information in the source code is preserved.

Are you enjoying my mods?
Show your appreciation by buying me a coffee (or contribute towards a nice single malt).

[ko-fi.com]



Version
This is version 0.10.106, for RimWorld 1.1.2564.

Popular Discussions View All (2)
2
Mar 26, 2022 @ 12:19am
Distance Penalty In Job Priorities
pureMJ
1
Apr 12, 2020 @ 7:59am
Bug report
Varjonyymi
133 Comments
Photosynthetic Apr 23, 2024 @ 10:14am 
I just saw that you're struggling with depression. I hope you're doing OK. If there's anything a random internet stranger can do to help, message me sometime.

This is *not* a poke for updates or anything -- I've never even used this mod, haha. (I love many of your other mods, though.) Just wanted to let you know that you're awesome and at least one rando cares.
kinngrimm Nov 20, 2023 @ 10:26am 
1.4 update?
@pureMJ while your mod is great and i use it all the time, the point of this one here is to have designated areas which gain a prioity. So if i have a big project, replace old mod and its assets with new once and the later should be on the opposite site of the map ... .
Hagamablabla Nov 13, 2023 @ 1:31pm 
I disagree, let's talk about Gaza!
ALE199 Apr 6, 2023 @ 7:34am 
this isn't the place for political discussions, bot.
Beredor Apr 6, 2023 @ 7:30am 
Maybe your leader shouldn't have been bombing the Donbass for 6 years straight and cuddling with America.
EFX Dec 16, 2022 @ 11:31am 
I just exited my game to download this as it'd been perfect for what I was needing and then come to find out, it hasn't been updated since 1.1 :(
chemicalvamp Apr 14, 2022 @ 7:06pm 
Why not fix your mod to work with those mods?
pureMJ Mar 26, 2022 @ 12:19am 
I've made a simpler and slightly different mode:
https://steamcommunity.com/sharedfiles/filedetails/?id=2784585275

Basically it is like this mod but with a small area near each pawn prioritized for that pawn.
Aziz Jan 23, 2022 @ 11:32pm 
It doesn't work on my side
银空夜月 Jan 7, 2022 @ 8:25am 
@Mlie Can you update this module to version 1.3? I found that this module will not work actively