Question About Importing Timelines at Runtime #2200
Replies: 1 comment 1 reply
-
Hmm... This won't be super straight-forward. It will work for timelines if you use the direct path, but characters and variables won't work as easily. Variables are stored in a dictionary in the project settings. You might be able to update that dictionary dynamically from an external dict I guess. Characters mainly won't work, because the unique-identifier directory (basically a fancy lookup dictionary) will not take paths in user:// into account (only in res://). It might also be possible to merge two of these directories (if you want to simply export the directory from another project to make it easier.) By the way the same problem of course applies to timelines if you want to use the unique identifieres (e.g. in a jump event).
This assumes your users somehow provide this info by having exported/given you their character and timeline directories (which are also saved in the project settings!). My main concern would be how you would handle it if someone imports variables/characters that clash with existing characters/variables. |
Beta Was this translation helpful? Give feedback.
-
So I want to Import Timelines at Runtime from the
user://
path that are not being created by the same dialogic.Or in another words make it possible that, people can share their Timelines with characters, variables and so on to other people who can import them at runtime.
I tried this
Dialogic.start(path_to_timeline)
and it actually works but im getting an error on the variables and the character.Variable:
Character: The image will just not show up.
My guess it that these need to be imported in another way? if this is even possible.
If so i would love to get some help.
I use Godot4 and Dialogic2 btw.
Beta Was this translation helpful? Give feedback.
All reactions