Hi!
I am encountering a really strange issue and I truly cannot comprehend what is causing it.
I recently added a save system to my game and I took this opportunity to also make the menus (main menu, pause menu, etc.). For all of those menus I added a panel with a placeholder texture in them.
Once my save/load system was functionnal I wanted to make my menus prettier and change the textures in the panel.
Here is the issue:
When I change the texture, it sometimes break the load system. It depends on the texture and on the panel. Some texture break the game if they are put in the panel of the load menu but not in the panel of the main menu, etc. The error message is always the same.
I made this video showing the bug. You can see that in the beginning, I can launch the game and load the last save (via the "continue" button). But when I change the texture, the game launches but the continue button refuses to work.
Here is the full error message;
E 0:00:02:0743 Dictionary.cs:644 @ TValue Godot.Collections.Dictionary2.get_Item(TKey): System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
2.get_Item(TKey)
<Erreur C#> System.Collections.Generic.KeyNotFoundException
<Source C#> /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Dictionary.cs:644 @ TValue Godot.Collections.Dictionary
<Pile des appels>Dictionary.cs:644 @ TValue Godot.Collections.Dictionary`2.get_Item(TKey)
save_load_manager.cs:195 @ void save_load_manager.TrueLoad(string, string)
main_menu.cs:84 @ void main_menu._on_continue_button_down()
main_menu_ScriptMethods.generated.cs:104 @ bool main_menu.InvokeGodotClassMethod(Godot.NativeInterop.godot_string_name&, Godot.NativeInterop.NativeVariantPtrArgs, Godot.NativeInterop.godot_variant&)
CSharpInstanceBridge.cs:24 @ Godot.NativeInterop.godot_bool Godot.Bridge.CSharpInstanceBridge.Call(nint, Godot.NativeInterop.godot_string_name, Godot.NativeInterop.godot_variant**, int, Godot.NativeInterop.godot_variant_call_error, Godot.NativeInterop.godot_variant*)
It does not seem to be linked to the file size or the file extension.
Any help would be really appreciated, thank you very much!