BL Coding Removing XML from base

正在查看此主题的用户

zeidrich

Recruit
I made a little test mod to try and change the name and equipmentSet of basic looters. I was able to override the NPCCharacter name, but the equipment set that I defined in that record just added the new list of equipmentSets that can be picked from, so most of my new "Axe Looter"s weren't spawning in with axes, but still spawning with pitchforks and whatnot.

I tested that theory by editing the XML of the sandbox module's bandits.xml to delete the original looter record, and after that, it did in fact spawn all of my axe looters with only their new axe uniform.

But my question is, is there currently a way to tell the game to unload data that has already been loaded by another module? My guess is that this is just another weakness of the current deserializing process, but I haven't looked into it yet, and I'm wondering if anyone else has.

tl;dr: I want to have a mod that removes equipmentSet records that have already been loaded and replaces them with new ones. I can add new ones, but I can't delete the ones the sandbox module has already loaded. Is this possible in XML, or does this require code patching?
 
后退
顶部 底部