Godot Version 4.2.2
Windows 10
intro
Recently I rename my game’s files to snake case and got different errors.
I’m working on project with team so we use github desktop and changed gitconfig ignorecase = false
error 1
One of main issue is that I have Player
class and getting this error:
res://scripts/player/player.gd:1 - Parse Error: Class "Player" hides a global script class.
modules/gdscript/gdscript.cpp:2788 - Failed to load script "res://scripts/player/player.gd" with error "Parse error". (User)
When I ctrl+click on class, godot shows, that there still is an old path Player/player.gd
. But folder “Player” doesn’t exist anymore.
I tried to reconect script to a player, but it didn’t help.
error 2
I also got this error when opening project
Expected Image data size of 636x386x1 (DXT5 RGBA8 with 9 mipmaps) = 330032 bytes, got 330672 bytes instead.
drivers/gles3/storage/texture_storage.cpp:989 - Condition "image->is_empty()" is true. Returning: Ref<Image>()
I don’t have a clue what this means.
Questions
How to fix this errors?
What should I do after such crucial changes to keep project healthy?