After I delete a certain object and try to save the file, I get this pop-up message.
Does anyone know what the crack is with this?
Printable View
After I delete a certain object and try to save the file, I get this pop-up message.
Does anyone know what the crack is with this?
This probably means there is a crash while MMF2 is saving the MFA, but it's hard to say why or where. Close MMF2, reload your application and retry to delete the object?
Thanks Yves, I closed MMF, went back in tried to nuke the object again - same message, sadly. Tried that a few times.
I tried deleting any action in the object's column. There weren't any to start with anyway.
Another thing I tried was creating a blank object, replacing the problem object with the new one in the event editor, but that didn't help.
Guess I've just got too many garbled objects in my age-old application.
Basically, the object is sitting in the main frame editor window. It appears in the frame editor list and the event editor list.
I guess something goes corrupt when the application is saved without it.
In that case you should try send the .MFA file to Yves along with a little guide how to reproduce.
If it is a foolproof way to reproduce the error then I'm almost sure it can be fixed.
Happens every time.
Uploading just the affected frame to keep the filesize down: http://xbomber.co.uk/files/xb2-08-024-m00.zip
Have always had trouble with undeleteable objects, just normally, you delete them and they don't disappear. Here, they disappear then you can't save.
in the frame, there's an object called xb_shadow.
If you can get rid of it, you're better than I am.
It seems this object (shadow_xb) is incorrectly referenced in a Create Object action but not in the list of objects in the event editor, or something like that, and when you delete it the event handling routines crash when they access this Create Object action. Not sure if Francois can fix it. If not, you'll have to keep the object in the frame... A solution that might work could be to delete all the Create Object actions, save the application, reload it and then recreate all these actions, but given their number it's not a realistic solution...
Was this application modified with several versions of MMF1 and/or MMF2? There are missing objects in the event editor.
Yeah, the file stemmed from Games Factory, went to mmf1 and then to 2. So, it's done very well.
The "bad objects" are just objects that are things that the level engine uses in later levels and which haven't been added yet to the earlier ones (because they're not needed).
Is not MMF's fault.
I might just try to paste the events and objects into a new frame when I get the time. Thanks for looking into it!
I wonder whether it might be possible to write a script to read an MFA file, delete any actions that aren't quite ... valid and rip out any objects that aren't properly called or referenced.
It could save it under a different filename and you could see how much removal took place and whether you could live with it.
Haha!
I cured it!
I created a new event and told the action to create the 'shadow'_xb object.
I then went to frame editor and deleted it from the frame window. - Saved fine.
Then went back to event editor and deleted the event from there. Object disappears from top of event editor. - Saved fine, object gone.
Awesome!
Unfortunately, I still can't seem to find a way to delete undeleteable objects.
This one was different because it was in the frame window and you were fine to delete it. You just couldn't save after.
The ones that still stump me are the ones that linger in the frame editor list. If you drag it from there to the frame window, it appears at the end of the event editor list and they just can't be removed.
No biggy but it just makes things a bit untidy.