ElectricaL
Refugee
Hi!
I'm new to this forum, and to be honest i just made an account to ask for help because this issue is starting to drive me mad.
I did my search on this forum and i apologize if this issue was already asked/solved, but in that case i didn't came across it.
I never modded in my life, and i started with this game because i like zombies, i like video games and since i'm Fullstack web dev (a junior one, but still...)
the subject got my interest.
So, on to the problem:
I'm trying to modify the entitygroups.xml (and please do correct me if this is not the place where i should work my code), my goal in this case is to remove all "special" zombies: feral, radiated, "animal zombies", "not normal zombies" (wight, "pukers", etc).
While i was checking the entitygroups.xml from the game i came across the commentary on the code that they change the structure as of A21, now every entitygroup tag inside doesn't have nested a entity tag with it's zombieName but instead just the zombieName followed by its probabilty of appearance (these separated by a comma).
I managed to select said text with the following xpath selector:
xpath="/entitygroups/entitygroup[text()='animalZombieBear']/text()"
Despite the fact i selected the right node (supposedly), i can't make any of the commands work, i tried: add, append, set, setattribute, remove.
And i know i selected the node correctly because, for example, if try to remove the text the console outputs this:
EXC XML. RemoveByXPath (/no_bears_zombies/remove, line 7 at pos 3): Matched node type (Text, line 631 at pos 39) can not be removed
My guess is either i'm not selecting correctly or i'm not using the proper command for the task i want to do.
Any help is appreciated, i digged through documentation about how xml works, how xpath works, i even went to w3schools site.
I'm new to this forum, and to be honest i just made an account to ask for help because this issue is starting to drive me mad.
I did my search on this forum and i apologize if this issue was already asked/solved, but in that case i didn't came across it.
I never modded in my life, and i started with this game because i like zombies, i like video games and since i'm Fullstack web dev (a junior one, but still...)
the subject got my interest.
So, on to the problem:
I'm trying to modify the entitygroups.xml (and please do correct me if this is not the place where i should work my code), my goal in this case is to remove all "special" zombies: feral, radiated, "animal zombies", "not normal zombies" (wight, "pukers", etc).
While i was checking the entitygroups.xml from the game i came across the commentary on the code that they change the structure as of A21, now every entitygroup tag inside doesn't have nested a entity tag with it's zombieName but instead just the zombieName followed by its probabilty of appearance (these separated by a comma).
I managed to select said text with the following xpath selector:
xpath="/entitygroups/entitygroup[text()='animalZombieBear']/text()"
Despite the fact i selected the right node (supposedly), i can't make any of the commands work, i tried: add, append, set, setattribute, remove.
And i know i selected the node correctly because, for example, if try to remove the text the console outputs this:
EXC XML. RemoveByXPath (/no_bears_zombies/remove, line 7 at pos 3): Matched node type (Text, line 631 at pos 39) can not be removed
My guess is either i'm not selecting correctly or i'm not using the proper command for the task i want to do.
Any help is appreciated, i digged through documentation about how xml works, how xpath works, i even went to w3schools site.
Last edited by a moderator: