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

Deleting an object that has been assigned as the object following for a view will corrupt the project, making it give compile and project load errors #8652

Closed
KormexGit opened this issue Dec 9, 2024 — with GM Bug Reporter · 4 comments
Assignees
Labels
ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached
Milestone

Comments

@KormexGit
Copy link

Description

If you assign an object as the object for a view to automatically follow and then delete that object, the reference to the object in the room files will not be cleared. This makes it so the project cannot be compiled, and if you close it and attempt to reopen it, it will give project load errors. The only way to recover the project is to manually edit the .yy file for every room the object was used for view following in.

Steps To Reproduce

  1. Create an object
  2. Open up a room's view settings and assign the object under Object Following
  3. Delete the object
  4. The project is now broken

Which version of GameMaker are you reporting this issue for?

IDE v2024.1100.0.703 Runtime v2024.1100.0.719

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

Windows 10.0.22631.0

48e9a486-b132-4fbb-831c-690d9a9a833b

@gm-bug-reporter gm-bug-reporter bot added ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached labels Dec 9, 2024
@stuckie stuckie self-assigned this Dec 10, 2024
@stuckie stuckie moved this from Triage to Todo in Team Workload Dec 10, 2024
@stuckie stuckie added this to the 2024.13 milestone Dec 10, 2024
@stuckie stuckie moved this from Todo to In Progress in Team Workload Mar 4, 2025
@zreedy zreedy closed this as completed Mar 4, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Workload Mar 4, 2025
@gurpreetsinghmatharoo gurpreetsinghmatharoo moved this from Done to Ready for QA in Team Workload Mar 5, 2025
@scott-dunbar scott-dunbar self-assigned this Mar 5, 2025
@scott-dunbar
Copy link
Collaborator

I can no longer reproduce this with the given steps but the project attached to this does still fail to open due to a missing object

Reopening for review in triage

Tested in IDE v2024.1300.0.764 Runtime v2024.1300.0.774

@scott-dunbar scott-dunbar reopened this Mar 5, 2025
@github-project-automation github-project-automation bot moved this from Ready for QA to Triage in Team Workload Mar 5, 2025
@stuckie
Copy link

stuckie commented Mar 5, 2025

Yes.. the project is broken because of this.
It will need more thought on how to fix this as the serialiser has failed it on loading, because it cannot find the resource reference.
It is also part of a GMRView which is not a resource itself, so our normal way of repairing these cannot work.

@stuckie
Copy link

stuckie commented Mar 6, 2025

Going to mark this particular issue as closed now, as it should no longer happen.
For tracking how we can fix broken projects, please see: #9650

@stuckie stuckie closed this as completed Mar 6, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in Team Workload Mar 6, 2025
@scott-dunbar
Copy link
Collaborator

Verifying as fixed based on above discussion regarding already broken projects.

@scott-dunbar scott-dunbar moved this from Done to Verified in Team Workload Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached
Projects
Status: Verified
Development

No branches or pull requests

3 participants