Bug #3767

Respawning into another player corpse

Added by Whisper over 5 years ago. Updated over 5 years ago.

Status:Closed Start date:08/18/2009
Priority:Immediate Due date:
Assignee:Whisper % Done:

100%

Category:Respawn
Target version:MAAS_East_Forests_Alpha-0.8

Description

Some respawn end up into another player character.
No control over character movement, but can chat, using the other player's identity.
Respawning brings up no respawn screen.
On reconnection, the roles list and spawn point list are empty, and player can end up into another player's corpse.

Error seen in RPT :
1 "Executing respawner.sqf" 2 Error in expression <this setVehicleVarName ''; = this; [this, 180] execVM 'vehicleInit.> 3 Error position: <= this; [this, 180] execVM 'vehicleInit.> 4 Error Reserved variable in expression 5 Error in expression <this setVehicleVarName ''; = this; [this, 180] execVM 'vehicleInit.> 6 Error position: <= this; [this, 180] execVM 'vehicleInit.> 7 Error Reserved variable in expression 8 player B 2-1-B:1 (Whisper) (763764004) has no role index set
1 group B 2-1-E (0x27cc6618) - network ID 2:238 2 - no main subgroup 3 Network simulation, time = 2098.743 4 group B 2-1-E (0x27cc6618) - network ID 2:238 5 - no main subgroup 6 group B 2-1-E (0x27cc6618) - network ID 2:238 7 - no main subgroup 8 group B 2-1-E (0x27cc6618) - network ID 2:238 9 - no main subgroup 10 group B 2-1-E (0x27cc6618) - network ID 2:238 11 - no main subgroup 12 group B 2-1-E (0x27cc6618) - network ID 2:238 13 - no main subgroup 14 group B 2-1-E (0x27cc6618) - network ID 2:238 15 - no main subgroup 16 Client: Object (id 2:35, type Type_121) is local - update is ignored.
1 "Executing respawner.sqf" 2 Error in expression < _this select 2; 3 _spawnPos = spawnsList select _spawnIndex; 4 _newPos = [(_spawnP> 5 Error position: <select _spawnIndex; 6 _newPos = [(_spawnP> 7 Error Zero divisor 8 File mpmissions\__CUR_MP.Chernarus\respawner.sqf, line 19
1 Client: Object 2:241 (type Type_144) not found. 2 *** player identity cannot be applied on person 6:15 - player 1123708693 not found 3 Error in expression <this setVehicleVarName ''; = this; [this, 180] execVM 'vehicleInit.> 4 Error position: <= this; [this, 180] execVM 'vehicleInit.> 5 Error Reserved variable in expression 6 Error in expression <this setVehicleVarName ''; = this; [this, 180] execVM 'vehicleInit.> 7 Error position: <= this; [this, 180] execVM 'vehicleInit.> 8 Error Reserved variable in expression 9 "tmpRoles = _Soldier_roles;" 10 "Executing respawner.sqf" 11 Error in expression < _this select 2; 12 _spawnPos = spawnsList select _spawnIndex; 13 _newPos = [(_spawnP> 14 Error position: <select _spawnIndex; 15 _newPos = [(_spawnP> 16 Error Zero divisor 17 File mpmissions\__CUR_MP.Chernarus\respawner.sqf, line 19 18 group O 1-4-B (0x47040c18) - network ID 2:251 19 - no main subgroup 20 Network simulation, time = 2527.181

History

Updated by Whisper over 5 years ago

  • Priority changed from High to Immediate

Updated by Whisper over 5 years ago

  • Target version set to MAAS_East_Forests_Alpha-0.8

Updated by Whisper over 5 years ago

  • Status changed from New to In progress
  • % Done changed from 0 to 80

Probable cause : use of a global variable name in init of newly created unit used for switching, init was executed globally, and the variable could point to non local unit just created on another client when respawns occured simultaneously.

New respawn script simplifies the system (no more visibility of the underlying unit creation) and removes the global variable usage

Updated by Whisper over 5 years ago

  • % Done changed from 80 to 100

Tested OK

Updated by Whisper over 5 years ago

  • Status changed from In progress to Resolved

Updated by Whisper over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF