Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_next_dialogue_line is not available when run in editor #473

Closed
stephanbogner opened this issue Feb 6, 2024 · 1 comment · Fixed by #474
Closed

get_next_dialogue_line is not available when run in editor #473

stephanbogner opened this issue Feb 6, 2024 · 1 comment · Fixed by #474
Assignees
Labels
bug Something isn't working

Comments

@stephanbogner
Copy link

First of all: This project is so great! It's so much fun to work with, because it's so easy to adjust the whole appearance and behaviour to my needs ❤️

Describe the bug

  1. When I run await dialog_resource.get_next_dialogue_line("") in the editor using @tool ...
  2. ... I get the following error: res://main.gd:8 - Invalid call. Nonexistent function 'get_next_dialogue_line' in base 'Resource (DialogueResource)'.
  3. It works perfectly fine once the game is started

Context

I want to show the content of some on-screen speech bubbles already while I am editing.

Affected version

  • Dialogue Manager version: 2.33.0
  • Godot version: v4.2.1.stable.official [b09f793f5]

To Reproduce

  1. Create a new dialog
  2. Attach the following script to a node
@tool
extends Node2D

@export var dialog_resource:DialogueResource

func _ready():
	if dialog_resource:
		print(await dialog_resource.get_next_dialogue_line(""))
  1. Choose your dialog as the dialog_resource
  2. Close and reopen the scene tab to trigger the error

Expected behavior

That get_next_dialogue_line() also works inside the editor

Screenshots

Not applicable

@stephanbogner stephanbogner added the bug Something isn't working label Feb 6, 2024
@stephanbogner
Copy link
Author

Might be related to #471

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants