Friday, 21 March 2025

Don't panic in the shithole

 Sometimes a tiny stone can cause a big trouble and you could just ignore it so easily.

Godot kept showing me error message related to a StaticBody2D node. But the node I was looking at was a CharacterBody2D node. I even recreated a new node but it didn't work. ChatGPT also lead me into an infinite loop.

Cindy should send out a signal when she finishes talking with Eugene. Claudia should catch that signal and starts to moving and show herself. However this never succeeded. We ( me and ChatGPT ) have gone through the scripts line by line, added a lot of print() for debugging but it never worked out.

Then I realize I need to understand each line in the script, it's the human time. Then I notice the path of the node in one of the lines leads to a node without a script attatched to it. Should it have something to do with the problem of the previous StaticBody2D error? Then I asked ChatGPT and changed the path, and it worked! All errors are gone! The three characters now run as expected. I am so happy.

So when in a shithole, don't lose hope, switch to human time, make sure each line is understood, calm down, everything will be alright.

No comments:

Post a Comment

Don't panic in the shithole

 Sometimes a tiny stone can cause a big trouble and you could just ignore it so easily. Godot kept showing me error message related to a Sta...