RimWorld

RimWorld

AutoPriorities
254 Comments
Attention Deficit Dave Apr 8 @ 11:53am 
Thanks for going over that. I appreciate it. So far, this seems to be a very solid and lightweight priorities mod. I'm really enjoying it and appreciate the effort involved!
Kloke  [author] Apr 8 @ 9:04am 
@Attention Deficit Dave It's supposed to be useful when you want to assign high priority to a work type for several pawns, and the rest of pawns to low priority of that same work type.
Attention Deficit Dave Apr 7 @ 10:20pm 
Awesome. Thanks for that! What would be the use case for the R setting? I can see it's used in the included Default template, but I don't understand what function it's serving.
Kloke  [author] Apr 7 @ 9:55am 
@Attention Deficit Dave R means that the value of this slider is 1 - sum of all other slider values in column, No is "X pawns get this work type" instead of "X percent of pawns get this work type".
Attention Deficit Dave Apr 7 @ 5:17am 
Could somebody explain what pressing the Percentage button next to the slider does? It changes to "No" and "R" and for the life of me I can't figure out what's being indicated.

Thanks in advance!
Nirahiel Mar 2 @ 2:57am 
Works ! Thanks a lot
Kloke  [author] Mar 1 @ 1:10pm 
@Nirahiel should be fixed now
Nirahiel Mar 1 @ 12:50pm 
So, i'm using this : https://steamcommunity.com/sharedfiles/filedetails/?id=2552065963
(Unofficial Fluffy work tab update)
And well there's no button to access the menu of your mod.
Silencer59 Feb 10 @ 7:01am 
Just noticed that the clicking sound was removed, thanks for the quick update and for the suggestion.
Kloke  [author] Feb 9 @ 1:15pm 
Also I wouldn't recommend setting it up to run so often because sometimes solutions given by random search are inconsistent so assigned priorities may alternate and cancel a job a pawn is performing at the moment.
Kloke  [author] Feb 9 @ 1:06pm 
@Silencer59 It's not a behaviour I programmed intentionally, but I didn't think it was irritating so I left it in.
Silencer59 Feb 9 @ 12:57pm 
Is it intended for the autorun feature to make a tick sound when running? Was trying it with a 1-2 hour update rate and it's a bit jarring when speeding time up.
Kloke  [author] Feb 9 @ 11:52am 
It should. I didn't test it though.
AhDeh Feb 9 @ 11:36am 
does this work with mods that raises max limit on skills? and also does it work with Skills Expanded?
Kloke  [author] Feb 9 @ 4:41am 
4. Added an option to set priorities periodically.
5. Fixed top and left panes in the exclude colonists tab. Rimworld UI is cancer so don't scroll too fast if you have more than 30 pawns or your game might freeze. Idk how to fix this.
6. Included work speed in the priority assignment calculation, so skilled pawns without arms won't get first priority in medicine, and those with field hands/drill arms, but low skills will be prioritized.
Kloke  [author] Feb 9 @ 4:41am 
Updated:

1. Rework priority assignment to use global optimization instead of greedy heuristics. The new approach is to formulate the priority assignment as an integer linear programming problem and solve the equations using an established equation solver. Sadly, for C# there are no solvers which support integer variables, so this new approach first solves a relaxed version of the problem using ALGLIB (no integer constraints) and then uses random search (a simple genetic algorithm in this case) to find an integer solution which satisfies all constraints. Random search sometimes leads to suboptimal or inconsistent solutions, but I think this is still much better than before.
2. Reworked how excluded colonists are saved.
3. Added more options.
Kloke  [author] Jan 31 @ 9:36am 
Weird. I didn't even touch that part.
Taemaly Jan 31 @ 8:41am 
yesterday I tried with no mods and it was not working right, but today I tried with no mods and its working right. then i tried with 900+ mods , and its still working right. So I dont know what went wrong in my yesterdays testing ,but it seems to have been fixed on the last update, so Thank you very much
Kloke  [author] Jan 31 @ 1:58am 
What's your modlist?
Taemaly Jan 30 @ 5:16pm 
no errors, just the excluded pawn still getting assigned the excluded task
Kloke  [author] Jan 30 @ 1:48pm 
Just to make sure, excluded colonists must be excluded from assignment, so it won't be set neither to 0 nor any other value, I added it for a case where you want to manage the priority for that job for that pawn yourself without interference. And it's not doing that?

