RimWorld

RimWorld

Optimization: Meats - C# Edition
 This topic has been pinned, so it's probably important
SeoHyeon  [developer] 14 Jul, 2021 @ 8:37pm
Report red error or incompatibility issues in here
What I need to solve the problem
1. Red error log
2. Other mods that you are using or some mods suspected of causing a conflict.
3. Detailed incompatibility situations (Exactly what and how you experienced the error)
4. RW version (1.2... 1.3...)

에러나 비호환성 문제를 제보해주세요
에러 로그나
같이 사용중인 모드 리스트나 충돌로 의심되는 모드 등
구체적인 에러/비호환 상황을 설명해주시면 감사하겠습니다
Last edited by SeoHyeon; 5 Dec, 2021 @ 4:29am
< >
Showing 1-15 of 80 comments
TrahsPanda 18 Jul, 2021 @ 11:24am 
Error log: https://cdn.discordapp.com/attachments/859602438533414922/866384641744437278/Player.log

The mod that causes the errors is Animals Forage, specifically Erin's Friendly Ferrets. When a ferret tries to forage for food, the meat it tries to take is rat meat, but since rat meat doesn't exist it spams the log with red errors.
Last edited by TrahsPanda; 18 Jul, 2021 @ 11:26am
SeoHyeon  [developer] 19 Jul, 2021 @ 12:26am 
@TrahsPanda
I've added some patches for Animals Forage, Animals Forage - Patches, and the problem won't happen anymore.
Immediately after the official 7/26 patch (1.3.3072), my colonists cannot eat autonomously (forced right click still works). I'm getting the error below and disabling OM alone is alleviating it. Happens both in the listed mod order and semi-alphabetical sort.

Mod List: https://pastebin.com/WB760QYp

Exception in Verse.AI.ThinkNod0e_Tagger TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object at RimWorld.FoodUtility.AddIngestThoughtsFromIngredient (Verse.ThingDef ingredient, Verse.Pawn ingester, System.Collections.Generic.List`1[T] ingestThoughts, System.Boolean& ateFungus, System.Boolean& ateNonFungusRawPlant) [0x00007] in <f81f052e138344458cc870569c2ab66f>:0 at RimWorld.FoodUtility.ThoughtsFromIngesting (Verse.Pawn ingester, Verse.Thing foodSource, Verse.ThingDef foodDef) [0x00106] in <f81f052e138344458cc870569c2ab66f>:0 at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.FoodOptimality_Patch1(Verse.Pawn,Verse.Thing,Verse.ThingDef,single,bool) at RimWorld.FoodUtility.SpawnedFoodSearchInnerScan (Verse.Pawn eater, Verse.IntVec3 root, System.Collections.Generic.List`1[T] searchSet, Verse.AI.PathEndMode peMode, Verse.TraverseParms traverseParams, System.Single maxDistance, System.Predicate`1[T] validator) [0x00066] in <f81f052e138344458cc870569c2ab66f>:0 at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.BestFoodSourceOnMap_Patch0(Verse.Pawn,Verse.Pawn,bool,Verse.ThingDef&,RimWorld.FoodPreferability,bool,bool,bool,bool,bool,bool,bool,bool,bool,bool,bool,RimWorld.FoodPreferability,System.Nullable`1<single>) at (wrapper dynamic-method) RimWorld.FoodUtility.RimWorld.FoodUtility.TryFindBestFoodSourceFor_Patch1(Verse.Pawn,Verse.Pawn,bool,Verse.Thing&,Verse.ThingDef&,bool,bool,bool,bool,bool,bool,bool,bool,bool,RimWorld.FoodPreferability) at (wrapper dynamic-method) RimWorld.JobGiver_GetFood.RimWorld.JobGiver_GetFood.TryGiveJob_Patch1(RimWorld.JobGiver_GetFood,Verse.Pawn) at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <f81f052e138344458cc870569c2ab66f>:0 at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <f81f052e138344458cc870569c2ab66f>:0

