Hey! I’m currently working on a project for school and attempting to write my own dialogue system (for some reason our school has blocked access to Assets…) and came across a tutorial on Youtube. Works pretty well, but problem is, it’s written for Godot 3. I’m using 4.2. Most of the script has been pretty easy to fix up, but my teacher and I have been stuck on this bit here.

It’s giving the error, “Invalid argument for “connect()” function: argument 2 should be “Callable” but is “self” .

Neither of us are sure how to add it in/fix this; This is our first time using Godot so we’re a little stuck. This has been my last option for dialogue which is supposed to be a pretty big part of my game😭 Any suggestions are appreciated!!

https://docs.godotengine.org/en/stable/getting_started/step_by_step/signals.html#connecting-a-signal-via-code

object.signal.connect(_your_function)
object.connect("signal_name", _your_function)

A Callable is [a] type that represents a stand-alone function or method, which is why you get the error. Your 'teacher' should know at least how to find and navigate the documentation.

5 days later

What kind of "jolly ol' fella" would block "assets" and leave youtube available?? By assets you mean built in docs? As you could just hold CTRL button and click on the .connect() and it would open up the docs. And explain what you can pass.

Ive been translating from 3.xx to 4.xx gdscript too 😃 Its a curveball

Don't attempt 3.x tutorials with 4.x. It'll just needlessly complicate your learning process.