You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-9Lines changed: 46 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,25 @@
1
-
SuperTux Addon
1
+
SuperTux Addons
2
2
==============
3
3
4
+
## Packaging your addon
5
+
6
+
To package your addon, you can use the "Package Add-on" option in the main level editor menu.
7
+
8
+
<details>
9
+
<summary>Additional information for addon .nfo files</summary>
10
+
<br>
4
11
Addon .nfo files look like this:
5
12
6
-
(supertux-addoninfo
7
-
(id "octo-levels")
8
-
(version 1)
9
-
(type "worldmap")
10
-
(title "Octo's Levels")
11
-
(author "Octo")
12
-
(license "GPL 2+ / CC-by-sa 3.0"))
13
+
```
14
+
(supertux-addoninfo
15
+
(id "octo-levels")
16
+
(version 1)
17
+
(type "worldmap")
18
+
(title "Octo's Levels")
19
+
(author "Octo")
20
+
(license "GPL 2+ / CC-by-sa 3.0")
21
+
)
22
+
```
13
23
14
24
The `id` is a identifier for this addon, it has to be unique across
15
25
all addons, as it is used to compare the addons with new ones from
@@ -28,4 +38,31 @@ the addon is handled.
28
38
29
39
The .nfo file itself needs to be stored in the top-level directory of
30
40
the addon and should be named by the unique id of the addon, i.e.
31
-
"/octo-levels.nfo" in this example.
41
+
`/octo-levels.nfo` in this example.
42
+
</details>
43
+
44
+
## Adding/Updating an addon
45
+
To update an addon in the repository, you would need to submit a [pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests).
46
+
The pull request should contain two commits:
47
+
48
+
1. Adds/replaces the archive of your addon, contained in the `repository/` directory with a new one, which contains your changes.
49
+
2. Edits the `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.
***addon-commit-hash** represents the full commit hash of your first commit, which adds/replaces your addon in the `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.
67
+
***addon-md5-checksum** represents your new, modified addon archive's MD5 checksum hash. This needs to be updated every time the addon is updated, because the game will not be able to download your addon otherwise. The MD5 checksum is being used for checking the integrity of the addon.
68
+
* For the rest of the entries, the rules listed above for addon `.nfo` files also apply here.
0 commit comments