• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. 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.

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

MacGruber

Invaluable member
Developer
Wiki Contributor
Featured Contributor
Joined
May 11, 2020
Messages
1,690
Solutions
93
Reactions
3,332
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