[1.5] Better Pawn Control (v2.7)

Started by VouLT, October 04, 2016, 07:20:22 PM

Previous topic - Next topic

moonra

Would it be possible to make it so if you have multiple policies with the same name they're all applied when you pick any of them?
For example, I have Everyday and Danger policies for my colonist/animals allowed areas and outfits and it's annoying having to swap back and forth on all 3 tabs every time I have a raid.

bigheadzach

#121
Getting an error on load after installing this (v1.9.5). Presumed it was due to Gear Up & Go not seeing it so I moved it later, but still threw the error.
Could not find a type named BetterPawnControl.MainTabWindow_Work_Policies
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()



<?xml version="1.0" encoding="utf-8"?>
<ModsConfigData>
  <buildNumber>2059</buildNumber>
  <activeMods>
    <li>MOD-E</li>
    <li>Core</li>
    <li>HugsLib</li>
    <li>JecsTools</li>
    <li>AllowTool</li>
    <li>ModManager</li>
    <li>Miscellaneous_Core</li>
    <li>GiddyUpCore</li>
    <li>Rah's Bionics and Surgery Expansion</li>
    <li>A_Dog_Said</li>
    <li>RimHUD</li>
    <li>Vegetable Garden</li>
    <li>Miscellaneous_MapGenerator</li>
    <li>Miscellaneous_Incidents</li>
    <li>Miscellaneous_TrainingFacility</li>
    <li>SteelIsIron</li>
    <li>ConsolidatedTraits</li>
    <li>MoreTraitSlots</li>
    <li>RimFridge</li>
    <li>VGP_Canning</li>
    <li>VGP_Garden_Drinks</li>
    <li>VGP_Fabric</li>
    <li>VGP_Garden_Gourmet</li>
    <li>VGP_Medicine</li>
    <li>VGP_Tools</li>
    <li>VGP_More Veggies</li>
    <li>VGP_Soylent Production</li>
    <li>VGP_Trees_Flowers</li>
    <li>VGP CoffeeTeaDrugs</li>
    <li>Share The Load</li>
    <li>SmartMedicine</li>
    <li>SimpleSidearms</li>
    <li>RF - Advanced Bridges</li>
    <li>RF - Concrete</li>
    <li>RF - Editable Backstories</li>
    <li>RF - Fertile Fields</li>
    <li>RF - Fishing</li>
    <li>RF - Pawns are Capable!</li>
    <li>RF - Wild Cultivation</li>
    <li>SYR_SetUpCamp</li>
    <li>T-MoreFloors</li>
    <li>ForbiddableDebris</li>
    <li>MemorableAuroras</li>
    <li>ProfitableWeapons</li>
    <li>ProperShotguns</li>
    <li>RangedStaggerRebalanced</li>
    <li>StuffedFlaks</li>
    <li>TurretExtensions</li>
    <li>TETurretExpansion</li>
    <li>UseThatSniperScope</li>
    <li>WatermillTweaks</li>
    <li>Achtung</li>
    <li>AlphaAnimals</li>
    <li>AnimalTab</li>
    <li>AnimalsLogic</li>
    <li>architect-icons</li>
    <li>AreaUnlocker</li>
    <li>AvoidFriendlyFire</li>
    <li>ImprovedWorkbenches</li>
    <li>BetterMiniMap</li>
    <li>Blueprints</li>
    <li>BoomMod</li>
    <li>CameraPlus</li>
    <li>Collapser</li>
    <li>ColorCodedMoodBar</li>
    <li>ConduitDeconstructMod</li>
    <li>CraftingQualityRebalanced</li>
    <li>DefensivePositions</li>
    <li>DoorsExpanded</li>
    <li>DrawABead</li>
    <li>Dubs Mint Menus</li>
    <li>EdBPrepareCarefully</li>
    <li>ExpandedRoofing</li>
    <li>FashionRIMsta</li>
    <li>Firestarter</li>
    <li>FluffyBreakdowns</li>
    <li>FollowMe</li>
    <li>WhatTheHack</li>
    <li>battlemounts</li>
    <li>GiddyUpCaravan</li>
    <li>GiddyUpMechanoids</li>
    <li>GiddyUpRideAndRoll</li>
    <li>TechAdvancing</li>
    <li>TD Enhancement Pack</li>
    <li>HardworkingAnimals</li>
    <li>HeatMap</li>
    <li>Hospitality</li>
    <li>Bubbles</li>
    <li>JustIgnoreMePassing</li>
    <li>LabelsOnFloor</li>
    <li>Meals On Wheels</li>
    <li>MedicalTab</li>
    <li>MendAndRecycle</li>
    <li>Moody</li>
    <li>More Faction Interaction</li>
    <li>MoreHarvestDesignators</li>
    <li>More Vanilla Turrets</li>
    <li>MoreVanillaTurretsTEPatch</li>
    <li>NamesGalore</li>
    <li>PickUpAndHaul</li>
    <li>P-Music</li>
    <li>Power Logic</li>
    <li>RT_Fuse</li>
    <li>RT_PowerSwitch</li>
    <li>PowerSwitch</li>
    <li>QualityCooldown</li>
    <li>QualityBuilder</li>
    <li>RangeFinder</li>
    <li>Realistic Rooms</li>
    <li>RelationsTab</li>
    <li>RemoteTech</li>
    <li>Replace Stuff</li>
    <li>ResearchTree</li>
    <li>ReverseCommands</li>
    <li>RIMkea</li>
    <li>Rimsenal Vanilla</li>
    <li>RunAndGun</li>
    <li>SafelyHiddenAway</li>
    <li>SameSpot</li>
    <li>SeasonalWeather</li>
    <li>SupplyAndDemand</li>
    <li>BirdsAndBees</li>
    <li>The Price Is Right</li>
    <li>Therapy</li>
    <li>Toolboxifier</li>
    <li>MarvsUghYouGotMe</li>
    <li>VergeOfGalaxy-B19.0</li>
    <li>Wall Light</li>
    <li>WheresTheGravelGrayscale</li>
    <li>While You're Up</li>
    <li>WorkTab</li>
    <li>PrepareLanding</li>
    <li>Nightvision</li>
    <li>RF - Tribal Pawn Names</li>
    <li>RF - Tribal Raiders</li>
    <li>RF - Archipelagos</li>
    <li>Flamethrower</li>
    <li>Grenade Launcher</li>
    <li>Miscellaneous_BeeAndHoney</li>
    <li>Miscellaneous_MapGenerator_FactionBase</li>
    <li>Miscellaneous_MapGenerator Urban</li>
    <li>RF - Permafrost</li>
    <li>WanderingCaravans</li>
    <li>FloorLights</li>
    <li>WildAnimalSex</li>
    <li>RF - Etched Stone Walls</li>
    <li>Spidercamp Dog Pack</li>
    <li>Dog Pack Dog Said Patch</li>
    <li>Spidercamp Horses</li>
    <li>AnimalAlerts</li>
    <li>FoodRestrictions</li>
    <li>ChangeMirror</li>
    <li>ConfigurableMaps</li>
    <li>DamageIndicators</li>
    <li>10_DESurgeries4RBSE</li>
    <li>DesignatorShapes</li>
    <li>RimworldDisasterTornado</li>
    <li>SYR_DoorMats</li>
    <li>EfficientUtilities</li>
    <li>ExtendedInspectData</li>
    <li>FactionControl</li>
    <li>FoodAlert</li>
    <li>SYR_GlowingHealroot</li>
    <li>SYR_HarvestYieldPatch</li>
    <li>Miscellaneous_Robots</li>
    <li>Robots_PlusPlus_Misc_Robots_Xtension</li>
    <li>Miscellaneous_MAI</li>
    <li>RF - Packed Lunches</li>
    <li>Playable Settlers Faction</li>
    <li>SYR_ProstheticIcons</li>
    <li>SYR_ProstheticTable</li>
    <li>RainWashesAwayFilth</li>
    <li>RimQuest</li>
    <li>Room Food</li>
    <li>RoomSense</li>
    <li>SaveStorageSettings</li>
    <li>ShelfRenamer</li>
    <li>ShowModDesignators</li>
    <li>Small Shelf</li>
    <li>SnapOut</li>
    <li>SparklingWorlds Full Mod</li>
    <li>StuffedFloors</li>
    <li>TargetingModes</li>
    <li>TradingSpot</li>
    <li>VisiblePants</li>
    <li>DefensesExpanded</li>
    <li>RimSearch</li>
    <li>Cargo Pod Transport[1.0]</li>
    <li>ModSyncRW</li>
    <li>Palisade</li>
    <li>PawnRules</li>
    <li>Smart-Speed</li>
    <li>RF - Rumor Has It</li>
    <li>RF - Scenarios</li>
    <li>Five Second Rule</li>
    <li>Fuel Economy</li>
    <li>BetterPawnControl</li>
    <li>GearUpAndGo</li>
    <li>SYR_LightRadius</li>
    <li>Mining Priority</li>
    <li>UseBedrolls</li>
    <li>What Is My Purpose</li>
    <li>Spoons_Hair_Mod</li>
    <li>DontShaveYourHead</li>
    <li>Psychology</li>
  </activeMods>
