Prototype/UtilityConstants: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(manual_rail_building_reach_modifier - 0.17.35)
(0.17.47)
Line 2: Line 2:
Prototype type: '''utility-constants'''
Prototype type: '''utility-constants'''


Constants used by the game that are not specific to certain prototypes.
Constants used by the game that are not specific to certain prototypes. See [https://github.com/wube/factorio-data/blob/master/core/prototypes/utility-constants.lua utility-constants.lua] for the values used by the base game.


== General mandatory properties ==
== General mandatory properties ==
Line 95: Line 95:
* "recipe_step_limit" - [[Types/uint32]]
* "recipe_step_limit" - [[Types/uint32]]
* "manual_rail_building_reach_modifier" - [[Types/double]]
* "manual_rail_building_reach_modifier" - [[Types/double]]
* "train_temporary_stop_wait_time" - [[Types/uint32]]
* "train_time_wait_condition_default" - [[Types/uint32]]
* "train_inactivity_wait_condition_default" - [[Types/uint32]]
* "default_trigger_target_mask_by_type" - [[Types/table]] (array) of [[Types/string]] to [[Types/TriggerTargetMask]] - Optional. The strings are entity types.
* "bonus_gui_ordering" - [[Types/table]] - Table with the following key/value pairs. Note that the base game uses more entries here [https://github.com/wube/factorio-data/blob/master/base/prototypes/categories/ammo-category.lua#L72-L76 that are applied via the ammo categories].
* "bonus_gui_ordering" - [[Types/table]] - Table with the following key/value pairs. Note that the base game uses more entries here [https://github.com/wube/factorio-data/blob/master/base/prototypes/categories/ammo-category.lua#L72-L76 that are applied via the ammo categories].
** "artillery_range" - [[Types/Order]]
** "artillery_range" - [[Types/Order]]

Revision as of 09:37, 10 June 2019

Basics

Prototype type: utility-constants

Constants used by the game that are not specific to certain prototypes. See utility-constants.lua for the values used by the base game.

General mandatory properties

type

Type: Types/string

Must be "utility-constants".

name

Type: Types/string

The base uses "default" and only one instance of UtilityConstants can be defined, so unless the base game definition is completely removed, name will have to be "default".

The constants

Every property is mandatory if not listed otherwise.