Music list editing

From Of Life and Land Wiki
Jump to navigation Jump to search

All music can be changed by creating or replacing "res://Data/Sound/Music/MusicList.json". If it does not exist the default music list is loaded.


Music entries

You can add or remove tracks in MusicList.json > Tracks, which contains an array of music entries.

Entry key Type Description
Name String The name of the track
From String The creator or publisher
License (optional) String License info
Link (optional) String Link to the source or site, for curios people
Path String (path to a sound file) File path to load the sound
Length Number Playtime in seconds until the next track should be played.
Map flags Number Determines in which areas the music is played
Time flags Number Determines in what seasons and times the music is played
Streamer friendly Boolean This is set to true true if it is assumed that there will be no problems with players streaming the game with this sound.

MusicMapFlag

Name Bit flag position Description
General 0 Can always be played
EpicCity 1 Nice strong music, beautiful castles, magical
Grasslands 2 Big grass patches, rivers, hills, small forests
IceRegion 3 Cold lonely places. Tundra
Desert 4 Hot lonely places. Very dry
BigForests 5 Wide area of forests, dark forests, mystical old forests
SeaShore 6 Sea shore, beach, palm trees
DarkTower 7 Mystical lands, magical guilds, dark

Example: 18 (0b10010) can be played in "EpicCity" and in "Desert". The map settings determine what is played where.

MusicTimeFlag

Name Bit flag position Description
Spring 0 Can be played in spring
Summer 1 Can be played in summer
Autumn 2 Can be played in autumn
Winter 3 Can be played in winter
Day 4 Can be played at daytime
Night 5 Can be played at nighttime

Example: 47 (0b101111) can be played in every season but only at night.