godot-escoria / escoria-issues

Central Escoria issue tracker
3 stars 0 forks source link

ESCLocation disabled (SILENTLY!) if missing global ID #362

Open jeancallisti opened 1 year ago

jeancallisti commented 1 year ago

ESCLocation disabled (SILENTLY!) if missing global ID

Scenario :

Create a room with everything required in it
The ESCLocation meant for the player's start has "Is start location" ticked, but "Global ID" is empty
Run the game (i.e. run the room)

Expected (good) :

**Some kind of error message** saying that this ESCLocation cannot be used by the engine

Observed (bad) :

The room starts without errors but the player appears at (0,0).
The player can walk around normally. It was just the startup location that got **ignored silently.**
BHSDuncan commented 1 year ago

@jeancallisti you might want to change your logging level to "WARN" under Escoria -> Debug -> Log Level. It defaults to ERROR, but under WARN, you'll see:

ESC (2023-06-10T13:49:27) W esc_object_manager.gd: Room has no ESCLocation node with 'is_start_location' enabled. Player will be set at position (0,0).

We can't make this into an error as by default errors are set to terminate the program.