ChatGPT 'suggests' there is a sub-tab in the Debug tab where I can manually insert code while stepping through debugging but I can't find anything and I need to insert update() every step to see changes to my display since it doesn't seem to do it automatically.

  • xyz replied to this.

    I think you can evaluate expressions with the debugger (unless I'm confusing the Godot debugger with a different one), but you can't insert code.

    CharGPT and Gemini are very useful, but they sometimes invent things that don't exist.

      Don't listen to xyz. He doesn't know what he's taking about.

      xyz
      It's good for a lot of stuff if you know to take it with a grain of salt. (just like humans lol)
      And I did say 'suggest'.

      • xyz replied to this.

        DaveTheCoder
        Specifically things that are logical or specific:; it can't do precise operations like keep track of the number of fingers on a hand from images alone. People aren't computers but we still manage to 'calculate' with our brainy neural-networks but unlike computers we can make mistakes so we are really simulating calculations. Some people have amazing simulators and others are born with a simulator made of Lincoln Logs.

        • Edited

        Shadowphile Sadly it can't problem solve. Just like most humans who were duped into thinking it can. It's a match made in heaven.

        Whenever "ai" is discussed I get inspired to have a bit of fun with it:

        • Edited

        Here's another fun one. I sure do have a lot of luck in causing the bot to completely fail, given how clueless I am about LLMs 😃

          xyz youre just too smart for even humans, staph pls..

          As for jeepeety, last time i checked they been training on old docs, so not sure you can trust the knowledge about godot that evolves every day..

          Skip to 8th minute

          This guy has a console that he uses to inject values and you can see results.. not sure how to summon this console

          • xyz replied to this.

            kuligs2 Looks like a custom plugin. You can parse and execute expressions from script: https://docs.godotengine.org/en/stable/classes/class_expression.html

            func foo():
            	print("HEY")
            
            func _ready():
            	var e = Expression.new()
            	e.parse("foo()")
            	e.execute([], self)
            • Edited

            kuligs2 To make a console you need a LineEdit to enter commands and a TextEdit to echo them out. Put them in a window and there's your console.
            To execute exactly what the guy in the video is executing:

            func spawn_grenade(pos):
            	print("spawning grenade at: ", pos)
            
            func _ready():
            	var e = Expression.new()
            	var command = "spawn_grenade($SomeNode.position + $SomeNode/Child.position)"
            	command = command.replace("$", "get_node(\"")
            	command = command.replace(".", "\")." )
            	e.parse(command)
            	e.execute([], self)

            You can of course get much more sophisticated with a bit of help from regex.

            Some more "artificial intelligence" from my latest session:

              xyz id say it did a great job. it printed this sentence with words in reverse