• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

Instantiate of abstract MVRScript's when using *.cslist's

MacGruber

Invaluable member
Developer
Wiki Contributor
Featured Contributor
Joined
May 11, 2020
Messages
1,736
Solutions
94
Reactions
3,355
In some cases it would make sense to have an abstract base class. For example an improved script base class that provides some utility methods, derived from MVRScript. It would need to be abstract, so it does not actually create a script instance. Some other class in the *.cslist would derive from it and provide the actual script instance.

Currently trying something like that causes an error message.

This should be a simple check for ScriptType.RawType.IsAbstract in MVRPluginManager.SyncPluginUrl before calling CreateScriptController (two locations). The warning "No MVRScript types found" would need to be triggered also when the array turns out to be only containing abstract classes.
 
Last edited:
Back
Top Bottom