Vankata453 6496de2a55 Remove "Toufix's Levels" from latest indexes per creator's request | 4 ماه پیش | |
---|---|---|
langpacks | 2 سال پیش | |
repository | 1 سال پیش | |
src @ 4eda00d61f | 8 سال پیش | |
translations @ d2d9dfcef8 | 8 سال پیش | |
unused | 2 سال پیش | |
.gitignore | 9 سال پیش | |
.gitmodules | 8 سال پیش | |
README.md | 2 سال پیش | |
extract_strings.py | 9 سال پیش | |
index-0_3_5.nfo | 2 سال پیش | |
index-0_4_0.nfo | 2 سال پیش | |
index-0_5.nfo | 2 سال پیش | |
index-0_6.nfo | 4 ماه پیش | |
index-0_7.nfo | 4 ماه پیش | |
make_lang_addon.sh | 9 سال پیش | |
makepot.sh | 9 سال پیش | |
ver_info.nfo | 2 سال پیش |
To package your addon, you can use the "Package Add-on" option in the main level editor menu.
Additional information for addon .nfo files
Addon .nfo files look like this:
(supertux-addoninfo
(id "octo-levels")
(version 1)
(type "worldmap")
(title "Octo's Levels")
(author "Octo")
(license "GPL 2+ / CC-by-sa 3.0")
)
The id
is a identifier for this addon, it has to be unique across
all addons, as it is used to compare the addons with new ones from
other sources to find updates. It is recomment to use something like
"{author}-{title}". The id
must be all lowercase and only contain
characters of the set "[a-z][0-9]-", underscore is not allowed as it
is used for the version number.
The version
number is a simple integer, it should be increased each
time the addon is changed.
The type
gives an indication of what is contained within the addon,
valid values are "worldmap", "world", "levelset". At the moment this
is only a description for the user and doesn't have any impact on how
the addon is handled.
The .nfo file itself needs to be stored in the top-level directory of
the addon and should be named by the unique id of the addon, i.e.
/octo-levels.nfo
in this example.
To update an addon in the repository, you would need to submit a pull request. The pull request should contain two commits:
repository/
directory with a new one, which contains your changes.index.nfo
for the latest SuperTux version, by adding/modifying the entry for your addon. This will allow it to be downloaded from the in-game addon manager.An addon data entry looks like this:
(supertux-addoninfo (id "addon-id") (version addon-version) (type addon-type) (title "addon-title") (author "addon-author") (license "addon-license") (url "https://raw.githubusercontent.com/SuperTux/addons/addon-commit-hash/repository/addon-file-name") (md5 "addon-md5-checksum") )
repository/
directory. This is important to include, because it allows the current SuperTux release to always get its versions of all addons for backwards compatibility..nfo
files also apply here.