RimWorld
277 คะแนน
ReplaceLib
2
   
รางวัล
ชื่นชอบ
ชื่นชอบแล้ว
เลิกชื่นชอบ
Mod, 1.5, 1.6
ขนาดไฟล์
โพสต์
อัปเดต
540.041 KB
30 ม.ค. @ 2: 11am
14 ก.ค. @ 12: 07am
8 หมายเหตุการเปลี่ยนแปลง ( ดู )
อยู่ใน 2 ชุดสะสม โดย ferny
The Progression Modpack | (1.5)
913 รายการ
The Progression Modpack | (1.6)
552 รายการ
คำอธิบาย
What does this do?
This is a tool for modders, mainly for use in making overlap patches. Similar to Resource Dictionary, except in the hands of the modder. You can create ReplacerDefs which allow you to completely replace a thingDef with another def, which is very helpful for a guy like me.



Example
In this example, all instances of the mentioned crops would be entirely replaced. Even in deep places like meal recipes, all instances of the crop would be replaced by their VE counterpart.

How do I use this as a modder?
Make this mod a dependency on your mod, then just make a ReplacerDef.

Compatibility
- Compatible with Resource Dictionary

Credits
  • Taranchuk - Lots of lovely C#




[discord.gg]
70 ความเห็น
LaviWasTaken 7 ก.ย. @ 3: 24pm 
@ferny Right, it was Progression: Agriculture.
ferny  [ผู้สร้าง] 7 ก.ย. @ 12: 24am 
@LaviWasTaken This is a code library mod. This doesn't do anything.
LaviWasTaken 6 ก.ย. @ 5: 05pm 
I think this mod replaces wheat from MedievalOverhaul with spelt from Vanilla Expanded. Problem is the Spelt is yelding only flour and no straw, which is needed for some early game buildings and stuff.
Phonicmas 28 ก.ค. @ 4: 18am 
Or a DefModExtension to be able to selectively ignore certain recipes from being deleted
Phonicmas 28 ก.ค. @ 2: 56am 
While this might be specific to my mod, when two recipes doesnt share the same ingredients, but most of the other things, they still get caught as duplicates as neither Utils.AreRecipesDuplicate or Utils.RecipeUsersAreSame checks for this.
In my case i hide the recipe when the "newer/cheaper" one is researched. While this might be a more specific problem to what i'm doing i was
wondering if you'd implement the ingredient check aswell, its as simple as replacing "return true;" in the method AreRecipesDuplicate() with:

HashSet<IngredientCount> usersA = new HashSet<IngredientCount>(recipeA.ingredients);
HashSet<IngredientCount> usersB = new HashSet<IngredientCount>(recipeB.ingredients);
return usersA.SetEquals(usersB);

If not then i can manually harmony patch it myself just fine, just wanted to check in here first.
FelipeGames2000 14 ก.ค. @ 3: 40pm 
So, I’ve run into a strange interaction with Expanded Materials - Metals

I noticed that a few of EM-Metals' component recipes disappear when ReplaceLib is also enabled. Due to it's nature as an "overlap patcher", I suspect ReplaceLib got confused with EM-Metals's additional component recipes and removed them

Unfortunately, my player log doesn’t seem to mention anything about either mod, so I don’t have specific error messages to share.

I’m posting this on both mod pages so either dev (or anyone else familiar with the issue) might be able to help. If anyone else has run into the same problem, I hope this helps point you to the possible cause.
ferny  [ผู้สร้าง] 14 ก.ค. @ 12: 07am 
v8 - fixed seed packing spot issue in prog agriculture
ferny  [ผู้สร้าง] 11 ก.ค. @ 3: 51am 
v7 - added mod icon
«PeGaS» 8 ก.ค. @ 3: 56am 
Hello, me again with another report.
Utils.AreRecipesDuplicate && Utils.RecipeUsersAreSame is not working properly sometimes. Example - manual and electric versions of the same recipe on different benches, but links not in the recipe users, but in the bench.recipes.
ferny  [ผู้สร้าง] 29 มิ.ย. @ 5: 34pm 
v6 - progress towards diagnosing and fixing stuff, 1.6 version is back