Last edited by Lt. Quattro Vahdsjgdjhsgdjahs; 26 Jul, 2021 @ 6:35pm
SeoHyeon  [developer] 27 Jul, 2021 @ 4:52am 
@Lt. Quattro Vahdsjgdjhsgdjahs
I hypothesized two things.
1. Meals in your colony has no ingredients because you loaded existing save before subscribe this mod. In this case, using dev mode, destroy all of your meals, and spawn as much as you destroyed.
2. It's a conflict with other mods related to food policy. I don't know exactly what that mod is.

I'm dumb engineer so that I couldn't find the exact cause of the error. I'm so sorry about that. :(
Originally posted by SeoHyeon:
@Lt. Quattro Vahdsjgdjhsgdjahs
I hypothesized two things.
1. Meals in your colony has no ingredients because you loaded existing save before subscribe this mod. In this case, using dev mode, destroy all of your meals, and spawn as much as you destroyed.
2. It's a conflict with other mods related to food policy. I don't know exactly what that mod is.

I'm dumb engineer so that I couldn't find the exact cause of the error. I'm so sorry about that. :(
Appreciate the reply! You gave me some ideas-- I did some digging into the actual food in the save and was able to fix the colony. Notes are as follows:

1. This version of the mod been in the mod list since the beginning of the colony (started on previous patch 1.3.3071). Mod order may have changed, but everything is from versions 1-2 days ago on a fresh colony.

1.5: There weren't any mod changes between the time I loaded 1.3.3071 and 1.3.3072.

2. SOME Packaged Survival Meal and Pemmican instances on the map had broken (errors in the actual GUI where the ingredients are displayed). All the meat meals before and after the patch I had cooked myself seem to be fine. The glitchy meals were generated from merchants or map spawns, not cooked.

tl;dr: I don't know the exact root cause, but without removing the mod, checking every meal and deleting the ones that threw errors fixed the save.
Last edited by Lt. Quattro Vahdsjgdjhsgdjahs; 27 Jul, 2021 @ 9:21am
TomFenny 30 Jul, 2021 @ 6:47pm 
Definitely this mod is causing an error when starting a new colony, right when clicking 'next' after selecting a scenario. This is the full error:

Exception filling window for RimWorld.Page_SelectScenario: System.ArgumentException: Value does not fall within the expected range. at RimWorld.DrugPolicy.get_Item (Verse.ThingDef drugDef) [0x00037] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.DrugPolicyDatabase.NewDrugPolicyFromDef (RimWorld.DrugPolicyDef def) [0x00071] in <f429400e900f434099af71800afbc07e>:0 at (wrapper dynamic-method) RimWorld.DrugPolicyDatabase.RimWorld.DrugPolicyDatabase.GenerateStartingDrugPolicies_Patch1(RimWorld.DrugPolicyDatabase) at (wrapper dynamic-method) RimWorld.DrugPolicyDatabase.RimWorld.DrugPolicyDatabase..ctor_Patch1(RimWorld.DrugPolicyDatabase) at Verse.Game..ctor () [0x000ac] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page_SelectScenario.BeginScenarioConfiguration (RimWorld.Scenario scen, RimWorld.Page originPage) [0x00000] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page_SelectScenario.CanDoNext () [0x00014] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page.DoBottomButtons (UnityEngine.Rect rect, System.String nextLabel, System.String midLabel, System.Action midAct, System.Boolean showNext, System.Boolean doNextOnKeypress) [0x000e0] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page_SelectScenario.DoWindowContents (UnityEngine.Rect rect) [0x000ab] in <f429400e900f434099af71800afbc07e>:0 at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001ce] in <f429400e900f434099af71800afbc07e>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.Window:InnerWindowOnGUI (int) UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

I had a number of mods enabled at the time, (too many to begin to list) but none of them changed any drugs or drug policies.
TomFenny 30 Jul, 2021 @ 7:34pm 
Originally posted by TomFoxery:
Definitely this mod is causing an error when starting a new colony, right when clicking 'next' after selecting a scenario. This is the full error:

