Home

UtilityConstants

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

Parent

Properties

entity_button_background_color

building_buildable_too_far_tint

building_buildable_tint

building_not_buildable_tint

building_ignorable_tint

building_no_tint

underground_belt_max_distance_tint

underground_pipe_max_distance_tint

ghost_shader_tint

ghost_shaderless_tint

ghost_shimmer_settings

probability_product_count_tint

zero_count_value_tint

equipment_default_background_color

equipment_default_background_border_color

equipment_default_grabbed_background_color

turret_range_visualization_color

capsule_range_visualization_color

agricultural_range_visualization_color

artillery_range_visualization_color

chart

Chart means map and minimap.

gui_remark_color

gui_search_match_foreground_color

gui_search_match_background_color

default_player_force_color

default_enemy_force_color

default_other_force_color

deconstruct_mark_tint

rail_planner_count_button_color

count_button_size

logistic_gui_unselected_network_highlight_tint

logistic_gui_selected_network_highlight_tint

chart_search_highlight

selected_chart_search_highlight

zoom_to_world_can_use_nightvision

zoom_to_world_effect_strength

max_logistic_filter_count

max_terrain_building_size

small_area_size

medium_area_size

large_area_size

huge_platform_animation_sound_area

small_blueprint_area_size

medium_blueprint_area_size

large_blueprint_area_size

enabled_recipe_slot_tint

disabled_recipe_slot_tint

disabled_recipe_slot_background_tint

forced_enabled_recipe_slot_background_tint

rail_segment_colors

player_colors

The table with name = "default" must exist and be the first member of the array.

server_command_console_chat_color

script_command_console_chat_color

default_alert_icon_scale

default_alert_icon_shift_by_type

default_alert_icon_scale_by_type

bonus_gui_ordering

The base game uses more entries here that are applied via the ammo-category.lua file.

merge_bonus_gui_production_bonuses

If not set, defaults to 'true' when modded and 'false' when vanilla.

daytime_color_lookup

zoom_to_world_daytime_color_lookup

frozen_color_lookup

map_editor

drop_item_radius

checkerboard_white

checkerboard_black

item_outline_color

item_outline_radius

item_outline_inset

item_outline_sharpness

item_default_random_tint_strength

spawner_evolution_factor_health_modifier

item_health_bar_colors

There must be one array item with a threshold of 0.

item_ammo_magazine_left_bar_color

item_tool_durability_bar_color

filter_outline_color

icon_shadow_radius

icon_shadow_inset

icon_shadow_sharpness

icon_shadow_color

clipboard_history_size

recipe_step_limit

manual_rail_building_reach_modifier

train_temporary_stop_wait_time

train_time_wait_condition_default

train_inactivity_wait_condition_default

default_trigger_target_mask_by_type

The strings are entity types.

unit_group_pathfind_resolution

unit_group_max_pursue_distance

dynamic_recipe_overload_factor

minimum_recipe_overload_multiplier

maximum_recipe_overload_multiplier

entity_renderer_search_box_limits

light_renderer_search_distance_limit

Can be set to anything from range 0 to 255, but larger values will be clamped to 160. Setting it to larger values can have performance impact (growing geometrically).

tree_leaf_distortion_strength_far

tree_leaf_distortion_distortion_far

tree_leaf_distortion_speed_far

tree_leaf_distortion_strength_near

tree_leaf_distortion_distortion_near

tree_leaf_distortion_speed_near

tree_shadow_roughness

tree_shadow_speed

missing_preview_sprite_location

The strings represent the names of the simulations.

feedback_screenshot_subfolder_name

feedback_screenshot_file_name

default_scorch_mark_color

color_filters

minimap_slot_hovered_tint

minimap_slot_clicked_tint

clear_cursor_volume_modifier

weapons_in_simulation_volume_modifier

explosions_in_simulation_volume_modifier

enemies_in_simulation_volume_modifier

low_energy_robot_estimate_multiplier

asteroid_spawning_offset

asteroid_fading_range

asteroid_spawning_with_random_orientation_max_speed

asteroid_position_offset_to_speed_coefficient

asteroid_collector_navmesh_refresh_tick_interval

asteroid_collector_blockage_update_tile_distance

asteroid_collector_max_nurbs_control_point_separation

asteroid_collector_static_head_swing_strength_scale

asteroid_collector_static_head_swing_segment_count

