As some people might have read, I plan to script my own "engine" with MV and are currently in early planning.
One of the question that I'm currently thinking about is wether I should write a lot of modular plugins, or try to keep the plugins as compact as possible.
I'll give you one example:
I'll need to add several new values to the actors. Some are attributes for limiting equipment and a few other things ("You need average strangth to use an iron hammer").
A second part would be a modification of TP and adding a fourth point resource (creating a matrix for body/mind and wound/exhaustion), and a few more changes to the actors.
Functionally those changes would be independent on each other as they would affect different parts of the default engine, but they would all end up on a modified status screen (I don't like to go back to the main menu to select a different screen, just to check other data for the same actor).
So one option is to write a different plugin for each area (attributes, energies and the other values each in different plugins), each containing only the code for handling those values.
The advantage would be to make them independently usable and testable, but it would result in modifications to the actor from several plugins and require a mess of conditional codes for the status screen (which of those plugins is currently included and change the display accordingly).
On the other hand, I could combine all into one actor plugin. That plugin would not need the conditional checks for other plugins, and would be a lot easier to write and maintain - but the different changes would be combined and could not be used independently from each other.
I have to admit that I haven't decided if I will make the engine available publically or not - if I use it only for my own games, the engine type writing would be a no-brainer, but I consider making it available to others, and then the modular division into several plugins might have advantages. Another point is that writing as a complete engine is probably less work than adding the modularity.
What are your Opinions on this?
One of the question that I'm currently thinking about is wether I should write a lot of modular plugins, or try to keep the plugins as compact as possible.
I'll give you one example:
I'll need to add several new values to the actors. Some are attributes for limiting equipment and a few other things ("You need average strangth to use an iron hammer").
A second part would be a modification of TP and adding a fourth point resource (creating a matrix for body/mind and wound/exhaustion), and a few more changes to the actors.
Functionally those changes would be independent on each other as they would affect different parts of the default engine, but they would all end up on a modified status screen (I don't like to go back to the main menu to select a different screen, just to check other data for the same actor).
So one option is to write a different plugin for each area (attributes, energies and the other values each in different plugins), each containing only the code for handling those values.
The advantage would be to make them independently usable and testable, but it would result in modifications to the actor from several plugins and require a mess of conditional codes for the status screen (which of those plugins is currently included and change the display accordingly).
On the other hand, I could combine all into one actor plugin. That plugin would not need the conditional checks for other plugins, and would be a lot easier to write and maintain - but the different changes would be combined and could not be used independently from each other.
I have to admit that I haven't decided if I will make the engine available publically or not - if I use it only for my own games, the engine type writing would be a no-brainer, but I consider making it available to others, and then the modular division into several plugins might have advantages. Another point is that writing as a complete engine is probably less work than adding the modularity.
What are your Opinions on this?