7days2mod / Valmod-Overhaul

Valmod Pack - Overhaul Edition
25 stars 11 forks source link

Object Reference Not Set To An Instance Of An Object #11

Open Gabraii opened 7 years ago

Gabraii commented 7 years ago

Attempting to kill or otherwise interact with hostile NPCs generates the error "Object reference not set to an instance of an object". I believe the error to be tied to the entity class npcSurvivorTemplate in some way, as all entities sharing said class exhibit the same issue.

Adarcer commented 7 years ago

What hostile npc if your trying to kill a bandit. this is not a problem of valmod.

Gabraii commented 7 years ago

It's a Jason.

Adarcer commented 7 years ago

hmm... I thought jason was disabled cheak enitygroups under jasongroup and roaming bossgroup if there disabled you could try to enable them. and it is tied into the entityclasses npcsurvivortemplate as you stated. you may need to disable it or change it to a zombie template i believe the survivor template is bugged and missing a hitbox, etc atm.

Gabraii commented 7 years ago

Noted. Said change works (switching from survivortemplate to zombietemplate) although it makes Jason into a glorified feral zombie.

Adarcer commented 7 years ago

What do you mean by that .. does he run like a feral ?

Gabraii commented 7 years ago

It means he stops attacking other zombies, from what I've observed. He moves extremely quickly, does not have a weapon equipped, and behaves like a normal zombie, albeit a 'feral' type (not necessarily a feral walker).