Godot version 4.3.3
I’m new to Godot and followed heartbeasts’ rpg tutorial. Everything was fine until I got to episode 14. Around the 20 minute mark, I was supposed to add an extension for the hitbox from the files to the script and everything went crashing.
I can’t show the original problem because I’ve been working on it back and forth and so now the issue is with the “var” function? I don’t know what to do but I heard that the latest Godot engine doesn’t use setget the way anymore so I tried a second version and that ended up not working either.
What’s worse now is that I can’t safe save anymore and I don’t know what I did to trigger that but I’m stumped and having a hard time. Can someone tell me what I did wrong?
The error I get in the enginet:
“ERROR: Can’t use get_node() with absolute paths from outside the active scene tree.”
Error message from command prompt:
“ERROR: Safe save failed. This may be a permissions problem, but also may happen because you are running a paranoid antivirus. If this is the case, please switch to Windows Defender or disable the ‘safe save’ option in editor settings. This makes it work, but increases the risk of file corruption in a crash.”
Other examples:
at: (scene/main/node.cpp:1264)
the first image, “unexpected indentation” is as it says, emit_signal
isn’t supposed to be indented further, it should match health = value
’s indentation.
Sorry, I wrote the code wrong but I changed it and am still getting errors. Here’s the updated version. The coding is just like the one in the video so I wouldn’t know what else to change.
Well in this case it’s got the g
and i
flipped
emit_signal("no_health") # correct
vv
emit_sginal("no_health")
Hey, I just want to say thanks for letting me know and I fixed it, but now I’m back to the original confusion that was with the dropped .gd file! I do not understand why this chain is an issue that’s keeping me from advancing on with the video. Here’s a better image of the it. Thanks again for reaching out!
It’s saying this script is attached to a Position2D Node rather than an Area2D. You will need to find where it is attached and probably remove it or change the node’s type.
1 Like
That was the issue? Okay. I don’t know where to go from here but your advice paints more of a picture. I’ll see if I can find it.
Success! I was able to play the animation and do the things I previously did before by changing the hitbox into an Area2D node. I’m running into other issues but I think the videos will guide me in that area. Thank you so much for your help!