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

Remove specific zombies from the game

Skivholme

New member
Hi,

Does anyone know if its stil possible to remove a zombie from the game, on a dedicated server?

i've tried editing entitygroups.xml. Both renaming and deleting every entry of the zombie, but it just results in errors in the log file.

When the errors happens you can't see the other players movement, they just stay in the same place.

"2018-01-14T21:16:32 53.749 INF Spawning bloodmoon zombie from feralHordeStageGS16

NullReferenceException: Object reference not set to an instance of an object"

"NullReferenceException: Object reference not set to an instance of an object

at EntityGroups.GetRandomFromGroup (System.String _sEntityGroupName) [0x00000] in <filename unknown>:0

at AIDirectorBloodMoonParty.ZA (.World , .EntityPlayer , Vector3 , Vector3 ) [0x00000] in <filename unknown>:0

at AIDirectorBloodMoonParty.Tick (.World _world, Double _dt, Boolean _canSpawn) [0x00000] in <filename unknown>:0

at AIDirectorBloodMoonComponent.Tick (Double _dt) [0x00000] in <filename unknown>:0

at AIDirector.SA (Double ) [0x00000] in <filename unknown>:0

at AIDirector.Tick (Double dt) [0x00000] in <filename unknown>:0

at World.OnUpdateTick (Single _partialTicks, ArraySegment`1 _activeChunks) [0x00000] in <filename unknown>:0

at GameManager.GJ () [0x00000] in <filename unknown>:0

at GameManager.Update () [0x00000] in <filename unknown>:0"

Even though feralHordeStageGS16 doesn't include any of the zombies i have removed.

 
Do a search for "text in files" in the config folder and remove any reference in any file to that zombie that is NOT in entityclasses.xml

Then it's gone.

Or you made an XML formatting typo somewhere...

 
I find it works better to add prob="0" to each entry rather than deleting them, so that line is still there(satisfying the code) but won't spawn. If that is the only entry in a given group, remember to add something else that can spawn in it's place.

 
As another option, you could rewrite the entry for the zombie you want to be rid of in entityclasses. Simply make a copy of all the data of a zombie you don't mind doubling up on, give the copy the name of the zombie you want to be rid of, and then comment out or delete the offending one. Viola.

-Much- easier than trying to dig around for every reference to the bugger.

 
As another option, you could rewrite the entry for the zombie you want to be rid of in entityclasses. Simply make a copy of all the data of a zombie you don't mind doubling up on, give the copy the name of the zombie you want to be rid of, and then comment out or delete the offending one. Viola.
-Much- easier than trying to dig around for every reference to the bugger.

Thank you, i went with this approach and it worked flawlessly

 
Back
Top