Log in

View Full Version : Avisynth 2.0.7+ (090103) plug-in loading problem


stickboy
29th January 2003, 18:59
I don't use the plug-in autoloading mechanism in the same way as I presume everyone else does.

Instead of dumping all my plug-ins in the same directory and setting the PluginDir registry key to that, I point the key to a directory containing the following script:
global avisynth_plugin_directory = "..\plugins\"

LoadPlugIn(avisynth_plugin_directory + "2DCleanYUY2\_2DCleanYUY2.dll")
LoadPlugIn(avisynth_plugin_directory + "antiblink\AntiBlink.dll")
LoadPlugIn(avisynth_plugin_directory + "convolution3d\Convolution3D.dll")
LoadPlugIn(avisynth_plugin_directory + "decomb\DecombLegacy.dll")
LoadPlugIn(avisynth_plugin_directory + "DNR\Dnr2.dll")
LoadPlugIn(avisynth_plugin_directory + "dup\Dup.dll")
LoadPlugIn(avisynth_plugin_directory + "lanczos3\lanczos3.dll")
# LoadPlugIn(avisynth_plugin_directory + "MJPEGcorrect.dll")
# LoadPlugIn(avisynth_plugin_directory + "mpeg2dec\MPEG2DEC.dll")
LoadPlugIn(avisynth_plugin_directory + "mpeg2dec2\MPEG2DEC2.dll")
LoadPlugIn(avisynth_plugin_directory + "msharpen\MSharpen.dll")
LoadPlugIn(avisynth_plugin_directory + "smartsmoothyuy2\SmartSmoothYuy.dll")
LoadPlugIn(avisynth_plugin_directory + "SmoothDeinterlacer\SmoothDeinterlacer.dll")
LoadPlugIn(avisynth_plugin_directory + "smoothhiq\SmoothHiQ.dll")
LoadPlugIn(avisynth_plugin_directory + "TomsMoComp\TomsMoComp.dll")
LoadPlugIn(avisynth_plugin_directory + "warpsharp\warpsharp.dll")(I do it this way because it lets me organize my plugins into subdirectories, and AFAICT Avisynth does not recursively descend into them automatically. Plus, it lets me switch between different versions of mpeg2dec, for example, without namespace conflicts.)

Anyway, as of the Jan 9, 2003 build of Avisynth 2.0.7+, the plug-ins aren't being loaded anymore by this script. (This worked fine in the build from November 2002.) What changed?

It seems that LoadPlugin no longer does anything in autoloaded scripts. I can put LoadPlugin("asldkfj") into the autoloaded script, and Avisynth doesn't complain. I'm sure that the script gets loaded, though, because if I put other errors into the script, Avisynth complains as it should.

Any ideas?

(I'm running Windows 2000sp3 if that matters...)

sh0dan
29th January 2003, 23:26
Rename the script to "something.avsi". Sorry - it wasn't put into the changelog!

WarpEnterprises
31st January 2003, 23:30
You can also use VersionString and VersionNumber for conditionally doing something in a script...

AviSource(...)
VersionNumber()==2.5 ? subtitle("Its 25") : subtitle("Its something else")