Skip to content

Timeline scripts edit in external editor are not refreshed even after close and reopen #2245

@hsandt

Description

@hsandt

The problem

Describe the bug
This is basically #935 from Dialogic 1, except instead of .json, we have the issue with the new plain text format.

I am editing my timeline scripts in some external editor, but there is no way to reload it in Godot.

Closing and reopening the resource in the Dialogic panel still shows the old content. Then, modifying and saving any change in Godot will overwrite the external changes without warning as described in the old json issue.

Unfortunately this is a known issue with Godot itself relying too much on old cache: godotengine/godot#30302

However, even if Dialogic is unable to fix this core part of Godot, maybe it could at least add some button to force reload new content - or have some routine to detect file change and force refresh content displayed in the Dialogic panel?

To Reproduce
Steps to reproduce the behavior:

  1. Create a timeline and add some text
  2. Right-click on timeline > Open in External Program (some text/code editor)
  3. Modify or add new lines. Save in external editor
  4. Switch back to Godot: no change
  5. Close (middle-click) and reopen timeline (double-click on it in FileSystem)
  6. Modify on Godot side and save
  7. Back to external editor: changes were overwritten

Expected behavior
External editor should be able to apply changes that Godot would reload, or at least a button would allow manual reload. Close and reopen should also force reload.

Screenshots
N/A but can provide video if needed

System (please complete the following information):

  • OS: Linux Ubuntu 22.04
    Godot Version: v4.2.1.stable.official [b09f793f5]
    Dialogic Version: main branch, commit 2858c4e (2024-05-15)

Solutions

Workaround

I'd have to close and reopen Godot completely as usually with resources edited externally, but that's cumbersome.

However, at least it allows a writer to do most of the job when Godot is closed, then run Godot and only fix small issues directly in the Dialogic Panel.

Possible fixes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐞Something isn't workingEnhance ⚡Improve a feature's workflow.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions