Help Updating a Plugin

Godot Version

Godot Version 4.2.1

Question

I am trying to update my project from Godot 3.5 to 4.2.1, and in my 3.5 version project I was using the dialogic plugin. When I updated Godot I also updated my dialogic plugin by deleting my addons folder and adding the compatible dialogic version, but when I try to enable dialogic in the plugin menu I get a popup warning message that says:

“Can’t add Autoload:
Invalid name.
Must not collide with an existing global script class name.”

and when I try to run my project I get an error in this code block:

func _input(event):
if get_node_or_null(“DialogNode”) == null:
if event.is_action_pressed(“ui_accept”) and active:
get_tree().paused = true
var dialog = Dialogic.start(“timeline-” + item_name)
dialog.process_mode = Node.PROCESS_MODE_ALWAYS
dialog.connect(“timeline_end”, Callable(self, “unpause”))
add_child(dialog)

at the line:

		var dialog = Dialogic.start("timeline-" + item_name)

the error says:

“Could not find script for class “Dialogic”.”

Any help is appreciated thank you.

Sounds like it is already existing so it won’t let you use the same name again. Not sure what is going on but I you could try going back to the 3.5 version, disabling the plugin before deleting it, and then doing all the upgrade stuff.

1 Like

You were right I have to: Disable Dialogic → delete addons folder and other dialogic folder → update Godot → install new version of dialogic. Thank you!

I have the exact same problem altough i haven’t updated my project from an older version. The fix Dowda mentioned doesn’t seem to be working for me. So does anyone got a clue what is should do.