Exception filling window for RimWorld.Page_SelectScenario: System.ArgumentException: Value does not fall within the expected range. at RimWorld.DrugPolicy.get_Item (Verse.ThingDef drugDef) [0x00037] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.DrugPolicyDatabase.NewDrugPolicyFromDef (RimWorld.DrugPolicyDef def) [0x00071] in <f429400e900f434099af71800afbc07e>:0 at (wrapper dynamic-method) RimWorld.DrugPolicyDatabase.RimWorld.DrugPolicyDatabase.GenerateStartingDrugPolicies_Patch1(RimWorld.DrugPolicyDatabase) at (wrapper dynamic-method) RimWorld.DrugPolicyDatabase.RimWorld.DrugPolicyDatabase..ctor_Patch1(RimWorld.DrugPolicyDatabase) at Verse.Game..ctor () [0x000ac] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page_SelectScenario.BeginScenarioConfiguration (RimWorld.Scenario scen, RimWorld.Page originPage) [0x00000] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page_SelectScenario.CanDoNext () [0x00014] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page.DoBottomButtons (UnityEngine.Rect rect, System.String nextLabel, System.String midLabel, System.Action midAct, System.Boolean showNext, System.Boolean doNextOnKeypress) [0x000e0] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page_SelectScenario.DoWindowContents (UnityEngine.Rect rect) [0x000ab] in <f429400e900f434099af71800afbc07e>:0 at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001ce] in <f429400e900f434099af71800afbc07e>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.Window:InnerWindowOnGUI (int) UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

I had a number of mods enabled at the time, (too many to begin to list) but none of them changed any drugs or drug policies.

