M4L: "Warning: you have multiple files in your search path with the name..."

radiotonga's icon

What do I have to do to have multiples M4L devices sharing the same files and not having this warning? Does M4L inherit the same search paths used by Max?

Jan M's icon

Yes search pathes in Max and M4L are the same.
Either store shared files in a central location (i.e. create a package) or place them inside the patchers folder of your device projects if you need several instances. The project folders don't need to be added to the search path. they are automatically included by the project.
j

Peter Castine's icon

Also, one of the most common mistakes along these lines that people make is to set up an abstraction around a common object and name the abstraction accordingly i.e., "print.maxpat" or "gate.maxpat" or the like.

The main name ("print" or "gate" or whatever) has to be unique inside your search path.

Lots of people also swear up and down that they've never done anything like that until they search with Spotlight. Then there's a "oh, yeah…" moment.

Lee's icon

it would be useful though if it printed out the other paths... I've often been caught out by bits and pieces of unfrozen max for lives devices hanging around - I'm now in the habit of checking these directories out, but a list of the conflicts it found would help speed up resolution

Peter Castine's icon

Sure, it would be très utile if Max would do what Lee suggests. But Spotlight goes a long way towards doing this for you.