</ModsConfigData>

mospidatru

Need compile dll from sources. Because old dll in archive

Klump

Quote from: bigheadzach on November 10, 2018, 08:23:06 AM
Getting an error on load after installing this (v1.9.5). Presumed it was due to Gear Up & Go not seeing it so I moved it later, but still threw the error.
Could not find a type named BetterPawnControl.MainTabWindow_Work_Policies
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()



<?xml version="1.0" encoding="utf-8"?>
<ModsConfigData>
  <buildNumber>2059</buildNumber>
  <activeMods>
    <li>MOD-E</li>
    <li>Core</li>
    <li>HugsLib</li>
    <li>JecsTools</li>
    <li>AllowTool</li>
    <li>ModManager</li>
    <li>Miscellaneous_Core</li>
    <li>GiddyUpCore</li>
    <li>Rah's Bionics and Surgery Expansion</li>
    <li>A_Dog_Said</li>
    <li>RimHUD</li>
    <li>Vegetable Garden</li>
    <li>Miscellaneous_MapGenerator</li>
    <li>Miscellaneous_Incidents</li>
    <li>Miscellaneous_TrainingFacility</li>
    <li>SteelIsIron</li>
    <li>ConsolidatedTraits</li>
    <li>MoreTraitSlots</li>
    <li>RimFridge</li>
    <li>VGP_Canning</li>
    <li>VGP_Garden_Drinks</li>
    <li>VGP_Fabric</li>
    <li>VGP_Garden_Gourmet</li>
    <li>VGP_Medicine</li>
    <li>VGP_Tools</li>
    <li>VGP_More Veggies</li>
    <li>VGP_Soylent Production</li>
    <li>VGP_Trees_Flowers</li>
    <li>VGP CoffeeTeaDrugs</li>
    <li>Share The Load</li>
    <li>SmartMedicine</li>
    <li>SimpleSidearms</li>
    <li>RF - Advanced Bridges</li>
    <li>RF - Concrete</li>
    <li>RF - Editable Backstories</li>
    <li>RF - Fertile Fields</li>
    <li>RF - Fishing</li>
    <li>RF - Pawns are Capable!</li>
    <li>RF - Wild Cultivation</li>
    <li>SYR_SetUpCamp</li>
    <li>T-MoreFloors</li>
    <li>ForbiddableDebris</li>
    <li>MemorableAuroras</li>
    <li>ProfitableWeapons</li>
    <li>ProperShotguns</li>
    <li>RangedStaggerRebalanced</li>
    <li>StuffedFlaks</li>
    <li>TurretExtensions</li>
    <li>TETurretExpansion</li>
    <li>UseThatSniperScope</li>
    <li>WatermillTweaks</li>
    <li>Achtung</li>
    <li>AlphaAnimals</li>
    <li>AnimalTab</li>
    <li>AnimalsLogic</li>
    <li>architect-icons</li>
    <li>AreaUnlocker</li>
    <li>AvoidFriendlyFire</li>
    <li>ImprovedWorkbenches</li>
    <li>BetterMiniMap</li>
    <li>Blueprints</li>
    <li>BoomMod</li>
    <li>CameraPlus</li>
    <li>Collapser</li>
    <li>ColorCodedMoodBar</li>
    <li>ConduitDeconstructMod</li>
    <li>CraftingQualityRebalanced</li>
    <li>DefensivePositions</li>
    <li>DoorsExpanded</li>
    <li>DrawABead</li>
    <li>Dubs Mint Menus</li>
    <li>EdBPrepareCarefully</li>
    <li>ExpandedRoofing</li>
    <li>FashionRIMsta</li>
    <li>Firestarter</li>
    <li>FluffyBreakdowns</li>
    <li>FollowMe</li>
    <li>WhatTheHack</li>
    <li>battlemounts</li>
    <li>GiddyUpCaravan</li>
    <li>GiddyUpMechanoids</li>
    <li>GiddyUpRideAndRoll</li>
    <li>TechAdvancing</li>
    <li>TD Enhancement Pack</li>
    <li>HardworkingAnimals</li>
    <li>HeatMap</li>
    <li>Hospitality</li>
    <li>Bubbles</li>
    <li>JustIgnoreMePassing</li>
    <li>LabelsOnFloor</li>
    <li>Meals On Wheels</li>
    <li>MedicalTab</li>
    <li>MendAndRecycle</li>
    <li>Moody</li>
    <li>More Faction Interaction</li>
    <li>MoreHarvestDesignators</li>
    <li>More Vanilla Turrets</li>
    <li>MoreVanillaTurretsTEPatch</li>
    <li>NamesGalore</li>
    <li>PickUpAndHaul</li>
    <li>P-Music</li>
    <li>Power Logic</li>
    <li>RT_Fuse</li>
    <li>RT_PowerSwitch</li>
    <li>PowerSwitch</li>
    <li>QualityCooldown</li>
    <li>QualityBuilder</li>
    <li>RangeFinder</li>
    <li>Realistic Rooms</li>
    <li>RelationsTab</li>
    <li>RemoteTech</li>
    <li>Replace Stuff</li>
    <li>ResearchTree</li>
    <li>ReverseCommands</li>
    <li>RIMkea</li>
    <li>Rimsenal Vanilla</li>
    <li>RunAndGun</li>
    <li>SafelyHiddenAway</li>
    <li>SameSpot</li>
    <li>SeasonalWeather</li>
    <li>SupplyAndDemand</li>
    <li>BirdsAndBees</li>
    <li>The Price Is Right</li>
    <li>Therapy</li>
    <li>Toolboxifier</li>
    <li>MarvsUghYouGotMe</li>
    <li>VergeOfGalaxy-B19.0</li>
    <li>Wall Light</li>
    <li>WheresTheGravelGrayscale</li>
    <li>While You're Up</li>
    <li>WorkTab</li>
    <li>PrepareLanding</li>
    <li>Nightvision</li>
    <li>RF - Tribal Pawn Names</li>
    <li>RF - Tribal Raiders</li>
    <li>RF - Archipelagos</li>
    <li>Flamethrower</li>
    <li>Grenade Launcher</li>
    <li>Miscellaneous_BeeAndHoney</li>
    <li>Miscellaneous_MapGenerator_FactionBase</li>
    <li>Miscellaneous_MapGenerator Urban</li>
    <li>RF - Permafrost</li>
    <li>WanderingCaravans</li>
    <li>FloorLights</li>
    <li>WildAnimalSex</li>
    <li>RF - Etched Stone Walls</li>
    <li>Spidercamp Dog Pack</li>
    <li>Dog Pack Dog Said Patch</li>
    <li>Spidercamp Horses</li>
    <li>AnimalAlerts</li>
    <li>FoodRestrictions</li>
    <li>ChangeMirror</li>
    <li>ConfigurableMaps</li>
    <li>DamageIndicators</li>
    <li>10_DESurgeries4RBSE</li>
    <li>DesignatorShapes</li>
    <li>RimworldDisasterTornado</li>
    <li>SYR_DoorMats</li>
    <li>EfficientUtilities</li>
    <li>ExtendedInspectData</li>
    <li>FactionControl</li>
    <li>FoodAlert</li>
    <li>SYR_GlowingHealroot</li>
    <li>SYR_HarvestYieldPatch</li>
    <li>Miscellaneous_Robots</li>
    <li>Robots_PlusPlus_Misc_Robots_Xtension</li>
    <li>Miscellaneous_MAI</li>
    <li>RF - Packed Lunches</li>
    <li>Playable Settlers Faction</li>
    <li>SYR_ProstheticIcons</li>
    <li>SYR_ProstheticTable</li>
    <li>RainWashesAwayFilth</li>
    <li>RimQuest</li>
    <li>Room Food</li>
    <li>RoomSense</li>
    <li>SaveStorageSettings</li>
    <li>ShelfRenamer</li>
    <li>ShowModDesignators</li>
    <li>Small Shelf</li>
    <li>SnapOut</li>
    <li>SparklingWorlds Full Mod</li>
    <li>StuffedFloors</li>
    <li>TargetingModes</li>
    <li>TradingSpot</li>
    <li>VisiblePants</li>
    <li>DefensesExpanded</li>
    <li>RimSearch</li>
    <li>Cargo Pod Transport[1.0]</li>
    <li>ModSyncRW</li>
    <li>Palisade</li>
    <li>PawnRules</li>
    <li>Smart-Speed</li>
    <li>RF - Rumor Has It</li>
    <li>RF - Scenarios</li>
    <li>Five Second Rule</li>
    <li>Fuel Economy</li>
    <li>BetterPawnControl</li>
    <li>GearUpAndGo</li>
    <li>SYR_LightRadius</li>
    <li>Mining Priority</li>
    <li>UseBedrolls</li>
    <li>What Is My Purpose</li>
    <li>Spoons_Hair_Mod</li>
    <li>DontShaveYourHead</li>
    <li>Psychology</li>
  </activeMods>
