godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.13k stars 19.95k forks source link

Active script changing when autosaved #94181

Open PossiblePanda opened 1 month ago

PossiblePanda commented 1 month ago

Tested versions

System information

Godot v4.3.beta2 - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4060 Laptop GPU (NVIDIA; 31.0.15.4692) - 13th Gen Intel(R) Core(TM) i7-13700HX (24 Threads)

Issue description

When my Godot autosaves, it automatically changes my active script to "game.gd", even if I have it closed. This issue persists when reopening Godot and restarting my computer.

Steps to reproduce

Unsure on how to reproduce.

Minimal reproduction project (MRP)

[Uploading MRP.zip…]()

Here is my project.

PossiblePanda commented 1 month ago

Found out the cause, I had a texture "pillwhite.jpg" which failed to import. Whenever it would autosave it would throw this error, and put me back on game.gd core/io/image_loader.cpp:101 - Error loading image: res://Assets/Textures/items/icon/pillwhite.jpg Error importing 'res://Assets/Textures/items/icon/pillwhite.jpg'.