Re: Does this make sense to you?
Tweety wrote:
one thing that I don't quite understand is how you organize your scripts. you talk about a standard directory for scripts. for example standard.AutoPause does that mean its in the scripts directory under a directory standard?
Short answer: yes.
Java has a concept of "classpath" which is kind of like the path that your system searches for programs. It's a list of directories and/or jar files where ClassLoaders look for classes. Classes are organized into packages, and package names correspond to directory names relative to the classpath. (That's a Java thing, not my idea.)
The ClassLoader for scripts is created with a classpath that is determined by one of the application's config options, and the default value is a relative path, "scripts". If the program is installed in C:\WeaponM, and you run it from that directory, the relative path "scripts" resolves to C:\WeaponM\scripts. The ClassLoader would then look for the class "standard.AutoPause" in the file C:\WeaponM\scripts\standard\AutoPause.class.