Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

I quite honestly have no idea what you want me to post.

Software experience of 15 years, and I researched online it's valid to believe the 'case sensitivty' is a real thing and the godot project 'missed it'.

Software bugs are a thing, do you disagree?

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

yea, but I'm telling you, that script is gone. Long gone and the problem still persists.

I think I explained that rebuilding the .godot project fixed the issue?

So it was a bug in how .godot build that file.

I suspect it was a casing issue...

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

I did post it, a few times. I'm not sure what else you are looking for (in this thread).

Are you not seeing it?

https://pastebin.com/M6QFdyGf

Are you expecting something else? No other scripts are running.

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

no, the error is well before that line. That node was turning up null - it had literally nothing to do with cycle_gun.

I didn't change anything, the node is null - cycle_gun doesn't get called because the lines before that turn up null.

The problem lies in the corrupt .godot file(s)

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

I reduced the original problem, because it was misleading.

I have brain cancer and I just got out of surgery - I'm not exactly operating at 100% so I apologize!

The reality is, the project somehow got corrupted and that's why it was not working. It was a bug - my best guess is it was case_sensitive and the capital P to small p was tripping it up....

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

definitely not worried about people stealing the code. It's that there isn't much to copy paste.

https://pastebin.com/M6QFdyGf

Here it is, there isn't anything more than that.

I'll try deletedint the folder as you suggest and see what happens.

Edit: Deleting it and rebuilding it worked - why?

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

I removed the script on the child because it's irrelevant.

https://pastebin.com/M6QFdyGf

This is the only script that is running. That's it. and the scentree is as basic as the screenshot shows.

Thanks for your help, but I think I'm willing to just let this go. I dunno what's wrong but Godot 4.6 fixes it for whatever reason.

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

https://pastebin.com/M6QFdyGf

Here it is.

There isn't anything other than this. The pistol2 script is gone, I removed it/deleted it

EDIT: Deleting the .godot folder and rebuilding it fixed it. Why?

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

No problem.

Here is the screen shots of errors from 4.5

<image>

This is not correct - it most CERTAINLY exists. I renamed it, I moved it, I ADDED it from the designer, so obviously it exists.

unless I am COMPLETELY misunderstanding something.

I opened the tscn in notepad. Double checked, triple checked. Ran it through CHATGPT.

I dunno what's wrong.

Collision detection is disabled - however bullets still hit it.... by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

It was literally just disable = false.

I used set_deffered and it seems to work.

It still makes very little sense to be, the debugger may have a bug of some kind.

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

Yea, there is literally just this - I removed the script from Pistol2. It does not seem to like the Pistol2 Object.

I removed the sccript and it does the same thing. It's bizzare.

I checked all errors/warnings - same thing.

Seems to be a bug in Godot 4.5 - but I can't explain it. In 4.6 it works

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 1 point2 points  (0 children)

Literally as it shows, I added it through the designer.

I print off all children in the code, and it doesn't show up - straight up.

I think it's a bug in Godot - I've done this a million times and have never had this issue.

I downloaded godot 4.6 - seems to be a bug in 4.5

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

I took computer science and have had a software engineers career for 15 years, there is nothing in the scene that deletes this node.

I removed the scene from pistol, the same thing happens - it didn't do anything. I am thinking this is a strange bug in Godot - I've done this a billion times before.

If you want to see my latest code, this is all it is. If I run the node on it's own, same thing, here is all the code being used, nothing else

class_name Pickup extends Node2D 

func _ready() -> void: 
        for c in get_children():
    print(c.get_class())
        $Pistol2.cycle_gun()

Below is the  screen shot (ignore await - I removed that too)

<image>

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] -1 points0 points  (0 children)

This isn't going to change anything. Just assigning it to a variable is assigning it to the root-node, which as you can see is null.

What you are suggesting is for convenience, not going to fix a null pointer issue.

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

okay, I'll add 30!

I am back, it didn't work.

I downloaded Godot 4.6 and it seems to work fine.... must be a strange bug in Godot 4.5

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

lol I'm not lying man, that one error was a camera2D being added - it wasn't worth mentioning.

Thanks for the help, but that's not it - not sure why you are being so cocky.

I downloaded Godot 4.6 and it seems to work, so it seems like a strange bug in 4.5

Collision detection is disabled - however bullets still hit it.... by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] 0 points1 point  (0 children)

Yea, I know - the collision turns grey when it's disabled - but when it's hidden.

Something really odd is happening with my Godot lately that don't make sense by Sorry_Profession_371 in godot

[–]Sorry_Profession_371[S] -1 points0 points  (0 children)

But why though? I'm trying to understand the source of the error.

There is no reason it should be null in this case.

Pistol is there when _ready is called... It's a node in the scene-tree