I’ve been working on a game called ‘WAX’ for quite a while now and have been asking for help on this forum for quite a while as well.
Recently, I found that Godot will not let me open up the scenes but all of the scripts open up just fine!
Whenever I try, it repeatedly says, “Error while loading file ‘Filename.tscn’.”
I’m honestly really scared that the files have been corrupted because they are NOT backed up to a USB or Hard drive of some sort.
I don’t know if this has to do with the disk space, but I have cleared out a ton of files.
tscn files are text files.
Open a troubled one in a text editor and see if you can figure out the problem.
Usually this happens when you move files around outside the editor.
Also, it’s a perfect opportunity now to learn how version control systems work, like Git and GitHub. You’ll thank yourself in the future for spending some time on learning it early on.
Version Control Systems allow you to easily keep a history of changes made to your project, like rewindable backups. There are a few options, many use git because it is widespread and free, including free online hosts like github and gitlabs.
Notice the line in that .tscn file: path="res://UIWindow/ui_window.gd"
If that path were to become invalid because I moved the ui_window.gd file then I would see an error much like what you see.
So my suggestion is to look at your files and see if they are valid.
I am not sure Word can load text files directly (I would think it would), and I don’t know how google would do it, but for sure VS Code can load those .tscn files as text files.
So I don’t know if my suggestion is the right track.
Nope, again shows nothing. I think that’s why it didn’t work. I think the file was corrupted and all the data was lost. I’m not very sure, but I did recover the code. It’s not much to work off of, but I WILL definitely TRY to get the game back into it’s original state.
I also tried it with a node that would open in Godot, and it showed the right text so I guess that didn’t get corrupted.
Next time, I think I’ll back everything up to a USB so I can recover everything.
You are going to get very tired of backing up to USB.
It does take a bit of effort to learn how to use GIT and GITHUB but you don’t have to become an expert.
And it will save you from losing your stuff.
there is a program called github desktop that will make it all 100 times easier for you so you dont have to use git commands and stuff with github desktop its just a few buttons
Here’s a tutorial I wrote that will get you started with GitHub and Godot and assumes you know nothing. Also teaches you how to do it in Godot so you don’t need another client.
Did you ever export a copy of your game? Like make a version to test or show someone else? If you did, you can decompile that and retrieve all your scripts.