Page MenuHomeFeedback Tracker

Entities with empty or no rvmats in Health config will segfault the game when attempting to set health (1.27 Experimental)
Awaiting internal Testing, NormalPublic

Description

This also happens when those items are spawned by CE in less than pristine state.

Affected entities have a DamageSystem config in one of the following forms:

		class DamageSystem
		{
			class GlobalHealth
			{
				class Health
				{
					hitpoints=100;
					healthLevels[]=
					{
						
						{
							1,
							{}
						},
						
						{
							0.7,
							{}
						},
						
						{
							0.5,
							{}
						},
						
						{
							0.3,
							{}
						},
						
						{
							0,
							{}
						}
					};
				};
			};
		};

or

		class DamageSystem
		{
			class GlobalHealth
			{
				class Health
				{
					hitpoints=100;
					healthLevels[]=
					{
						
						{
							1,
							{""}
						},
						
						{
							0.7,
							{""}
						},
						
						{
							0.5,
							{""}
						},
						
						{
							0.3,
							{""}
						},
						
						{
							0,
							{""}
						}
					};
				};
			};
		};

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Modding
Steps To Reproduce
  1. Spawn any entity with a Health config like shown above.
  2. Set health (either by calling SetHealth or letting CE do it if spawned by CE).
  3. Game segfaults shortly after.

Event Timeline

lava76 created this task.Fri, Jan 17, 10:51 AM
lava76 edited Steps To Reproduce. (Show Details)
lava76 renamed this task from Entities with empty or no rvmats in Health config will segfault the game when attempting to set health to Entities with empty or no rvmats in Health config will segfault the game when attempting to set health (1.27 Experimental).Fri, Jan 17, 10:53 AM
Geez changed the task status from New to Awaiting internal Testing.Fri, Jan 17, 11:32 AM
Geez added a subscriber: Geez.Fri, Jan 17, 3:51 PM

Hello lava76.
Can you please provide more details? Such as item examples and send us the crash dumps, if the game crashes.
Regards,
Geez