Originally Posted by
JohnWPB
I am so glad to see this!!!!
Ok 2 main thing covered above, and in countless other threads:
1) The background path:
Road Runner\Backgrounds
is perfect, I did this to comply some time ago with the DFX skin when transparencies became a reality, as who needs a backgrounds folder within each skin?!
2) Plugins path:
Road Runner\Plugins
Also Perfect.....
As these paths seem to be what everyone has settled on, I say go ahead and make this the "law of the land" and put that information in the first post in this thread. As mentioned, this stuff has been discussed and disussed so many times, its like crying wolf. Lets start with these 2 things to organize, and move forward from there. It is a good start, and if enforced, will start to fall into place.
Some notes on organizing the plugins:
All of the stand alone DLL's (Winamp.dll, GDIPlus.dll, MP3Art.dll and the likes) do NOT need to be in any specific location. As long as they are registered, they wil work. (All of mine are already in Road Runner\Plugins" on my system :D )
The harder part is many scripts are a combination of DLL's, .ini's, Exe's ect. (RRMedia, Movie Times, Traffic Cams, RRGas, RRPetrol, RRMail... just to name a few) are dependant on having folders in the RR Root directory.
It will be necessary to alter these plugins, to use the new \Plugins\ folder
For Instance
Plugins\RRMedia\
Plugins\MovieTImes\
Plugins\Traffic Cams\
ect ect ect
There actually is an easy ways to do this. A new RR.ini entry needs to be made, that is simply:
PluginsPath=c:\Program Files\Road Runner\Plugins\
I would not even make it an option in the RRConfig, just set the above line in the RR Installers default rr.ini file, and spread the word to everyone. (Die hard users can change this path to what they want by manually editing the rr.ini in a text editor if they really want to)
This will make it very easy for plugin creators to get the path from Road Runner, and append whatever folder structure from there.
Most scripts and plugins already contain code that gets $RRPATH$ to base things on, its just a matter of changing it to use $PluginPath$ instead.
For Instance in a script, something like this: (AutoIt in this case)
$PluginPath = $rr.getinfo("=$PluginsPath$")
$MyPath = PluginPath & "RRMedia\"
The $MyPath Variable would then contain:
c:\Program Files\Road Runner\Plugins\RRMedia\
So now you can read an ini from that folder easily in your script using that variable:
$MySetting = IniRead($MyPath & "AutoLaunch.ini", "Section", "Key", "Not Set")
This variable can be used throughout the plugin / script and will point to the correct location for any support ini's, text files, XML files ect ect.
This also gives those, that just do not like to conform to standards, the option to change that path in the rr.ini, Heck you could have:
PluginsPath=Z:\SomeCrazyPlace\My Plugins\
and the plugin, using the rr.ini pluginspath would then look in:
Z:\SomeCrazyPlace\My Plugins\RRMedia\
This seems like the best way to go, and will make it easy for the most part to update current scripts & plugins, by simply using the path from the rr.ini.
This will also force plugin creators to * N O T * use hard coded paths! I do not know how many posts I have seen where someone has installed Road Runner to D:\Road Runner and plugin xyz does not work, and script 123 bombs out with a file not found error.
Hope this all makes sence, and let me know if this seems like a good direction to go in.......