Do you have any errors in logs?
Taemaly Jan 30 @ 1:28pm 
Also please please freeze the name column in the exclude colonist tab, its so hard to see which colonist row you are in , when you have too many jobs and gone to far to the right :winter2019saddog:
Taemaly Jan 30 @ 1:26pm 
I have the latest game version and no restricted jobs.and set jobs per pawn to max.But I noticed this happened specifically to skilled jobs. However adding setting for fitness level has solved this issue. Thank you very much. Only exclude colonists setting still doesnt work
Kloke  [author] Jan 30 @ 12:44pm 
@Taemaly Couldn't reproduce. What version of rimworld are you on? Do you have anything set in the Exclude pawns tab? What about the "max jobs for pawn"?

@the opossum agenda it's probably because the lower skilled pawn has a higher learning rate.

Updated the mod. Added a default preset which can be imported right away and moved some settings and exposed some new ones in the new "Misc" tab. I hope this way it will be easier to use,
Taemaly Jan 26 @ 12:16pm 
btw i tested with no other mods apart from hugslib
Taemaly Jan 26 @ 12:14pm 
I found this mod no longer works properly .so sad. There two issues(apart from previously mentioned pawn exclusion not working issue) One , when you set a job to include one hundred percent of capable pawns, only about 50-60 percent get assigned that are capable, instead of 100. this didn't happen before. this is particularly visible in larger colonies. And another issue is, there is always one pawn who doesn't get assigned almost any jobs and is left wandering despite being good at those jobs or a lot better then many other pawns who get assigned. and the issue with that pawn is consistent until that pawn is gone. then same issue happens with another pawn. very weird.
please fix the issue. as this mod is the best priority mod :winter2019sadyul::winter2019sadyul::winter2019sadyul:
WOOF WOOF opossum Jan 12 @ 10:14pm 
i dont know what is happening but the mod is setting a skill level 4 pawn to doctor before considering the skill level 8 pawn. I cant make any sense of how this mod works without screenshots that show how it is used it practice. cool mod but I cant understand it.
WOOF WOOF opossum Jan 12 @ 9:58pm 
i wish it took into account the health condition of a pawn. it is assigning pawns to magic for their skill level but the pawn cannot do magic due to a health condition.
Taemaly Dec 14, 2024 @ 2:42pm 
I also found that exclude colonist feature doesnt work for many jobs i tried
Kloke  [author] Dec 5, 2024 @ 8:56am 
it is supposed to do that, I'll need to check if it broke.
Kev Dec 4, 2024 @ 4:14pm 
Thanks, just noticed that bit after posting and been dabbling with it.
The Exclude Colonist check box section, what does that do? I thought it would prevent the selected pawn from being assigned a role in that field but that doesn't seem to be the case?
Kloke  [author] Dec 4, 2024 @ 1:39am 
@Kev Yes, there's a "Max jobs per pawn" input for a priority.
Kev Dec 3, 2024 @ 3:58pm 
Is there a way to force this to spread out the crafting jobs? it seems to constantly give the same pawn craft, tailor, smith, etc and priority 1, then the same pawn all for 2 etc.

I get that 1 pawn might be better than the others but having him be set as the primary for all the tasks doesn't work.

I tried using the check boxes in the Exclude Colonist section but it didn't seem to work.

Perhaps I'm doing something wrong or will I just need to accept manual control is a must for those roles lol
Taemaly Nov 23, 2024 @ 12:36pm 
@Caketaco try using this alternative version of worktab, button shows up in this one :) https://steamcommunity.com/sharedfiles/filedetails/?id=3253535347
[DPDN] Leet Sep 22, 2024 @ 3:43pm 
is there any presets available?
KampfTomate007 Sep 16, 2024 @ 12:21pm 
Oh... Okay that is neat.
So If a pawn had lvl 9 without passion they would be weighted 3.15, which means someone with burning passion needs to be lvl 2.10 to be favored?
Or does it use total xp?
Caketaco Sep 15, 2024 @ 1:20pm 
Button isn't appearing for me in the work tab. Using this version of Fluffy's Worktab: https://steamcommunity.com/sharedfiles/filedetails/?id=3253535347

