draftsman/compatibility/defines.lua
-- Current version: 2.0.60
-- Extracted with the command:
-- /c helpers.write_file("defines.lua", "defines = " .. serpent.block(defines, {indent="    "}))

-- TODO: extract these during environment update

defines = {
    alert_type = {
        collector_path_blocked = 13,
        custom = 8,
        entity_destroyed = 0,
        entity_under_attack = 1,
        no_material_for_construction = 3,
        no_platform_storage = 12,
        no_roboport_storage = 15,
        no_storage = 9,
        not_enough_construction_robots = 2,
        not_enough_repair_packs = 4,
        pipeline_overextended = 16,
        platform_tile_building_blocked = 5,
        train_no_path = 11,
        train_out_of_fuel = 10,
        turret_fire = 7,
        turret_out_of_ammo = 6,
        unclaimed_cargo = 14
    },
    behavior_result = {
        deleted = 3,
        fail = 1,
        in_progress = 0,
        success = 2
    },
    build_check_type = {
        blueprint_ghost = 4,
        ghost_revive = 5,
        manual = 1,
        manual_ghost = 3,
        script = 0,
        script_ghost = 2
    },
    build_mode = {
        forced = 1,
        normal = 0,
        superforced = 2
    },
    cargo_destination = {
        invalid = 0,
        orbit = 5,
        space_platform = 2,
        station = 1,
        surface = 3
    },
    chain_signal_state = {
        all_open = 1,
        none = 0,
        none_open = 3,
        partially_open = 2
    },
    chunk_generated_status = {
        basic_tiles = 20,
        corrected_tiles = 30,
        custom_tiles = 10,
        entities = 50,
        nothing = 0,
        tiles = 40
    },
    command = {
        attack = 1,
        attack_area = 5,
        build_base = 7,
        compound = 3,
        flee = 8,
        go_to_location = 2,
        group = 4,
        stop = 9,
        wander = 6
    },
    compound_command = {
        logical_and = 0,
        logical_or = 1,
        return_last = 2
    },
    control_behavior = {
        cargo_landing_pad = {
            exclusive_mode = {
                none = 2,
                send_contents = 0,
                set_requests = 1
            }
        },
        inserter = {
            hand_read_mode = {
                hold = 1,
                pulse = 0
            }
        },
        lamp = {
            color_mode = {
                color_mapping = 0,
                components = 1,
                packed_rgb = 2
            }
        },
        logistic_container = {
            exclusive_mode = {
                none = 2,
                send_contents = 0,
                set_requests = 1
            }
        },
        mining_drill = {
            resource_read_mode = {
                entire_patch = 1,
                this_miner = 0
            }
        },
        roboport = {
            read_items_mode = {
                logistics = 1,
                missing_requests = 2,
                none = 0
            }
        },
        rocket_silo = {
            read_mode = {
                logistic_inventory = 1,
                none = 0,
                orbital_requests = 2
            }
        },
        transport_belt = {
            content_read_mode = {
                entire_belt_hold = 2,
                hold = 1,
                pulse = 0
            }
        },
        type = {
            accumulator = 13,
            agricultural_tower = 32,
            arithmetic_combinator = 10,
            artillery_turret = 26,
            assembling_machine = 19,
            asteroid_collector = 28,
            cargo_landing_pad = 31,
            constant_combinator = 11,
            container = 1,
            decider_combinator = 9,
            display_panel = 29,
            furnace = 33,
            generic_on_off = 2,
            inserter = 3,
            lamp = 4,
            loader = 30,
            logistic_container = 5,
            mining_drill = 16,
            programmable_speaker = 17,
            proxy_container = 34,
            pump = 21,
            radar = 27,
            rail_chain_signal = 18,
            rail_signal = 14,
            reactor = 24,
            roboport = 6,
            rocket_silo = 22,
            selector_combinator = 20,
            space_platform_hub = 25,
            storage_tank = 7,
            train_stop = 8,
            transport_belt = 12,
            turret = 23,
            wall = 15
        }
    },
    controllers = {
        character = 1,
        cutscene = 6,
        editor = 4,
        ghost = 0,
        god = 2,
        remote = 7,
        spectator = 5
    },
    deconstruction_item = {
        entity_filter_mode = {
            blacklist = 1,
            whitelist = 0
        },
        tile_filter_mode = {
            blacklist = 1,
            whitelist = 0
        },
        tile_selection_mode = {
            always = 1,
            never = 2,
            normal = 0,
            only = 3
        }
    },
    default_icon_size = 64,
    difficulty = {
        easy = 0,
        hard = 2,
        normal = 1
    },
    direction = {
        east = 4,
        eastnortheast = 3,
        eastsoutheast = 5,
        north = 0,
        northeast = 2,
        northnortheast = 1,
        northnorthwest = 15,
        northwest = 14,
        south = 8,
        southeast = 6,
        southsoutheast = 7,
        southsouthwest = 9,
        southwest = 10,
        west = 12,
        westnorthwest = 13,
        westsouthwest = 11
    },
    disconnect_reason = {
        afk = 6,
        banned = 9,
        cannot_keep_up = 5,
        desync_limit_reached = 4,
        dropped = 1,
        kicked = 7,
        kicked_and_deleted = 8,
        quit = 0,
        reconnect = 2,
        switching_servers = 11,
        wrong_input = 3
    },
    distraction = {
        by_anything = 3,
        by_damage = 4,
        by_enemy = 1,
        none = 0
    },
    entity_status = {
        broken = 4,
        cant_divide_segments = 12,
        charging = 8,
        closed_by_circuit_network = 56,
        computing_navigation = 63,
        destination_stop_full = 45,
        disabled = 61,
        disabled_by_control_behavior = 55,
        disabled_by_script = 60,
        discharging = 9,
        fluid_ingredient_shortage = 25,
        frozen = 58,
        full_burnt_result_output = 29,
        full_output = 27,
        fully_charged = 10,
        ghost = 3,
        item_ingredient_shortage = 26,
        launching_rocket = 38,
        low_input_fluid = 23,
        low_power = 14,
        low_temperature = 52,
        marked_for_deconstruction = 62,
        missing_required_fluid = 30,
        missing_science_packs = 31,
        networks_connected = 6,
        networks_disconnected = 7,
        no_ammo = 51,
        no_filter = 64,
        no_fuel = 53,
        no_ingredients = 18,
        no_input_fluid = 24,
        no_minable_resources = 21,
        no_modules_to_transmit = 47,
        no_path = 46,
        no_power = 54,
        no_recipe = 19,
        no_research_in_progress = 20,
        no_spot_seedable_by_inputs = 17,
        normal = 2,
        not_connected_to_hub_or_pad = 22,
        not_connected_to_rail = 13,
        not_enough_space_in_output = 28,
        not_enough_thrust = 44,
        not_plugged_in_electric_network = 5,
        on_the_way = 40,
        opened_by_circuit_network = 57,
        out_of_logistic_network = 15,
        paused = 59,
        pipeline_overextended = 65,
        preparing_rocket_for_launch = 35,
        recharging_after_power_outage = 48,
        recipe_is_parameter = 67,
        recipe_not_researched = 66,
        thrust_not_required = 39,
        turned_off_during_daytime = 11,
        waiting_at_stop = 42,
        waiting_for_more_items = 33,
        waiting_for_plants_to_grow = 16,
        waiting_for_rockets_to_arrive = 43,
        waiting_for_source_items = 32,
        waiting_for_space_in_destination = 34,
        waiting_for_space_in_platform_hub = 37,
        waiting_for_target_to_be_built = 49,
        waiting_for_train = 50,
        waiting_in_orbit = 41,
        waiting_to_launch_rocket = 36,
        working = 1
    },
    entity_status_diode = {
        green = 0,
        red = 1,
        yellow = 2
    },
    events = {
        ["crash-site-skip-cutscene"] = 206,
        ["give-artillery-targeting-remote"] = 207,
        ["give-blueprint"] = 208,
        ["give-blueprint-book"] = 209,
        ["give-copper-wire"] = 210,
        ["give-deconstruction-planner"] = 211,
        ["give-discharge-defense-remote"] = 212,
        ["give-green-wire"] = 213,
        ["give-red-wire"] = 214,
        ["give-spidertron-remote"] = 215,
        ["give-upgrade-planner"] = 216,
        on_achievement_gained = 201,
        on_ai_command_completed = 132,
        on_area_cloned = 137,
        on_biter_base_built = 63,
        on_brush_cloned = 138,
        on_build_base_arrived = 158,
        on_built_entity = 6,
        on_cancelled_deconstruction = 28,
        on_cancelled_upgrade = 134,
        on_cargo_pod_delivered_cargo = 12,
        on_cargo_pod_finished_ascending = 10,
        on_cargo_pod_finished_descending = 11,
        on_character_corpse_expired = 106,
        on_chart_tag_added = 160,
        on_chart_tag_modified = 161,
        on_chart_tag_removed = 162,
        on_chunk_charted = 116,
        on_chunk_deleted = 125,
        on_chunk_generated = 15,
        on_combat_robot_expired = 95,
        on_console_chat = 84,
        on_console_command = 85,
        on_cutscene_cancelled = 184,
        on_cutscene_finished = 199,
        on_cutscene_started = 198,
        on_cutscene_waypoint_reached = 40,
        on_entity_cloned = 136,
        on_entity_color_changed = 197,
        on_entity_damaged = 115,
        on_entity_died = 4,
        on_entity_logistic_slot_changed = 187,
        on_entity_renamed = 65,
        on_entity_settings_pasted = 38,
        on_entity_spawned = 151,
        on_equipment_inserted = 190,
        on_equipment_removed = 191,
        on_force_cease_fire_changed = 168,
        on_force_created = 34,
        on_force_friends_changed = 167,
        on_force_reset = 118,
        on_forces_merged = 120,
        on_forces_merging = 35,
        on_game_created_from_scenario = 139,
        on_gui_checked_state_changed = 3,
        on_gui_click = 1,
        on_gui_closed = 100,
        on_gui_confirmed = 163,
        on_gui_elem_changed = 80,
        on_gui_hover = 195,
        on_gui_leave = 196,
        on_gui_location_changed = 164,
        on_gui_opened = 99,
        on_gui_selected_tab_changed = 165,
        on_gui_selection_state_changed = 66,
        on_gui_switch_state_changed = 166,
        on_gui_text_changed = 2,
        on_gui_value_changed = 101,
        on_land_mine_armed = 119,
        on_lua_shortcut = 41,
        on_marked_for_deconstruction = 27,
        on_marked_for_upgrade = 133,
        on_market_item_purchased = 61,
        on_mod_item_opened = 98,
        on_multiplayer_init = 141,
        on_object_destroyed = 175,
        on_permission_group_added = 183,
        on_permission_group_deleted = 182,
        on_permission_group_edited = 178,
        on_permission_string_imported = 180,
        on_picked_up_item = 5,
        on_player_alt_reverse_selected_area = 194,
        on_player_alt_selected_area = 57,
        on_player_ammo_inventory_changed = 43,
        on_player_armor_inventory_changed = 42,
        on_player_banned = 127,
        on_player_built_tile = 52,
        on_player_cancelled_crafting = 114,
        on_player_changed_force = 64,
        on_player_changed_position = 97,
        on_player_changed_surface = 58,
        on_player_cheat_mode_disabled = 105,
        on_player_cheat_mode_enabled = 104,
        on_player_clicked_gps_tag = 176,
        on_player_configured_blueprint = 83,
        on_player_controller_changed = 59,
        on_player_crafted_item = 16,
        on_player_created = 31,
        on_player_cursor_stack_changed = 36,
        on_player_deconstructed_area = 82,
        on_player_demoted = 89,
        on_player_died = 48,
        on_player_display_density_scale_changed = 112,
        on_player_display_resolution_changed = 110,
        on_player_display_scale_changed = 111,
        on_player_driving_changed_state = 33,
        on_player_dropped_item = 62,
        on_player_fast_transferred = 146,
        on_player_flipped_entity = 26,
        on_player_flushed_fluid = 177,
        on_player_gun_inventory_changed = 44,
        on_player_input_method_changed = 200,
        on_player_joined_game = 50,
        on_player_kicked = 128,
        on_player_left_game = 51,
        on_player_locale_changed = 202,
        on_player_main_inventory_changed = 39,
        on_player_mined_entity = 72,
        on_player_mined_item = 8,
        on_player_mined_tile = 53,
        on_player_muted = 102,
        on_player_pipette = 109,
        on_player_placed_equipment = 45,
        on_player_promoted = 88,
        on_player_removed = 86,
        on_player_removed_equipment = 46,
        on_player_repaired_entity = 145,
        on_player_respawned = 49,
        on_player_reverse_selected_area = 193,
        on_player_rotated_entity = 25,
        on_player_selected_area = 56,
        on_player_set_quick_bar_slot = 171,
        on_player_setup_blueprint = 81,
        on_player_toggled_alt_mode = 144,
        on_player_toggled_map_editor = 135,
        on_player_trash_inventory_changed = 121,
        on_player_unbanned = 129,
        on_player_unmuted = 103,
        on_player_used_capsule = 87,
        on_player_used_spidertron_remote = 185,
        on_post_entity_died = 150,
        on_pre_build = 9,
        on_pre_chunk_deleted = 147,
        on_pre_entity_settings_pasted = 37,
        on_pre_ghost_deconstructed = 107,
        on_pre_ghost_upgraded = 108,
        on_pre_permission_group_deleted = 181,
        on_pre_permission_string_imported = 179,
        on_pre_player_crafted_item = 113,
        on_pre_player_died = 47,
        on_pre_player_left_game = 122,
        on_pre_player_mined_item = 14,
        on_pre_player_removed = 153,
        on_pre_player_toggled_map_editor = 172,
        on_pre_robot_exploded_cliff = 148,
        on_pre_scenario_finished = 204,
        on_pre_script_inventory_resized = 173,
        on_pre_surface_cleared = 124,
        on_pre_surface_deleted = 70,
        on_redo_applied = 189,
        on_research_cancelled = 23,
        on_research_finished = 21,
        on_research_moved = 203,
        on_research_queued = 24,
        on_research_reversed = 22,
        on_research_started = 20,
        on_resource_depleted = 32,
        on_robot_built_entity = 17,
        on_robot_built_tile = 54,
        on_robot_exploded_cliff = 149,
        on_robot_mined = 19,
        on_robot_mined_entity = 71,
        on_robot_mined_tile = 55,
        on_robot_pre_mined = 18,
        on_rocket_launch_ordered = 130,
        on_rocket_launched = 13,
        on_runtime_mod_setting_changed = 67,
        on_script_inventory_resized = 174,
        on_script_path_request_finished = 131,
        on_script_trigger_effect = 170,
        on_sector_scanned = 7,
        on_segment_entity_created = 152,
        on_selected_entity_changed = 60,
        on_singleplayer_init = 140,
        on_space_platform_built_entity = 76,
        on_space_platform_built_tile = 77,
        on_space_platform_changed_state = 192,
        on_space_platform_mined_entity = 73,
        on_space_platform_mined_item = 75,
        on_space_platform_mined_tile = 78,
        on_space_platform_pre_mined = 74,
        on_spider_command_completed = 186,
        on_string_translated = 169,
        on_surface_cleared = 123,
        on_surface_created = 68,
        on_surface_deleted = 69,
        on_surface_imported = 142,
        on_surface_renamed = 143,
        on_technology_effects_reset = 117,
        on_tick = 0,
        on_train_changed_state = 30,
        on_train_created = 79,
        on_train_schedule_changed = 126,
        on_trigger_created_entity = 29,
        on_trigger_fired_artillery = 159,
        on_udp_packet_received = 205,
        on_undo_applied = 188,
        on_unit_added_to_group = 155,
        on_unit_group_created = 154,
        on_unit_group_finished_gathering = 157,
        on_unit_removed_from_group = 156,
        on_worker_robot_expired = 96,
        ["open-gui"] = 217,
        script_raised_built = 90,
        script_raised_destroy = 91,
        script_raised_revive = 92,
        script_raised_set_tiles = 94,
        script_raised_teleported = 93,
        ["toggle-equipment-movement-bonus"] = 218,
        ["toggle-personal-logistic-requests"] = 219,
        ["toggle-personal-roboport"] = 220
    },
    flow_precision_index = {
        fifty_hours = 5,
        five_seconds = 0,
        one_hour = 3,
        one_minute = 1,
        one_thousand_hours = 7,
        ten_hours = 4,
        ten_minutes = 2,
        two_hundred_fifty_hours = 6
    },
    game_controller_interaction = {
        always = 0,
        never = 2,
        normal = 1
    },
    group_state = {
        attacking_distraction = 2,
        attacking_target = 3,
        finished = 4,
        gathering = 0,
        moving = 1,
        pathfinding = 5,
        wander_in_group = 6
    },
    gui_type = {
        achievement = 8,
        blueprint_library = 9,
        bonus = 6,
        controller = 3,
        custom = 16,
        entity = 1,
        equipment = 10,
        global_electric_network = 22,
        item = 5,
        logistic = 11,
        none = 0,
        opened_entity_grid = 24,
        other_player = 12,
        permissions = 14,
        player_management = 18,
        production = 4,
        script_inventory = 23,
        server_management = 17,
        tile = 19,
        trains = 7
    },
    input_action = {
        activate_interrupt = 178,
        activate_paste = 42,
        add_decider_combinator_condition = 159,
        add_decider_combinator_output = 163,
        add_logistic_section = 53,
        add_permission_group = 282,
        add_pin = 314,
        add_train_interrupt = 177,
        add_train_station = 176,
        adjust_blueprint_snapping = 326,
        admin_action = 238,
        alt_reverse_select_area = 198,
        alt_select_area = 196,
        alt_select_blueprint_entities = 131,
        alternative_copy = 129,
        begin_mining = 2,
        begin_mining_terrain = 68,
        build = 66,
        build_rail = 192,
        build_terrain = 171,
        cancel_craft = 91,
        cancel_deconstruct = 155,
        cancel_delete_space_platform = 243,
        cancel_new_blueprint = 15,
        cancel_research = 193,
        cancel_upgrade = 156,
        change_active_character_tab = 109,
        change_active_item_group_for_crafting = 107,
        change_active_item_group_for_filters = 108,
        change_active_quick_bar = 286,
        change_arithmetic_combinator_parameters = 157,
        change_entity_label = 186,
        change_heading_riding_state = 70,
        change_item_label = 185,
        change_logistic_point_group = 188,
        change_multiplayer_config = 237,
        change_picking_state = 250,
        change_programmable_speaker_alert_parameters = 168,
        change_programmable_speaker_circuit_parameters = 169,
        change_programmable_speaker_parameters = 167,
        change_riding_state = 69,
        change_selector_combinator_parameters = 166,
        change_shooting_state = 85,
        change_train_name = 187,
        change_train_stop_station = 106,
        change_train_wait_condition = 172,
        change_train_wait_condition_data = 173,
        cheat = 60,
        clear_cursor = 11,
        connect_rolling_stock = 8,
        copy = 128,
        copy_entity_settings = 17,
        copy_large_opened_blueprint = 135,
        copy_large_opened_item = 21,
        copy_opened_blueprint = 134,
        copy_opened_item = 20,
        craft = 83,
        create_space_platform = 241,
        cursor_split = 77,
        cursor_transfer = 76,
        custom_input = 184,
        cycle_blueprint_book_backwards = 29,
        cycle_blueprint_book_forwards = 28,
        cycle_quality_down = 31,
        cycle_quality_up = 30,
        deconstruct = 126,
        delete_blueprint_library = 40,
        delete_blueprint_record = 140,
        delete_custom_tag = 280,
        delete_logistic_group = 190,
        delete_permission_group = 281,
        delete_space_platform = 242,
        destroy_item = 73,
        destroy_opened_item = 19,
        disconnect_rolling_stock = 9,
        drag_decider_combinator_condition = 158,
        drag_decider_combinator_output = 162,
        drag_train_schedule = 213,
        drag_train_schedule_interrupt = 214,
        drag_train_wait_condition = 215,
        drop_blueprint_record = 139,
        drop_item = 65,
        edit_blueprint_tool_preview = 148,
        edit_custom_tag = 205,
        edit_display_panel = 307,
        edit_display_panel_always_show = 308,
        edit_display_panel_icon = 310,
        edit_display_panel_parameters = 311,
        edit_display_panel_show_in_chart = 309,
        edit_interrupt = 179,
        edit_permission_group = 206,
        edit_pin = 318,
        export_blueprint = 150,
        fast_entity_split = 267,
        fast_entity_transfer = 264,
        flip_entity = 266,
        flush_opened_entity_fluid = 51,
        flush_opened_entity_specific_fluid = 249,
        go_to_train_station = 181,
        grab_blueprint_record = 138,
        gui_checked_state_changed = 111,
        gui_click = 102,
        gui_confirmed = 103,
        gui_elem_changed = 211,
        gui_hover = 322,
        gui_leave = 323,
        gui_location_changed = 116,
        gui_selected_tab_changed = 113,
        gui_selection_state_changed = 112,
        gui_switch_state_changed = 115,
        gui_text_changed = 110,
        gui_value_changed = 114,
        import_blueprint = 151,
        import_blueprint_string = 207,
        import_blueprints_filtered = 152,
        import_permissions_string = 208,
        instantly_create_space_platform = 248,
        inventory_split = 90,
        inventory_transfer = 81,
        land_at_planet = 329,
        launch_rocket = 189,
        lua_shortcut = 239,
        map_editor_action = 234,
        market_offer = 105,
        mod_settings_changed = 203,
        modify_decider_combinator_condition = 160,
        modify_decider_combinator_output = 164,
        move_pin = 320,
        move_research = 194,
        open_achievements_gui = 27,
        open_blueprint_library_gui = 63,
        open_blueprint_record = 137,
        open_bonus_gui = 26,
        open_character_gui = 6,
        open_current_vehicle_gui = 7,
        open_equipment = 75,
        open_global_electric_network_gui = 303,
        open_gui = 5,
        open_item = 71,
        open_logistics_gui = 62,
        open_mod_item = 74,
        open_new_platform_button_from_rocket_silo = 58,
        open_opened_entity_grid = 55,
        open_parent_of_opened_item = 72,
        open_production_gui = 13,
        open_train_gui = 274,
        open_train_station_gui = 293,
        open_trains_gui = 275,
        parametrise_blueprint = 331,
        paste_entity_settings = 18,
        pin_alert_group = 316,
        pin_custom_alert = 317,
        pin_search_result = 315,
        pipette = 88,
        place_equipment = 117,
        quick_bar_pick_slot = 231,
        quick_bar_set_selected_page = 232,
        quick_bar_set_slot = 230,
        reassign_blueprint = 136,
        redo = 44,
        remote_view_entity = 246,
        remote_view_surface = 245,
        remove_cables = 149,
        remove_decider_combinator_condition = 161,
        remove_decider_combinator_output = 165,
        remove_logistic_section = 306,
        remove_pin = 319,
        remove_train_interrupt = 175,
        remove_train_station = 174,
        rename_interrupt = 180,
        rename_space_platform = 244,
        reorder_logistic_section = 312,
        request_missing_construction_materials = 268,
        reset_assembling_machine = 12,
        reverse_select_area = 197,
        rotate_entity = 265,
        select_area = 195,
        select_asteroid_chunk_slot = 222,
        select_blueprint_entities = 130,
        select_entity_filter_slot = 220,
        select_entity_slot = 218,
        select_item_filter = 216,
        select_mapper_slot_from = 226,
        select_mapper_slot_to = 227,
        select_next_valid_gun = 38,
        select_tile_slot = 224,
        send_spidertron = 120,
        send_stack_to_trash = 79,
        send_stacks_to_trash = 80,
        send_train_to_pin_target = 321,
        set_behavior_mode = 263,
        set_car_weapons_control = 284,
        set_cheat_mode_quality = 98,
        set_circuit_condition = 95,
        set_circuit_mode_of_operation = 101,
        set_combinator_description = 255,
        set_copy_color_from_train_stop = 277,
        set_deconstruction_item_tile_selection_mode = 279,
        set_deconstruction_item_trees_and_rocks_only = 278,
        set_entity_color = 276,
        set_entity_energy_property = 204,
        set_filter = 92,
        set_ghost_cursor = 144,
        set_heat_interface_mode = 292,
        set_heat_interface_temperature = 291,
        set_infinity_container_filter_item = 200,
        set_infinity_container_remove_unfiltered_items = 283,
        set_infinity_pipe_filter = 202,
        set_inserter_max_stack_size = 272,
        set_inventory_bar = 121,
        set_lamp_always_on = 302,
        set_linked_container_link_i_d = 300,
        set_loader_belt_stack_size_override = 273,
        set_logistic_filter_item = 99,
        set_logistic_network_name = 191,
        set_logistic_section_active = 313,
        set_player_color = 296,
        set_pump_fluid_filter = 304,
        set_request_from_buffers = 285,
        set_research_finished_stops_game = 271,
        set_rocket_silo_send_to_orbit_automated_mode = 333,
        set_schedule_record_allow_unloading = 183,
        set_signal = 96,
        set_splitter_priority = 289,
        set_spoil_priority = 93,
        set_train_stop_priority = 327,
        set_train_stopped = 182,
        set_trains_limit = 298,
        set_turret_ignore_unlisted = 301,
        set_use_inserter_filters = 259,
        set_vehicle_automatic_targeting_parameters = 170,
        setup_assembling_machine = 86,
        setup_blueprint = 132,
        setup_single_blueprint_record = 133,
        spawn_item = 143,
        spectator_change_surface = 325,
        stack_split = 89,
        stack_transfer = 78,
        start_repair = 125,
        start_research = 97,
        start_walking = 67,
        stop_drag_build = 50,
        swap_asteroid_chunk_slots = 223,
        swap_entity_filter_slots = 221,
        swap_entity_slots = 219,
        swap_infinity_container_filter_items = 201,
        swap_item_filters = 217,
        swap_logistic_filter_items = 100,
        swap_mappers = 228,
        swap_tile_slots = 225,
        switch_connect_to_logistic_network = 262,
        switch_constant_combinator_state = 256,
        switch_inserter_filter_mode_state = 258,
        switch_loader_filter_mode = 260,
        switch_mining_drill_filter_mode_state = 261,
        switch_power_switch_state = 257,
        take_equipment = 118,
        toggle_artillery_auto_targeting = 49,
        toggle_deconstruction_item_entity_filter_mode = 36,
        toggle_deconstruction_item_tile_filter_mode = 37,
        toggle_driving = 4,
        toggle_enable_vehicle_logistics_while_moving = 35,
        toggle_entity_logistic_requests = 48,
        toggle_equipment_movement_bonus = 46,
        toggle_map_editor = 39,
        toggle_personal_logistic_requests = 47,
        toggle_personal_roboport = 45,
        toggle_selected_entity = 59,
        toggle_show_entity_info = 22,
        translate_string = 240,
        trash_not_requested_items = 269,
        undo = 43,
        upgrade = 127,
        upgrade_opened_blueprint_by_item = 142,
        upgrade_opened_blueprint_by_record = 141,
        use_item = 119,
        wire_dragging = 84,
        write_to_console = 104
    },
    input_method = {
        game_controller = 1,
        keyboard_and_mouse = 0
    },
    inventory = {
        agricultural_tower_input = 2,
        agricultural_tower_output = 3,
        artillery_turret_ammo = 1,
        artillery_wagon_ammo = 1,
        assembling_machine_dump = 7,
        assembling_machine_input = 2,
        assembling_machine_modules = 4,
        assembling_machine_output = 3,
        assembling_machine_trash = 8,
        asteroid_collector_arm = 2,
        asteroid_collector_output = 1,
        beacon_modules = 1,
        burnt_result = 6,
        car_ammo = 3,
        car_trash = 4,
        car_trunk = 2,
        cargo_landing_pad_main = 1,
        cargo_landing_pad_trash = 2,
        cargo_unit = 1,
        cargo_wagon = 1,
        character_ammo = 4,
        character_armor = 5,
        character_corpse = 1,
        character_guns = 3,
        character_main = 1,
        character_trash = 8,
        character_vehicle = 7,
        chest = 1,
        crafter_input = 2,
        crafter_modules = 4,
        crafter_output = 3,
        crafter_trash = 8,
        editor_ammo = 4,
        editor_armor = 5,
        editor_guns = 3,
        editor_main = 1,
        fuel = 1,
        furnace_modules = 4,
        furnace_result = 3,
        furnace_source = 2,
        furnace_trash = 8,
        god_main = 2,
        hub_main = 1,
        hub_trash = 2,
        item_main = 1,
        lab_input = 2,
        lab_modules = 3,
        lab_trash = 8,
        linked_container_main = 1,
        logistic_container_trash = 2,
        mining_drill_modules = 2,
        proxy_main = 1,
        roboport_material = 2,
        roboport_robot = 1,
        robot_cargo = 1,
        robot_repair = 2,
        rocket_silo_input = 2,
        rocket_silo_modules = 4,
        rocket_silo_output = 3,
        rocket_silo_rocket = 9,
        rocket_silo_trash = 11,
        spider_ammo = 3,
        spider_trash = 4,
        spider_trunk = 2,
        turret_ammo = 1
    },
    logistic_group_type = {
        roboport = 1,
        with_trash = 0
    },
    logistic_member_index = {
        car_provider = 2,
        car_requester = 0,
        character_provider = 2,
        character_requester = 0,
        character_storage = 1,
        generic_on_off_behavior = 0,
        logistic_container = 0,
        logistic_container_trash_provider = 1,
        roboport_provider = 0,
        roboport_requester = 1,
        rocket_silo_provider = 0,
        rocket_silo_requester = 1,
        rocket_silo_trash_provider = 2,
        space_platform_hub_provider = 1,
        space_platform_hub_requester = 0,
        spidertron_provider = 2,
        spidertron_requester = 0,
        vehicle_storage = 1
    },
    logistic_mode = {
        active_provider = 1,
        buffer = 5,
        none = 0,
        passive_provider = 4,
        requester = 3,
        storage = 2
    },
    logistic_section_type = {
        circuit_controlled = 1,
        manual = 0,
        request_missing_materials_controlled = 3,
        transitional_request_controlled = 2
    },
    mouse_button_type = {
        left = 2,
        middle = 8,
        none = 1,
        right = 4
    },
    moving_state = {
        adaptive = 2,
        moving = 1,
        stale = 0,
        stuck = 3
    },
    print_skip = {
        if_redundant = 1,
        if_visible = 2,
        never = 0
    },
    print_sound = {
        always = 1,
        never = 0,
        use_player_settings = 2
    },
    prototypes = {
        achievement = {
            achievement = 0,
            ["build-entity-achievement"] = 0,
            ["change-surface-achievement"] = 0,
            ["combat-robot-count-achievement"] = 0,
            ["complete-objective-achievement"] = 0,
            ["construct-with-robots-achievement"] = 0,
            ["create-platform-achievement"] = 0,
            ["deconstruct-with-robots-achievement"] = 0,
            ["deliver-by-robots-achievement"] = 0,
            ["deplete-resource-achievement"] = 0,
            ["destroy-cliff-achievement"] = 0,
            ["dont-build-entity-achievement"] = 0,
            ["dont-craft-manually-achievement"] = 0,
            ["dont-kill-manually-achievement"] = 0,
            ["dont-research-before-researching-achievement"] = 0,
            ["dont-use-entity-in-energy-production-achievement"] = 0,
            ["equip-armor-achievement"] = 0,
            ["group-attack-achievement"] = 0,
            ["kill-achievement"] = 0,
            ["module-transfer-achievement"] = 0,
            ["place-equipment-achievement"] = 0,
            ["player-damaged-achievement"] = 0,
            ["produce-achievement"] = 0,
            ["produce-per-hour-achievement"] = 0,
            ["research-achievement"] = 0,
            ["research-with-science-pack-achievement"] = 0,
            ["shoot-achievement"] = 0,
            ["space-connection-distance-traveled-achievement"] = 0,
            ["train-path-achievement"] = 0,
            ["use-entity-in-energy-production-achievement"] = 0,
            ["use-item-achievement"] = 0
        },
        ["active-trigger"] = {
            ["chain-active-trigger"] = 0,
            ["delayed-active-trigger"] = 0
        },
        ["airborne-pollutant"] = {
            ["airborne-pollutant"] = 0
        },
        ["ambient-sound"] = {
            ["ambient-sound"] = 0
        },
        ["ammo-category"] = {
            ["ammo-category"] = 0
        },
        animation = {
            animation = 0
        },
        ["asteroid-chunk"] = {
            ["asteroid-chunk"] = 0
        },
        ["autoplace-control"] = {
            ["autoplace-control"] = 0
        },
        ["burner-usage"] = {
            ["burner-usage"] = 0
        },
        ["collision-layer"] = {
            ["collision-layer"] = 0
        },
        ["custom-event"] = {
            ["custom-event"] = 0
        },
        ["custom-input"] = {
            ["custom-input"] = 0
        },
        ["damage-type"] = {
            ["damage-type"] = 0
        },
        decorative = {
            ["optimized-decorative"] = 0
        },
        ["deliver-category"] = {
            ["deliver-category"] = 0
        },
        ["deliver-impact-combination"] = {
            ["deliver-impact-combination"] = 0
        },
        ["editor-controller"] = {
            ["editor-controller"] = 0
        },
        entity = {
            accumulator = 0,
            ["agricultural-tower"] = 0,
            ["ammo-turret"] = 0,
            ["arithmetic-combinator"] = 0,
            arrow = 0,
            ["artillery-flare"] = 0,
            ["artillery-projectile"] = 0,
            ["artillery-turret"] = 0,
            ["artillery-wagon"] = 0,
            ["assembling-machine"] = 0,
            asteroid = 0,
            ["asteroid-collector"] = 0,
            beacon = 0,
            beam = 0,
            boiler = 0,
            ["burner-generator"] = 0,
            ["capture-robot"] = 0,
            car = 0,
            ["cargo-bay"] = 0,
            ["cargo-landing-pad"] = 0,
            ["cargo-pod"] = 0,
            ["cargo-wagon"] = 0,
            character = 0,
            ["character-corpse"] = 0,
            cliff = 0,
            ["combat-robot"] = 0,
            ["constant-combinator"] = 0,
            ["construction-robot"] = 0,
            container = 0,
            corpse = 0,
            ["curved-rail-a"] = 0,
            ["curved-rail-b"] = 0,
            ["decider-combinator"] = 0,
            ["deconstructible-tile-proxy"] = 0,
            ["display-panel"] = 0,
            ["electric-energy-interface"] = 0,
            ["electric-pole"] = 0,
            ["electric-turret"] = 0,
            ["elevated-curved-rail-a"] = 0,
            ["elevated-curved-rail-b"] = 0,
            ["elevated-half-diagonal-rail"] = 0,
            ["elevated-straight-rail"] = 0,
            ["entity-ghost"] = 0,
            explosion = 0,
            fire = 0,
            fish = 0,
            ["fluid-turret"] = 0,
            ["fluid-wagon"] = 0,
            furnace = 0,
            ["fusion-generator"] = 0,
            ["fusion-reactor"] = 0,
            gate = 0,
            generator = 0,
            ["half-diagonal-rail"] = 0,
            ["heat-interface"] = 0,
            ["heat-pipe"] = 0,
            ["highlight-box"] = 0,
            ["infinity-cargo-wagon"] = 0,
            ["infinity-container"] = 0,
            ["infinity-pipe"] = 0,
            inserter = 0,
            ["item-entity"] = 0,
            ["item-request-proxy"] = 0,
            lab = 0,
            lamp = 0,
            ["land-mine"] = 0,
            ["lane-splitter"] = 0,
            ["legacy-curved-rail"] = 0,
            ["legacy-straight-rail"] = 0,
            lightning = 0,
            ["lightning-attractor"] = 0,
            ["linked-belt"] = 0,
            ["linked-container"] = 0,
            loader = 0,
            ["loader-1x1"] = 0,
            locomotive = 0,
            ["logistic-container"] = 0,
            ["logistic-robot"] = 0,
            market = 0,
            ["mining-drill"] = 0,
            ["offshore-pump"] = 0,
            ["particle-source"] = 0,
            pipe = 0,
            ["pipe-to-ground"] = 0,
            plant = 0,
            ["player-port"] = 0,
            ["power-switch"] = 0,
            ["programmable-speaker"] = 0,
            projectile = 0,
            ["proxy-container"] = 0,
            pump = 0,
            radar = 0,
            ["rail-chain-signal"] = 0,
            ["rail-ramp"] = 0,
            ["rail-remnants"] = 0,
            ["rail-signal"] = 0,
            ["rail-support"] = 0,
            reactor = 0,
            resource = 0,
            roboport = 0,
            ["rocket-silo"] = 0,
            ["rocket-silo-rocket"] = 0,
            ["rocket-silo-rocket-shadow"] = 0,
            segment = 0,
            ["segmented-unit"] = 0,
            ["selector-combinator"] = 0,
            ["simple-entity"] = 0,
            ["simple-entity-with-force"] = 0,
            ["simple-entity-with-owner"] = 0,
            ["smoke-with-trigger"] = 0,
            ["solar-panel"] = 0,
            ["space-platform-hub"] = 0,
            ["speech-bubble"] = 0,
            ["spider-leg"] = 0,
            ["spider-unit"] = 0,
            ["spider-vehicle"] = 0,
            splitter = 0,
            sticker = 0,
            ["storage-tank"] = 0,
            ["straight-rail"] = 0,
            stream = 0,
            ["temporary-container"] = 0,
            thruster = 0,
            ["tile-ghost"] = 0,
            ["train-stop"] = 0,
            ["transport-belt"] = 0,
            tree = 0,
            turret = 0,
            ["underground-belt"] = 0,
            unit = 0,
            ["unit-spawner"] = 0,
            valve = 0,
            wall = 0
        },
        equipment = {
            ["active-defense-equipment"] = 0,
            ["battery-equipment"] = 0,
            ["belt-immunity-equipment"] = 0,
            ["energy-shield-equipment"] = 0,
            ["equipment-ghost"] = 0,
            ["generator-equipment"] = 0,
            ["inventory-bonus-equipment"] = 0,
            ["movement-bonus-equipment"] = 0,
            ["night-vision-equipment"] = 0,
            ["roboport-equipment"] = 0,
            ["solar-panel-equipment"] = 0
        },
        ["equipment-category"] = {
            ["equipment-category"] = 0
        },
        ["equipment-grid"] = {
            ["equipment-grid"] = 0
        },
        fluid = {
            fluid = 0
        },
        font = {
            font = 0
        },
        ["fuel-category"] = {
            ["fuel-category"] = 0
        },
        ["god-controller"] = {
            ["god-controller"] = 0
        },
        ["gui-style"] = {
            ["gui-style"] = 0
        },
        ["impact-category"] = {
            ["impact-category"] = 0
        },
        item = {
            ammo = 0,
            armor = 0,
            blueprint = 0,
            ["blueprint-book"] = 0,
            capsule = 0,
            ["copy-paste-tool"] = 0,
            ["deconstruction-item"] = 0,
            gun = 0,
            item = 0,
            ["item-with-entity-data"] = 0,
            ["item-with-inventory"] = 0,
            ["item-with-label"] = 0,
            ["item-with-tags"] = 0,
            module = 0,
            ["rail-planner"] = 0,
            ["repair-tool"] = 0,
            ["selection-tool"] = 0,
            ["space-platform-starter-pack"] = 0,
            ["spidertron-remote"] = 0,
            tool = 0,
            ["upgrade-item"] = 0
        },
        ["item-group"] = {
            ["item-group"] = 0
        },
        ["item-subgroup"] = {
            ["item-subgroup"] = 0
        },
        ["map-gen-presets"] = {
            ["map-gen-presets"] = 0
        },
        ["map-settings"] = {
            ["map-settings"] = 0
        },
        ["mod-data"] = {
            ["mod-data"] = 0
        },
        ["module-category"] = {
            ["module-category"] = 0
        },
        ["mouse-cursor"] = {
            ["mouse-cursor"] = 0
        },
        ["noise-expression"] = {
            ["noise-expression"] = 0
        },
        ["noise-function"] = {
            ["noise-function"] = 0
        },
        particle = {
            ["optimized-particle"] = 0
        },
        procession = {
            procession = 0
        },
        ["procession-layer-inheritance-group"] = {
            ["procession-layer-inheritance-group"] = 0
        },
        quality = {
            quality = 0
        },
        recipe = {
            recipe = 0
        },
        ["recipe-category"] = {
            ["recipe-category"] = 0
        },
        ["remote-controller"] = {
            ["remote-controller"] = 0
        },
        ["resource-category"] = {
            ["resource-category"] = 0
        },
        shortcut = {
            shortcut = 0
        },
        sound = {
            sound = 0
        },
        ["space-connection"] = {
            ["space-connection"] = 0
        },
        ["space-location"] = {
            planet = 0,
            ["space-location"] = 0
        },
        ["spectator-controller"] = {
            ["spectator-controller"] = 0
        },
        sprite = {
            sprite = 0
        },
        surface = {
            surface = 0
        },
        ["surface-property"] = {
            ["surface-property"] = 0
        },
        technology = {
            technology = 0
        },
        tile = {
            tile = 0
        },
        ["tile-effect"] = {
            ["tile-effect"] = 0
        },
        ["tips-and-tricks-item"] = {
            ["tips-and-tricks-item"] = 0
        },
        ["tips-and-tricks-item-category"] = {
            ["tips-and-tricks-item-category"] = 0
        },
        ["trigger-target-type"] = {
            ["trigger-target-type"] = 0
        },
        ["trivial-smoke"] = {
            ["trivial-smoke"] = 0
        },
        tutorial = {
            tutorial = 0
        },
        ["utility-constants"] = {
            ["utility-constants"] = 0
        },
        ["utility-sounds"] = {
            ["utility-sounds"] = 0
        },
        ["utility-sprites"] = {
            ["utility-sprites"] = 0
        },
        ["virtual-signal"] = {
            ["virtual-signal"] = 0
        }
    },
    rail_connection_direction = {
        left = 0,
        none = 3,
        right = 2,
        straight = 1
    },
    rail_direction = {
        back = 1,
        front = 0
    },
    rail_layer = {
        elevated = 1,
        ground = 0
    },
    relative_gui_position = {
        bottom = 1,
        left = 2,
        right = 3,
        top = 0
    },
    relative_gui_type = {
        accumulator_gui = "accumulator-gui",
        achievement_gui = "achievement-gui",
        additional_entity_info_gui = "additional-entity-info-gui",
        admin_gui = "admin-gui",
        agriculture_tower_gui = "agriculture-tower-gui",
        arithmetic_combinator_gui = "arithmetic-combinator-gui",
        armor_gui = "armor-gui",
        assembling_machine_gui = "assembling-machine-gui",
        assembling_machine_select_recipe_gui = "assembling-machine-select-recipe-gui",
        asteroid_collector_gui = "asteroid-collector-gui",
        beacon_gui = "beacon-gui",
        blueprint_book_gui = "blueprint-book-gui",
        blueprint_library_gui = "blueprint-library-gui",
        blueprint_setup_gui = "blueprint-setup-gui",
        bonus_gui = "bonus-gui",
        burner_equipment_gui = "burner-equipment-gui",
        car_gui = "car-gui",
        cargo_landing_pad_gui = "cargo-landing-pad-gui",
        constant_combinator_gui = "constant-combinator-gui",
        container_gui = "container-gui",
        controller_gui = "controller-gui",
        decider_combinator_gui = "decider-combinator-gui",
        deconstruction_item_gui = "deconstruction-item-gui",
        display_panel_gui = "display-panel-gui",
        electric_energy_interface_gui = "electric-energy-interface-gui",
        electric_network_gui = "electric-network-gui",
        entity_variations_gui = "entity-variations-gui",
        entity_with_energy_source_gui = "entity-with-energy-source-gui",
        equipment_grid_gui = "equipment-grid-gui",
        furnace_gui = "furnace-gui",
        generic_on_off_entity_gui = "generic-on-off-entity-gui",
        ghost_picker_gui = "ghost-picker-gui",
        global_electric_network_gui = "global-electric-network-gui",
        heat_interface_gui = "heat-interface-gui",
        infinity_pipe_gui = "infinity-pipe-gui",
        inserter_gui = "inserter-gui",
        item_with_inventory_gui = "item-with-inventory-gui",
        lab_gui = "lab-gui",
        lamp_gui = "lamp-gui",
        linked_container_gui = "linked-container-gui",
        loader_gui = "loader-gui",
        logistic_gui = "logistic-gui",
        market_gui = "market-gui",
        mining_drill_gui = "mining-drill-gui",
        other_player_gui = "other-player-gui",
        permissions_gui = "permissions-gui",
        pick_stop_gui = "pick-stop-gui",
        pipe_gui = "pipe-gui",
        power_switch_gui = "power-switch-gui",
        production_gui = "production-gui",
        programmable_speaker_gui = "programmable-speaker-gui",
        proxy_container_gui = "proxy-container-gui",
        pump_gui = "pump-gui",
        rail_signal_base_gui = "rail-signal-base-gui",
        reactor_gui = "reactor-gui",
        resource_entity_gui = "resource-entity-gui",
        roboport_gui = "roboport-gui",
        rocket_silo_gui = "rocket-silo-gui",
        script_inventory_gui = "script-inventory-gui",
        selector_combinator_gui = "selector-combinator-gui",
        server_config_gui = "server-config-gui",
        space_platform_hub_gui = "space-platform-hub-gui",
        spider_vehicle_gui = "spider-vehicle-gui",
        splitter_gui = "splitter-gui",
        standalone_character_gui = "standalone-character-gui",
        storage_tank_gui = "storage-tank-gui",
        tile_variations_gui = "tile-variations-gui",
        tips_and_tricks_gui = "tips-and-tricks-gui",
        train_gui = "train-gui",
        train_stop_gui = "train-stop-gui",
        trains_gui = "trains-gui",
        transport_belt_gui = "transport-belt-gui",
        turret_gui = "turret-gui",
        upgrade_item_gui = "upgrade-item-gui",
        wall_gui = "wall-gui"
    },
    render_mode = {
        chart = 2,
        chart_zoomed_in = 3,
        game = 1
    },
    rich_text_setting = {
        disabled = 0,
        enabled = 17,
        highlight = 30
    },
    riding = {
        acceleration = {
            accelerating = 1,
            braking = 2,
            nothing = 0,
            reversing = 3
        },
        direction = {
            left = 0,
            right = 2,
            straight = 1
        }
    },
    robot_order_type = {
        construct = 2,
        deconstruct = 3,
        deliver = 7,
        deliver_items = 4,
        explode_cliff = 6,
        pickup = 0,
        pickup_items = 8,
        repair = 1,
        upgrade = 5
    },
    rocket_silo_status = {
        arms_advance = 6,
        arms_retract = 10,
        building_rocket = 0,
        create_rocket = 1,
        doors_closing = 13,
        doors_opened = 4,
        doors_opening = 3,
        engine_starting = 9,
        launch_started = 14,
        launch_starting = 8,
        lights_blinking_close = 12,
        lights_blinking_open = 2,
        rocket_flying = 11,
        rocket_ready = 7,
        rocket_rising = 5
    },
    selection_mode = {
        alt_reverse_select = 5,
        alt_select = 2,
        reverse_select = 4,
        select = 1
    },
    shooting = {
        not_shooting = 0,
        shooting_enemies = 1,
        shooting_selected = 2
    },
    signal_state = {
        closed = 1,
        open = 0,
        reserved = 2,
        reserved_by_circuit_network = 3
    },
    space_platform_state = {
        no_path = 5,
        no_schedule = 4,
        on_the_path = 2,
        paused = 7,
        starter_pack_on_the_way = 1,
        starter_pack_requested = 8,
        waiting_at_station = 6,
        waiting_for_departure = 3,
        waiting_for_starter_pack = 0
    },
    target_type = {
        cargo_hatch = 19,
        commandable = 16,
        custom_chart_tag = 17,
        entity = 1,
        equipment = 2,
        equipment_grid = 3,
        gui_element = 18,
        item = 4,
        logistic_cell = 5,
        logistic_network = 6,
        logistic_section = 7,
        permission_group = 8,
        planet = 9,
        player = 10,
        rail_path = 11,
        render_object = 12,
        schedule = 20,
        space_platform = 13,
        surface = 14,
        train = 15
    },
    train_state = {
        arrive_signal = 3,
        arrive_station = 5,
        destination_full = 9,
        manual_control = 8,
        manual_control_stop = 7,
        no_path = 2,
        no_schedule = 1,
        on_the_path = 0,
        wait_signal = 4,
        wait_station = 6
    },
    transport_line = {
        left_line = 1,
        left_split_line = 5,
        left_underground_line = 3,
        right_line = 2,
        right_split_line = 6,
        right_underground_line = 4,
        secondary_left_line = 3,
        secondary_left_split_line = 7,
        secondary_right_line = 4,
        secondary_right_split_line = 8
    },
    wire_connector_id = {
        circuit_green = 2,
        circuit_red = 1,
        combinator_input_green = 2,
        combinator_input_red = 1,
        combinator_output_green = 4,
        combinator_output_red = 3,
        pole_copper = 5,
        power_switch_left_copper = 5,
        power_switch_right_copper = 6
    },
    wire_origin = {
        player = 1,
        radars = 3,
        script = 2
    },
    wire_type = {
        copper = 1,
        green = 3,
        red = 2
    }
}