dialogic
dialogic copied to clipboard
Adding character - invalid get index
The problem
Describe the bug When trying to add character I get an issue as in screenshot; json exists but Dialogic cant' pick it up; randomly after restart it shows but cannot edit the character entry; Fresh reinstall of Dialogic plugin "fixes" the issue only until next Godot startup (then it again looses the character entries and the folder in Dialogic editor is emtpy - but json's are in dialogic folder
To Reproduce Steps to reproduce the behavior:
- Go to Dialogic plugin
- Click on Add character
- Save
- restart Godot
- Character folder in Dialogic editor is empty
Expected behavior Character folder in Dialogic editor contains created characters
Screenshots
System (please complete the following information):
- OS: MacOS 12.5 (M1 vrsion)
- Godot Version: 3.4.4
- Dialogic Version: 1.4.3-stable & from main
Are you using the Tiled importer plugin? if so, please read how to fix it here: https://github.com/coppolaemilio/dialogic/issues/1027#issuecomment-1206317262
Thanks! Just finished debugging the plugin and learned that the .import files are causing this. Will go with the solution from the linked issue. Cheers!
Glad it was just that! cheers :)
so since I did not have the Tiled importer, I changed the code and added
and !'.import'
in DialogicUtil.gd to CHARACTER and TIMELINES section (which is already in TODO list)- seems to do the trick for now (havent used other options yet - might be same issue later on.
Thanks!
This should probably be fixed with the proper get extension call. https://docs.godotengine.org/en/stable/classes/class_string.html#class-string-method-get-extension
I will leave it open because it can be fixed
Based on your comment - maybe this helps, unless I missed something obvious:
As this issue is very old and gotten stale, I will close this. Maybe @zaknafean knows something about it.
If the problem persists, let us know.