Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project file becomes invalid and several buttons and options break after deleting a Sprite #9220

Closed
gm-bug-reporter bot opened this issue Jan 30, 2025 · 3 comments
Assignees
Labels
crash Crashes or other major stability issues with the GameMaker IDE

Comments

@gm-bug-reporter
Copy link

Description

I had an object in my game whose image I wanted to change, so I changed the image in the Sprite asset setting as normal, but when I loaded the game it still used the old image, so I deleted the Sprite and made a new one with the image I wanted to use, and changed the Sprite used by its object, but that prevented the game from running. I tried to Ctrl+Z to bring back the Sprite I deleted (realizing now, the next morning, that that does not bring back deleted assets), and that caused an error to pop up on my screen that said the project had become unstable, and to save and close the IDE, which I did, but when I tried to reopen my project it said that the Sprite that I deleted from the project files was missing, and that the project could not be opened because of it. In trying to fix it, I went into the project files and copied another Sprite and renamed the copy to what the old Sprite was named, but it still would not allow me to open the project. (I also accidentally deleted another Sprite from my project folder, while the project was not open, and that seems to have just compounded the issue.)

I decided that the only thing left that I could do would be to make a new project and copy over my old work, but now the Save, Create Executable, Create Executable and Launch, Debug, Run, Stop, Clean, and Game Options icons in the top-left of the screen are greyed out and unpressable, as well as many options under the drop-down menus above them. I also tried to copy over the asset folders from the old project, and the assets do not show up in the Asset Browser (not sure if that's a known bug or not), and I also can't open the .yy files of those assets with Add Existing from the right-click menu in the Asset Browser.
I now have no ability to bring back my rooms, Sprite and Object settings and variable definitions, stop the game from the IDE, or open the Game Objects whatsoever, and to save or run the game I can only use Ctrl-S or F5.

I am using IDE v2024.11.0.179 and Runtime v2024.11.0.226.

Steps To Reproduce

Just delete a Sprite that the IDE deems integral to the entire existence of the project, apparently

Which version of GameMaker are you reporting this issue for?

IDE v2024.11.0.179 Runtime v2024.11.0.226

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

Attached Files

  • Unstable project.zip

882c771f-7254-4614-997f-ef5626c38869

@gm-bug-reporter gm-bug-reporter bot added the crash Crashes or other major stability issues with the GameMaker IDE label Jan 30, 2025
@Boiaaang
Copy link

Hi, I'm the one who sent this error report. After restarting Gamemaker, the buttons and settings that were previously inaccessible became interactable again, which is strange considering I restarted my PC and closed and reopened Gamemaker several times before and after then. While writing this I returned to the Gamemaker home screen to see if the broken project was able to be opened again. It was not, but when I returned to my replacement project those buttons and settings were greyed out again. Another side effect I realized between sending my original error report and this comment was that the preview icons for assets were all changed to the default white box, and tilesets rendered in the room tile editor as white exclamation marks, invisible in the Asset Manager/tile manager sidebar on the right and in-game, and normal in the Inspector. This issue also returned when I re-opened the project. This is a very strange bug!

@stuckie stuckie self-assigned this Jan 31, 2025
@stuckie stuckie moved this from Triage to Backlog in Team Workload Jan 31, 2025
@stuckie
Copy link

stuckie commented Jan 31, 2025

The buttons becoming inaccessible is likely #8340 so this will be fixed in an upcoming release.

As for the project itself, it looks like some bits have gotten corrupted somehow. To fix it:
sprites/spr_almond/spr_almond.yy has the various name fields as sOrb - they need changed to "spr_almond"
sprites/sCoin/sCoin.yy also has various name fields as sOrb - they need changed to sCoin.
Additionaly, the .yyp itself is missing a reference to sCoin, so you'll need to add this in to the resources list ( under spr_almond, for instance )

{"id":{"name":"sCoin","path":"sprites/sCoin/sCoin.yy",},},

That should get your project working again.
We highly recommend setting up Source Control and using it often so that if mistakes happen you can easily revert them, especially if you accidentally fiddle with the files on disk.

If you have any other issues, please let us know.

Thanks!

@stuckie stuckie closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Done in Team Workload Jan 31, 2025
@Boiaaang
Copy link

Boiaaang commented Jan 31, 2025 via email

@YYBartT YYBartT moved this from Done to Not Planned in Team Workload Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Crashes or other major stability issues with the GameMaker IDE
Projects
Status: Not Planned
Development

No branches or pull requests

2 participants