hi all! I wish my first post was more elegant than this and feel pretty ashamed to ask but I wasted couple hours trying to sort this out
as I am doing some random tutorials, I am requested to do a super basic taskā¦ print()ā¦ and it just refuses toā¦ Iām 99% that it is a āāmeāā problem but I donāt know where to look at anymoreā¦
I have looked around, and googled my issue. most of the time it was people not toggling the message tab (thankfully that wasnt my caseā¦) because my standard message is toggled on.
I also looked at my debug settings, my stdout is enabled eveything seems fine.
no errors no warning but no printā¦
now I am at the point of having only that line in my gdscriptā¦ :
func _ready(): print(āWTFā)
thanks, looking forward to know what am I missing!
Are you looking in the right place for the output?
The print command prints to the console and that is usually seen in the editor at the bottom under Output (Ouput should be blue in the editor)
Output from the print command will be prefaced with something like this:
Godot Engine v4.2.stable.official.46dc27791 - https://godotengine.org
OpenGL API 3.3.0 - Compatibility - Using Device: NVIDIA - GeForce 8600 GTS
--- Debugging process stopped ---
Alternatively, are you pressing the right run button?
The arrow button is to run the main code (which you specify) and the movie clapper button is to run the current scene being edited.
thanks, I think that was it. I had no extends so I guess my script was attached to nothing?
after you said it, I just squeezed a print(āwtfā) under my extends CharacterBody2D and wtf showedā¦
I had the feeling my script was not attached to anythingā¦ could this been the case?
got it! that now explains why I never got that print message! thanks again everyone, now I can get back to my tutorials with the peace of mind and with a bit more knowledge