Broken M4L patch

irijako's icon

Hi,
I was building M4L patches and found two instances of the same patch opening in Max. When I saved one of them and quit the other, things went completely wrong. I cannot open the patch anymore neither in Max nor Live. Now Live says "Device file broken" with error6. Using an editor, I could peek the binary which consists of text for the most part. I would like to recover the patch from the text but Max does not acycept editing this way. Is there any cure for broken M4L patch? Thank you for any advice.
-iri

irijako's icon

I am sorry for my confusion and self-reply. Finally I could successfully fix my broken patch. I opened the broken patch by changing the extension from .amxd to .maxpatch and copied the contents to new empty .amxd file.
-iri

11OLSEN's icon

i think you saved my day. the same happend to me with a device i'm working on over a half year. after saving it seem no longer to be a valid m4l device.
i was almost crying. then i found this thread. thank you so much