Page MenuHomeFeedback Tracker

Crash with custom skeleton zombies/mutants client only
Closed, ResolvedPublic

Description

Made custom skeleton zombies, everything was working and was tested on 1.23. We had scheduled big update on server in future and and now some of the mutants crash client only.
Rpt, crash.log and error.log are empty.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Spawn the zombie
crash happens in few seconds, not instantly

Event Timeline

Geez closed this task as Resolved.Mar 13 2024, 1:40 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello d146ales.
There is a script call to GetBonePositionWS with invalid index on the infected from a players CommandHandler
Regards,
Geez

Sajid_Alfa added a subscriber: Sajid_Alfa.EditedMar 13 2024, 5:01 PM


Hello,
Now the client will crash when the player opens the inventory near this mutant. (press TAB)
and thank you the first advice really helped.

client log is clear and not point to anything

Hunterz added a subscriber: Hunterz.EditedMar 13 2024, 5:29 PM

In vicinityitemmanager remove hardcoded spine3 for zombiebase

			else if (entity && (entity.IsZombie() || entity.IsZombieMilitary()))
			{
				ZombieBase zombie = ZombieBase.Cast(entity);
				if (zombie)
				{
					entityPosition = zombie.GetBonePositionWS(zombie.GetBoneIndexByName("spine3"));
				}
			}

and change it to this

			else if (entity && (entity.IsZombie() || entity.IsZombieMilitary()))
			{
				ZombieBase zombie = ZombieBase.Cast(entity);
				if (zombie)
				{
					entityPosition = zombie.GetCenter();
				}
			}

otherwise any custom creatures based on zombiebase which not have bone spine3 will crash client

Just curious why it not produce crashlog

Its not resolved

			else if (entity && (entity.IsZombie() || entity.IsZombieMilitary()))
			{
				ZombieBase zombie = ZombieBase.Cast(entity);
				if (zombie)
				{
					entityPosition = zombie.GetBonePositionWS(zombie.GetBoneIndexByName("spine3"));
				}
			}

stil same