minetest_modding_book/_en/quality/releasing.md

215 lines
7.0 KiB
Markdown
Raw Normal View History

2015-01-11 23:05:52 +03:00
---
title: Releasing a Mod
layout: default
2018-07-15 21:36:35 +03:00
root: ../..
2018-10-19 16:29:07 +03:00
idx: 7.6
2018-07-15 21:13:16 +03:00
redirect_from: /en/chapters/releasing.html
2015-01-11 23:05:52 +03:00
---
## Introduction <!-- omit in toc -->
2015-01-11 23:05:52 +03:00
2018-04-02 12:56:30 +03:00
Releasing, or publishing, a mod allows other people to make use of it. Once a mod has been
released it might be used in singleplayer games or on servers, including public servers.
2015-01-11 23:05:52 +03:00
- [License Choices](#license-choices)
- [LGPL and CC-BY-SA](#lgpl-and-cc-by-sa)
- [CC0](#cc0)
- [MIT](#mit)
- [Packaging](#packaging)
- [README.txt](#readmetxt)
- [description.txt](#descriptiontxt)
- [screenshot.png](#screenshotpng)
- [Uploading](#uploading)
- [Version Control Systems](#version-control-systems)
- [Forum Attachments](#forum-attachments)
- [Forum Topic](#forum-topic)
- [Subject](#subject)
2015-01-11 23:05:52 +03:00
2015-02-22 13:28:37 +03:00
## License Choices
2015-01-11 23:05:52 +03:00
2018-10-03 22:28:55 +03:00
You need to specify a license for your mod. This is important because it tells other
people the ways in which they are allowed to use your work. If your mod doesn't have
a license, people won't know whether they are allowed to modify, distribute or use your
2018-10-03 22:28:55 +03:00
mod on a public server.
2015-01-11 23:05:52 +03:00
2018-04-02 12:56:30 +03:00
Your code and your art need different things from the licenses they use. For example,
Creative Commons licenses shouldn't be used with source code,
but can be suitable choices for artistic works such as images, text and meshes.
2015-01-11 23:05:52 +03:00
2018-04-02 12:56:30 +03:00
You are allowed any license; however, mods which disallow derivatives are banned from the
2018-10-03 22:28:55 +03:00
official Minetest forum. (For a mod to be allowed on the forum, other developers must be
2018-10-27 05:10:37 +03:00
able to modify it and release the modified version.)
2018-10-03 22:28:55 +03:00
Please note that **public domain is not a valid licence**, because the definition varies
in different countries.
2015-01-11 23:05:52 +03:00
### LGPL and CC-BY-SA
2018-04-02 12:56:30 +03:00
This is a common license combination in the Minetest community, and is what
2018-10-27 05:10:37 +03:00
Minetest and Minetest Game use.
You license your code under LGPL 2.1 and your art under CC-BY-SA.
This means that:
2015-01-11 23:05:52 +03:00
2015-04-13 21:58:06 +03:00
* Anyone can modify, redistribute and sell modified or unmodified versions.
* If someone modifies your mod, they must give their version the same license.
2015-01-11 23:05:52 +03:00
* Your copyright notice must be kept.
2018-10-27 05:10:37 +03:00
### CC0
2015-01-11 23:05:52 +03:00
2018-10-27 05:10:37 +03:00
These licenses allow anyone to do what they want with your mod,
which means they can modify, redistribute, sell, or leave-out attribution.
2018-04-02 12:56:30 +03:00
These licenses can be used for both code and art.
It is important to note that WTFPL is strongly discouraged and people may
choose not to use your mod if it has this license.
### MIT
This is a common license for mod code. The only restriction it places on users
of your mod is that they must include the same copyright notice and license
in any copies of the mod or of substantial parts of the mod.
2015-02-22 13:28:37 +03:00
## Packaging
2015-01-11 23:05:52 +03:00
2018-10-27 05:10:37 +03:00
There are some files that are recommended to include in your mod
before you release it.
2015-01-11 23:05:52 +03:00
### README.txt
2018-10-27 05:10:37 +03:00
The README file should state:
2015-01-11 23:05:52 +03:00
* What the mod does.
* What the license is.
2018-10-27 05:10:37 +03:00
* What dependencies there are.
2015-01-11 23:05:52 +03:00
* How to install the mod.
2018-10-27 05:10:37 +03:00
* Current version of the mod.
* Optionally, the where to report problems or get help.
2015-01-11 23:05:52 +03:00
### description.txt
This should explain what your mod does. Be concise without being vague.
2018-10-03 22:28:55 +03:00
It should be short because it will be displayed in the content installer which has
limited space.
2015-01-11 23:05:52 +03:00
Good example:
2015-01-11 23:05:52 +03:00
2018-10-03 22:28:55 +03:00
Adds soup, cakes, bakes and juices.
2018-10-27 05:10:37 +03:00
Avoid this:
(BAD) The food mod for Minetest.
2015-01-11 23:05:52 +03:00
### screenshot.png
2016-03-17 17:57:13 +03:00
Screenshots should be 3:2 (3 pixels of width for every 2 pixels of height)
2018-10-03 22:28:55 +03:00
and have a minimum size of 300 x 200px.
2016-03-17 17:57:13 +03:00
2018-10-03 22:28:55 +03:00
The screenshot is displayed in the mod store.
2015-01-11 23:05:52 +03:00
## Uploading
2015-01-11 23:05:52 +03:00
2018-10-03 22:28:55 +03:00
So that a potential user can download your mod, you need to upload it somewhere
publicly accessible. There are several ways to do this, but you should use the
approach that works best for you, as long as it meets these requirements, and any
others which may be added by forum moderators:
2015-01-11 23:05:52 +03:00
* **Stable** - The hosting website should be unlikely to shut down without warning.
2018-04-02 12:56:30 +03:00
* **Direct link** - You should be able to click a link on the forum and download the file
2015-01-11 23:05:52 +03:00
without having to view another page.
2018-10-03 22:28:55 +03:00
* **Virus Free** - Mods with malicious content will be removed from the forum.
2015-01-11 23:05:52 +03:00
2018-10-03 22:28:55 +03:00
### Version Control Systems
2015-01-11 23:05:52 +03:00
2018-10-03 22:28:55 +03:00
It is recommended that you use a version control system which:
2015-01-11 23:05:52 +03:00
2018-04-02 12:56:30 +03:00
* Allows other developers to easily submit changes.
2015-01-11 23:05:52 +03:00
* Allows the code to be previewed before downloading.
* Allows users to submit bug reports.
The majority of Minetest modders use GitHub as a website to host their code,
but alternatives are possible.
2018-10-03 22:28:55 +03:00
Using a GitHub can be difficult at first. If you need help with this, for
information on using GitHub, please see:
2015-01-11 23:05:52 +03:00
* [Pro Git book](http://git-scm.com/book/en/v1/Getting-Started) - Free to read online.
* [GitHub for Windows app](https://help.github.com/articles/getting-started-with-github-for-windows/) -
2018-04-02 12:56:30 +03:00
Using a graphical interface on Windows to upload your code.
2015-01-11 23:05:52 +03:00
### Forum Attachments
2018-10-03 22:28:55 +03:00
As an alternative to using a version management system, you can use forum attachments to share
your mods. This can be done when creating a mod's forum topic (covered below).
2015-01-11 23:05:52 +03:00
2018-10-03 22:28:55 +03:00
You need to zip the files for the mod into a single file. How to do this varies from
2018-04-02 12:56:30 +03:00
operating system to operating system.
2018-10-27 05:10:37 +03:00
This is nearly always done using the right click menu after selecting all files.
2015-01-11 23:05:52 +03:00
2018-10-03 22:28:55 +03:00
When making a forum topic, on the "Create a Topic" page (see below), go to the
"Upload Attachment" tab at the bottom.
Click "Browse" and select the zipped file. It is recommended that you
2018-04-02 12:56:30 +03:00
enter the version of your mod in the comment field.
2015-01-11 23:05:52 +03:00
<figure>
<img src="{{ page.root }}/static/releasing_attachments.png" alt="Upload Attachment">
<figcaption>
Upload Attachment tab.
</figcaption>
2015-01-11 23:05:52 +03:00
</figure>
2015-02-22 13:28:37 +03:00
## Forum Topic
2015-01-11 23:05:52 +03:00
2015-01-27 12:19:35 +03:00
You can now create a forum topic. You should create it in
2015-02-22 13:28:37 +03:00
the ["WIP Mods"](https://forum.minetest.net/viewforum.php?f=9) (Work In Progress)
2015-01-27 12:19:35 +03:00
forum.\\
2018-10-27 05:10:37 +03:00
When you no longer consider your mod a work in progress, you can
2015-01-27 12:19:35 +03:00
[request that it be moved](https://forum.minetest.net/viewtopic.php?f=11&t=10418)
to "Mod Releases."
2015-01-11 23:05:52 +03:00
2018-10-27 05:10:37 +03:00
The forum topic should contain similar content to the README, but should
be more promotional and also include a link to download the mod.
It's a good idea to include screenshots of your mod in action, if possible.
2015-01-11 23:05:52 +03:00
2018-10-03 22:28:55 +03:00
The Minetest forum uses bbcode for formatting. Here is an example for a
mod named superspecial:
2015-01-11 23:05:52 +03:00
Adds magic, rainbows and other special things.
2015-01-11 23:05:52 +03:00
See download attached.
2015-01-11 23:05:52 +03:00
[b]Version:[/b] 1.1
[b]License:[/b] LGPL 2.1 or later
2015-01-11 23:05:52 +03:00
Dependencies: default mod (found in minetest_game)
2015-01-11 23:05:52 +03:00
Report bugs or request help on the forum topic.
2015-01-11 23:05:52 +03:00
[h]Installation[/h]
2015-01-11 23:05:52 +03:00
2018-10-03 22:28:55 +03:00
Unzip the archive, rename the folder to superspecial and
place it in minetest/mods/
2015-01-11 23:05:52 +03:00
( GNU/Linux: If you use a system-wide installation place
2018-10-03 22:28:55 +03:00
it in ~/.minetest/mods/. )
2015-01-11 23:05:52 +03:00
( If you only want this to be used in a single world, place
2018-10-03 22:28:55 +03:00
the folder in worldmods/ in your world directory. )
2015-01-11 23:05:52 +03:00
For further information or help see:
[url]http://wiki.minetest.com/wiki/Installing_Mods[/url]
2015-02-22 13:28:37 +03:00
2015-01-27 12:19:35 +03:00
If you modify the above example for your mod topic, remember to
2018-10-03 22:28:55 +03:00
change "superspecial" to the name of your mod.
2015-01-11 23:05:52 +03:00
2018-10-03 22:28:55 +03:00
### Subject
2015-01-11 23:11:03 +03:00
2018-04-02 12:56:30 +03:00
The subject of topic must be in one of these formats:
2015-01-11 23:11:03 +03:00
* [Mod] Mod Title [modname]
* [Mod] Mod Title [version number] [modname]
2018-10-03 22:28:55 +03:00
For example:
* [Mod] More Blox [0.1] [moreblox]