So I’ve been made aware that the scripted material plugin that I’ve done up at work is causing a startup error on some artists’ machines (I’m oddly not getting this error on my machine):
“Extends class must be same superclass as scripted plugin, not: DirectX_9_Shader”
Now, I’ve found what appears to be a solution that involves waiting for the #postSystemStartup callback to fire before filein’ing the material plugin, but I can’t for the life of me get the callback to fire.
I’ve got this in a helperFunctions script in my #userStartupScripts folder:
callbacks.addScript #filePreOpenProcess "MatEditor.Close()" id: #shaderLoadFix
callbacks.addScript #postSystemStartup ("try (fileIn ("<p4 path to max stuff>\\ruUberShader.ms\")) catch ()") id:#loadUberShader
The first callback registers without a hitch, but the #postSystemStartup one never fires (I’ve tried replacing the function call with a print statement, too, just to double check). I’m not sure if it’s an execution order issue, though that doesn’t seem likely, since the #postSystemStartup callback should be around the last to fire on startup.
Any ideas (or alternatives?)
[edit]Crap, thought I was in the Languages forum.[/edit]