Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# Settings - Prototype Docs

## Settings :: struct - abstract Example code

A struct that provides access to the user-set values of startup mod settings. It is accessible through the global object named `settings`.

## Properties

- default
- sorted

startup | :: dictionary[string → ModSetting] | All startup mod settings, indexed by the name of the setting.
All startup mod settings, indexed by the name of the setting.

startup | :: dictionary[string → ModSetting] | All startup mod settings, indexed by the name of the setting.
All startup mod settings, indexed by the name of the setting.

## Properties

### startup :: dictionary[string → ModSetting]

All startup mod settings, indexed by the name of the setting.

## Example

    -- Accessing the value of a mod setting
    local val = settings.startup["my-mod-setting-name"].value