Skip to content

GameState: Fix "Guessed quest ..." message when running in editor - #2640

Open
wjt wants to merge 1 commit into
mainfrom
wjt/gamestate-fix-guessed-quest-message-when-running-in-editor
Open

GameState: Fix "Guessed quest ..." message when running in editor#2640
wjt wants to merge 1 commit into
mainfrom
wjt/gamestate-fix-guessed-quest-message-when-running-in-editor

Conversation

@wjt

@wjt wjt commented Jul 31, 2026

Copy link
Copy Markdown
Member

For reasons unknown (to me), quest.resource_path is blank in this code
path when I run a scene in the editor with F6:

Guessed quest from scene res://scenes/dev/basics/teleporter/teleporter_test_2.tscn

(Note the double space.)

We already know the quest's path because we loaded it by path after
guessing it. Print that instead. Move the print to before the
ResourceLoader.load() call: if that call fails, then the messages will
be in a more logical order.

For reasons unknown (to me), `quest.resource_path` is blank in this code
path when I run a scene in the editor with F6:

> Guessed quest  from scene res://scenes/dev/basics/teleporter/teleporter_test_2.tscn

(Note the double space.)

We already know the quest's path because we loaded it by path after
guessing it. Print that instead. Move the print to before the
`ResourceLoader.load()` call: if that call fails, then the messages will
be in a more logical order.
@wjt
wjt requested a review from a team as a code owner July 31, 2026 19:08
@github-actions

Copy link
Copy Markdown

Play this branch at https://play.threadbare.game/branches/endlessm/wjt/gamestate-fix-guessed-quest-message-when-running-in-editor/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

@felixwalberg felixwalberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, if the quest path is already known from the path we used to guess it there is no need to try and get it another way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants