View Single Post
Author Message
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 09-15-2020 , 15:32   [L4D2] Vscripts / VSLib ERROR (the index 'Z_SURVIVOR' does not exist)
Reply With Quote #1

I have a plugin that works as follows:
Unlock the last safe door, a count starts, if you don't get to the safe room on time the door will close and you will die!

My error:
HUD countdown counter does not exist. View image
The capture I took from a server that is not mine, but no I will not upload the plugin because it is private.

In "logs" no errors are recorded, I only get this in the console:

Code:
AN ERROR HAS OCCURED [the index 'Z_SURVIVOR' does not exist]

CALLSTACK
*FUNCTION [GetSurvivorCharacter()] c:/games/steam/steamapps/common/left 4 dead 2/left4dead2/scripts/vscripts/VSLib/Entity.nut line [3376]
*FUNCTION [unknown()] c:/games/steam/steamapps/common/left 4 dead 2/left4dead2/scripts/vscripts/VSLib/EasyLogic.nut line [1996]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[this] INSTANCE
[_id] 4
[ents] TABLE
[params] TABLE
[this] TABLE
[funcName] "OnGameEvent_player_spawn"
[idx] 0
[useTable] TABLE
[bWarnIfMissing] false
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "player_spawn"
[this] TABLE
[params] TABLE
[event] "player_spawn"
[this] TABLE
Even so the plugin works, if you don't get to the safe room on time you will die, what does not work is the HUD counter
I just want to know why I get that error in the console and what I did wrong.
__________________
Sorry i don't speak english very well

--->My name is Source and I'm on Steam<---
Discord: Source#9382

Last edited by Tank Rush; 09-15-2020 at 15:41.
Tank Rush is offline