space_platform_acceleration_expression

Variables: speed, thrust, weight, width, height

space_platform_relative_speed_factor

space_platform_starfield_movement_vector

space_platform_max_size

space_platform_dump_cooldown

Determines how fast space platforms will send items in drop slots to the surface. Each item type has its own cooldown.

space_platform_manual_dump_cooldown

Delay after manual transfer until space platform sends items in drop slots to the surface. Overrides remaining space_platform_dump_cooldown in this instance.

space_platform_max_relative_speed_deviation_for_asteroid_chunks_update

Space platform remembers relative speed range which asteroids use while it moves. When the range is larger than the specified deviation, the platform will start updating cached trajectories of all asteroid chunks over multiple ticks.

space_platform_asteroid_chunk_trajectory_updates_per_tick

How many asteroid chunks should be processed per tick, see space_platform_max_relative_speed_deviation_for_asteroid_chunks_update.

default_item_weight

rocket_lift_weight

factoriopedia_recycling_recipe_categories

max_fluid_flow

default_pipeline_extent

The default value of FluidBox::max_pipeline_extent.

default_platform_procession_set

Must contain arrival and departure with procession_style containing 0.

default_planet_procession_set

Must contain arrival and departure with procession_style containing 0.

landing_area_clear_zone_radius

Radius of area where cargo pods won't land.

landing_area_max_radius

Max radius where cargo pods will land.

lightning_attractor_collection_range_color

lightning_attractor_protection_range_color

landing_squash_immunity

ejected_item_lifetime

Silently clamped to be between 1 tick and 5 minutes (5 * 60 * 60 ticks).

ejected_item_speed

Silently clamped to be between 0 and 1/60.

ejected_item_direction_variation

Silently clamped to be between 0 and 0.99.

ejected_item_friction

Silently clamped to be between 0 and 1.

train_visualization

default_collision_masks

The strings can be entity types or custom strings.

show_chunk_components_collision_mask

building_collision_mask

water_collision_mask

ghost_layer

train_pushed_by_player_max_speed

train_pushed_by_player_max_acceleration

train_pushed_by_player_ignores_friction

freezing_temperature

train_on_elevated_rail_shadow_shift_multiplier

max_belt_stack_size

Must be >= 1.

inserter_hand_stack_items_per_sprite

Must be >= 1.

inserter_hand_stack_max_sprites

Must be >= 1.

remote_view_LPF_min_cutoff_frequency

remote_view_LPF_max_cutoff_frequency

space_LPF_min_cutoff_frequency

space_LPF_max_cutoff_frequency

walking_sound_count_reduction_rate

Silently clamped to be between 0 and 1.

moving_sound_count_reduction_rate

Silently clamped to be between 0 and 1.

environment_sounds_transition_fade_in_ticks

starmap_orbit_default_color

starmap_orbit_hovered_color

starmap_orbit_clicked_color

starmap_orbit_disabled_color

time_to_show_full_health_bar

The number of ticks to show a segmented unit's health bar after fully regenerating.

capture_water_mask_at_layer

Layer within ground-natural tile render layer group, before which terrain lightmap alpha channel is copied into water mask. Decals, which need to be masked by water should have their DecorativePrototype::tile_layer set to only slightly larger value than capture_water_mask_at_layer, to avoid risk of undefined behavior caused by rendering tiles into layers between capture_water_mask_at_layer and decal's tile_layer.

logistic_robots_use_busy_robots_queue

construction_robots_use_busy_robots_queue

quality_selector_dropdown_threshold

maximum_quality_jump

Cap for how many steps of quality the output of something (miner/crafter) may be higher than the input (resource/ingredients). Must be >= 1.

select_group_row_count

Will be clamped to the range [1, 100].

select_slot_row_count

Will be clamped to the range [1, 100].

crafting_queue_slots_per_row

Will be clamped to the range [1, 100].

logistic_slots_per_row

Will be clamped to the range [2, 100].

blueprint_big_slots_per_row

Will be clamped to the range [2, 100].

blueprint_small_slots_per_row

Will be clamped to the range [2, 100].

inventory_width

Will be clamped to the range [1, 100].

module_inventory_width

Will be clamped to the range [1, 100].

trash_inventory_width

Will be clamped to the range [1, 100].

tooltip_monitor_edge_border

Must be >= 1.

flying_text_ttl

Must be >= 1.

train_path_finding