Ludeon Forums

RimWorld => Mods => Releases => Topic started by: Jaxe on August 05, 2018, 12:38:08 PM

Title: [1.3] Pawn Rules (v1.5.0): Disallow Foods, Relationships and More
Post by: Jaxe on August 05, 2018, 12:38:08 PM
Pawn Rules
Version 1.5.0

(https://img.shields.io/steam/downloads/1499843448?color=blue&label=Steam%20Downloads) (https://img.shields.io/github/downloads/Jaxe-Dev/PawnRules/total.svg?colorB=blue&label=GitHub+Downloads)

Built for RimWorld 1.3 (https://rimworldgame.com/)
Powered by Harmony (https://ludeon.com/forums/index.php?topic=29517.0)
Available on Steam Workshop (https://steamcommunity.com/sharedfiles/filedetails/?id=1499843448)



Tired of feeding your prisoners Lavish Meals?
Need your animal handlers to stop bonding with livestock?
Want a colonist to avoid getting a new lover?
Have a worker on construction duty but shouldn't be building artistic furniture?


Then try out:

Pawn Rules is a mod that allows custom rules to be assigned individually to your colonists, animals, guests and prisoners.

Currently the following rules can be applied:

Any of these rules can be disabled and hidden from the rules window.

Supports addons created by other modders by allowing easy creation of new rule options while handling the GUI and world storage saving. Check out the wiki on addons (https://github.com/Jaxe-Dev/PawnRules/wiki/addons).

This mod can be added or removed from a savegame at any time without issue.

(https://i.imgur.com/cJdcYgE.png)
(https://i.imgur.com/QNizPgk.png) (https://i.imgur.com/LZr9mp8.png)
(https://i.imgur.com/X9Aloxc.png) (https://i.imgur.com/UZr1hhH.png)




STEAM INSTALLATION
Go to the Steam Workshop page (https://steamcommunity.com/sharedfiles/filedetails/?id=1499843448) and subscribe to the mod.

NON-STEAM INSTALLATION
Download the latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest) and unzip it into your RimWorld\Mods folder.

Link to final B19 release (https://github.com/Jaxe-Dev/PawnRules/releases/tag/v1.1.6)



TECHINICAL DETAILS
This mod can be safely removed from a save without breaking the game. To do so go to Global Options from the main rules window for a character and select Remove Mod.
A save of your world will be made with no traces of this mod and the game will restart. Skipping the Remove Mod step will result in errors being displayed the first time a save is loaded although no further problems should occur.


For translators: Instead of including other languages with this mod, I would prefer and welcome translators to upload and maintain a language submod. If any translator would like the logo and art assets for this mod please contact me on Discord.

(https://img.shields.io/badge/Chat_on_Discord-_-_?style=social&logo=Discord) (https://discord.gg/VvSnYQ8) (https://img.shields.io/badge/Donate_via_PayPal-_-_?style=social&logo=PayPal) (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6RS7DLLGCJT8L) (https://img.shields.io/badge/Support_via_Patreon-_-_?style=social&logo=Patreon) (https://www.patreon.com/jaxe)
Title: Re: [1.0] Pawn Rules : Disallow Foods, Relationships and More
Post by: Jaxe on August 05, 2018, 03:43:24 PM
v0.2 uploaded. Fixed food rules not applying for packing food.
Title: Re: [1.0] Pawn Rules : Disallow Foods, Relationships and More
Post by: Crow_T on August 05, 2018, 03:51:16 PM
Looks like a good one- I had pawns feeding animals fine meals, can this prevent that as well?
Title: Re: [1.0] Pawn Rules : Disallow Foods, Relationships and More
Post by: ultra4 on August 05, 2018, 07:45:38 PM
compatible with vegetable garden and it's new meals that count as fine and lavish? Can you select prisoners (to forbid raw food but alout simple meals?)
Title: Re: [1.0] Pawn Rules v0.3: Disallow Foods, Relationships and More
Post by: Jaxe on August 05, 2018, 08:22:07 PM
Updated to v0.3 - Fixed rules showing up for non-colonists, prisoners or faction animals

Quote from: Crow_T on August 05, 2018, 03:51:16 PM
Looks like a good one- I had pawns feeding animals fine meals, can this prevent that as well?
Animals can have a food rules preset set for them. You could make a preset that only allowed kibble then assign it to a chicken and it should stop pawns getting anything other than kibble for them. You would have to set a food preset for each chicken you have although you could set a default for animals to the kibble preset and it would apply for all new animals you get.
I plan to make babies of animals inherit the rules of their parent in the next version.

Quote from: ultra4 on August 05, 2018, 07:45:38 PM
compatible with vegetable garden and it's new meals that count as fine and lavish? Can you select prisoners (to forbid raw food but alout simple meals?)
when Pawn Rules builds the food list it scans all things registered as having a nutritional value so it will likely spot other mods foods. In regards to prisoners being forbidden raw food, the answer is yes you can pick exactly what foods a prisoner would be allowed, again the food list should show every single food type in the game and allow you to disable them individually. Prisoners (or colonists/animals/guests for that matter) can be assigned rules individually or as a default.
Title: Re: [1.0] Pawn Rules v0.3: Disallow Foods, Relationships and More
Post by: Canute on August 06, 2018, 02:07:00 AM
Hi,
with your update speed you should maybe think about to add Modsync support.
https://ludeon.com/forums/index.php?topic=41634.0
Title: Re: [1.0] Pawn Rules v0.3: Disallow Foods, Relationships and More
Post by: Jaxe on August 06, 2018, 04:01:38 AM
Quote from: Canute on August 06, 2018, 02:07:00 AMwith your update speed you should maybe think about to add Modsync support.

Thanks will do. Already added it to the master in github but will only be active when I put the next release out (unless people want to manually add the new Modsync.xml file (https://github.com/Jaxe-Dev/PawnRules-Beta/blob/master/About/ModSync.xml) to the mod's About folder until then)
Title: Re: [1.0] Pawn Rules (v0.4): Disallow Foods, Relationships and More
Post by: Jaxe on August 06, 2018, 11:03:28 AM
v0.4 released

- Added ModSync RW support
- Animals should now inherit their mother's rules
- Fixed null reference when quitting to main menu
- General code tidying
Title: Re: [1.0] Pawn Rules (v0.4): Disallow Foods, Relationships and More
Post by: Umbreon117 on August 06, 2018, 11:07:36 AM
Oh wow. Yeah, another mandatory mod for me when I update to 1.0!!
Title: Re: [1.0] Pawn Rules (v0.4): Disallow Foods, Relationships and More
Post by: Soulshade on August 07, 2018, 01:14:47 AM
Great mod love it!!!

seems this mod and prepare carefully aren't getting along?
Exception filling window for RimWorld.Page_ConfigureStartingPawns: System.NullReferenceException: Object reference not set to an instance of an object
at PawnRules.Data.Global.get_Rules () <IL 0x00005, 0x0000b>
at PawnRules.Data.Global.DeleteRules (Verse.Pawn) <IL 0x00000, 0x0000a>
at PawnRules.Patch.Verse_Pawn_Kill.Postfix (Verse.Pawn) <IL 0x00009, 0x0001b>
at (wrapper dynamic-method) Verse.Pawn.Kill_Patch1 (object,System.Nullable`1<Verse.DamageInfo>,Verse.Hediff) <IL 0x0072d, 0x012ab>
at EdB.PrepareCarefully.RelationshipManager.CreateNewTemmporaryPawn (Verse.Gender) <IL 0x0006d, 0x00211>
at EdB.PrepareCarefully.RelationshipManager..ctor (System.Collections.Generic.List`1<Verse.Pawn>,System.Collections.Generic.List`1<EdB.PrepareCarefully.CustomPawn>) <IL 0x000a5, 0x001bd>
at EdB.PrepareCarefully.PrepareCarefully.InitializeRelationshipManager (System.Collections.Generic.List`1<EdB.PrepareCarefully.CustomPawn>) <IL 0x00057, 0x000ef>
at EdB.PrepareCarefully.PrepareCarefully.Initialize () <IL 0x00023, 0x00044>
at EdB.PrepareCarefully.HarmonyPatches.DoWindowContentsPostfix (UnityEngine.Rect,RimWorld.Page_ConfigureStartingPawns) <IL 0x0006c, 0x00171>
at (wrapper dynamic-method) RimWorld.Page_ConfigureStartingPawns.DoWindowContents_Patch1 (object,UnityEngine.Rect) <IL 0x000be, 0x0052b>
at Verse.Window/<WindowOnGUI>c__AnonStorey0.<>m__0 (int) [0x00223] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\Windows\Window.cs:202

Verse.Log:Error(String, Boolean) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\Debug\Log\Log.cs:78)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32) (at C:\Dev\RimWorld\Assets\Scripts\Verse\UI\Windows\Window.cs:206)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle) (at C:\buildslave\unity\build\Runtime\IMGUI\Managed\GUI.cs:1817)


Edit: works fine if I add Pawn Rules into my modlist after starting a game with Prepare Carefully
Title: Re: [1.0] Pawn Rules (v0.4): Disallow Foods, Relationships and More
Post by: Jaxe on August 07, 2018, 01:52:26 AM
Thanks for feedback. I just tested with Prepare Carefully and was able to start a game without any issues. I tried adding and removing characters in the preparation dialog and still no errors. Could you provide some steps that I could reproduce the error?

Edit: Ah I found it. It happens when the prepared characters are related to each other in some way. I'll work on fixing that.
Title: Re: [1.0] Pawn Rules (v0.4): Disallow Foods, Relationships and More
Post by: Navy1227 on August 07, 2018, 03:51:45 AM
You... I like you.
Thanks for this! I know it's something a lot of people have been asking about. Would you be interested in a spotlight video when you're at a later revision?
Title: Re: [1.0] Pawn Rules (v0.4): Disallow Foods, Relationships and More
Post by: LvlOneMage on August 07, 2018, 07:56:04 AM
I've been waiting for a mod like this for ages now. Can't wait to try it out.

Thank you!
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Jaxe on August 09, 2018, 09:26:31 AM
Released v0.5

- Fixed incompability with PrepareCarefully (actually this bug was unrelated and hopefully fixed other potential issues)
- Countless other tweaks, this is quite a large update
- Main Feature: Supports addons created by other modders to add new options to rules window.



Quote from: Navy1227 on August 07, 2018, 03:51:45 AM
Would you be interested in a spotlight video when you're at a later revision?
That sounds great, I'm getting closer to not calling it a beta build, just hoping to hear a little more feedback first.
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Soulshade on August 10, 2018, 11:25:38 AM
Thx for the update has been working fantastic
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Awe on August 11, 2018, 11:43:51 AM
Oh. Dreams come true.

PS Is it really work, or i missed something?

[attachment deleted due to age]
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Jaxe on August 11, 2018, 01:30:55 PM
Hmm are those food containers from the RimFridge mod? I haven't tested if those will still apply the rules.
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Awe on August 11, 2018, 01:48:13 PM
Yes. Its from RimFridge.
But besides this meals i have some nutrient and simple meals just on the ground. (in like 50 tiles)
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Jaxe on August 11, 2018, 01:57:09 PM
I just did a quick test with RimFridge and my test dog refused to eat the lavish, fine all other meals except the simple. I tried forbidding the simple meals and even still the dog refused to eat when starving.

The one possibility is I haven't got a rule check a pawn's inventory, so if he was hauling a fine meal and got hungry on the way there is a chance he could eat it then but I have a feeling that hauling something doesn't count as being in one's inventory so that probably isn't it. The other possibility is he was on the way to eat a fine meal before this mod was added to your game.

If any of these sound like the cause then let me know so I know where to look. Thanks for the feedback.
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Awe on August 11, 2018, 02:15:50 PM
None of this. I create default rule to animals. Wait until they are go to sleep and watch their wake up. And nothing changed - they are go as usual to closest source of food - rice, simple meals, fine meals or whatever. Ill try to switch some mods, probably compatibility issues. Tnx for response.
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Jaxe on August 11, 2018, 02:25:04 PM
Default rules for animals would only apply to new animals who join you. Animals who were part of your faction before the defaults were set would require manual setting of their presets, which by the looks of it you did so I'm not sure what's happening there as I can't replicate it. I will do some more testing anyway and see what comes up.
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Awe on August 11, 2018, 03:19:13 PM
Well, i dont know how this happened. Reassign rules again and now all ok.

Suggestion - please add a way to mass assign/reassign rules. Via mass select, or somewhere in the mod windows "apply to all", "apply to all of this kind" or similar to zoning changes. So its be possible to change diet of different animals or dont suffer if you accidently click on reset at your 100 chickens farm.
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Jaxe on August 11, 2018, 04:20:37 PM
Currently a newborn animal will inherit the rules of it's mother. I haven't fully tested if an egg hatches when the mother is dead or scenarios like that. A mass assign option is a good idea I'll work on that sometime.
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Mufflamingo on August 12, 2018, 04:42:36 AM
So I created a rule for my prisoners. I forbid fine and lavish meals only simple meals and raw food but my colonists still deliver fine meals to them and the prisoners wont eat and have starvation debuff. One nearly died because I was not attentive enough to see that one prisoner is starving.
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: superresistant on August 12, 2018, 10:35:47 AM
My pawns eat the chocolate while it is forbidden in the rules.
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Canute on August 12, 2018, 12:56:29 PM
Maybe they use the chocolate as joy object not as food.
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: Jaxe on August 12, 2018, 01:30:11 PM
Quote from: Mufflamingo on August 12, 2018, 04:42:36 AM
So I created a rule for my prisoners. I forbid fine and lavish meals only simple meals and raw food but my colonists still deliver fine meals to them and the prisoners wont eat and have starvation debuff. One nearly died because I was not attentive enough to see that one prisoner is starving.
I will test out prisoners for the next release. From my testing earlier it worked ok as the method where Pawn Rules comes into play is "BestSourceFoodOnMap" in which a 'getter' will look for the best food for an 'eater'. The eater should be bound by rules so the getter will skip over food sources that an eater is banned from. Be sure the prisoner has the rules applied to them, setting defaults only works for any new prisoners, any you had before the defaults were set will not have those settings.



Quote from: Canute on August 12, 2018, 12:56:29 PM
Maybe they use the chocolate as joy object not as food.

Thanks for pointing that possibility out, I didn't realize a joy need can make a pawn find food. I will look into putting a rule check on that.



I've been working quite solidly on the next update which has so many changes especially in the rules structure. Now an entire set of rules for a pawn can be set to a preset. Also adding in the ability to mass assign rules. Might be a few days before the next update because as always there are unexpected issues but stay tuned and thanks for all the feedback.
Title: Re: [1.0] Pawn Rules (v0.5): Disallow Foods, Relationships and More
Post by: superresistant on August 13, 2018, 06:17:32 PM
Quote from: Jaxe on August 12, 2018, 01:30:11 PM


Quote from: Canute on August 12, 2018, 12:56:29 PM
Maybe they use the chocolate as joy object not as food.
Thanks for pointing that possibility out, I didn't realize a joy need can make a pawn find food. I will look into putting a rule check on that.


I've been working quite solidly on the next update which has so many changes especially in the rules structure. Now an entire set of rules for a pawn can be set to a preset. Also adding in the ability to mass assign rules. Might be a few days before the next update because as always there are unexpected issues but stay tuned and thanks for all the feedback.

Yes it must be joy object.

Great can't wait for the next version.
Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: Jaxe on August 20, 2018, 02:29:01 AM
Released version 1.0

- No longer requires HugsLib
- Huge update, the structure of the saved rules has changed from the beta version so if you previously used Pawn Rules Beta in a savegame you should use the "Remove Mod" button first before updating to create a save without the beta version. Skipping this step will result in errors being displayed on the first launch of an old savegame but no issues should occur.
- Rules can now be saved as presets and mass assigned to other pawns of the same type
- Fixed eating chocolate for joy if it was disallowed
Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: xion1088 on August 20, 2018, 05:54:27 PM
I used the 0.5 version for a while, did what you said and selected a pawn, went to Global Options, clicked "Remove Mod" game restarted and I loaded up the PawnRules_Removed game, saved again over my OG file, closed the game and installed 1.0 version, now I can't play, my game won't load, kinda fucked up...

Error when loading a game:

(https://i.imgur.com/j9YVCv9.png)

Error logs:

QuoteFailed to find RimWorld.WorldObjectDef named PawnRules_Registry. There are 13 defs of this type loaded.
Verse.Log:Error(String, Boolean) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\Debug\Log\Log.cs:78)
Verse.DefDatabase`1:GetNamed(String, Boolean) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Defs\Databases\DefDatabase.cs:166)
PawnRules.Data.Registry:Initialize()
PawnRules.Controller:LoadWorld()
PawnRules.Patch.Verse_Game_FinalizeInit:Postfix()
Verse.Game:FinalizeInit_Patch2(Object)
Verse.Game:LoadGame() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Game\Game.cs:486)
Verse.SavedGameLoaderNow:LoadGameFromSaveFileNow(String) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Map\MapIniter\SavedGameLoaderNow.cs:39)
Verse.Root_Play:<Start>m__0() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\Root\Root_Play.cs:46)
Verse.LongEventHandler:RunEventFromAnotherThread(Action) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\LongEventHandler.cs:455)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\LongEventHandler.cs:367)

More error logs:

QuoteException from asynchronous event: System.NullReferenceException: Object reference not set to an instance of an object
at PawnRules.Data.Registry.Initialize () <IL 0x0005b, 0x000e7>
at PawnRules.Controller.LoadWorld () <IL 0x00006, 0x00017>
at PawnRules.Patch.Verse_Game_FinalizeInit.Postfix () <IL 0x00000, 0x0000a>
at (wrapper dynamic-method) Verse.Game.FinalizeInit_Patch2 (object) <IL 0x00016, 0x0003a>
at Verse.Game.LoadGame () [0x00254] in C:\Dev\RimWorld\Assets\Scripts\Verse\Game\Game.cs:486
at Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow (string) [0x000a7] in C:\Dev\RimWorld\Assets\Scripts\Verse\Map\MapIniter\SavedGameLoaderNow.cs:39

Verse.Log:Error(String, Boolean) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\Debug\Log\Log.cs:78)
Verse.LongEventHandler:RunEventFromAnotherThread(Action) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\LongEventHandler.cs:459)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\LongEventHandler.cs:367)
Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: xion1088 on August 20, 2018, 06:28:34 PM
Sorry for double posting but I can't even start a new game with Pawn Rules being the only mod active...
Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: Jaxe on August 20, 2018, 07:46:59 PM
Just to be clear, you were running 0.5 beta, then used remove mod then PawnRules_Removed save was auto created. Then you deleted the old beta mod folder and installed the new 1.0 version and loaded up the PawnRules_Removed save?

You could even try loading up a game without using "Remove Mod" and errors will come on the first launch but that should be it.  If you were prefer however you could send me a link to download your save and I can check/fix it for you.

Edit: On further inspection of your logs, I think you may have used "Remove Mod" after installing the 1.0 version, it should've be done on the old version. If that's the case just ignore the autocreated save and load up the one before. There will be errors but it should launch and after you save again it should be ok.
Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: xion1088 on August 20, 2018, 08:00:42 PM
Yes, I was using Beta 0.5, removed it, loaded up PawnRules_Removed, saved again over writing my original save, installed 1.0 and loaded my original save and didn't work and like I said in my second post, game wouldn't even start with Pawn Rules 1.0 being the only mod installed, it would crash in "Spawning Things" screen and would send me back to main menu.
Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: Jaxe on August 20, 2018, 08:07:42 PM
If you can you send me your save, preferably the autocreated PawnRules_Removed file I'd be happy to fix it for you.
Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: xion1088 on August 20, 2018, 08:37:31 PM
I have a lot of mods installed, don't know if there's a problem with that but probably there will be errors, here's it anyways: https://ufile.io/y19pg

Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: Jaxe on August 20, 2018, 09:20:45 PM
The file looks clear of the beta version, so if you try load that game with 1.0 and save it under a new name, it crashes when you reload? I tried loading that game with just a handful of your mods and even though it had errors from missing mods it still loaded and I was able to save and reload so I'm not sure what's happening. Make sure the old beta version was removed from your mods folder and not running and all other mods for your game are activated and try load the file you sent me. I hope it will sort itself out
Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: xion1088 on August 20, 2018, 10:05:47 PM
I can't even get to load the file to save it, it just crashes at "Spawning Things" and sends me back to main menu.

Edit: Please watch this video so you can see than even when starting a new game with Pawn Rules being the only mod active the game doesn't load and sends me back to desktop.

https://streamable.com/oie1h
Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: Jaxe on August 21, 2018, 12:10:13 AM
Oh derp! Totally my fault I forgot to upload the Defs folder. Adding it to new version now..

Sorry to everyone who downloaded without the Defs folder, please redownload from https://github.com/Jaxe-Dev/PawnRules/releases/latest (https://github.com/Jaxe-Dev/PawnRules/releases/latest)

And especially sorry to Xion I assumed you had something wrong on your end when it was completely my error. That's why it was working for me and I couldn't figure it out.
Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: xion1088 on August 21, 2018, 12:26:48 AM
Quote from: Jaxe on August 21, 2018, 12:10:13 AM
Oh derp! Totally my fault I forgot to upload the Defs folder. Adding it to new version now..

Sorry to everyone who downloaded without the Defs folder, please redownload from https://github.com/Jaxe-Dev/PawnRules/releases/latest (https://github.com/Jaxe-Dev/PawnRules/releases/latest)

And especially sorry to Xion I assumed you had something wrong on your end when I totally forgot to include the defs folder. That's why it was working on my end and I couldn't figure it out.

Nah man thanks to you I can finally play again, I guess when you used my saved you saw that a chicken explosion was about to happen and they would have eaten the Devilstrand and the growing Hay, seems like 1.0 forced them to eat the already harvested hay, with beta 0.5 they were still going after the plants and not the hay, thanks a lot again!  ;D ;D
Title: Re: [0.19/1.0] Pawn Rules (v1.0): Disallow Foods, Relationships and More
Post by: Jaxe on August 21, 2018, 12:34:18 AM
Glad to hear it's working for you now, quite a relief as one of the features of this mod was "non-savegame breaking" :)

Your video did make me notice that "no faction" error message which can seem to occur when starting a new game after quitting to menu on an old game. It doesn't seem to cause any problems and still start and I'm not even sure it's related to this mod but I'll check it out. Best of luck with your game
Title: Re: [0.19/1.0] Pawn Rules (v1.0.1): Disallow Foods, Relationships and More
Post by: Jaxe on August 21, 2018, 08:56:30 AM
Mini update, released 1.0.1:
- Fixed the NullReferenceException when attempting to bond with an animal before any rules have been set
Title: Re: [0.19/1.0] Pawn Rules (v1.0.1): Disallow Foods, Relationships and More
Post by: xion1088 on August 23, 2018, 11:42:55 AM
Jaxe can you give a look to the differences between Hay grass and Hay, my chickens are still eating all the hay grass that is growing and sometimes ignore all the already harvested hay.

Edit: Never mind, I forgot I had some new chicks than didn't have any rule so they were the ones eating the Haygrass, all good here.
Title: Re: [0.19/1.0] Pawn Rules (v1.0.1): Disallow Foods, Relationships and More
Post by: Dango on August 24, 2018, 12:02:32 PM
Jaxe maybe you should add rules to something similar to beer.
My animal often drinks it.
Title: Re: [0.19/1.0] Pawn Rules (v1.0.1): Disallow Foods, Relationships and More
Post by: Jaxe on August 25, 2018, 04:40:48 AM
Quote from: Dango on August 24, 2018, 12:02:32 PM
Jaxe maybe you should add rules to something similar to beer.
My animal often drinks it.

I didn't put any checks on alcohol and other drugs as there was already a policy for colonists and I wasn't really expecting animals to go for them unless starved. Do your animals just go for the beer even if they have other food available? Sounds like a job for AAA (Alcoholic Animals Anonymous).

I have released version 1.0.2 which supports nutritional drugs (Beer and Ambrosia) to be disallowed like other foods. I'm not particularly satisfied with this approach however as it might make handling addicts too easy but until some feedback on that front I'll leave it in.
Title: Re: [0.19/1.0] Pawn Rules (v1.0.1): Disallow Foods, Relationships and More
Post by: Jaxe on August 25, 2018, 04:45:12 AM
Version 1.0.2
- Nutritional drugs (Beer and Ambrosia) can now be disallowed in Food Restriction Presets

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [0.19/1.0] Pawn Rules (v1.0.2): Disallow Foods, Relationships and More
Post by: Jaxe on August 29, 2018, 01:46:51 AM
Version 1.0.3
- Added rules check to food in inventory for pawns getting food for another
- Restrictions (Food and Bonding) renamed to Policies

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [0.19/1.0] Pawn Rules (v1.0.3): Disallow Foods, Relationships and More
Post by: Jaxe on August 31, 2018, 10:37:10 AM
Version 1.0.4
- Fixed the null material error on World view (not sure how I missed this one until now)

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19/1.0] Pawn Rules (v1.0.4): Disallow Foods, Relationships and More
Post by: xion1088 on August 31, 2018, 01:23:51 PM
Won't you upload this to Steam?
Title: Re: [B19/1.0] Pawn Rules (v1.0.4): Disallow Foods, Relationships and More
Post by: wrathofdog on August 31, 2018, 10:41:17 PM
+1 for request for a Steam Workshop upload.
Title: Re: [B19/1.0] Pawn Rules (v1.0.4): Disallow Foods, Relationships and More
Post by: Canute on September 01, 2018, 02:52:48 AM
+1 for non-steam upload.
There are soo many workshop only mods we need a few forum only ! :-)
Title: Re: [B19/1.0] Pawn Rules (v1.0.4): Disallow Foods, Relationships and More
Post by: Nightliss on September 01, 2018, 04:55:11 AM
Hi, how do I access rules menu for pawn? I checked pawn, assign tab and restrict tab but don't see anything new in there. Am I blind?
Title: Re: [B19/1.0] Pawn Rules (v1.0.4): Disallow Foods, Relationships and More
Post by: Jaxe on September 01, 2018, 05:02:00 AM
I'd prefer to conduct support on this thread but I have now uploaded my mods to Steam. Kinda would've liked to keep it forum only for Canute but I have a feeling the +1's will keep adding.

Steam Workshop Link (https://steamcommunity.com/sharedfiles/filedetails/?id=1499843448)

Title: Re: [B19/1.0] Pawn Rules (v1.0.4): Disallow Foods, Relationships and More
Post by: Jaxe on September 01, 2018, 05:02:34 AM
Quote from: Nightliss on September 01, 2018, 04:55:11 AM
Hi, how do I access rules menu for pawn? I checked pawn, assign tab and restrict tab but don't see anything new in there. Am I blind?

Click on a pawn and there should be a rules button on the bottom row (next to the draft button)
Title: Re: [B19/1.0] Pawn Rules (v1.0.4): Disallow Foods, Relationships and More
Post by: Nightliss on September 01, 2018, 05:30:57 AM
Well, I am blind ._. Thanks
Title: Re: [B19/1.0] Pawn Rules (v1.0.4): Disallow Foods, Relationships and More
Post by: Jaxe on September 01, 2018, 11:51:12 AM
Version 1.0.5 (Minor update)
- Any of the core rules (Food Policy, Bonding Policy, Allow Courting, Allow Artisan) can be hidden by disabling them in the Global Options menu.

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19] Pawn Rules (v1.0.6): Disallow Foods, Relationships and More
Post by: Jaxe on September 03, 2018, 03:19:23 PM
Version 1.0.6
- Better handling of default rules
- Pawns who have been disallowed new romances should now no longer still try

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19] Pawn Rules (v1.0.6): Disallow Foods, Relationships and More
Post by: bigheadzach on September 03, 2018, 03:29:14 PM
Interesting; I've noticed this issue on a number of GitHub release downloads where the filename is actually the full path (when uncompressing on a Mac). Downloading from the head of the master branch doesn't produce this issue.
Title: Re: [B19] Pawn Rules (v1.0.6): Disallow Foods, Relationships and More
Post by: Jaxe on September 03, 2018, 11:26:36 PM
Quote from: bigheadzach on September 03, 2018, 03:29:14 PM
Interesting; I've noticed this issue on a number of GitHub release downloads where the filename is actually the full path (when uncompressing on a Mac). Downloading from the head of the master branch doesn't produce this issue.

I haven't used a mac for over 20 years. I'm curious what you mean by the filename is actually the full path, what exact path is used?
Title: Re: [B19] Pawn Rules (v1.0.7): Disallow Foods, Relationships and More
Post by: Jaxe on September 04, 2018, 05:19:36 AM
And another update... Version 1.0.7
- Fixed possible null reference with non-vanilla pawn types
- Fixed erroneous "not allowed artisan builds" tooltip

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19] Pawn Rules (v1.0.7): Disallow Foods, Relationships and More
Post by: YellowElephant on September 04, 2018, 10:55:43 AM
Hello and thanks for the mod!

However I have an issue with animal training when using this mod. When a food policy is enabled for my wolves, training appears infinite and the pawn just follow the animal without failing or suceeding (handling skill still progress). My pawn was using kibble for training (which is -- of course, enabled in the food policy). When the policy is set to "Unrestricted", there isn't any issue. Any idea?

Thanks angain!
Title: Re: [B19] Pawn Rules (v1.0.7): Disallow Foods, Relationships and More
Post by: Jaxe on September 04, 2018, 11:42:16 AM
Quote from: YellowElephant on September 04, 2018, 10:55:43 AM
When a food policy is enabled for my wolves, training appears infinite and the pawn just follow the animal without failing or suceeding (handling skill still progress). My pawn was using kibble for training (which is -- of course, enabled in the food policy). When the policy is set to "Unrestricted", there isn't any issue. Any idea?

Thanks for the feedback. I've also noticed an issue with training but in my game there were times when training was a success even with a food policy set (although when it worked in my case I was using raw meat on a husky). I'm not entirely sure what is causing this as this mod only interferes when fetching a food not consuming it. As the trainer brings the food to the animal I can only assume the rule check was a success so I'm not sure why the training gets halted but I will look into this.

Edit: After some testing with just this mod I couldn't get the bug to occur so there's a possibility this issue might be coming from somewhere else
Title: Re: [B19] Pawn Rules (v1.0.8): Disallow Foods, Relationships and More
Post by: Jaxe on September 05, 2018, 12:00:37 PM
Version 1.0.8
- Updated to handle 0.19.2017 changes in translator method. Backwards compatible, should be no difference for older versions.

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19] Pawn Rules (v1.0.9): Disallow Foods, Relationships and More
Post by: Jaxe on September 08, 2018, 06:45:15 AM
Version 1.0.9
- Fixed default rules not applying to new pawns

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19] Pawn Rules (v1.1.0): Disallow Foods, Relationships and More
Post by: Jaxe on September 10, 2018, 03:40:21 PM
Version 1.1.0
- Fixed default rules not applying to prisoners and guests
- Arresting own colonists now keep their original rules

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19] Pawn Rules (v1.1.1): Disallow Foods, Relationships and More
Post by: Jaxe on September 14, 2018, 08:23:41 AM
Version 1.1.1
- Re-fixed "not allowed artisan builds" tooltip
- Fixed "Could not find player faction" error on new game
- Fixed ability to train animals if an animal has a food policy set
- New Global option: Allow food if malnourished (if a pawn is is suffering from malnutrition they will ignore all food rules) [Default: False]
- New Global option: Allow food if training (if an animal is being trained they ignore all food rules) [Default: False]
- Plans can be imported/exported between games. A plan consists of all rule presets and defaults bundled into one file.

...and Version 1.1.2 quickfix
- Fixed null reference error when a pawn without rules attempts to build

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19] Pawn Rules (v1.1.3): Disallow Foods, Relationships and More
Post by: Jaxe on September 15, 2018, 02:14:41 PM
Version 1.1.3
- More fixes to animal training food handling
- Added support for non-Latin characters in preset names

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)

Will probably stop making bumping update posts here as there is a lack of activity on this thread. I will still change the title to show the latest version and this mod will still be available on GitHub for those not using Steam but this thread will probably be checked for replies and updated less regularly.
Title: Re: [B19] Pawn Rules (v1.1.3): Disallow Foods, Relationships and More
Post by: laffin on September 15, 2018, 05:18:00 PM
Thanks for the update, I have been using this mod for a while and you've done a great job. I download from github and will continue to watch for the title changes so I know when a new version pops up.
Title: Re: [B19] Pawn Rules (v1.1.4): Disallow Foods, Relationships and More
Post by: Canute on September 21, 2018, 09:16:58 AM
QuoteVersion 1.1.3
- More fixes to animal training food handling
now on 1.1.4
but the training food handling is still not satisfied.
From my point i would say, a trainer ignore the food rules for the animal and use the best food for that animal.
When i set animals not to use any hay/kibble/meal so they are going to eat the grass outside, my trainer still don't find food to train these.

Title: Re: [B19] Pawn Rules (v1.1.4): Disallow Foods, Relationships and More
Post by: Jaxe on September 21, 2018, 11:35:14 AM
Version 1.1.4
- Better optimization of data
- Re-fixed "Could not find player faction bug"
- Added support for upcoming version of RimHUD

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19] Pawn Rules (v1.1.4): Disallow Foods, Relationships and More
Post by: Jaxe on September 21, 2018, 11:37:25 AM
Quote from: Canute on September 21, 2018, 09:16:58 AM
but the training food handling is still not satisfied.
From my point i would say, a trainer ignore the food rules for the animal and use the best food for that animal.
When i set animals not to use any hay/kibble/meal so they are going to eat the grass outside, my trainer still don't find food to train these.

Animal food handling has been quite hard to get right. There is a global option for "Allow any food for training" which should let the trainer use any food to train the animal. I will check it again soon.
Title: Re: [B19] Pawn Rules (v1.1.4): Disallow Foods, Relationships and More
Post by: Canute on September 21, 2018, 04:02:38 PM
Dang,
why did you hide these global option at the Rules window.
Ok i can understand it, all things together, but i looked under mod options first.
Title: Re: [B19] Pawn Rules (v1.1.4): Disallow Foods, Relationships and More
Post by: Amnesiac on September 23, 2018, 04:57:17 PM
Hello, been using this a lot. Thank you for the mod!

I'd like to report an incompatibility with Fluffy's Stuffed Floors, (I think?) incase you can fix

If a pawn is set to disallow Artisan Crafting with Pawn Rules, they cannot craft floors even though the floors should not be marked as "Artisan" since they don't have a quality level like a chair or table does. This may also involve Fluffy's Stuffed Floors, but I'm not sure.

When a pawn is set to not allow Artisan Crafting, it throws this error:

Pic: https://i.imgur.com/crmUl6f.png

When trying to right click force work on floors:
https://git.io/fAFEW

When pawn naturally tries to work on floors:
https://git.io/fAFEl

Edit: Okay, apparently they just can't craft ANY floors for me, not just the one's added by other mods. :( If they try, it throws these errors.

I also get this error when I load the game, not sure if it should be of concern. https://git.io/fAFud
Pic: https://i.imgur.com/rFErqo7.png


Edit 2: Okay, I tried with ONLY this and Hugslib mod enabled, and still get the errors when trying to build just vanilla floors, so currently this mod must have a bug with the allow artisan feature :( Tested with v 1.1.4, 1.1.3, and 1.1.2
Title: Re: [B19] Pawn Rules (v1.1.4): Disallow Foods, Relationships and More
Post by: Jaxe on September 23, 2018, 08:58:15 PM
Thanks for the detailed report. I'll check this out asap
Title: Re: [B19] Pawn Rules (v1.1.4): Disallow Foods, Relationships and More
Post by: Jaxe on September 23, 2018, 09:07:42 PM
Updated to v1.1.5
- Fix for non-artisan's trying to build non-objects (such as floors)

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19] Pawn Rules (v1.1.5): Disallow Foods, Relationships and More
Post by: Canute on September 24, 2018, 09:12:06 AM
Jaxe,
could you please check the V1.1.5 release zip on Github ?
I got a strange file structure
\Mods\PawnRules\About\About.xml\About.xml
I saw the master got assemblies, i will use that.... failed.
Back to 1.1.4.
Title: Re: [B19] Pawn Rules (v1.1.5): Disallow Foods, Relationships and More
Post by: bigheadzach on September 24, 2018, 10:27:02 AM
The dreaded archive mystery strikes again!

Have you tried using 7zip on Windows or Keka on Mac?
Title: Re: [B19] Pawn Rules (v1.1.5): Disallow Foods, Relationships and More
Post by: Canute on September 24, 2018, 11:14:38 AM
Hmmm normaly i am the one who mention this. :-)
Yes, and like i said previously archives are fine just the latest.
Title: Re: [B19] Pawn Rules (v1.1.5): Disallow Foods, Relationships and More
Post by: Tenshi~Akari on September 24, 2018, 12:10:02 PM
Had the same issue with the file structure, so tried downloading the source.zip file since that seems to be in order in comparison.

Unfortunately, I got this red error that popped up upon loading.


Could not find a type named PawnRules.Data.Registry
Verse.Log:Error(String, Boolean)
Verse.ParseHelper:FromString(String, Type)
Verse.DirectXmlToObject:ObjectFromXml(XmlNode, Boolean)
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
Verse.DirectXmlToObject:ObjectFromXml(XmlNode, Boolean)
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
Verse.DirectXmlLoader:DefFromNode(XmlNode, LoadableXmlAsset)
Verse.LoadedModManager:ParseAndProcessXML(XmlDocument, Dictionary`2)
Verse.LoadedModManager:LoadAllActiveMods()
Verse.PlayDataLoader:DoPlayLoad()
Verse.PlayDataLoader:LoadAllPlayData(Boolean)
Verse.Root:<Start>m__1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()


Ultimately it seems the Source/Master version was missing the actual dll files for the Assemblies folder. And the main release has every singular file sub-foldered.  :o But I managed to just go ahead & copy over the files into the folders like they should appear & it works. I just think for the sake of those not too well versed on how things should look in the file structure, the main download needs to be fixed is all.  ;)
Title: Re: [B19] Pawn Rules (v1.1.5): Disallow Foods, Relationships and More
Post by: Amnesiac on September 24, 2018, 01:58:50 PM
Still getting errors with this mod, this time when I tried to just load the game wtih 1.1.5 =(

https://git.io/fAb97
Pic:
https://i.imgur.com/DCRWE5u.png

Let me know when you've got the new version sorted so I can continue using this awesome mod, thanks =)
Title: Re: [B19] Pawn Rules (v1.1.5): Disallow Foods, Relationships and More
Post by: Canute on September 24, 2018, 03:53:06 PM
Amnesiac,
"Mod PawnRules has incorrectly formatted target version 'Unknown'. ....."
indicate that is something wrong with the installation or filestructure.
If you maybe follow the last posting you would maybe notice it is the filestructure in this case.
Download and use 1.1.4 until jaxe upload a new .zip .
Title: Re: [B19] Pawn Rules (v1.1.5): Disallow Foods, Relationships and More
Post by: bigheadzach on September 24, 2018, 04:58:37 PM
I can confirm that even 1.1.4 doesn't uncompress right using any Mac-based archival tool I know.

EDIT: If I use unzip from the command-line, 1.1.4 extracts correctly. Neither Archive Utility nor Keka do, and even unzip issues the following:

"warning: PawnRules-v1.1.4.zip appears to use backslashes as path separators"
Title: Re: [B19] Pawn Rules (v1.1.5): Disallow Foods, Relationships and More
Post by: Canute on September 24, 2018, 05:09:36 PM
bigheadzach,
i got a similar problem at another mod, he resolved it while he used a different archive tool for the mac.
.
Quote from: n0cifer on September 22, 2018, 01:37:13 PM
I managed to isolate the problem in 7zip; if I run any other unzip tool everything works as it should. Judging by the fact that out of the ~150 mods I'm currently using there are only 4 or 5 with this issue (not to mention the multitudes of zip archives I work with everyday), and also by the fact that @bigheadzach says they've also encountered this problem on a Mac before (which means it's not Linux-specific), I'd be willing to bet it's an incompatibility with the software used to create those problematic zip archives (e.g. a specific version of WinRAR or WinZip or even 7zip for Windows). So if I could offer a suggestion, if it's not too bothersome for you, you could try using a different software to compress the next release of RimHUD, and then I can check if that resolves the issue. If not... well. One thing at a time :)

Title: Re: [B19] Pawn Rules (v1.1.5): Disallow Foods, Relationships and More
Post by: Amnesiac on September 24, 2018, 07:25:57 PM
So I've done what Tenshi said and moved all the files into the correct order for your release, I didn't read the post above mine until I had time. I was leaving for work as I posted that comment. Sorry!

I got a few of the usual errors on loading: https://i.imgur.com/7gNz3FX.png

But the artisan rule seems to be working!  :D
Title: Re: [B19] Pawn Rules (v1.1.5): Disallow Foods, Relationships and More
Post by: Jaxe on September 25, 2018, 07:22:27 AM
Sorry my monitor died so I've been unable to check posts. Yeah the v1.1.5 archive had improperly named paths due to switching to a different zipper for linux. I've uploaded a proper zip now.

Download the latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19] Pawn Rules (v1.1.5): Disallow Foods, Relationships and More
Post by: Amnesiac on September 25, 2018, 02:46:15 PM
Thanks Jaxe!!
Title: Re: [B19] Pawn Rules (v1.1.6): Disallow Foods, Relationships and More
Post by: Jaxe on September 29, 2018, 10:59:27 PM
Version 1.1.6
- Added compatibility for Prison Labor

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [B19] Pawn Rules (v1.1.6): Disallow Foods, Relationships and More
Post by: Ruisuki on October 16, 2018, 06:49:56 PM
 The 'Disallow constructing items that have a quality level' sounds like it makes quality builder mod obsolete. what does it mean by you can still haul? IIRC pre b19 hand me that brick mod had an option that popped up under construct (deliver resources to blueprint) when you right clicked something you wanted to build, does this do something similar? Or is it applied to the construct dialogue minus the actual construction? (unless you are the highest leveled constructor)
Title: Re: [B19] Pawn Rules (v1.1.6): Disallow Foods, Relationships and More
Post by: bigheadzach on October 16, 2018, 09:25:21 PM
Quote from: Ruisuki on October 16, 2018, 06:49:56 PM
The 'Disallow constructing items that have a quality level' sounds like it makes quality builder mod obsolete.

Not really - some constructions don't have a quality and Construction skill only affects their work speed and chance to botch. Quality Builder just sets minimum quality that a blueprint will allow to be finished at (or be auto-marked for deconstruct and re-attempted). In theory, if you had low-level constructors that you wanted to be able to do simple things like walls and floors but not work on quality'ed items like chairs and other furniture, you could set that flag on them.
Title: Re: [B19] Pawn Rules (v1.1.6): Disallow Foods, Relationships and More
Post by: Ruisuki on October 21, 2018, 02:05:48 PM
was the food control aspect adopted by 1.0 then? i havent tried it but it sounds similar
Title: Re: [1.0] Pawn Rules (v1.2.0): Disallow Foods, Relationships and More
Post by: Jaxe on November 01, 2018, 01:25:19 PM
Updated to v1.2.0
- Built for RimWorld 1.0
- Hides and overrides 1.0 Food Restrictions
- Modified Assign tab to show rules (and hide 1.0 food restrictions)

Link to latest release (https://github.com/Jaxe-Dev/PawnRules/releases/latest)
Title: Re: [1.0] Pawn Rules (v1.2.1): Disallow Foods, Relationships and More
Post by: Jaxe on November 09, 2018, 03:00:27 AM
Updated to v1.2.1
- Renamed Food policy to Ingestible policy
- Ingestible policy now includes all ingestibles including drinks from other mods
Title: Re: [1.0] Pawn Rules (v1.2.2): Disallow Foods, Relationships and More
Post by: Jaxe on November 09, 2018, 09:06:54 AM
Updated to v1.2.2
- Renamed Ingestible policy back to Food policy
- Added new global option "Allow drugs to be restricted" which will include drugs in food policies (default: OFF)
Title: Re: [1.0] Pawn Rules (v1.2.2): Disallow Foods, Relationships and More
Post by: alset85 on November 10, 2018, 10:16:09 AM
Why did you remove import/export since 1.2.1?
Title: Re: [1.0] Pawn Rules (v1.2.2): Disallow Foods, Relationships and More
Post by: Jaxe on November 10, 2018, 07:45:04 PM
Wasn't intentionally removed but adding a new option in global options made the UI fail to display the button. I'll fix it soon.
Title: Re: [1.0] Pawn Rules (v1.2.3): Disallow Foods, Relationships and More
Post by: Jaxe on November 10, 2018, 08:48:58 PM
Updated to v1.2.3
- Fixed import/export button not displaying
- Fixed incorrect ruleset applied to new pawns when default rules are unrestricted
Title: Re: [1.0] Pawn Rules (v1.2.4): Disallow Foods, Relationships and More
Post by: Jaxe on November 12, 2018, 02:39:13 AM
Updated to v1.2.4
- Added null check on food categories for potentially uncategorized modded foods
Title: Re: [1.0] Pawn Rules (v1.2.5): Disallow Foods, Relationships and More
Post by: Jaxe on November 19, 2018, 11:21:02 AM
Updated to v1.2.5
- Fixed 'Allow any food when training'
Title: Re: [1.0] Pawn Rules (v1.2.5): Disallow Foods, Relationships and More
Post by: moonra on November 24, 2018, 03:08:03 PM
Does this work with Better Pawn Control? This might make that mod obsolete but I'd like to know if they work together 'cause I want to add this to my current colony but don't wanna remove BPC.
Title: Re: [1.0] Pawn Rules (v1.2.5): Disallow Foods, Relationships and More
Post by: HSneak on November 27, 2018, 04:13:00 AM
Can't find the "Remove mod" from global options, only import/export is there.
Title: Re: [1.0] Pawn Rules (v1.2.5): Disallow Foods, Relationships and More
Post by: Canute on November 27, 2018, 08:24:11 AM
Why you didn't deactivate it, load your safegame and check if some error's happen after some playing.
You still can restore the modlist from that safegame if something bad happen.
Title: Re: [1.0] Pawn Rules (v1.2.5): Disallow Foods, Relationships and More
Post by: crusader2010 on December 05, 2018, 03:21:57 PM
Hello! Any ideas why I'm getting over 800 errors like below?
I'm also using StaticQuality+ and QualityBuilder (along with many others). Does the load order matter for those? Can provide saved games if needed.

Full log (please ignore other errors): here (https://gist.github.com/HugsLibRecordKeeper/9315fc4b83c5c76a4f1299cc6a9ae239)


Exception filling window for PawnRules.Interface.Dialog_Alert: System.IndexOutOfRangeException: Array index is out of range.
  at PawnRules.Interface.Dialog_Alert.DoWindowContents (Rect rect) [0x00000] in <filename unknown>:0
  at Verse.Window+<WindowOnGUI>c__AnonStorey0.<>m__0 (Int32 x) [0x00000] in <filename unknown>:0
Verse.Log:Error(String, Boolean)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
Title: Re: [1.0] Pawn Rules (v1.2.5): Disallow Foods, Relationships and More
Post by: zozilin on December 24, 2018, 01:49:11 PM
My pawns that are restricted to paste only still take other meals to their inventory periodically and eat them. Can I do something about it without forbidding every survival meal stack?
Title: Re: [1.0] Pawn Rules (v1.2.5): Disallow Foods, Relationships and More
Post by: Nylux on December 24, 2018, 09:41:25 PM
Sent a Pull Request for the french translation on github ! :)
Title: Re: [1.0] Pawn Rules (v1.3.0): Disallow Foods, Relationships and More
Post by: Jaxe on October 24, 2019, 11:13:04 AM
Updated to v1.3.0
- Pawns should now properly respect food rules for inventory and deliveries
- Assign tab is no longer replaced, this should now play nice with other mods
- Presets sorted by name
Title: Re: [1.0] Pawn Rules (v1.3.1): Disallow Foods, Relationships and More
Post by: Jaxe on November 05, 2019, 12:06:08 AM
Updated to v1.3.1
- Re-fixed "Could not find player faction bug"
Title: Re: [1.0] Pawn Rules (v1.3.3): Disallow Foods, Relationships and More
Post by: PhantomFav on November 09, 2019, 04:19:52 PM
Hi  Jaxe  :)

is it possible to implement in your mod what is asked in this post (time schedule for the food administration)?

https://ludeon.com/forums/index.php?topic=49530.msg464374
Title: Re: [1.2] Pawn Rules (v1.4.4): Disallow Foods, Relationships and More
Post by: Jaxe on August 22, 2020, 04:03:46 AM
Ah sorry haven't done any major feature updates for this mod for a while, just making sure they work for new versions of RimWorld
Title: Re: [1.2] Pawn Rules (v1.4.4): Disallow Foods, Relationships and More
Post by: Jaxe on August 22, 2020, 04:04:00 AM
Updated to v1.4.4:
- Added support for RimWorld 1.2
- Removed support for RimWorld 1.0
Title: Re: [1.3] Pawn Rules (v1.5.0): Disallow Foods, Relationships and More
Post by: Jaxe on July 27, 2021, 01:28:35 PM
Updated to v1.5.0:
- Added 1.3 support