-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In game documentation tool #85
Comments
I'm not sure static / lua files are that bad; we all use tools and it's easier to copy-paste some API calls for LuaC. Especially for people who are starting with
Is it easy enough to implement considering those formspecs might be interactive? GitHub + Lua files should be enough: we can simply edit text here, the problem with documentation is thinking in terms "things I need immediately while interacting with a block" and "what someone else needs". |
I do agree that static files are not that bad but lua files for large amounts of content imo is very bad because you have to watch for syntax and do escaping, things that should not be needed for content.
Might be that I did not fully understand this one, but if I did then I cannot see how is it easier to copy stuff from .lua file than .yaml or .md or .txt file that is formatted to be mergeable with diff tools?
Yes. Editing that content in game of course requires bit more than only reading content from files: integrated text editors possibly with simple markdown like parsers (or very restricted content like only sections with headers and text for each section).
Agreed with "Github" part here but not really with "Lua files" part because of reasons stated above. However "we can simply edit text here" still holds no matter what is file format. After thinking through these I think best way to proceed forward would be to define flat file database format that can be migrated easily to different format if needed. Possible formats that comes to mind would be:
|
And should not try to include in game documentation editors but keep that possibility open and consider that it might be added some day. |
Sure, I'd prefer either Markdown or a simplified version of it. Even if current library doesn't solve our requests, we can replace / rewrite it down the line. We can also use "titles" functionality and hide each text section behind some button, unless there's only one section for everything. YAML will not be as fun for docs, really.
Simplified Markdown might work, we probably can't use all Markdown's formatting capabilities in formspecs. |
Tool that can hold and display node documentation, maybe also docs for mobs.
Documentation management, how it should be done? Static files containing docs probably wont work very well and easily get outdated.
Allow editing documentation in game with some privileges or voting?
If in game editing of docs then would be good to still provide initial database and also have database in format that can be merged easily, that way database provided with tool could be updated in repository easily without special tools.
For MVP:
Above makes content files to be definition of registered / supported nodes for documentation tool, simply adding new content file should enable said node for tool without touching lua code at all.
The text was updated successfully, but these errors were encountered: