dialogic icon indicating copy to clipboard operation
dialogic copied to clipboard

Adding character - invalid get index

Open aR-Dee opened this issue 2 years ago • 6 comments

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:

  1. Go to Dialogic plugin
  2. Click on Add character
  3. Save
  4. restart Godot
  5. Character folder in Dialogic editor is empty

Expected behavior Character folder in Dialogic editor contains created characters

Screenshots Screenshot 2022-08-06 at 22 02 47

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

aR-Dee avatar Aug 06 '22 20:08 aR-Dee

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

coppolaemilio avatar Aug 06 '22 20:08 coppolaemilio

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!

aR-Dee avatar Aug 06 '22 20:08 aR-Dee

Glad it was just that! cheers :)

coppolaemilio avatar Aug 06 '22 20:08 coppolaemilio

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. Screenshot 2022-08-06 at 22 47 16

Thanks!

aR-Dee avatar Aug 06 '22 20:08 aR-Dee

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

coppolaemilio avatar Aug 06 '22 21:08 coppolaemilio

Based on your comment - maybe this helps, unless I missed something obvious: Screenshot 2022-08-07 at 00 09 32

aR-Dee avatar Aug 06 '22 22:08 aR-Dee

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.

CakeVR avatar Apr 08 '24 20:04 CakeVR