Solved Catching when an ID collision occurs

Hello,

If there is a ID collision with a plugin, if you have a duplicate of a plugin for example, is it possible to somehow catch when an ID collision occurs?

With something I'm working on there might be multiple versions, a demo for example, and I'd want that to use the same ID, so saved files could carry over, but I'd want to alert the user if they had the demo and the full version installed at the same time.

Thanks,
Dan

Hi,

before registering your plugin in PluginStart, you can use FindPlugin with your plugin ID.

Another solution is to just use GetModulePaths and see if your modules is there twice. (maybe using some filename that are hardcoded)

Cheers,
Manuel

MAXON SDK Specialist

MAXON Registered Developer

Hi,

before registering your plugin in PluginStart, you can use FindPlugin with your plugin ID.

Another solution is to just use GetModulePaths and see if your modules is there twice. (maybe using some filename that are hardcoded)

Cheers,
Manuel

MAXON SDK Specialist

MAXON Registered Developer

Hi,

for the FindPlugin approach your plugin initialisation priorities should be correct though, so that you can load them in the correct order. Or alternatively you would have to check crosswise in both plugins if one of the others already has been loaded.

See here and here for details.

Cheers,
zipit

MAXON SDK Specialist
developers.maxon.net

thanks a lot @zipit

MAXON SDK Specialist

MAXON Registered Developer

Thanks, this is exactly what I needed!