RimWorld

RimWorld

ReplaceLib
81 Comments
Reestock Oct 25 @ 8:17am 
Nah, but the load folders was being kind of finnicky so I'm only like 85% sure.
ferny  [author] Oct 25 @ 7:52am 
Nah I'm just trolling cause you said that funny, you're saying that didn't work?
Reestock Oct 25 @ 7:51am 
If I'm wrong then just tell me
ferny  [author] Oct 25 @ 7:50am 
@Reestock Would I be saying pee pee poo poo if I was a fart baby?
Reestock Oct 25 @ 6:43am 
Would I be saying that didn't work if it worked when I tried it?
ferny  [author] Oct 24 @ 10:56pm 
@bradson Oh right duh
bradson Oct 24 @ 6:35pm 
@Reestock just use a normal PatchOperationRemove to remove the replacer. It's still a regular def
Reestock Oct 24 @ 6:11pm 
Apparently, pretty much nothing can stop a replacerDef. You can't get around it by removing it with a patch, or by creating a new thing of what it replaced, or by making a counter replaceDef. These things are unstoppable.
LaviWasTaken Oct 21 @ 9:11am 
@Reestock Unfortunately. I ended up spawning myself the straw with devmode.
ferny  [author] Oct 20 @ 8:48pm 
@Reestock You might be able to make a replacer that stacks onto another one? Like just replace it back? Idk I don't know if that' work
Reestock Oct 20 @ 4:52pm 
I talk too much, but how does one make a mod that undoes a replacer?

@LaviWasTaken
OH i]THAT'S[/i] WHY I CAN'T MAKE STRAW!
LaviWasTaken Sep 7 @ 3:24pm 
@ferny Right, it was Progression: Agriculture.
ferny  [author] Sep 7 @ 12:24am 
@LaviWasTaken This is a code library mod. This doesn't do anything.
LaviWasTaken Sep 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 Jul 28 @ 4:18am 
Or a DefModExtension to be able to selectively ignore certain recipes from being deleted
Phonicmas Jul 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 Jul 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  [author] Jul 14 @ 12:07am 
v8 - fixed seed packing spot issue in prog agriculture
ferny  [author] Jul 11 @ 3:51am 
v7 - added mod icon
«PeGaS» Jul 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  [author] Jun 29 @ 5:34pm 
v6 - progress towards diagnosing and fixing stuff, 1.6 version is back
ferny  [author] Jun 27 @ 2:35pm 
anyone reading this, ive rolled it back to just 1.5 for a bit holup im fixing it
ClothingLotus Jun 27 @ 9:35am 
@Tinda I AM NOT ALONE
ClothingLotus Jun 27 @ 9:34am 
@carni I THOUGHT I WAS GOING CRAZY
Tinda Jun 26 @ 11:07am 
Oh that explains it.
I've been redownloadning it like 5 times lol
ferny  [author] Jun 26 @ 5:14am 
@carni Yeah working on it, had to roll back a bit
carni Jun 26 @ 5:08am 
After the last update the mod doesn't display compatibility with 1.6 anymore.
ferny  [author] Jun 23 @ 4:47pm 
@«PeGaS» Really? Oh ♥♥♥♥, lemme look into this
«PeGaS» Jun 23 @ 12:15pm 
Hmm, there are changes after all, I checked the dll itself and its way smaller mow, without extra harmony patches.
«PeGaS» Jun 23 @ 12:09pm 
@ferny Thank you, I really have no idea why this is the case, as Im a modder myself (for custom project) and have no clues why this update would do such a thing, as there are no changes for 1.5, so I guessed maybe you can tell me.
ferny  [author] Jun 23 @ 10:50am 
@«PeGaS» I've got thousands of folks in my server nobody's said a word on this, but I'll look into it regardless
«PeGaS» Jun 23 @ 10:44am 
Really dunno why though, I double-checked mod folder, tried load folder file to point to the 1.5 assembly, nothing.
«PeGaS» Jun 23 @ 10:41am 
I'm sure, all my patches just died the moment I started the game after 10 days off, restart didn't fix it, but the older version (from March) is working fine.
ferny  [author] Jun 23 @ 10:12am 
Just double checked, haven't modified ReplaceLib.dll since February first which was last update
ferny  [author] Jun 23 @ 10:11am 
@«PeGaS» Are you absolutely sure of that? Nothing has changed about the 1.5 version
«PeGaS» Jun 23 @ 10:10am 
After the latest update, all patches now broken on 1.5, had to download older version before update
ferny  [author] Jun 14 @ 10:24am 
v4 - updated to 1.6
ferny  [author] Apr 10 @ 7:49am 
@Polat Alemdar My friend the removal of the rustic table is intentional, it has been ported to the new Old-World style. As for the errors, they're from recent updates to other mods, they're all harmless but will be fixed soon.
Polat Alemdar Apr 10 @ 7:40am 
ok my bad problem wasnt replaceLib but it was:
Progression: Aesthetics https://steamcommunity.com/sharedfiles/filedetails/?id=3294950875

here is a screenshot in game:
https://prnt.sc/MrZdtSbpB6wd

red lines:
https://prnt.sc/ZC-Ywi5LVYP_

logs:
https://justpaste.it/cjzu8

modlist:
https://prnt.sc/JhNVCpIZCxra
ferny  [author] Apr 10 @ 3:04am 
@Polat Alemdar Nope
Polat Alemdar Apr 9 @ 10:38pm 
There is an issue with medieval overhaul, this mod removes option to build some of furniture, for example rustic table (1x2)
bradson Mar 24 @ 9:03am 
@Ferret With A Cat Hat Patch Operation Collection has a DefNameLink operation that does include a defType field to work with all def kinds. That can achieve the same effect, wouldn't need dependencies either.
Stuffable floors simply generates more terrain defs through C#. It doesn't remove them
Ferret With A Cat Hat Mar 24 @ 5:40am 
Is there any way to make this work with terrain? I've made a mod that unifies the stone types using this but this mod can't unify anything other than things and whilst i felt removing the other stone block recipes would be fine removing the other floors would probably lead to all sorts of issues

do i just use stuffed floors or smth
ferny  [author] Mar 20 @ 1:13pm 
@Vulkandrache Probably not?
Vulkandrache Mar 20 @ 1:12pm 
Is this likely going to cause problems with mod like
https://steamcommunity.com/sharedfiles/filedetails/?id=2542931556
and
https://steamcommunity.com/sharedfiles/filedetails/?id=2591816333
that change large amounts of thingdef already?
ferny  [author] Mar 1 @ 2:32pm 
@furel87 This is for ThingDefs
furel87 Mar 1 @ 4:52am 
Does this work with memes and precepts? I did a substitution as Def and as Patch and neither of them seem to work. Precepts seems to not recognize the substitution and asks for the overridden meme
ferny  [author] Feb 9 @ 12:38pm 
@LikewiseHH Look at the patch i did for Medieval Overhaul in my mod Progression Agriculture, that's a functioning one that you can look at for example
LikewiseHH Feb 9 @ 12:32pm 
Thanks for your help. Still could not manage to get it to work though. Is there a github repo or so with examples from which I can learn?