Seems this can do it as for the 'proper' xpath patching mod (no need to overwrite file, no need to modify all zombie entries). # Mods/ZombieCorpsesDespawner/Config/entityclasses.xml <configs> <append xpath="/entity_classes/entity_class[starts-with(@name, 'zombie')]" > <property name="TimeStayAfterDeath" value="5" /> </append> </configs>
In case some should be excluded (have longer decay etc) i would use something like:
Yeah I noticed this was replacing the original entityclasses.xml file and immediately backed off. An xml patch should be how all xml mods are released for this game. You should release your version of this as a mod so that people can download it though it isn't too hard to just make it with what you have here either, good work.
Really good idea in general regardless of the need to reduce lag ... Z's corpses are completely useless once they hit the ground.
By popular demand I will do this mod with 10sec de-spawn - easy to change for anyone who wants it. Simple copy-paste from macgyver's code will work just fine. And I don't like increased XP - so without it. For those who are unable to do it or are simply to lazy :p
Please consider changing your mod (with an appropriate folder structure) to the following - it should accomplish the same result and not be overwritten by 7DTD updates:
<?xml version="1.0" encoding="utf-8"?> <entity_classes> <append xpath="/entity_classes/entity_class[@name='zombieTemplateMale']"> <property name="TimeStayAfterDeath" value="5"/> <property name="ExperienceGain" value="500"/><!-- XP grunt --> <property name="DeadBodyHitPoints" value="1"/> <!-- For harvesting or resisting corpse destruction --> <!-- to adjust corpse destruction speed for the non-harvest zombie corpses. This property does not extend. --> </append> </entity_classes>
I don't wanna sound ungrateful or anything but...can't you do a proper mod? It seems ziper isn't interested in fixing it and well...it's a free world...so you (or anyone else with the proper knowledge) should be able to make a different mod even if it "copies" this one's idea, am I right? Your mods are good and apparently you already know how to fix it so...pretty please? Thanks.
I'm glad I read this before installing. I look forward to when this is a proper installable mod b/c corpse piles do need to decompose quicker in this game hahaha!
Hello I just want to know if it's server side only ? or every players on my server need to download and install the file also on the client side ?
Thanks.
Nvm it's server side apparently, thanks for this mod, my friends and I don't have any more fps drops in the Skyscrapers, and the blood moon are more fun to do without the lags.
In my case, the fps remain the same, but the lags have decreased. I do not think that dead zombies have any impact on performance. Buildings read more.
11 comments
# Mods/ZombieCorpsesDespawner/Config/entityclasses.xml
<configs>
<append xpath="/entity_classes/entity_class[starts-with(@name, 'zombie')]" >
<property name="TimeStayAfterDeath" value="5" />
</append>
</configs>
In case some should be excluded (have longer decay etc) i would use something like:
<setattribute xpath="/ent.../entity_class[@name='zombieToOverride']/property[@name='TimeStayAfterDeath']" name="value">300</setattribute>
Z's corpses are completely useless once they hit the ground.
By popular demand I will do this mod with 10sec de-spawn - easy to change for anyone who wants it.
Simple copy-paste from macgyver's code will work just fine. And I don't like increased XP - so without it.
For those who are unable to do it or are simply to lazy :p
<?xml version="1.0" encoding="utf-8"?>
<entity_classes>
<append xpath="/entity_classes/entity_class[@name='zombieTemplateMale']">
<property name="TimeStayAfterDeath" value="5"/>
<property name="ExperienceGain" value="500"/><!-- XP grunt -->
<property name="DeadBodyHitPoints" value="1"/> <!-- For harvesting or resisting corpse destruction --> <!-- to adjust corpse destruction speed for the non-harvest zombie corpses. This property does not extend. -->
</append>
</entity_classes>
Your mods are good and apparently you already know how to fix it so...pretty please?
Thanks.
Thanks.
Nvm it's server side apparently, thanks for this mod, my friends and I don't have any more fps drops in the Skyscrapers, and the blood moon are more fun to do without the lags.