Tried loading this mod both before and after Fluffy's Worktab. No dice.
Kloke  [author] Sep 14, 2024 @ 1:34am 
@KampfTomate007 It does actually rate pawns with passions higher. It takes the highest learning rate factor from all relevant skills for a work type and multiplies it by skill. In vanilla, learning rate factor is calculated like this: no passion = 0.35, minor passion = 1.0, major passion = 1.5, then multiplied by global learning factor. So pawns which have disabilities preventing them from fast learning but having burning passion aren't prioritized. Then in my code pawns with the highest (skill level * learning rate) are assigned priorities the first and so on.
KampfTomate007 Sep 13, 2024 @ 10:45am 
What i'm currently doing manually is have lvl9 for a given job as baseline, and depending on if the pawn has no, 1 or 2 passion they get priority 4,3,2; and if they have lvl8 or lower they get -1 step lower priority, and if they have lvl 12 or higher they *can* get 1 higher priority,

I used to go further than +-1 priority in steps of 3 lvls, so that someone with lvl 18 without passion could get priority 1, but i switched to the +-1 cap because i found that many pawns with no passions but which accumulated enough xp over time tend to just outlevel lower level pawns with passions, and so far it seems to work really well,

The exception to the +1 priority rule is when a pawn would reach priority 1, because i tend to minimize the amount of prio1 jobs so that if i had 8 pawns at lvl 12 or above with 2 passion i can still favor the top 1-3 for a given job, based on how many are needed.
KampfTomate007 Sep 13, 2024 @ 10:33am 
@KuruCrew: Have to +1 this, it is decent to have skill level sorting, but in the long run you'd probably want people with passions to be prioritized because they not only level quicker, but they also get a mood boost while doing work with passion.

The only issue i could see is that some things you'd rather not have someone with burning passion who has level 3 or lower do it, like cooking meals (anything below lvl6 seems to turn your colony into vomitopia), or building stuff out of expensive and/or limited materials.

Ideally you had more specific rule options to pick from like passion/burning passion increasing priority.
KuruCrew Aug 23, 2024 @ 10:55pm 
Is there a setting that allows pawns with passion to have high priority even if their skill level is low?
Yoann Jul 31, 2024 @ 10:20pm 
@gRaveyard
I see "Exclude Colonists", so I thought that pawns with free will could be exclude, and other pawns handled by this mod.
I search an alternative to Plug and Play Joiner who is not 1.5 (yet?).
gRaveyard Jul 31, 2024 @ 6:31pm 
@Yoann
I'd imagine not? The two mods' design philosophies seem to conflict. It'd probably lead to some very buggy colonist behavior, or *terrible* moods. XD
Yoann Jul 31, 2024 @ 2:51am 
Compatible with Free Will ?
Tidurian Jul 13, 2024 @ 5:07am 
@Kloke: nice! Thank you! works like a charm!
Kloke  [author] Jul 13, 2024 @ 4:44am 
@Tidurian Made max priority settable in the settings
Tidurian Jun 16, 2024 @ 4:01am 
Is there a posibility to make it compatible with Priority Master? https://steamcommunity.com/sharedfiles/filedetails/?id=1994006442
allowing us to set numbers higher than 4? preferably using the setting in Priority master what the lowest priority is?
KryptekDesign Jun 10, 2024 @ 5:46am 
@Arquen I'm pretty sure it's percentage of the Remainder.
rinfin May 11, 2024 @ 8:48pm 
Looks like it's not compatible with work tab, but there's no official work tab for 1.5 anyway.
oorin May 3, 2024 @ 10:34pm 
Is this not compatible with Work Tab? I dont see the window pop up anywhere :(