Skip to content

Crash when caught in stealth challenges: player.hook_string.points is null #1798

@Denza755

Description

@Denza755

If the player is captured in a stealth challenge, the following error is shown:

SCRIPT ERROR: Invalid access to property or key 'points' on a base object of type 'Nil'.
          at: PlayerHook.tessellate_string (res://scenes/game_elements/characters/player/components/player_hook.gd:213)
          GDScript backtrace (most recent call first):
              [0] tessellate_string (res://scenes/game_elements/characters/player/components/player_hook.gd:213)
              [1] shatter_string (res://scenes/game_elements/characters/player/components/player_hook.gd:220)
              [2] _on_player_mode_changed (res://scenes/game_elements/characters/player/components/player_hook.gd:109)
              [3] _set_mode (res://scenes/game_elements/characters/player/components/player.gd:111)
              [4] defeat (res://scenes/game_elements/characters/player/components/player.gd:242)
              [5] _on_player_detected (res://scenes/game_logic/stealth_game_logic.gd:16)
              [6] _update_player_awareness (res://scenes/game_elements/characters/enemies/guard/components/guard.gd:204)
              [7] _process (res://scenes/game_elements/characters/enemies/guard/components/guard.gd:165)

Image

added this fix

for this

Image

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions