Trouble Patching

Started by WereCat88, January 27, 2019, 08:01:57 AM

Previous topic - Next topic

WereCat88

Im trying to patch CE and Rimsenal Enchanced Vanilla Pack but out of pure coincidence the tactical vest and the tactical armor vest from the mods have the same defName Apparel_TacVest

I tried changing the defname by doing this:
<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_TacVest"]</xpath>
        <value>
<defName>Apparel_TacArmor</defName>
</value>
</li>


But it replaces both defNames taking me back to square one, how do i replace only one of the defs?
I am The Primal Mammelon

AileTheAlien

Do both vests show up seperately in the game?
I thought that if a mod used the same def-name as another mod or the base game, that it just overwrote that item with whatever values it had defined (and the other ones remained).
So, I don't think that'd actually be possible.

Kirby23590

It's not easy changing the Defname with patches...

You might want get an local copy of Rimsenal Enchanced Vanilla Pack by using Fluffy's Mod Manager and then modifying Rimsenal Enchanced Vanilla Pack's Defs Directly by adding a _RIMA Tag at the end or at the start of it...

I think the creator of Rimsenal doesn't want to make his mod Combat Extended possible... when he said
There will be a no Combat extended patch for the Rimsenal, never and ever.

One "happy family" in the rims...
Custom font made by Marnador.



WereCat88

I changed the defName by using more than one identifier in the xpath

About the creator of Rimsenal not wanting a CE patch... hopefully he wont ask it to be taken down once its up
I am The Primal Mammelon

Kirby23590

Quote from: WereCat88 on January 28, 2019, 06:22:45 AM
I changed the defName by using more than one identifier in the xpath

Cool! ;)

One "happy family" in the rims...
Custom font made by Marnador.