I deleted the only instance of an Active Object from my frame while holding some of it's animations on the clipboard. Now the Active is still present in the library even though it's not actually in the game anywhere. Any idea on how I can delete it?



I deleted the only instance of an Active Object from my frame while holding some of it's animations on the clipboard. Now the Active is still present in the library even though it's not actually in the game anywhere. Any idea on how I can delete it?
If there's an event somewhere that creates said object at runtime, it won't be deleted from the frame even if you eliminate all instances at edit-time.
Does it go away if you save the project, close MMF, re-open it and then reload the project?




If you don't have an event that creates said object(s) at runtime, and saving the project and closing MMF2 doesn't fix the issue, then you have a bad object (or multiple bad objects). There are actually ways to get rid of them, though it isn't easy. Basically, you:
1.1. Copy all of the objects, except for the bad object(s), (DO NOT COPY OVER THE BAD OBJECT(S)!) into a new frame.
1.2. Copy all of the events, except for ones relating to the bad object(s), over to the new frame.
1.3. Manually re-create the bad object(s), if you actually still need them (though, if you deleted them, you probably didn't want them anymore in the first place, so this is probably pointless). Make a new object(s) in the new frame, export the graphics from the bad object(s), import them into the new object(s), manually add in all of the events that the bad object(s) had (into the new frame, obviously), etc.
1.4. If you want to keep the old frame (for back-up purposes), then make sure to re-name it so that it has something like "BACKUP" in its name. If you don't want the old frame, then delete it.
That's it! You should now have your old, bad object-less frame back! I've actually had to do this on occasion, though I haven't had to use step 1.3 before (not that I remember, anyway). Like, ever. As a result, I don't know if step 1.3 will work. Use it at your own risk.
If you keep getting bad objects (this may happen if your file is corrupted), then you should try doing this:
2.1. Copy over all of your frames (except for the ones with the bad objects) over to a new game/application.
2.2. Do steps 1.1-1.4 for all of the frames with bad objects.
2.3. Copy over the frames made using steps 1.1-1.4 into the new game/application.
2.4. Copy over any global events (other than the ones related to the bad objects) to the new game/application.
2.5 Save the new application (make sure to keep the old one as back up).
This should fix the issue, though I don't think I've had to do it (steps 2.1-2.5) before, so I cannot confirm that it will help at all. You should use this (just like step 1.3) at your own risk.


Even without transplanting code into a new frame, its possible to jiggle the toilet handle on MMF2 until it releases those objects from memory. I've had success eliminating these "phantom objects" by creating new copies of them, deleting their data and references- remove them from all event groups, delete actions that create them, etc, then save the project and close MMF2 and reload it and finally delete the last instance. Just keep messing with it any things that could be referencing it somehow, and it will eventually go away. But if all fails, like happygreenfrog says, you can just transplant everything from one frame into another and it will work perfectly swell. Heck, I've done it with a project that had a bajillion objects and ten thousand lines of code and MMF2 gave me no complaints about the copy/paste job.



Thanks a lot for the details, guys!
I've had these bad objects on rare occasions in the past, but this time thankfully it was because I had one event hidden away that referenced it. I thought MMF was going to delete these events when I deleted the object, thats what I thought it was saying anyway. The steps greenfrog listed are very useful, as I remember doing something similar in the past - I'll try and keep that in mind incase I ever need it in the future!
Thanks again guys!![]()