</ModsConfigData>


I'm getting the same error, and sadly do not understand you, mospidatru.

Ruisuki

can animal policies be used to instantly switch all animals to one owner?

mospidatru

Quote from: Klump on November 11, 2018, 09:38:22 AM
I'm getting the same error, and sadly do not understand you, mospidatru.

idk, about dropbox link. but mod on github not recompiled by author. Need download sources and recompile.

or you can download recompiled)
https://www.upload.ee/files/9184089/BetterPawnControl.zip.html

VouLT

Oh! I didn't realised the version from the dropbox was broken!! Going to fix it now! Thank you!

VouLT

I think it is fixed now. Can anyone confirm please?

Degenerate Paladin

Is there any chance of integrating this amazing mod with Animal Food Restrictions?  Its a small mod that allows you to set food policies for your animals as well as your colonists.
https://steamcommunity.com/sharedfiles/filedetails/?id=1547017052

VouLT

Hi @Degenerate Paladin    I'll investigate!

C0pper

Well, some bugs might have been fixed, but the mod news doo-hickey thingy that pops up (i presume it's a Hugslib thing) shows typos:
"Now,(hopefully) withoug bugs."

I'm only pointing it out because i nearly fainted from laughter.
For the sake of context: Been watching 4 vids about bugs in games, where Bethesda has the most amount of bugs.
And just as the 4th vid ends, the loading of my game finishes, and shows the "New Mod Features" dialogue. And the first thing that it stated is that it is "Now,(hopefully) withoug bugs."
The timing is perfect.

Granted, it's just a typo. But it got me laughing never the less... and i decided to come and share what was on my mind.

Lovely mod, btw.

VouLT


EntityFramework

Greetings Voult.

I'm currently trying to create a mod to assign weapons to the outfits dialog menu ( \\RimWorld\Dialog_ManageOutfits.cs ), and It is intended to be compatible with BCP but after days of fiddling with the codes  I'm quite at a loss since the mod is one of the hardest type (at least for me ) because it involves altering an existing vanilla method (Dialog_ManageOutfits.cs) which has no defs associated to it and I will probably need to use harmony or hugslib (Old Code injection seems unadvisable) and I pretty much suck at it.

Would you consider giving some snippets, tips, or anything to achieve what is wanted?

Some highlights:

QuoteWhat Should I change from Dialog_ManageOutfits.cs [\\Assembly-CSharp\RimWorld\Dialog_ManageOutfits.cs] so as to make it include Weapons in the filter list?

1- Change the filter list? isn't there a method to specify a filter list that includes weapons and appearal? [Should override DoWindowsContent for this]
2- Will the existing behaviour on outfits be compatible with the addition of weapons?
...
What else?
3 - Change Dialog_ManageOutfits.apparelGlobalFilter.SetAllow(ThingCategoryDefOf.Apparel, true, null, null); so as to include weapons and apparel [ should override the constructor classDialog_ManageOutfits]

Dialog_ManageOutfits
using System;
using System.Collections.Generic;
using UnityEngine;
using Verse;

namespace RimWorld
{
// Token: 0x0200082F RID: 2095
public class Dialog_ManageOutfits : Window
{
// Token: 0x06002EE4 RID: 12004 RVA: 0x0015E7D0 File Offset: 0x0015CBD0
public Dialog_ManageOutfits(Outfit selectedOutfit)
{
this.forcePause = true;
this.doCloseX = true;
this.doCloseButton = true;
this.closeOnClickedOutside = true;
this.absorbInputAroundWindow = true;
if (Dialog_ManageOutfits.apparelGlobalFilter == null)
{
Dialog_ManageOutfits.apparelGlobalFilter = new ThingFilter();
Dialog_ManageOutfits.apparelGlobalFilter.SetAllow(ThingCategoryDefOf.Apparel, true, null, null);
}
this.SelectedOutfit = selectedOutfit;
}

// Token: 0x1700077A RID: 1914
// (get) Token: 0x06002EE5 RID: 12005 RVA: 0x0015E833 File Offset: 0x0015CC33
// (set) Token: 0x06002EE6 RID: 12006 RVA: 0x0015E83B File Offset: 0x0015CC3B
private Outfit SelectedOutfit
{
get
{
return this.selOutfitInt;
}
set
{
this.CheckSelectedOutfitHasName();
this.selOutfitInt = value;
}
}

// Token: 0x1700077B RID: 1915
// (get) Token: 0x06002EE7 RID: 12007 RVA: 0x0015E84A File Offset: 0x0015CC4A
public override Vector2 InitialSize
{
get
{
return new Vector2(700f, 700f);
}
}

// Token: 0x06002EE8 RID: 12008 RVA: 0x0015E85B File Offset: 0x0015CC5B
private void CheckSelectedOutfitHasName()
{
if (this.SelectedOutfit != null && this.SelectedOutfit.label.NullOrEmpty())
{
this.SelectedOutfit.label = "Unnamed";
}
}

// Token: 0x06002EE9 RID: 12009 RVA: 0x0015E890 File Offset: 0x0015CC90
public override void DoWindowContents(Rect inRect)
{
float num = 0f;
Rect rect = new Rect(0f, 0f, 150f, 35f);
num += 150f;
if (Widgets.ButtonText(rect, "SelectOutfit".Translate(), true, false, true))
{
List<FloatMenuOption> list = new List<FloatMenuOption>();
foreach (Outfit localOut3 in Current.Game.outfitDatabase.AllOutfits)
{
Outfit localOut = localOut3;
list.Add(new FloatMenuOption(localOut.label, delegate()
{
this.SelectedOutfit = localOut;
}, MenuOptionPriority.Default, null, null, 0f, null, null));
}
Find.WindowStack.Add(new FloatMenu(list));
}
num += 10f;
Rect rect2 = new Rect(num, 0f, 150f, 35f);
num += 150f;
if (Widgets.ButtonText(rect2, "NewOutfit".Translate(), true, false, true))
{
this.SelectedOutfit = Current.Game.outfitDatabase.MakeNewOutfit();
}
num += 10f;
Rect rect3 = new Rect(num, 0f, 150f, 35f);
num += 150f;
if (Widgets.ButtonText(rect3, "DeleteOutfit".Translate(), true, false, true))
{
List<FloatMenuOption> list2 = new List<FloatMenuOption>();
foreach (Outfit localOut2 in Current.Game.outfitDatabase.AllOutfits)
{
Outfit localOut = localOut2;
list2.Add(new FloatMenuOption(localOut.label, delegate()
{
AcceptanceReport acceptanceReport = Current.Game.outfitDatabase.TryDelete(localOut);
if (!acceptanceReport.Accepted)
{
Messages.Message(acceptanceReport.Reason, MessageTypeDefOf.RejectInput, false);
}
else if (localOut == this.SelectedOutfit)
{
this.SelectedOutfit = null;
}
}, MenuOptionPriority.Default, null, null, 0f, null, null));
}
Find.WindowStack.Add(new FloatMenu(list2));
}
Rect rect4 = new Rect(0f, 40f, inRect.width, inRect.height - 40f - this.CloseButSize.y).ContractedBy(10f);
if (this.SelectedOutfit == null)
{
GUI.color = Color.grey;
Text.Anchor = TextAnchor.MiddleCenter;
Widgets.Label(rect4, "NoOutfitSelected".Translate());
Text.Anchor = TextAnchor.UpperLeft;
GUI.color = Color.white;
return;
}
GUI.BeginGroup(rect4);
Rect rect5 = new Rect(0f, 0f, 200f, 30f);
Dialog_ManageOutfits.DoNameInputRect(rect5, ref this.SelectedOutfit.label);
Rect rect6 = new Rect(0f, 40f, 300f, rect4.height - 45f - 10f);
Rect rect7 = rect6;
ref Vector2 ptr = ref this.scrollPosition;
ThingFilter filter = this.SelectedOutfit.filter;
ThingFilter parentFilter = Dialog_ManageOutfits.apparelGlobalFilter;
int openMask = 16;
IEnumerable<SpecialThingFilterDef> forceHiddenFilters = this.HiddenSpecialThingFilters();
ThingFilterUI.DoThingFilterConfigWindow(rect7, ref ptr, filter, parentFilter, openMask, null, forceHiddenFilters, false, null, null);
GUI.EndGroup();
}

// Token: 0x06002EEA RID: 12010 RVA: 0x0015EBF0 File Offset: 0x0015CFF0
private IEnumerable<SpecialThingFilterDef> HiddenSpecialThingFilters()
{
yield return SpecialThingFilterDefOf.AllowNonDeadmansApparel;
yield break;
}

// Token: 0x06002EEB RID: 12011 RVA: 0x0015EC0C File Offset: 0x0015D00C
public override void PreClose()
{
base.PreClose();
this.CheckSelectedOutfitHasName();
}

// Token: 0x06002EEC RID: 12012 RVA: 0x0015EC1A File Offset: 0x0015D01A
public static void DoNameInputRect(Rect rect, ref string name)
{
name = Widgets.TextField(rect, name, 30, Outfit.ValidNameRegex);
}

// Token: 0x04001942 RID: 6466
private Vector2 scrollPosition;

// Token: 0x04001943 RID: 6467
private Outfit selOutfitInt;

// Token: 0x04001944 RID: 6468
public const float TopAreaHeight = 40f;

// Token: 0x04001945 RID: 6469
public const float TopButtonHeight = 35f;

// Token: 0x04001946 RID: 6470
public const float TopButtonWidth = 150f;

// Token: 0x04001947 RID: 6471
private static ThingFilter apparelGlobalFilter;
}
}


Regards

blues

#133
Hello VouLT. Thanks for the good mod.

I want to report a possible bug after your latest update. Whenever i change the priority of any job and then close the work tab (not fluffy's, the original one) the priorities reset itself. It doesn't generate any errors in the console, just resets the work priorities.

This bug doesn't appear in other windows like animals and restrictions etc. I removed the mod (1.9,8) and the bug was gone. I re-installed the mod's older version (1.9.7), no bugs.

My most possibly but not likely related mod list: allow tool, cleaning priority, pick up and haul, pawns are capable.

If requested, the pandora's box:

<?xml version="1.0" encoding="utf-8"?>
<ModsConfigData>
  <version>1.0.2096 rev473</version>
  <activeMods>
    <li>Core</li>
    <li>_hugs lib</li>
    <li>fluffy mod manager</li>
    <li>_jecs tools</li>
    <li>cassandra hardcore</li>
    <li>rf configurable maps</li>
    <li>tornado</li>
    <li>rf faction control</li>
    <li>map reroll</li>
    <li>more faction interactions</li>
    <li>_my little planet</li>
    <li>rf realistic planets</li>
    <li>_edb prepare carefully</li>
    <li>kidnapped camp</li>
    <li>large outposts</li>
    <li>snowy trees</li>
    <li>sparkling events</li>
    <li>rf tribal raiders</li>
    <li>rf wild cultivation</li>
    <li>allow tool</li>
    <li>animals tab</li>
    <li>camera plus</li>
    <li>ed enhanced options</li>
    <li>heat map</li>
    <li>hotkeys</li>
    <li>fluffy medical tab</li>
    <li>moody</li>
    <li>rf more trait slots</li>
    <li>prisoner ransom</li>
    <li>_researchpal</li>
    <li>stack xxl</li>
    <li>save our ship</li>
    <li>animals logic</li>
    <li>avoid ff</li>
    <li>BetterPawnControl</li>
    <li>better workbenches</li>
    <li>CleaningPriority</li>
    <li>common sense</li>
    <li>dead mans clothing</li>
    <li>death rattle</li>
    <li>dismiss trader</li>
    <li>billy pods</li>
    <li>_ignore me passing</li>
    <li>_more practical traits</li>
    <li>rf pawns capable</li>
    <li>_pick up and haul</li>
    <li>quality builder</li>
    <li>quality surgeon</li>
    <li>_RBSE 2.0</li>
    <li>room food</li>
    <li>run&amp;gun</li>
    <li>run&amp;hide</li>
    <li>shoo</li>
    <li>_simple sidearms</li>
    <li>_smart medicine</li>
    <li>snap out</li>
    <li>raids go wrong</li>
    <li>speed tweaks</li>
    <li>_static quality plus</li>
    <li>table diner</li>
    <li>TargetingModes</li>
    <li>cargo pod transport</li>
    <li>chemicals neutroamine</li>
    <li>doors expanded</li>
    <li>lt door mat</li>
    <li>dubs bad hygiene</li>
    <li>dubs paint shop</li>
    <li>equipment deterioration</li>
    <li>rf etched walls</li>
    <li>expanded roofing</li>
    <li>fluffy breakdowns</li>
    <li>hold open</li>
    <li>IdlePowerConsumption</li>
    <li>locks</li>
    <li>sd luciferum</li>
    <li>mend and recycle</li>
    <li>misc core</li>
    <li>misc training</li>
    <li>ProperShotguns</li>
    <li>restraints</li>
    <li>show hair</li>
    <li>WatermillTweaks</li>
    <li>rimmsqol</li>
    <li>the ghosts</li>
    <li>hyena</li>
    <li>horse</li>
    <li>giddyup core</li>
    <li>giddyup battle</li>
    <li>giddyup caravan</li>
    <li>giddyup roll</li>
    <li>more mech</li>
    <li>raiderpedes</li>
    <li>rimsenal feral</li>
    <li>sd advanced power</li>
    <li>arrow please</li>
    <li>bones</li>
    <li>ed embrasures</li>
    <li>ed laser drill</li>
    <li>enhanced battery</li>
    <li>FashionRIMsta</li>
    <li>fish industry</li>
    <li>new furniture</li>
    <li>sd goodnight</li>
    <li>industrial age</li>
    <li>industrial rollers</li>
    <li>md2 walls</li>
    <li>sd medic addons</li>
    <li>MiningCo. AlertSpeaker</li>
    <li>MiningCo. MiningHelmet</li>
    <li>MiningCo. MMS</li>
    <li>MiningCo. Projector</li>
    <li>more linkables</li>
    <li>parallel powergrid</li>
    <li>power logic</li>
    <li>redist heat</li>
    <li>rimatomics</li>
    <li>rimefeller</li>
    <li>rimfridge</li>
    <li>sd round tables</li>
    <li>rt fuse battery</li>
    <li>rt switch</li>
    <li>rt solar shield</li>
    <li>lightning rod</li>
    <li>temp gauge</li>
    <li>time switch</li>
    <li>wall light</li>
    <li>weapon tech tools floors</li>
    <li>Vegetable Garden</li>
    <li>VGP_Garden_Drinks</li>
    <li>VGP_Fabric</li>
    <li>VGP_Garden_Gourmet</li>
    <li>VGP_Medicine</li>
    <li>VGP_Tools</li>
    <li>VGP_More Veggies</li>
    <li>sd bridges</li>
    <li>zen garden</li>
    <li>seeds please</li>
  </activeMods>
</ModsConfigData>

I'm gonna paste this report to your steam page also, in case... something.
Thanks!

EntityFramework

#134
Quote from: xenophon on December 04, 2018, 01:18:33 PM
Hello VouLT. Thanks for the good mod.

I want to report a possible bug after your latest update. Whenever i change the priority of any job and then close the work tab (not fluffy's, the original one) the priorities reset itself. It doesn't generate any errors in the console, just resets the work priorities.

This bug doesn't appear in other windows like animals and restrictions etc. I removed the mod (1.9,8) and the bug was gone. I re-installed the mod's older version (1.9.7), no bugs.

My most possibly but not likely related mod list: allow tool, cleaning priority, pick up and haul, pawns are capable.

If requested, the pandora's box:

<?xml version="1.0" encoding="utf-8"?>
<ModsConfigData>
  <version>1.0.2096 rev473</version>
  <activeMods>
    <li>Core</li>
    <li>_hugs lib</li>
    <li>fluffy mod manager</li>
    <li>_jecs tools</li>
    <li>cassandra hardcore</li>
    <li>rf configurable maps</li>
    <li>tornado</li>
    <li>rf faction control</li>
    <li>map reroll</li>
    <li>more faction interactions</li>
    <li>_my little planet</li>
    <li>rf realistic planets</li>
    <li>_edb prepare carefully</li>
    <li>kidnapped camp</li>
    <li>large outposts</li>
    <li>snowy trees</li>
    <li>sparkling events</li>
    <li>rf tribal raiders</li>
    <li>rf wild cultivation</li>
    <li>allow tool</li>
    <li>animals tab</li>
    <li>camera plus</li>
    <li>ed enhanced options</li>
    <li>heat map</li>
    <li>hotkeys</li>
    <li>fluffy medical tab</li>
    <li>moody</li>
    <li>rf more trait slots</li>
    <li>prisoner ransom</li>
    <li>_researchpal</li>
    <li>stack xxl</li>
    <li>save our ship</li>
    <li>animals logic</li>
    <li>avoid ff</li>
    <li>BetterPawnControl</li>
    <li>better workbenches</li>
    <li>CleaningPriority</li>
    <li>common sense</li>
    <li>dead mans clothing</li>
    <li>death rattle</li>
    <li>dismiss trader</li>
    <li>billy pods</li>
    <li>_ignore me passing</li>
    <li>_more practical traits</li>
    <li>rf pawns capable</li>
    <li>_pick up and haul</li>
    <li>quality builder</li>
    <li>quality surgeon</li>
    <li>_RBSE 2.0</li>
    <li>room food</li>
    <li>run&amp;gun</li>
    <li>run&amp;hide</li>
    <li>shoo</li>
    <li>_simple sidearms</li>
    <li>_smart medicine</li>
    <li>snap out</li>
    <li>raids go wrong</li>
    <li>speed tweaks</li>
    <li>_static quality plus</li>
    <li>table diner</li>
    <li>TargetingModes</li>
    <li>cargo pod transport</li>
    <li>chemicals neutroamine</li>
    <li>doors expanded</li>
    <li>lt door mat</li>
    <li>dubs bad hygiene</li>
    <li>dubs paint shop</li>
    <li>equipment deterioration</li>
    <li>rf etched walls</li>
    <li>expanded roofing</li>
    <li>fluffy breakdowns</li>
    <li>hold open</li>
    <li>IdlePowerConsumption</li>
    <li>locks</li>
    <li>sd luciferum</li>
    <li>mend and recycle</li>
    <li>misc core</li>
    <li>misc training</li>
    <li>ProperShotguns</li>
    <li>restraints</li>
    <li>show hair</li>
    <li>WatermillTweaks</li>
    <li>rimmsqol</li>
    <li>the ghosts</li>
    <li>hyena</li>
    <li>horse</li>
    <li>giddyup core</li>
    <li>giddyup battle</li>
    <li>giddyup caravan</li>
    <li>giddyup roll</li>
    <li>more mech</li>
    <li>raiderpedes</li>
    <li>rimsenal feral</li>
    <li>sd advanced power</li>
    <li>arrow please</li>
    <li>bones</li>
    <li>ed embrasures</li>
    <li>ed laser drill</li>
    <li>enhanced battery</li>
    <li>FashionRIMsta</li>
    <li>fish industry</li>
    <li>new furniture</li>
    <li>sd goodnight</li>
    <li>industrial age</li>
    <li>industrial rollers</li>
    <li>md2 walls</li>
    <li>sd medic addons</li>
    <li>MiningCo. AlertSpeaker</li>
    <li>MiningCo. MiningHelmet</li>
    <li>MiningCo. MMS</li>
    <li>MiningCo. Projector</li>
    <li>more linkables</li>
    <li>parallel powergrid</li>
    <li>power logic</li>
    <li>redist heat</li>
    <li>rimatomics</li>
    <li>rimefeller</li>
    <li>rimfridge</li>
    <li>sd round tables</li>
    <li>rt fuse battery</li>
    <li>rt switch</li>
    <li>rt solar shield</li>
    <li>lightning rod</li>
    <li>temp gauge</li>
    <li>time switch</li>
    <li>wall light</li>
    <li>weapon tech tools floors</li>
    <li>Vegetable Garden</li>
    <li>VGP_Garden_Drinks</li>
    <li>VGP_Fabric</li>
    <li>VGP_Garden_Gourmet</li>
    <li>VGP_Medicine</li>
    <li>VGP_Tools</li>
    <li>VGP_More Veggies</li>
    <li>sd bridges</li>
    <li>zen garden</li>
    <li>seeds please</li>
  </activeMods>
</ModsConfigData>

I'm gonna paste this report to your steam page also, in case... something.
Thanks!

Just in case, I don't seem to be having that problem.. using the latest BCP patch ( v1.9.8 )

My ModList

  <activeMods>
    <li>Core</li>
    <li>HugsLib</li>
    <li>BetterPawnControl</li>
    <li>PathAvoid</li>
    <li>While You are Up</li>
    <li>PickUpAndHaul</li>
    <li>P-Music</li>
    <li>HeatMap</li>
    <li>MedicalTab</li>
    <li>AvoidFriendlyFire</li>
    <li>Pharmacist</li>
    <li>RimworldSearchAgency</li>
    <li>AreaUnlocker</li>
    <li>Miscellaneous_TrainingFacility</li>
    <li>PriorityClean</li>
    <li>MoreHarvestDesignators</li>
    <li>kNumbers</li>
    <li>Blueprints</li>
    <li>GearUpAndGo</li>
    <li>SnapOut</li>
  </activeMods>