Page MenuHomeFeedback Tracker

Deploying with a loadout with a backpack causes error (EXP BRANCH)
Assigned, NormalPublic

Description

Spawn using a loadout that includes a backpack in conflict mode (experimental build 0.9.9.31) causes a null pointer:
15:04:23.870 SCRIPT (E): Virtual Machine Exception

Reason: NULL pointer to instance

Class: 'SCR_PlayerRadioSpawnPointCampaign'
Entity id:6917529027641083060

Function: 'OnItemAdded'
Stack trace:
scripts/Game/GameMode/Respawn/SCR_PlayerRadioSpawnPointCampaign.c:10 Function OnItemAdded
scripts/Game/GameMode/Respawn/SCR_PlayerRadioSpawnPoint.c:36 Function ActivateSpawnPoint
scripts/Game/GameMode/Respawn/SCR_PlayerSpawnPoint.c:89 Function EnablePoint
scripts/Game/GameMode/Respawn/SCR_PlayerSpawnPointManagerComponent.c:125 Function OnPlayerSpawnFinalize_S
scripts/Game/GameMode/SCR_BaseGameMode.c:1145 Function OnPlayerSpawnFinalize_S
scripts/Game/GameMode/SCR_GameModeCampaign.c:1351 Function OnPlayerSpawnFinalize_S
scripts/Game/GameMode/Respawn/SCR_RespawnSystemComponent.c:389 Function OnPlayerSpawnFinalize_S
scripts/Game/Respawn/RequestHandling/Base/SCR_SpawnHandlerComponent.c:162 Function FinalizeRequest_S
scripts/Game/Respawn/RequestHandling/Base/SCR_SpawnRequestComponent.c:463 Function FinalizeRequest_S
scripts/Game/Respawn/RequestHandling/Base/SCR_SpawnRequestComponent.c:428 Function AwaitFinalization_S
scripts/Game/game.c:821 Function OnUpdate

Details

Severity
Block
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
19045.3086
Category
General
Steps To Reproduce

Create a loadout that includes a backpack in a conflict scenario and spawn with that loadout.
Click on spawn.

NULL pointer to instance

Class: 'SCR_PlayerRadioSpawnPointCampaign'
Entity id:6917529027641083060

Function: 'OnItemAdded'
Stack trace:
scripts/Game/GameMode/Respawn/SCR_PlayerRadioSpawnPointCampaign.c:10 Function OnItemAdded
scripts/Game/GameMode/Respawn/SCR_PlayerRadioSpawnPoint.c:36 Function ActivateSpawnPoint
scripts/Game/GameMode/Respawn/SCR_PlayerSpawnPoint.c:89 Function EnablePoint
scripts/Game/GameMode/Respawn/SCR_PlayerSpawnPointManagerComponent.c:125 Function OnPlayerSpawnFinalize_S
scripts/Game/GameMode/SCR_BaseGameMode.c:1145 Function OnPlayerSpawnFinalize_S
scripts/Game/GameMode/SCR_GameModeCampaign.c:1351 Function OnPlayerSpawnFinalize_S
scripts/Game/GameMode/Respawn/SCR_RespawnSystemComponent.c:389 Function OnPlayerSpawnFinalize_S
scripts/Game/Respawn/RequestHandling/Base/SCR_SpawnHandlerComponent.c:162 Function FinalizeRequest_S
scripts/Game/Respawn/RequestHandling/Base/SCR_SpawnRequestComponent.c:463 Function FinalizeRequest_S
scripts/Game/Respawn/RequestHandling/Base/SCR_SpawnRequestComponent.c:428 Function AwaitFinalization_S
scripts/Game/game.c:821 Function OnUpdate

Additional Information

experimental build 0.9.9.31

Event Timeline

Gramps created this task.Jul 5 2023, 11:07 PM
Gramps renamed this task from Spawning a loadout with backpack causes error to Spawning a loadout with backpack causes error (EXP BRANCH).Jul 8 2023, 3:35 PM

This issue persists in 0.9.9.38

	override void OnItemAdded(IEntity item, BaseInventoryStorageComponent storageOwner)
	{
		if (SCR_CharacterRankComponent.GetCharacterRank(storageOwner.GetOwner()) == SCR_ECharacterRank.RENEGADE)
			return;
		
		super.OnItemAdded(item, storageOwner);
	}

It gets stuck on that if statement there. loading a saved loadout with a backpack is fine though, just not a custom loadout with a backpack.

Geez changed the task status from New to Assigned.Jul 14 2023, 11:20 AM
Gramps renamed this task from Spawning a loadout with backpack causes error (EXP BRANCH) to Deploying with a loadout with a backpack causes error (EXP BRANCH).Jul 16 2023, 5:28 PM