Adding changelogs

Learn how to add changelogs to your mod.

Intro

We're going to add changelogs to our mod that will appear along with changelogs from other enabled mods. When new changelogs are added, a popup will appear for the player, letting them know of the change.

Setting up

Changelogs tend to be quite long. To keep things organized, you generally want to keep all the changelogs in a dedicated file. Let's create a new file in our mod called changelogs.lua. Make sure you include it in your main.lua file, or else it won't be loaded.

include("changelogs") -- This should be the path to your changelogs file

Adding changelogs

Adding changelogs is super easy. Just use the AddChangelog function of the DeadSeaScrollsMenu global.

  • The first argument is variadic and can be up to 4 arguments long. It is used to categorize your changelogs and place them under up to 4 layers of buttons. Typically, the first argument is your mod's name and the second argument is the version your changelogs are for.

  • The final argument should be the string that is your changelog. You can define a long string with two square bracket pairs. Long strings can span across multiple lines without needing to define a new line with .

Unlike other strings, the strings provided in these arguments are automatically converted to lowercase. This lets you copy and paste changelogs from other places without needing to edit much.

DeadSeaScrollsMenu.AddChangelog("Awesome Mod", "v1.0.0", [[I made this awesome mod!

It is just so cool.

Thanks for playing!!!
]])
Clicking on the changelog and viewing it through the menu
All mods with changelogs added will appear on the main changelogs page

Formatting codes

You can add formatting codes to your changelogs. These can do various things, such as changing font size and text color.

You can edit the font size of a line by adding a font size tag to the beginning of it. The font size is 1 by default. There is no tag for setting the size to 1.

Code
Description

{FSIZE2}

A large font size.

{FSIZE3}

A very large font size.

DeadSeaScrollsMenu.AddChangelog("Awesome Mod", "v1.0.0", [[I made this awesome mod!

{FSIZE2}It is just so cool.

{FSIZE3}Bye!]])
All different font sizes shown in use, from smallest to largest.

You can download the example mod and inspect how it works below.

Last updated