Plugin documentation - What works best for you?

It has been almost 2 years since I published my first plugin on this forum. And with this experience, I have realized how important it is to have good plugin documentation, in order to facilitate the work of game developers, but also to avoid spending too much of my time on support.

After all, this is just a hobby for me, and an unpaid one, since my plugins are and will remain free. So it makes sense to invest my free time where it can be the most useful... and pleasant. And now that I have more time to give to this hobby again, I would like to know a little more about what kind of documentation works the best for you.

The poll here covers some of the different ways I've experimented with both as a plugin developer, but also as a game developer (when I still have some spare time for that). While there are many possibilities, feel free to explain why you chose them in the thread.

Thank you for your feedback!
There are plugins that have highly specific instructions to use and warrants a demo. Some plugins are plug and play and require no instructions at all. Comments can be useful but only if your target audience are other coders. There isn't a magic bullet solution, it needs to be appropriate for the nature of the plugin.
I can't speak for everyone...but I don't think there's anyone who will choose to go directly to the code and any comments in it as their first choice. For even the most experienced coder there's going to be some degree of translating what they read into their native thinking language...not to mention that stuff in the code is not going to be in order/in the same place.

I also don't think that several of your options count as "documentation" - talking about a promotional video (or even a tutorial video) is not immediately usable reference material.

You're fine if you just follow the pretty standard format: description, (explanation of parameters if necessary), plugin commands, function references.

If it's sufficiently complex, also provide access to a demo project.
For most, a list of script calls and plugin commands and explanations of paramaters in the help section of the plugin file is enough. There have been a few I've had to open the demo project for to see how it was implemented in context.
When making scripts/plugins, I treat myself as the user, and the possibility that I forgot how it works. If anything is complex, I would write a webpage about it. Especially when it comes to the battle system. For something that does not alter the visual, I don't need a screenshot.

but I don't think there's anyone who will choose to go directly to the code and any comments in it as their first choice. For even the most experienced coder there's going to be some degree of translating what they read into their native thinking language...not to mention that stuff in the code is not going to be in order/in the same place.
it won't be the first choice. But it is a choice nonetheless.
When the brief summary or the documentation doesn't help, I always look at the code and see how exactly it works. Sometimes there might be a limitation that the documentation doesn't tell you. The problem is, it is no longer a choice nowadays.
Depends on the type of plugin.
With simple plugins, extra information is always appreciated to reduce ambiguity, but if it's a simple plugin, I feel like a "quick start" guide should be at the top, and any extra detail is below that. I hate having to hunt through documentation when I just want to do something simple.
more complex plugins should really begin to consider the overall formatting of the help documentation. When plugins help section is just an endless wall of text with complex plugin commands/scripts (without any real examples!) it can just be exhausting to parse and make sense of.
I think for more complex things, breaking it down into each step/functionality, giving a well-written and concise explanation, and giving a few example use cases makes things easier to make sense of.
If it is especially complex, then videos showing it become very helpful to have, but not necessary.

It's also worth mentioning as a "nice-to-have" bonus is if there are a lot of commands/scripts/plugin commands the user will need to reference frequently then it's really pace-breaking to constantly (for example, Battle AI core) work on the enemy, apply the database changes, close the database, go to the plugins, scroll through them, find battle AI core, scroll the documentation, and find the note tag I am looking for. Close out, go back to the data base, and resume working on the enemy AI. In this case, I usually copy-paste the help information into a notepad that I keep open on my other screen. So, in a case like this, an appreciated "nice to have" would be a quick reference guide near the top of the plugin's help page that lists the note-tags and a short description of them so that they can quickly and easily be copied to a notepad. (I'd also probably mention in the quick reference section, "copy and paste this code into a notepad for quick reference!" because sometimes people get tunnel vision and just think about working within the editor)

I know you said you will only do free, but if you ever do decide to release a commercial plugin, it's also worth mentioning that without some sort of demo version of the plugin, then the video stuff and clear help documentation becomes especially important. I'm not going to drop cash on a plugin if I have any uncertainty about whether it will accomplish what I am trying to do in my game or not.
It really depends on the type of plugin and what exactly it's designed for, but for the most part documentation within the plugin and documentation on how to set it up is always a plus.

Example for Akea Animated Battle System 2, I had to reference the included documentation in order to figure out how to setup the plugin, so I could get some basic monster animations working that had more then the standard 3 frames, plus one monstrous dragon that scrolled down during the attack animation. (I might re-work it later)
Thank you for your votes and comments so far. They are very informative.

The first thing that surprises me when I read your posts is that the help section in the plugin seems to suffice for most types of plugins, even if using it is sometimes tedious, as @TheAM-Dol rightly explains it in their post. This is a good lesson, as I was thinking of reducing this section to the bare minimum and detailing the plugin's functionality in a dedicated wiki.

The second surprise is that videos (tutorial or promotional) don't seem to be in your favor. But after some reflection, this seems logical: why passively watch a video when you can manipulate/test the plugin directly in a demo game.

In the end, offering a demo game is just the continuation of the prototype that will be made anyway to test/debug the plugin. So it's not such a waste of time, as long as it remains a simple demo... and that the user doesn't expect to get very accomplished maps. :ewink:

it won't be the first choice. But it is a choice nonetheless.
When the brief summary or the documentation doesn't help, I always look at the code and see how exactly it works. Sometimes there might be a limitation that the documentation doesn't tell you.
On this point, I'd add that in the case of a plugin conflict, I think it's a good idea to be able to analyze the code of the plugins concerned to debug the game, and possibly ask the plugin developer to correct the conflicting part, or simply code a patch yourself. The code, like the comments, seems to me to be a source of documentation that shouldn't be neglected.

I know you said you will only do free, but if you ever do decide to release a commercial plugin, it's also worth mentioning that without some sort of demo version of the plugin, then the video stuff and clear help documentation becomes especially important. I'm not going to drop cash on a plugin if I have any uncertainty about whether it will accomplish what I am trying to do in my game or not.
Finally, you've touched on an important point. As long as this approach remains a hobby shared for free with the community, the minimum documentation effort should be accepted by users. But if it were to become a lucrative hobby, it's clear that a user has the right to expect a little more than the plugin's help section, and that it will be necessary to invest more in promotion and clear, comprehensive documentation.

Original thread: https://forums.rpgmakerweb.com/threads/plugin-documentation-what-works-best-for-you.160033/