Skip to content
9thCore edited this page Nov 13, 2023 · 3 revisions

Doctor's Notepad has a config file system, where user-settable settings that have to run before the level's lua file is ran can be modified.
A level's config is the file config.lua, in the same directory as the level's main.lua.

The variables on this page are what can be set in the config, which can also be found in the default config file, default-config.lua.
Not all values have to be defined in a level config. If left unset, they will be using the value found in the default config.
Setting a config value to the wrong type (different than the type it has in the default config) will halt execution and produce an error, mentioning the erronous value, its type and what type it should be.

extensions

List of strings determining what extensions to load. Trying to use any extension that is not loaded here will error.
Default value: {'core', 'row', 'room', 'decoration', 'color', 'sound', 'classybeat', 'conditional', 'advancedtext', 'bossbar'}

initevents

Whether to create initial events at the start of the level, which include: Move Row events, Move Room events, Scale Room events and Set Room Content Mode events.
Default value: true

bossgameoverevents

Whether to create default events on a game over, if using a boss bar. These include a CCM event calling CurrentSongVol(0, 0), a status sign showing 'GAME OVER' and a High on-top Shake Screen event.
Default value: true