Someone else has tested it and it seems that turning off fish meat optimization in the settings stops the error for some reason?
SeoHyeon  [developer] 30 Jul, 2021 @ 10:44pm 
@TomFoxery
The problem has been hotfixed yesterday. The reason was my coding error :(
But, even I uploaded the fixed update, I think Steam is NOT updating automatically my mod in your computer.
Unsubbing and resubbing this mod will solve the problem. thank you!
TRIBeagle 31 Jul, 2021 @ 1:03pm 
Exception filling window for RimWorld.Page_SelectScenario: System.ArgumentException: Value does not fall within the expected range. at RimWorld.DrugPolicy.get_Item (Verse.ThingDef drugDef) [0x00037] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.DrugPolicyDatabase.NewDrugPolicyFromDef (RimWorld.DrugPolicyDef def) [0x00071] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.DrugPolicyDatabase.GenerateStartingDrugPolicies () [0x00014] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.DrugPolicyDatabase..ctor () [0x00011] in <f429400e900f434099af71800afbc07e>:0 at Verse.Game..ctor () [0x000ac] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page_SelectScenario.BeginScenarioConfiguration (RimWorld.Scenario scen, RimWorld.Page originPage) [0x00000] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page_SelectScenario.CanDoNext () [0x00014] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page.DoBottomButtons (UnityEngine.Rect rect, System.String nextLabel, System.String midLabel, System.Action midAct, System.Boolean showNext, System.Boolean doNextOnKeypress) [0x000e0] in <f429400e900f434099af71800afbc07e>:0 at RimWorld.Page_SelectScenario.DoWindowContents (UnityEngine.Rect rect) [0x000ab] in <f429400e900f434099af71800afbc07e>:0 at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001ce] in <f429400e900f434099af71800afbc07e>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.Window:InnerWindowOnGUI (int) UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)
에러가 발생합니다. 생선 고기 최적화 활성화 시에만 발생하는 것 같습니다. 다른 모드를 빼고 바익 낚시와 이 모드 둘만 실행시켜도 그렇습니다ㅠㅠ
SeoHyeon  [developer] 31 Jul, 2021 @ 11:17pm 
@TRIBeagle
문제 수정했습니다 ㅠㅠ
Could not reserve Thing_Meat_Cow184208(current stack count: 1019) (layer: null) for 로바칸르로 for job TakeInventory (Job_388593) A=Thing_Meat_Cow184208 (now doing job TakeInventory (Job_388593) A=Thing_Meat_Cow184208(curToil=-1)) for maxPawns 1 and stackCount -1. Existing reserver: RttR_Fury8332 doing job Ingest (Job_388583) A=Thing_Meat_Cow184208 (toilIndex=1)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
Verse.AI.ReservationManager:LogCouldNotReserveError (Verse.Pawn,Verse.AI.Job,Verse.LocalTargetInfo,int,int,Verse.ReservationLayerDef)
(wrapper dynamic-method) Verse.AI.ReservationManager:Verse.AI.ReservationManager.Reserve_Patch1 (Verse.AI.ReservationManager,Verse.Pawn,Verse.AI.Job,Verse.LocalTargetInfo,int,int,Verse.ReservationLayerDef,bool)
Verse.AI.ReservationUtility:Reserve (Verse.Pawn,Verse.LocalTargetInfo,Verse.AI.Job,int,int,Verse.ReservationLayerDef,bool)
Verse.AI.JobDriver_TakeInventory:TryMakePreToilReservations (bool)
Verse.AI.Pawn_JobTracker:StartJob (Verse.AI.Job,Verse.AI.JobCondition,Verse.AI.ThinkNode,bool,bool,Verse.ThinkTreeDef,System.Nullable`1<Verse.AI.JobTag>,bool,bool)
Verse.AI.Pawn_JobTracker:TryFindAndStartJob ()
(wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch1 (Verse.AI.Pawn_JobTracker,Verse.AI.JobCondition,bool,bool)
(wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.JobTrackerTick_Patch0 (Verse.AI.Pawn_JobTracker)
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch3 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch1 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()

https://gist.github.com/6ac2dbeaf69d068d8bf2f8e091290f61

혹시 이 모드 문제일지 궁금해서 올려드려요 'ㅁ'...

이 모드 아니면 haul인가 함꺼번에 많이 옮기는 모드나
스택 모드 문제 중 하나일거같거든요
Last edited by TwotoolusFLY_LSh.st; 5 Aug, 2021 @ 10:23am
SeoHyeon  [developer] 5 Aug, 2021 @ 9:32pm 
@TwotoolusFLY LSh.st
제보 감사합니다
해당 에러는 pick up and haul 모드에서 주로 보고되는 에러입니다

임시 해결방법?으로는 개발자모드 -> destroy로 맵상에 존재하는 모든 날고기를 제거한 후, 개발자 모드 -> try place 머시기로 날고기를 그만큼 소환하면 해결이 될지도 모르겠네요..
Hun Alexander 7 Aug, 2021 @ 6:41pm 
방문객 모드랑 같이쓰면 선물을 줄 때, 선물 중 최적화 안된 고기를 선물주네요 ㅠ
SeoHyeon  [developer] 8 Aug, 2021 @ 12:37am 
@Hun Alexander
제보 감사합니다
방금 업데이트(1.2.3)로 보상 생성과 관련된 문제를 해결하였습니다
업데이트가 적용되었는지 확인하기 위해서는 게임 실행 후에 '~'를 눌러 모드의 버전이 1.2.3으로 뜨는지 확인해주세요.
고기 최적화 이후에, 보상 아이템 생성과 관련이 있는 ThingSetMakerUtility.allGeneratableItems를 초기화 해줘야 한다는 점을 몰랐습니다 ㅠㅠ
아마도 이제 그럴 문제는 없을겁니다 아마도..
Last edited by SeoHyeon; 8 Aug, 2021 @ 12:37am
방문객 모드 저고 쓰고있었는데 항상 업데이트 보수 해주셔서 감사합니다

지금은 10 tic 에러만 있어서 pick up and haul 쪽에서 해결보려고요
감사합니다
< >
Showing 1-15 of 80 comments
Per page: 1530 50