Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Is it possible to enable or disable Plugins ingame?

Norstein

Villager
Xy$
0.00
Like the title states, I want to enable or disable plugins ingame. In my specific case, I use the Quasi Action Battle System and Quasi Movement System in my game, but I want to disable the ABS in certain maps.
Can anyone tell me how?
 

Xilefian

Adventurer
Xy$
0.00
Unfortunately, unless the Plugin has specifically coded the ability to disable itself (which would be very kind of them) - you cannot disable a Plugin in game.

The way Plugins work is that they re-write and modify the game-code at launch (Plugins are ran like programs, its their responsibility to modify the game-code to add in their behaviour). This modification cannot be undone without knowing what the Plugin changes and without having an original reference to the unmodified version of the game-code.

Even if the Plugin coded a way to disable itself (seriously I like the sound of this, I think Plugins should start doing this) then it would still leave residual logic behind, it's not going to get 100% cleaned up and removed. Global variables will stick around - unless the Plugin deletes them, but this may cause problems if other Plugins depend on these variables. Save data variables will also stick around.
 

Norstein

Villager
Xy$
0.00
Oh well, guess I have to switch its basic functionalities off inside the plugin then. Meh.

Anyway, thank you for your timely and precise answer.
 
Top