Skip to content

Your first Entry

Julian Koberg edited this page Feb 28, 2025 · 44 revisions

Your first Entry

This following section will cover all the basics on how to create a new entry for NewSafetyHelp.

Setup

But first a small section on how to set up a new entry.

It is assumed that the mod is firstly correctly installed.
That means MelonLoader installed and the NewSafetyHelp ".dll" file moved to the mod's folder.
After this, launch the game at least once. This will ensure that it is correctly setup and all the necessary files are created.

The game's folder can be opened via Steam (Right-click the game and choose "Manage" and then "Browse local files") or by pressing the folder icon in the MelonLoader Installer.
Here, navigate to UserData:
FolderSelect

A folder named NewSafetyHelp should be here, if not, launch the game once. The inside of this folder should be empty if no extra entries were installed.
UserDataInside

Here we can create any new folder which can hold any amount of entries. It is required to create a folder for it, but you are free to name it anything.
Step inside the newly created folder and create a new text file:
NewTXT

If you have file extensions shown, replace the ".txt" to ".json" which is a format that NewSafetyHelp understands. A human-readable format.
If you cannot see the ".txt" either enable it under Folder Options (Recommended) or open the file and make sure to save it as a ".json" file by extending it to the end of the file.
Incase its hidden for you, the image shows where you can disable hiding the file extension in Folder Options:
hiddenfolder

After converting it to a json file, it should look like this:
image

Open it up with your prefered editor and insert the following default layout for JSON Files (The curly brackets are required):

{
	"monster_name": "A monster name",
	"monster_description": "A monster description",
	"monster_portrait_image_name": "image_of_a_monster.png"
}

After this, save the file and you have finished the setup. Next up, we will cover how to modify the entry.

Simple Entry

Now that we have a simple file containing the basic structure of an entry, we can start working on it. Please note, that technically all values are optional, though not including something may have unexpected or unwanted behavior.

As it can be seen, all options are separated by a line followed with a comma value. As it is required to follow the JSON Format (If interested: JSON Tutorial) all texts (strings) must be contained inside two double quotes, while numbers do not use any double quotes.

If you wish to add a new line or option, just append it below the lowest line and make sure that it stays between the curly brackets and that the previous line includes a comma to separate the lines. For now ignore what it exactly means, but notice that the previous line now has a comma at the end followed by a new line:

{
	"monster_name": "A monster name",
	"monster_description": "A monster description",
	"monster_portrait_image_name": "image_of_a_monster.png",
        "monster_audio_clip_name": "cat_pizza.mp3"
}