• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Remove Vulture !

Lovenio

Refugee
Good morning !
 

Sorry in advance for my bad English, I use a translator!

I would like to disable the vultures in A21. But everything I try doesn't work. Here is my code : 

 

<configs>
<set xpath="//entity[@name='animalZombieVulture']/@name">none</set>
</configs>



I have the impression that the architecture of the "entitygroups" file has changed since A21. I don't see how to manage to deactivate the vultures.

Can you help me ?

 
I just made some progress on my code but vultures still spawn in biomes.
 

I used a "remove" then an "append"

Am I on the right track?

 
This is what I used back in a20: I've changed these names to reflect the different naming convention, but haven't tried it in 21:-
 

<set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[contains(@name, 'animalZombieVulture')]/@name">zombieMoe</set>
    <set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[@name='animalDireWolf']/@name">zombieMoe</set>
    <set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[@name='animalZombieBear']/@name">zombieMoe</set>

I don't see why it won't work. Other ways may exist, too.

 
The structure in entitygroups has changed:

A21 entitygroups example

    <!-- *** BIOME_ZOMBIES_FOREST_DOWNTOWN_NIGHT_GROUP -->
    <entitygroup name="ZombiesForestDowntownNight">
        zombieSpider
        zombieSpiderFeral, .3
        zombieBoe
        zombieBoeFeral, .3
        zombieJoe
        zombieJoeFeral, .3
        zombieSteve
        zombieSteveFeral, .3
        zombieTomClark
        zombieTomClarkFeral, .3
        zombieMoe
        zombieMoeFeral, .3
        zombieYo
        zombieYoFeral, .3
        zombieBusinessMan, 1.5
        zombieBusinessManFeral, .5
        zombieArlene
        zombieArleneFeral, .3
        zombieDarlene
        zombieDarleneFeral, .3
        zombieMarlene
        zombieMarleneFeral, .3
        zombieNurse
        zombieNurseFeral, .3
        zombiePartyGirl
        zombiePartyGirlFeral, .3
        zombieFatHawaiian
        zombieFatHawaiianFeral, .3
        zombieSteveCrawlerFeral, .3
        zombieFatCop, .4
        zombieFatCopFeral, .15
        zombieSoldier, .4
        zombieSoldierFeral, .15
        animalZombieDog, .3
        animalWolf, .3
    </entitygroup>




You need to use the new method shown here




 
Last edited by a moderator:
La structure des groupes d'entités a changé :

Exemple de groupes d'entités A21

Vous devez utiliser la nouvelle méthode montrée ici
Oh ! Okay ! Thanks !

I just read what you gave me.
If I just want to change the spawn probability, does it work the same? Sorry for my questions, I'm new to XML.

This is what I used back in a20: I've changed these names to reflect the different naming convention, but haven't tried it in 21:-
 

<set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[contains(@name, 'animalZombieVulture')]/@name">zombieMoe</set>
    <set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[@name='animalDireWolf']/@name">zombieMoe</set>
    <set xpath="/entitygroups/entitygroup[contains(@name, '')]/entity[@name='animalZombieBear']/@name">zombieMoe</set>

I don't see why it won't work. Other ways may exist, too.
Thank you so much !
I will try that!

 
Last edited by a moderator:
Oh ! Okay ! Thanks !

I just read what you gave me.
If I just want to change the spawn probability, does it work the same? Sorry for my questions, I'm new to XML.


I am not sure if this is the best way, but one way to do the probability is to first remove the zombie entity and then re-add it back with the new add commands

Code:
[COLOR=#ebe7e3]    [/COLOR][COLOR=#e8bd89]<csv[/COLOR][COLOR=#ebe7e3] [/COLOR][COLOR=#df897a]xpath[/COLOR][COLOR=#d9b180]=[/COLOR][COLOR=#7ea9c4]"/entitygroups/entitygroup[@name='ZombiesAll']/text()"[/COLOR][COLOR=#ebe7e3] [/COLOR][COLOR=#df897a]delim[/COLOR][COLOR=#d9b180]=[/COLOR][COLOR=#7ea9c4]"\n"[/COLOR][COLOR=#ebe7e3] [/COLOR][COLOR=#df897a]op[/COLOR][COLOR=#d9b180]=[/COLOR][COLOR=#7ea9c4]"add"[/COLOR][COLOR=#ebe7e3] [/COLOR][COLOR=#e8bd89]>[/COLOR][COLOR=#ebe7e3]
        zombieFatHawaiian2, .3
        zombieFatHawaiian3, .3
        zombieFatHawaiian4, .3
        zombieFatHawaiian5, .3
    [/COLOR][COLOR=#e8bd89]</csv>[/COLOR]
 
Back
Top