Factorio Prototype DocsVersion 2.0.19

PrototypeBase abstract changed

The abstract base for prototypes. PrototypeBase defines the common features of prototypes, such as localization and order.

Children

Properties

type :: string

Specifies the kind of prototype this is. [...]

Specifies the kind of prototype this is. [...]

name :: string

Unique textual identification of the prototype. [...]

Unique textual identification of the prototype. [...]

order optional :: Order

Used to order prototypes in inventory, recipes and GUIs. [...]

Used to order prototypes in inventory, recipes and GUIs. [...]

localised_name optional :: LocalisedString

Overwrites the name set in the locale file. [...]

Overwrites the name set in the locale file. [...]

localised_description optional :: LocalisedString

Overwrites the description set in the locale file. [...]

Overwrites the description set in the locale file. [...]

factoriopedia_descriptionnew optional :: LocalisedString

Provides additional description used in factoriopedia.

Provides additional description used in factoriopedia.

subgroupnew optional :: ItemSubGroupID

The name of an ItemSubGroup.

The name of an ItemSubGroup.

hiddennew optional :: bool
hidden_in_factoriopedianew optional :: bool
parameternew optional :: bool

Whether the prototype is a special type which can be used to parametrize blueprints and doesn't have other function.

Whether the prototype is a special type which can be used to parametrize blueprints and doesn't have other function.

factoriopedia_simulationnew optional :: SimulationDefinition

The simulation shown when looking at this prototype in the Factoriopedia GUI.

The simulation shown when looking at this prototype in the Factoriopedia GUI.

Properties

type :: string

Specifies the kind of prototype this is.

For a list of all possible types, see the prototype overview.

name :: string

Unique textual identification of the prototype. May only contain alphanumeric characters, dashes and underscores. May not exceed a length of 200 characters.

For a list of all names used in vanilla, see data.raw.

order :: Order optional

Default: ""

Used to order prototypes in inventory, recipes and GUIs. May not exceed a length of 200 characters.

localised_name :: LocalisedString optional

Overwrites the name set in the locale file. Can be used to easily set a procedurally-generated name because the LocalisedString format allows to insert parameters into the name directly from the Lua script.

localised_description :: LocalisedString optional

Overwrites the description set in the locale file. The description is usually shown in the tooltip of the prototype.

factoriopedia_description :: LocalisedString optional new

Provides additional description used in factoriopedia.

subgroup :: ItemSubGroupID optional new

The name of an ItemSubGroup.

hidden :: bool optional new

Default: false

hidden_in_factoriopedia :: bool optional new

Default: Value of hidden

parameter :: bool optional new

Default: false

Whether the prototype is a special type which can be used to parametrize blueprints and doesn't have other function.

factoriopedia_simulation :: SimulationDefinition optional new

The simulation shown when looking at this prototype in the Factoriopedia GUI.

Prototypes

Types

Defines