The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I followed the tutorial on this page exactly.
Copy/pasted the code too.
Godot AutoLoad Tutorial

It said to add these two lines to each scene as per their template...

func _on_Button_pressed():

func _on_Button_pressed():

However, it generates these errors.

Global not declare in scope
Condition debug parse err line >= 0 is true. returned: __null
Can't use get_node() with absolute paths from outside the active scene tree.

so, that means that the tutorial is wrong.

Also.... why can't I upload images?

in Engine by (54 points)
edited by

You can only link images. So you'll need to find a image hoster somewhere. I use #bot_cmd on the Godot Discord Server to host the images I post here lol.

1 Answer

–1 vote

EDIT: Autoload is case-sentitive.

I think you missed the whole thing - the most important step in the tutorial:

The next step is to add this script to the autoLoad list. Open Project > Project Settings from the menu, switch to the “AutoLoad” tab and select the script by clicking the .. button or typing its path: res:// Press “Add” to add it to the autoload list:


by (4,246 points)
edited by

No , You just assumed that. Which is wrong
I did that too... I would show a screenshot, but this forum doesn't let me.

Anyone else have any idea what is happening to this demo tutorial??

Did you click the Add button? I did missed that step countless times when I was starting out.

Again no.... the is in the autolaod.
I did all that

No one believes me.

Here is a screenshot I had to upload to my own server,

Screenshot of GlobalGD LOADED.

It's case sensitive. Rename global to Global. Or just write

For image hosting, you can use Imgur and link it here.

That worked.

Someone needs to fix the tutorial because it is capitalized in it.

Newbies like me are not always going to think of case sensitive, especially when the error says nothing about case sensitive..

Newbies assume, that if Godot puts out a tutorial, it must be right.

Thanks for helping!

Singletons is conventionally written in PascalCase so the first letter is capitalized.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.