RimWorld

RimWorld

Pawn Rules - Food policies and more
sumghai 28 Mar, 2020 @ 2:16am
Pawn Rules and Replimat (in)compatibility
I'm one of the co-authors of the Replimat mod, and I have been receiving conflicting reports regarding incompatibility issues with Pawn Rules.

I've currently marked PR as incompatible in my own mod, but I would like your help in verifying whether this is still the case.


About Replimat
Essentially, Replimat Terminals are advanced versions of the vanilla Nutrient Paste Dispenser, except that pawns can automatically request any kind of meal (simple, fine, lavish) when they get hungry.

The mod uses the vanilla Food Restriction system, which looks at what specific meals each pawn is or isn't allowed to eat. So when a pawn requests a meal, the mod randomly picks one of the allowed items to replicate.

This works for both Colonists and Prisoners (Guests hardly use Terminals, since they bring their own food). Doctors can also feed Patients meals replicated using Terminals.

Replimat also includes animal feeders, nutrient storage tanks and machines to covert raw food into nutrient slush for use by Terminals, but that's beyond the purpose of this discussion.


The Problem
While Replimat is compatible with most mods, some users have reported conflicts with Pawn Rules - specifically, pawns end up starving and unable to get food from Terminals, while ignoring pre-cooked meals, survival meals or raw food in stockpiles.

Other users have claimed there are no problems running both Pawn Rules and Replimat together.


A Look Behind The Scenes
Dubwise and I did some investigating:

* Replimat (as mentioned before) uses the vanilla food restriction system; it also patches (via Harmony) the food-related job drivers so that Replimat Terminals is the topmost priority food source, so pawns will look for pre-cooked meals and raw food only after they are sure they cannot find a Terminal on the map.

* Our understanding of Pawn Rules is a bit hazier, but it seems that Pawn Rules ignores the vanilla food restriction system in favor of its own implementation, which our Harmony patches obviously can't account for.

* Dubs has made it quite clear that it is not practical for us to try to make Replimat work with every other mod that ignores the vanilla systems, simply because everyone implements their non-vanilla system differently (e.g. PR does it one way, Smarter Food Selection does it another way, Prison Labor apparently does it in a completely-different third way)


Now What?
Currently, Replimat specifically flags Pawn Rules as incompatible in its About.xml and third-party mod manager manifest files.

However, there have been users who have claimed to have successfully used both Pawn Rules and Replimat together, and I am personally suspecting that those experiencing problems have a third (unknown) mod that is actually causing conflicts in their game installs.

As such, I'd like to ask all Pawn Rules users who currently (or plan to) run Replimat to test a new savegame with only the following mods loaded:

* Harmony
* Core
* Replimat
* Pawn Rules

In dev mode:
1) Build a simple setup with one Terminal, one Computer and one Feedstock tank, all connected to the same powergrid
2) Use the dev mode gizmo for the Feedstock tank to fill it up
3) Set up some food restriction policies in Pawn Rules (e.g. Lavish and Simple meals only)
4) Spawn some pawns
5) Use the "Food -20%" tool to make pawns hungry
6) Observe whether or not pawns get food from the Terminals
7) [OPTIONAL] Try reversing the mod load order with Pawn Rules before Replimat

Once you have this basic setup verified, try adding other mods and see whether they break the PR & Replimat setup.


I'll leave this discussion running for about a week.
* If nearly everyone has no problems, then I can remove Pawn Rules from Replimat's blacklist.
* If, however, there are still reports of problems, or not enough playtesters, then PR will continue to be marked as incompatible with Replimat.
< >
Showing 1-4 of 4 comments
Scorpio 22 May, 2021 @ 3:11am 
i would love to have compatibility between both
sumghai 22 May, 2021 @ 3:14am 
Originally posted by Scorpio:
i would love to have compatibility between both
Have you actually followed the troubleshooting instructions above?
Reianor 6 Aug, 2021 @ 6:26am 
Dumb question, I know, but could it be that the users who reported no problems just weren't using PR for food restrictions?
You didn't forget to ask them this dumb question did you?
Last edited by Reianor; 6 Aug, 2021 @ 6:26am
sumghai 6 Aug, 2021 @ 10:10pm 
Originally posted by Reianor:
Dumb question, I know, but could it be that the users who reported no problems just weren't using PR for food restrictions?
You didn't forget to ask them this dumb question did you?
This is why I asked people to follow the troubleshooting instructions in my original post, in order to narrow down any potential causes.

I don't use PR myself, as Dubs and I are happy with the vanilla food restriction system.
< >
Showing 1-4 of 4 comments
Per page: 1530 50