diff --git a/OLD/PHI-EQ/.editorconfig b/OLD/PHI-EQ/.editorconfig deleted file mode 100644 index 73c5516..0000000 --- a/OLD/PHI-EQ/.editorconfig +++ /dev/null @@ -1,8 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 4 -charset = utf-8 -trim_trailing_whitespace = false -insert_final_newline = false \ No newline at end of file diff --git a/OLD/PHI-EQ/.luacheckrc b/OLD/PHI-EQ/.luacheckrc deleted file mode 100644 index 0da1ad4..0000000 --- a/OLD/PHI-EQ/.luacheckrc +++ /dev/null @@ -1,1597 +0,0 @@ -------------------------------------------------------------------------------- ---[LICENSE]-- -------------------------------------------------------------------------------- --- .luacheckrc --- This file is free and unencumbered software released into the public domain. --- --- Anyone is free to copy, modify, publish, use, compile, sell, or --- distribute this file, either in source code form or as a compiled --- binary, for any purpose, commercial or non-commercial, and by any --- means. --- --- In jurisdictions that recognize copyright laws, the author or authors --- of this file dedicate any and all copyright interest in the --- software to the public domain. We make this dedication for the benefit --- of the public at large and to the detriment of our heirs and --- successors. We intend this dedication to be an overt act of --- relinquishment in perpetuity of all present and future rights to this --- software under copyright law. --- --- THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, --- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR --- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, --- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR --- OTHER DEALINGS IN THE SOFTWARE. --- --- For more information, please refer to --- ]] - --- Current Factorio Version 0.17.0, luacheck version 0.23.0 - -------------------------------------------------------------------------------- ---[Set Defaults]-- -------------------------------------------------------------------------------- -local LINE_LENGTH = false -- It is 2017 limits on length are a waste -local IGNORE = {'21./%w+_$', '21./^_%w+$', '213/[ijk]', '213/index', '213/key'} -local NOT_GLOBALS = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'} -- These globals are not available to the factorio API - -local STD_CONTROL = 'lua52c+factorio+factorio_control+stdlib+factorio_defines' -local STD_DATA = 'lua52c+factorio+factorio_data+stdlib+stdlib_data+factorio_defines' -local STD_LOVE = 'luajit+love+love_extra+stdlib+stdlib_data' - --- In a perfect world these would be STD_DATA and STD_CONTROL (mostly) -local STD_BASE_DATA = 'lua52c+factorio+factorio_data+factorio_defines+factorio_base_data' -local STD_BASE_CONTROL = 'lua52c+factorio+factorio_control+factorio_defines+factorio_base_control' - -------------------------------------------------------------------------------- ---[Assume Factorio Control stage as default]-- -------------------------------------------------------------------------------- -std = STD_CONTROL -max_line_length = LINE_LENGTH - -not_globals = NOT_GLOBALS -ignore = IGNORE -quiet = 1 -- pass -q option -max_cyclomatic_complexity = 75 -codes = true - ---List of files and directories to exclude -exclude_files = { - --Ignore special folders - '**/.*/*', --Ignore if path starts with . - '**/stdlib/vendor/', - '**/*WIP/', - - --Ignore development mods - '**/combat-tester/', - '**/test-maker/', - '**/trailer/', - - --Ignore love Includes - '**/love/includes/' -} - -------------------------------------------------------------------------------- ---[Mod Prototypes]-- -------------------------------------------------------------------------------- ---Set default prototype files -files['**/data.lua'].std = STD_DATA -files['**/data-updates.lua'].std = STD_DATA -files['**/data-final-fixes.lua'].std = STD_DATA -files['**/settings.lua'].std = STD_DATA -files['**/settings-updates.lua'].std = STD_DATA -files['**/settings-final-fixes.lua'].std = STD_DATA -files['**/prototypes/'].std = STD_DATA -files['**/settings/'].std = STD_DATA -files['**/love/'] = {std = STD_LOVE, globals = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'}} - -------------------------------------------------------------------------------- ---[Base]-- -------------------------------------------------------------------------------- ---Find and replace ignores *.cfg, migrations, *.txt, control.lua, *.json, trailer, scenarios, campaigns, *.glsl - -local base_scenarios = { - std = STD_BASE_CONTROL .. '+factorio_base_scenarios+factorio_base_story', - --ignore = {'212/event', '111', '112', '113', '211', '212', '213', '311', '411', '412', '421', '422', '423', '431', '432', '512'} - ignore = {'...'} -} -files['**/base/scenarios/'] = base_scenarios -files['**/base/tutorials/'] = base_scenarios -files['**/base/campaigns/'] = base_scenarios -files['**/wip-scenario/'] = base_scenarios - -files['**/base/migrations/'] = {std = STD_BASE_CONTROL} - -files['**/core/lualib/'] = {std = STD_BASE_CONTROL} -files['**/core/lualib/util.lua'] = {globals = {'util', 'table'}, ignore = {'432/object'}} -files['**/core/lualib/silo-script.lua'] = {globals = {'silo_script'}, ignore = {'4../player'}} -files['**/core/lualib/production-score.lua'] = {globals = {'production_score', 'get_price_recursive'}, ignore = {'4../player'}} -files['**/core/lualib/story*'] = {std = '+factorio_base_story', ignore = {'42./k', '42./filter'}} -files['**/core/lualib/mod-gui.lua'] = {globals = {'mod_gui'}} -files['**/core/lualib/camera.lua'] = {globals = {'camera'}} -files['**/core/lualib/builder.lua'] = {globals = {'Builder', 'builder', 'action', 'down', 'right'}} - -files['**/core/lualib/bonus-gui-ordering/'] = {std = STD_BASE_DATA} -files['**/core/lualib/dataloader.lua'] = {globals = {'data'}} -files['**/core/lualib/circuit-connector-*'] = {std = STD_BASE_DATA..'+factorio_circuit_connector_generated'} -files['**/core/lualib/bonus-gui-ordering.lua'] = {globals = {'bonus_gui_ordering'}} - -files['**/base/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/noise-programs.lua'] = {ignore = {'212/x', '212/y', '212/tile', '212/map'}} - ---(( stdlib ))-- -local stdlib_control = { - std = 'lua52c+factorio+factorio_control+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - -local stdlib_data = { - std = 'lua52c+factorio+factorio_data+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - --- Assume control stage for stdlib -files['**/stdlib/'] = stdlib_control - --- Assume generic content for stdlib utils -files['**/stdlib/utils/**'].std = 'lua52c+stdlib' - --- STDLIB data files -files['**/stdlib/data/'] = stdlib_data - --- STDLIB Busted Spec -files['**/spec/**'] = { - globals = {'serpent', 'log', 'SLOG', 'RESET'}, - std = 'lua52c+busted+factorio_defines+factorio_control+stdlib' -} --)) - ---(( Factorio ))-- -stds.factorio = { - --Set the read only variables - read_globals = { - -- @log@: Gives writing access to Factorio's logger instance. - "log", - -- @serpent@: Lua serializer and pretty printer. (https://github.com/pkulchenko/serpent) - "serpent", - -- @table_size@: Returns the number of elements inside an LUA table - "table_size", - util = { - fields = { - "by_pixel", "distance", "findfirstentity", "positiontostr", "formattime", "moveposition", "oppositedirection", - "ismoduleavailable", "multiplystripes", "format_number", "increment", "color", "conditional_return", - "add_shift", "merge", "premul_color", "encode", "decode", "insert_safe", - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, - }, - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, -} - -stds.factorio_control = { - read_globals = { - - -- @commands@: - commands = { - fields = { - "add_command", "commands", "game_commands", "remove_command" - }, - }, - - -- @settings@: - settings = { - fields = { - "get_player_settings", - startup = {read_only = false, other_fields = true}, - global = {read_only = false, other_fields = true}, - player = {read_only = false, other_fields = true}, - }, - }, - - -- @script@: Provides an interface for registering event handlers. - -- (http://lua-api.factorio.com/latest/LuaBootstrap.html) - script = { - fields = { - "on_event", "on_nth_tick", "on_configuration_changed", "on_init", "on_load", "generate_event_name", - "raise_event", "get_event_handler", "mod_name", "get_event_order" - }, - other_fields = false, - }, - - -- @remote@: Allows inter-mod communication by providing a repository of interfaces that is shared by all mods. - -- (http://lua-api.factorio.com/latest/LuaRemote.html) - remote = { - fields = { - interfaces = {read_only = false, other_fields = true}, - "add_interface", "remove_interface", "call" - }, - read_only = true, - other_fields = false, - }, - - rcon = { - fields = {'print'} - }, - - rendering = { - other_fields = false, - read_only = true, - fields = { - 'draw_animation', - 'draw_line', - 'draw_text', - 'draw_circle', - 'draw_rectangle', - 'draw_arc', - 'draw_polygon', - 'draw_sprite', - 'draw_light', - 'destroy', - 'is_font_valid', - 'is_valid', - 'get_all_ids', - 'clear', - 'get_type', - 'get_surface', - 'get_time_to_live', - 'set_time_to_live', - 'get_forces', - 'set_forces', - 'get_players', - 'set_players', - 'get_color', - 'set_color', - 'get_width', - 'set_width', - 'get_from', - 'set_from', - 'get_to', - 'set_to', - 'get_gap_amount', - 'set_gap_amount', - 'get_gap_length', - 'set_gap_length', - 'get_target', - 'set_target', - 'get_orientation', - 'set_orientation', - 'get_scale', - 'set_scale', - 'get_text', - 'set_text', - 'get_font', - 'set_font', - 'get_alignment', - 'set_alignment', - 'get_scale_with_zoom', - 'set_scale_with_zoom', - 'get_filled', - 'set_filled', - 'get_radius', - 'set_radius', - 'get_left_top', - 'set_left_top', - 'get_right_bottom', - 'set_right_bottom', - 'get_max_radius', - 'set_max_radius', - 'get_min_radius', - 'set_min_radius', - 'get_start_angle', - 'set_start_angle', - 'get_angle', - 'set_angle', - 'get_vertices', - 'set_vertices', - 'get_sprite', - 'set_sprite', - 'get_x_scale', - 'set_x_scale', - 'get_y_scale', - 'set_y_scale', - 'get_render_layer', - 'set_render_layer', - 'get_orientation_target', - 'set_orientation_target', - 'get_oriented_offset', - 'set_oriented_offset', - 'get_intensity', - 'set_intensity', - 'get_minimum_darkness', - 'set_minimum_darkness' - } - }, - - -- @game@: Main object through which most of the API is accessed. - -- It is, however, not available inside handlers registered with @script.on_load@. - -- (http://lua-api.factorio.com/latest/LuaGameScript.html) - game ={ - other_fields = false, - read_only = false, - fields = { - "auto_save", - "ban_player", - "check_consistency", - "check_prototype_translations", - "count_pipe_groups", - "create_force", - "create_profiler", - "create_random_generator", - "get_surface", - "create_surface", - "delete_surface", - "desync_players", - "direction_to_string", - "disable_replay", - "disable_tips_and_tricks", - "draw_resource_selection", - "force_crc", - "get_active_entities_count", - "get_entity_by_tag", - "get_map_exchange_string", - "get_player", - "help", - "is_demo", - "is_multiplayer", - "is_valid_sound_path", - "json_to_table", - "kick_player", - "merge_forces", - "mute_player", - "play_sound", - "print", - "print_stack_size", - "purge_player", - "regenerate_entity", - "reload_mods", - "reload_script", - "remove_offline_players", - "remove_path", - "save_atlas", - "server_save", - "set_game_state", - "show_message_dialog", - "table_to_json", - "take_screenshot", - "take_technology_screenshot", - "unban_player", - "unmute_player", - "write_file", - "get_filtered_entity_prototypes", - "get_filtered_item_prototypes", - "get_filtered_equipment_prototypes", - "get_filtered_mod_setting_prototypes", - "get_filtered_achievement_prototypes", - - active_mods = {read_only = true, other_fields = true}, - ammo_category_prototypes = {read_only = true, other_fields = true}, - autoplace_control_prototypes = {read_only = true, other_fields = true}, - backer_names = {read_only = true, other_fields = true}, - connected_players = {read_only = true, other_fields = true}, - custom_input_prototypes = {read_only = true, other_fields = true}, - damage_prototypes = {read_only = true, other_fields = true}, - decorative_prototypes = {read_only = true, other_fields = true}, - default_map_gen_settings = {read_only = true, other_fields = true}, - difficulty = {read_only = true, other_fields = true}, - difficulty_settings = {read_only = true, other_fields = true}, - enemy_has_vision_on_land_mines = {read_only = false, other_fields = false}, - entity_prototypes = {read_only = true, other_fields = true}, - equipment_grid_prototypes = {read_only = true, other_fields = true}, - equipment_prototypes = {read_only = true, other_fields = true}, - finished = {read_only = true, other_fields = true}, - fluid_prototypes = {read_only = true, other_fields = true}, - forces = {read_only = true, other_fields = true}, - item_prototypes = {read_only = true, other_fields = true}, - map_settings = {read_only = true, other_fields = true}, - mod_setting_prototypes = {read_only = true, other_fields = true}, - noise_layer_prototypes = {read_only = true, other_fields = true}, - permissions = {read_only = true, other_fields = true}, - player = {read_only = true, other_fields = true}, - players = {read_only = true, other_fields = true}, - recipe_prototypes = {read_only = true, other_fields = true}, - speed = {read_only = false, other_fields = false}, - styles = {read_only = true, other_fields = true}, - surfaces = {read_only = true, other_fields = true}, - technology_prototypes = {read_only = true, other_fields = true}, - tick = {read_only = true, other_fields = true}, - tick_paused = {read_only = false, other_fields = false}, - ticks_played = {read_only = true, other_fields = true}, - ticks_to_run = {read_only = false, other_fields = false}, - tile_prototypes = {read_only = true, other_fields = true}, - virtual_signal_prototypes = {read_only = true, other_fields = true}, - pollution_statistics = {read_only = true, other_fields = true} - }, - }, - }, - - globals = { - -- @global@: The global dictionary, useful for storing data persistent across a save-load cycle. - -- Writing access is given to the mod-id field (for mod-wise saved data). - -- (http://lua-api.factorio.com/latest/Global.html) - "global", - - -- @MOD@: Keep it organized, use this variable for anything that "NEEDS" to be global for some reason. - "MOD" - }, -} - -stds.factorio_data = { - - read_globals = { - data = { - fields = { - raw = { - other_fields = true, - read_only = false - }, - "extend", "is_demo" - }, - }, - - settings = { - fields = { - "startup", "global", "player", - }, - }, - - --Popular mods - angelsmods = { - other_fields = true - }, - - bobmods = { - other_fields = true - }, - - mods = { - other_fields = true - } - } -} --)) - ---(( Factorio Globals are bad mkay ))-- -stds.factorio_base_control = { - read_globals = {"silo_script", "mod_gui", "camera"} -} - -stds.factorio_base_scenarios = { - globals = { - "check_automate_science_packs_advice", "check_research_hints", "check_supplies", "manage_attacks", "all_dead", - "on_win", "difficulty_number", "init_attack_data", "handle_attacks", "count_items_in_container", "progress", "scanned", - "check_light", "check_machine_gun", "level", "story_table", - - "tightspot_prices", "tightspot_make_offer", "tightspot_init", "tightspot_get_required_balance", - "tightspot_init_level", "tightspot_init_spending_frame", "tightspot_init_progress_frame", "tightspot_update_progress", "tightspot_update_spending", - "tightspot_get_missing_to_win", "tightspot_sell_back", "tightspot_start_level", "tightspot_show_level_description", "tightspot_update_speed_label", - "map_ignore", "tightspot_check_level", "land_price", - - "transport_belt_madness_init", "transport_belt_madness_init_level", "transport_belt_madness_create_chests", "transport_belt_madness_fill_chests", - "transport_belt_madness_start_level", "map_ignore", "map_clear", "map_load", "map_save", "transport_belt_madness_show_level_description", - "transport_belt_madness_check_level", "transport_belt_madness_next_level", "transport_belt_madness_clear_level", "transport_belt_madness_contains_next_level", - - "restricted", "check_built_items", "result", "disable_combat_technologies", "apply_character_modifiers", "apply_combat_modifiers", "apply_balance", - "load_config", "starting_area_constant", "create_next_surface", "end_round", "prepare_next_round", "silo_died","choose_joining_gui", - "destroy_joining_guis", "create_random_join_gui", "create_auto_assign_gui", "create_pick_join_gui", "create_config_gui", "make_config_table", "default", - "make_team_gui", "make_team_gui_config", "add_team_button_press", "trash_team_button_press", "remove_team_from_team_table", "add_team_to_team_table", - "set_teams_from_gui", "on_team_button_press", "make_color_dropdown", "create_balance_option", "create_disable_frame", "disable_frame", "parse_disabled_items", - "set_balance_settings", "config_confirm", "parse_config_from_gui", "get_color", "roll_starting_area", "delete_roll_surfaces", "auto_assign", - "destroy_config_for_all", "prepare_map", "set_evolution_factor", "update_players_on_team_count", "random_join", "init_player_gui", - "destroy_player_gui", "objective_button_press", "admin_button_press", "admin_frame_button_press", "diplomacy_button_press", "update_diplomacy_frame", - "diplomacy_frame_button_press", "team_changed_diplomacy", "diplomacy_check_press", "get_stance", "give_inventory", "setup_teams", "disable_items_for_all", - "set_random_team", "set_diplomacy", "create_spawn_positions", "set_spawn_position", "set_team_together_spawns", "chart_starting_area_for_force_spawns", - "check_starting_area_chunks_are_generated", "check_player_color", "check_round_start", "clear_starting_area_enemies", "check_no_rush_end", "check_no_rush_players", - "finish_setup", "chart_area_for_force", "setup_start_area_copy", "update_copy_progress", "update_progress_bar", "copy_paste_starting_area_tiles", - "copy_paste_starting_area_entities", "create_silo_for_force", "setup_research", "on_chunk_generated", "get_distance_to_nearest_spawn", - "create_wall_for_force", "fpn", "give_items", "create_item_frame", "create_technologies_frame", "create_cheat_frame", "create_day_frame", - "time_modifier", "points_per_second_start", "points_per_second_level_subtract", "levels", "update_info", "get_time_left", "update_time_left", - "on_joined", "make_frame", "update_frame", "update_table", "calculate_task_item_multiplayer", "setup_config", "select_from_probability_table", - "select_inventory", "select_equipment", "select_challange_type", "save_round_statistics", "start_challenge", "create_teams", "set_areas", - "decide_player_team", "set_teams", "refresh_leaderboard", "set_player", "generate_technology_list", "generate_research_task","setup_unlocks", - "check_technology_progress", "generate_production_task", "generate_shopping_list_task", "set_gui_flow_table", "create_visibility_button", - "check_item_lists", "update_task_gui", "check_end_of_round", "end_round_gui_update", "try_to_check_victory", "update_gui", "check_start_round", - "check_start_set_areas", "check_start_setting_entities", "check_set_areas", "check_clear_areas", "check_chests", "check_chests_shopping_list", - "check_chests_production", "check_input_chests", "fill_input_chests", "check_victory", "shopping_task_finished", "calculate_force_points", - "update_research_task_table", "update_production_task_table", "update_shopping_list_task_table", "create_joined_game_gui", "pre_ending_round", - "player_ending_prompt", "update_end_timer", "update_begin_timer", "team_finished", "save_points_list", "give_force_players_points", - "update_winners_list", "set_spectator", "set_character", "give_starting_inventory", "give_equipment", "shuffle_table", "format_time", - "spairs", "fill_leaderboard", "create_grid", "simple_entities", "save_map_data", "clear_map", "create_tiles", "recreate_entities", - "map_sets", "give_points", "init_forces", "init_globals", "init_unit_settings", "check_next_wave", "next_wave", "calculate_wave_power", - "wave_end", "make_next_spawn_tick", "check_spawn_units", "get_wave_units", "spawn_units", "randomize_ore", "set_command", "command_straglers", - "unit_config", "make_next_wave_tick", "time_to_next_wave", "time_to_wave_end", "rocket_died", "unit_died", "get_bounty_price", "setup_waypoints", - "insert_items", "give_starting_equipment", "give_spawn_equipment", "next_round_button_visible", "gui_init", "create_wave_frame", "create_money_frame", - "create_upgrade_gui", "update_upgrade_listing", "upgrade_research", "get_upgrades", "get_money", "update_connected_players", "update_round_number", - "set_research", "set_recipes", "check_deconstruction", "check_blueprint_placement", "loop_entities", "experiment_items", - "setup", "story_gui_click", "clear_surface", "add_run_trains_button", "puzzle_condition", "basic_signals", - "loop_trains", "Y_offset", "ghosts_1", "ghosts_2", "required_path", "through_wall_path", "count", "check_built_real_rail", - "current_ghosts_count", "other", "rails", "set_rails", "straight_section", "late_entities", "entities", "stop", - "get_spawn_coordinate", - - --tutorials - "intermission", "create_entities_on_tick", "on_player_created", "required_count", "non_player_entities", "clear_rails", - "chest", "damage", "furnace", "init_prototypes", "build_infi_table", "junk", "update_player_tags", "time_left", "team_production", - "create_task_frame", "create_visibilty_buttons", "update_leaderboard", "in_in_area" - } -} - -stds.factorio_base_data = { - globals = { - --Style - "make_cursor_box", "make_full_cursor_box", - "default_container_padding", "default_orange_color", "default_light_orange_color", "warning_red_color", - "achievement_green_color", "achievement_tan_color", "orangebuttongraphcialset", "bluebuttongraphcialset", - "bonus_gui_ordering", "trivial_smoke", "technology_slot_base_width", "technology_slot_base_height", "default_frame_font_vertical_compensation", - - --Belts - "transport_belt_connector_frame_sprites", "transport_belt_circuit_wire_connection_point", "transport_belt_circuit_wire_max_distance", - "transport_belt_circuit_connector_sprites", "ending_patch_prototype", "basic_belt_horizontal", "basic_belt_vertical", - "basic_belt_ending_top", "basic_belt_ending_bottom", "basic_belt_ending_side", "basic_belt_starting_top", "basic_belt_starting_bottom", - "basic_belt_starting_side", "fast_belt_horizontal", "fast_belt_vertical", "fast_belt_ending_top", "fast_belt_ending_bottom", - "fast_belt_ending_side", "fast_belt_starting_top", "fast_belt_starting_bottom", "fast_belt_starting_side", "express_belt_horizontal", - "express_belt_vertical", "express_belt_ending_top", "express_belt_ending_bottom", "express_belt_ending_side", "express_belt_starting_top", - "express_belt_starting_bottom", "express_belt_starting_side", - - --Circuit Connectors - "circuit_connector_definitions", "default_circuit_wire_max_distance", "inserter_circuit_wire_max_distance", - "universal_connector_template", "belt_connector_template", "belt_frame_connector_template", "inserter_connector_template", - - --Inserter Circuit Connectors - "inserter_circuit_wire_max_distance", "inserter_default_stack_control_input_signal", - - --Sounds/beams - "make_heavy_gunshot_sounds", "make_light_gunshot_sounds", "make_laser_sounds", - - --Gun/Laser - "gun_turret_extension", "gun_turret_extension_shadow", "gun_turret_extension_mask", "gun_turret_attack", - "laser_turret_extension", "laser_turret_extension_shadow", "laser_turret_extension_mask", - - --Pipes - "pipecoverspictures", "pipepictures", "assembler2pipepictures", "assembler3pipepictures", "make_heat_pipe_pictures", - - --Combinators - "generate_arithmetic_combinator", "generate_decider_combinator", "generate_constant_combinator", - - --Rail - "destroyed_rail_pictures", "rail_pictures", "rail_pictures_internal", "standard_train_wheels", "drive_over_tie", - "rolling_stock_back_light", "rolling_stock_stand_by_light", - - --Enemies - "make_enemy_autoplace", "make_enemy_spawner_autoplace", "make_enemy_worm_autoplace", - "make_spitter_attack_animation", "make_spitter_run_animation", "make_spitter_dying_animation", - "make_spitter_attack_parameters", "make_spitter_roars", "make_spitter_dying_sounds", - "make_spawner_idle_animation", "make_spawner_die_animation", - "make_biter_run_animation", "make_biter_attack_animation", "make_biter_die_animation", - "make_biter_roars", "make_biter_dying_sounds", "make_biter_calls", - "make_worm_roars", "make_worm_dying_sounds", "make_worm_folded_animation", "make_worm_preparing_animation", - "make_worm_prepared_animation", "make_worm_attack_animation", "make_worm_die_animation", - - --Other - "tile_variations_template", "make_water_autoplace_settings", - "make_unit_melee_ammo_type", "make_trivial_smoke", "make_4way_animation_from_spritesheet", "flying_robot_sounds", - "productivitymodulelimitation", "crash_trigger", "capsule_smoke", "make_beam", "playeranimations", - "make_blood_tint", "make_shadow_tint", - - --tiles - "water_transition_template", "make_water_transition_template", "water_autoplace_settings", "water_tile_type_names", - "patch_for_inner_corner_of_transition_between_transition", - } -} - -stds.factorio_base_story = { - globals = { - "story_init_helpers", "story_update_table", "story_init", "story_update", "story_on_tick", "story_add_update", - "story_remove_update", "story_jump_to", "story_elapsed", "story_elapsed_check", "story_show_message_dialog", - "set_goal", "player_set_goal", "on_player_joined", "flash_goal", "set_info", "player_set_info", "export_entities", - "list", "recreate_entities", "entity_to_connect", "limit_camera", "find_gui_recursive", "enable_entity_export", - "add_button", "on_gui_click", "set_continue_button_style", "add_message_log", "story_add_message_log", - "player_add_message_log", "message_log_frame", "message_log_scrollpane", "message_log_close_button", - "message_log_table", "toggle_message_log_button", "toggle_objective_button", "message_log_init", - "add_gui_recursive", "add_toggle_message_log_button", "add_toggle_objective_button", "mod_gui", - "flash_message_log_button", "flash_message_log_on_tick", "story_gui_click", "story_points_by_name", "story_branches", - "player", "surface", "deconstruct_on_tick", "recreate_entities_on_tick", "flying_congrats", "story_table" - } -} - -stds.factorio_circuit_connector_generated = { - globals = { - 'default_circuit_wire_max_distance', 'circuit_connector_definitions', 'universal_connector_template', - 'belt_connector_template', 'belt_frame_connector_template', 'inserter_connector_template', 'inserter_connector_template', - 'inserter_circuit_wire_max_distance', 'inserter_default_stack_control_input_signal', 'transport_belt_connector_frame_sprites', - 'transport_belt_circuit_wire_max_distance', - } -} --)) - ---(( STDLIB ))-- -stds.stdlib = { - read_globals = { - }, - globals = { - "STDLIB", - "prequire", "rawtostring", "traceback", "inspect", "serpent", "inline_if", "install", "log", - "concat", - "GAME", "AREA", "POSITION", "TILE", "SURFACE", "CHUNK", "COLOR", "ENTITY", "INVENTORY", - "RESOURCE", "CONFIG", "LOGGER", "QUEUE", "EVENT", "GUI", "PLAYER", "FORCE", - "MATH", "STRING", "TABLE", - } -} - -stds.stdlib_control = { -} - -stds.stdlib_data = { - globals = { - 'DATA', 'RECIPE', 'ITEM', 'FLUID', 'ENTITY', 'TECHNOLOGY', 'CATEGORY' - } -} --)) - ---(( FACTORIO DEFINES ))-- -stds.factorio_defines = { - read_globals = { - defines = { - fields = { - alert_type = { - fields = { - 'custom', - 'entity_destroyed', - 'entity_under_attack', - 'no_material_for_construction', - 'no_storage', - 'not_enough_construction_robots', - 'not_enough_repair_packs', - 'train_out_of_fuel', - 'turret_fire', - 'fluid_mixing' - } - }, - behavior_result = { - fields = { - 'deleted', - 'fail', - 'in_progress', - 'success' - } - }, - build_check_type = { - fields = { - 'ghost_place', - 'ghost_revive', - 'manual', - 'script' - } - }, - chain_signal_state = { - fields = { - 'all_open', - 'none', - 'none_open', - 'partially_open' - } - }, - chunk_generated_status = { - fields = { - 'basic_tiles', - 'corrected_tiles', - 'custom_tiles', - 'entities', - 'nothing', - 'tiles' - } - }, - circuit_condition_index = { - fields = { - 'arithmetic_combinator', - 'constant_combinator', - 'decider_combinator', - 'inserter_circuit', - 'inserter_logistic', - 'lamp', - 'offshore_pump', - 'pump' - } - }, - circuit_connector_id = { - fields = { - 'accumulator', - 'combinator_input', - 'combinator_output', - 'constant_combinator', - 'container', - 'electric_pole', - 'inserter', - 'lamp', - 'offshore_pump', - 'programmable_speaker', - 'pump', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'wall' - } - }, - command = { - fields = { - 'attack', - 'attack_area', - 'build_base', - 'compound', - 'flee', - 'go_to_location', - 'group', - 'stop', - 'wander' - } - }, - compound_command = { - fields = { - 'logical_and', - 'logical_or', - 'return_last' - } - }, - control_behavior = { - fields = { - inserter = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'none', - 'read_hand_contents', - 'set_filters', - 'set_stack_size' - } - }, - hand_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - lamp = { - fields = { - circuit_mode_of_operation = { - fields = { - 'use_colors' - } - } - } - }, - logistic_container = { - fields = { - circuit_mode_of_operation = { - fields = { - 'send_contents', - 'set_requests' - } - } - } - }, - mining_drill = { - fields = { - resource_read_mode = { - fields = { - 'entire_patch', - 'this_miner' - } - } - } - }, - roboport = { - fields = { - circuit_mode_of_operation = { - fields = { - 'read_logistics', - 'read_robot_stats' - } - } - } - }, - train_stop = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'read_from_train', - 'read_stopped_train', - 'send_to_train' - } - } - } - }, - transport_belt = { - fields = { - content_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - type = { - fields = { - 'accumulator', - 'arithmetic_combinator', - 'constant_combinator', - 'container', - 'decider_combinator', - 'generic_on_off', - 'inserter', - 'lamp', - 'logistic_container', - 'mining_drill', - 'programmable_speaker', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'train_stop', - 'transport_belt', - 'wall' - } - } - } - }, - controllers = { - fields = { - 'character', - 'cutscene', - 'editor', - 'ghost', - 'god', - 'spectator' - } - }, - deconstruction_item = { - fields = { - entity_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_selection_mode = { - fields = { - 'always', - 'never', - 'normal', - 'only' - } - } - } - }, - difficulty = { - fields = { - 'easy', - 'hard', - 'normal' - } - }, - difficulty_settings = { - fields = { - recipe_difficulty = { - fields = { - 'expensive', - 'normal' - } - }, - technology_difficulty = { - fields = { - 'expensive', - 'normal' - } - } - } - }, - direction = { - fields = { - 'east', - 'north', - 'northeast', - 'northwest', - 'south', - 'southeast', - 'southwest', - 'west' - } - }, - distraction = { - fields = { - 'by_anything', - 'by_damage', - 'by_enemy', - 'none' - } - }, - entity_status = { - fields = { - 'working', - 'no_power', - 'no_fuel', - 'no_recipe', - 'no_input_fluid', - 'no_research_in_progress', - 'no_minable_resources', - 'low_input_fluid', - 'low_power', - 'disabled_by_control_behavior', - 'disabled_by_script', - 'fluid_ingredient_shortage', - 'fluid_production_overload', - 'item_ingredient_shortage', - 'item_production_overload', - 'marked_for_deconstruction', - 'missing_required_fluid', - 'missing_science_packs', - 'waiting_for_source_items', - 'waiting_for_space_in_destination', - } - }, - render_mode = { - fields = { - 'game', - 'chart', - 'chart_zoomed_in' - } - }, - events = { - fields = { - 'on_ai_command_completed', - 'on_area_cloned', - 'on_biter_base_built', - 'on_built_entity', - 'on_cancelled_deconstruction', - 'on_cancelled_upgrade', - 'on_character_corpse_expired', - 'on_chart_tag_added', - 'on_chart_tag_modified', - 'on_chart_tag_removed', - 'on_chunk_charted', - 'on_chunk_deleted', - 'on_chunk_generated', - 'on_combat_robot_expired', - 'on_console_chat', - 'on_console_command', - 'on_cutscene_waypoint_reached', - 'on_difficulty_settings_changed', - 'on_entity_cloned', - 'on_entity_damaged', - 'on_entity_died', - 'on_entity_renamed', - 'on_entity_settings_pasted', - 'on_entity_spawned', - 'on_force_created', - 'on_forces_merged', - 'on_forces_merging', - 'on_game_created_from_scenario', - 'on_gui_checked_state_changed', - 'on_gui_click', - 'on_gui_closed', - 'on_gui_confirmed', - 'on_gui_elem_changed', - 'on_gui_location_changed', - 'on_gui_opened', - 'on_gui_selected_tab_changed', - 'on_gui_selection_state_changed', - 'on_gui_switch_state_changed', - 'on_gui_text_changed', - 'on_gui_value_changed', - 'on_land_mine_armed', - 'on_lua_shortcut', - 'on_marked_for_deconstruction', - 'on_marked_for_upgrade', - 'on_market_item_purchased', - 'on_mod_item_opened', - 'on_picked_up_item', - 'on_player_alt_selected_area', - 'on_player_ammo_inventory_changed', - 'on_player_armor_inventory_changed', - 'on_player_banned', - 'on_player_built_tile', - 'on_player_cancelled_crafting', - 'on_player_changed_force', - 'on_player_changed_position', - 'on_player_changed_surface', - 'on_player_cheat_mode_disabled', - 'on_player_cheat_mode_enabled', - 'on_player_configured_blueprint', - 'on_player_crafted_item', - 'on_player_created', - 'on_player_cursor_stack_changed', - 'on_player_deconstructed_area', - 'on_player_demoted', - 'on_player_died', - 'on_player_display_resolution_changed', - 'on_player_display_scale_changed', - 'on_player_driving_changed_state', - 'on_player_dropped_item', - 'on_player_fast_transferred', - 'on_player_gun_inventory_changed', - 'on_player_joined_game', - 'on_player_kicked', - 'on_player_left_game', - 'on_player_main_inventory_changed', - 'on_player_mined_entity', - 'on_player_mined_item', - 'on_player_mined_tile', - 'on_player_muted', - 'on_player_pipette', - 'on_player_placed_equipment', - 'on_player_promoted', - 'on_player_removed', - 'on_player_removed_equipment', - 'on_player_repaired_entity', - 'on_player_respawned', - 'on_player_rotated_entity', - 'on_player_selected_area', - 'on_player_setup_blueprint', - 'on_player_toggled_alt_mode', - 'on_player_toggled_map_editor', - 'on_player_tool_inventory_changed', - 'on_player_trash_inventory_changed', - 'on_player_unbanned', - 'on_player_unmuted', - 'on_player_used_capsule', - 'on_post_entity_died', - 'on_pre_chunk_deleted', - 'on_pre_entity_settings_pasted', - 'on_pre_ghost_deconstructed', - 'on_pre_player_crafted_item', - 'on_pre_player_died', - 'on_pre_player_left_game', - 'on_pre_player_mined_item', - 'on_pre_player_removed', - 'on_pre_robot_exploded_cliff', - 'on_pre_surface_cleared', - 'on_pre_surface_deleted', - 'on_put_item', - 'on_research_finished', - 'on_research_started', - 'on_resource_depleted', - 'on_robot_built_entity', - 'on_robot_built_tile', - 'on_robot_exploded_cliff', - 'on_robot_mined', - 'on_robot_mined_entity', - 'on_robot_mined_tile', - 'on_robot_pre_mined', - 'on_rocket_launch_ordered', - 'on_rocket_launched', - 'on_runtime_mod_setting_changed', - 'on_script_path_request_finished', - 'on_sector_scanned', - 'on_selected_entity_changed', - 'on_surface_cleared', - 'on_surface_created', - 'on_surface_deleted', - 'on_surface_imported', - 'on_surface_renamed', - 'on_technology_effects_reset', - 'on_tick', - 'on_train_changed_state', - 'on_train_created', - 'on_train_schedule_changed', - 'on_trigger_created_entity', - 'on_trigger_fired_artillery', - 'on_unit_added_to_group', - 'on_unit_group_created', - 'on_unit_removed_from_group', - 'script_raised_built', - 'script_raised_destroy', - 'script_raised_revive' - } - }, - flow_precision_index = { - fields = { - 'fifty_hours', - 'one_hour', - 'one_minute', - 'one_second', - 'one_thousand_hours', - 'ten_hours', - 'ten_minutes', - 'two_hundred_fifty_hours' - } - }, - group_state = { - fields = { - 'attacking_distraction', - 'attacking_target', - 'finished', - 'gathering', - 'moving' - } - }, - gui_type = { - fields = { - 'achievement', - 'blueprint_library', - 'bonus', - 'controller', - 'custom', - 'entity', - 'equipment', - 'item', - 'kills', - 'logistic', - 'none', - 'other_player', - 'permissions', - 'player_management', - 'production', - 'research', - 'server_management', - 'trains', - 'tutorials' - } - }, - input_action = { - fields = { - 'activate_copy', - 'activate_cut', - 'activate_paste', - 'add_permission_group', - 'add_train_station', - 'admin_action', - 'alt_select_area', - 'alt_select_blueprint_entities', - 'alternative_copy', - 'begin_mining', - 'begin_mining_terrain', - 'build_item', - 'build_rail', - 'build_terrain', - 'cancel_craft', - 'cancel_deconstruct', - 'cancel_new_blueprint', - 'cancel_research', - 'cancel_upgrade', - 'change_active_item_group_for_crafting', - 'change_active_item_group_for_filters', - 'change_active_quick_bar', - 'change_arithmetic_combinator_parameters', - 'change_blueprint_book_record_label', - 'change_decider_combinator_parameters', - 'change_item_label', - 'change_multiplayer_config', - 'change_picking_state', - 'change_programmable_speaker_alert_parameters', - 'change_programmable_speaker_circuit_parameters', - 'change_programmable_speaker_parameters', - 'change_riding_state', - 'change_shooting_state', - 'change_single_blueprint_record_label', - 'change_train_stop_station', - 'change_train_wait_condition', - 'change_train_wait_condition_data', - 'clean_cursor_stack', - 'clear_selected_blueprint', - 'clear_selected_deconstruction_item', - 'clear_selected_upgrade_item', - 'connect_rolling_stock', - 'copy', - 'copy_entity_settings', - 'craft', - 'create_blueprint_like', - 'cursor_split', - 'cursor_transfer', - 'custom_input', - 'cycle_blueprint_book_backwards', - 'cycle_blueprint_book_forwards', - 'deconstruct', - 'delete_blueprint_library', - 'delete_blueprint_record', - 'delete_custom_tag', - 'delete_permission_group', - 'destroy_opened_item', - 'disconnect_rolling_stock', - 'drag_train_schedule', - 'drag_train_wait_condition', - 'drop_blueprint_record', - 'drop_item', - 'drop_to_blueprint_book', - 'edit_custom_tag', - 'edit_permission_group', - 'export_blueprint', - 'fast_entity_split', - 'fast_entity_transfer', - 'go_to_train_station', - 'grab_blueprint_record', - 'gui_checked_state_changed', - 'gui_click', - 'gui_confirmed', - 'gui_elem_changed', - 'gui_location_changed', - 'gui_selected_tab_changed', - 'gui_selection_state_changed', - 'gui_switch_state_changed', - 'gui_text_changed', - 'gui_value_changed', - 'import_blueprint', - 'import_blueprint_string', - 'import_permissions_string', - 'inventory_split', - 'inventory_transfer', - 'launch_rocket', - 'map_editor_action', - 'market_offer', - 'mod_settings_changed', - 'open_achievements_gui', - 'open_blueprint_library_gui', - 'open_blueprint_record', - 'open_bonus_gui', - 'open_character_gui', - 'open_equipment', - 'open_gui', - 'open_item', - 'open_kills_gui', - 'open_logistic_gui', - 'open_mod_item', - 'open_production_gui', - 'open_technology_gui', - 'open_train_gui', - 'open_train_station_gui', - 'open_trains_gui', - 'open_tutorials_gui', - 'paste_entity_settings', - 'place_equipment', - 'quick_bar_pick_slot', - 'quick_bar_set_selected_page', - 'quick_bar_set_slot', - 'remove_cables', - 'remove_train_station', - 'reset_assembling_machine', - 'rotate_entity', - 'select_area', - 'select_blueprint_entities', - 'select_entity_slot', - 'select_item', - 'select_mapper_slot', - 'select_next_valid_gun', - 'select_tile_slot', - 'set_auto_launch_rocket', - 'set_autosort_inventory', - 'set_behavior_mode', - 'set_car_weapons_control', - 'set_circuit_condition', - 'set_circuit_mode_of_operation', - 'set_deconstruction_item_tile_selection_mode', - 'set_deconstruction_item_trees_and_rocks_only', - 'set_entity_color', - 'set_entity_energy_property', - 'set_filter', - 'set_heat_interface_mode', - 'set_heat_interface_temperature', - 'set_infinity_container_filter_item', - 'set_infinity_container_remove_unfiltered_items', - 'set_infinity_pipe_filter', - 'set_inserter_max_stack_size', - 'set_inventory_bar', - 'set_logistic_filter_item', - 'set_logistic_filter_signal', - 'set_logistic_trash_filter_item', - 'set_request_from_buffers', - 'set_research_finished_stops_game', - 'set_signal', - 'set_single_blueprint_record_icon', - 'set_splitter_priority', - 'set_train_stopped', - 'setup_assembling_machine', - 'setup_blueprint', - 'setup_single_blueprint_record', - 'smart_pipette', - 'stack_split', - 'stack_transfer', - 'start_repair', - 'start_research', - 'start_walking', - 'switch_connect_to_logistic_network', - 'switch_constant_combinator_state', - 'switch_inserter_filter_mode_state', - 'switch_power_switch_state', - 'switch_to_rename_stop_gui', - 'take_equipment', - 'toggle_deconstruction_item_entity_filter_mode', - 'toggle_deconstruction_item_tile_filter_mode', - 'toggle_driving', - 'toggle_enable_vehicle_logistics_while_moving', - 'toggle_equipment_movement_bonus', - 'toggle_map_editor', - 'toggle_personal_roboport', - 'toggle_show_entity_info', - 'undo', - 'upgrade', - 'upgrade_opened_blueprint', - 'use_artillery_remote', - 'use_item', - 'wire_dragging', - 'write_to_console' - } - }, - inventory = { - fields = { - 'artillery_turret_ammo', - 'artillery_wagon_ammo', - 'assembling_machine_input', - 'assembling_machine_modules', - 'assembling_machine_output', - 'beacon_modules', - 'burnt_result', - 'car_ammo', - 'car_trunk', - 'cargo_wagon', - 'character_corpse', - 'chest', - 'editor_main', - 'editor_guns', - 'editor_ammo', - 'editor_armor', - 'fuel', - 'furnace_modules', - 'furnace_result', - 'furnace_source', - 'god_main', - 'item_main', - 'lab_input', - 'lab_modules', - 'mining_drill_modules', - 'character_ammo', - 'character_armor', - 'character_guns', - 'character_main', - 'character_trash', - 'character_vehicle', - 'roboport_material', - 'roboport_robot', - 'robot_cargo', - 'robot_repair', - 'rocket', - 'rocket_silo_result', - 'rocket_silo_rocket', - 'turret_ammo' - } - }, - logistic_member_index = { - fields = { - 'character_provider', - 'character_requester', - 'character_storage', - 'generic_on_off_behavior', - 'logistic_container', - 'vehicle_storage' - } - }, - logistic_mode = { - fields = { - 'active_provider', - 'buffer', - 'none', - 'passive_provider', - 'requester', - 'storage' - } - }, - mouse_button_type = { - fields = { - 'left', - 'middle', - 'none', - 'right' - } - }, - rail_connection_direction = { - fields = { - 'left', - 'none', - 'right', - 'straight' - } - }, - rail_direction = { - fields = { - 'back', - 'front' - } - }, - riding = { - fields = { - acceleration = { - fields = { - 'accelerating', - 'braking', - 'nothing', - 'reversing' - } - }, - direction = { - fields = { - 'left', - 'right', - 'straight' - } - } - } - }, - shooting = { - fields = { - 'not_shooting', - 'shooting_enemies', - 'shooting_selected' - } - }, - signal_state = { - fields = { - 'closed', - 'open', - 'reserved', - 'reserved_by_circuit_network' - } - }, - train_state = { - fields = { - 'arrive_signal', - 'arrive_station', - 'manual_control', - 'manual_control_stop', - 'no_path', - 'no_schedule', - 'on_the_path', - 'path_lost', - 'wait_signal', - 'wait_station' - } - }, - transport_line = { - fields = { - 'left_line', - 'left_split_line', - 'left_underground_line', - 'right_line', - 'right_split_line', - 'right_underground_line', - 'secondary_left_line', - 'secondary_left_split_line', - 'secondary_right_line', - 'secondary_right_split_line' - } - }, - wire_connection_id = { - fields = { - 'electric_pole', - 'power_switch_left', - 'power_switch_right' - } - }, - wire_type = { - fields = { - 'copper', - 'green', - 'red' - } - }, - -- Defines additional modules - color = { - other_fields = true - }, - anticolor = { - other_fields = true - }, - lightcolor = { - other_fields = true - }, - time = { - fields = { - 'second', - 'minute', - 'hour', - 'day', - 'week', - 'month', - 'year' - } - } - } - } - } -}--)) - -stds.love_extra = { - read_globals = { - love = { - fields = { - arg = { - fields = { - 'parseGameArguments', 'parseOption', 'getLow', 'optionIndices', 'options' - } - } - } - } - }, - globals = { - --'coroutine', 'io', 'socket', 'dofile', 'loadfile', - love = { - fields = { - 'handlers' - } - } - } -} - ---[[ Options - "ignore", "std", "globals", "unused_args", "self", "compat", "global", "unused", "redefined", - "unused_secondaries", "allow_defined", "allow_defined_top", "module", - "read_globals", "new_globals", "new_read_globals", "enable", "only", "not_globals", - "max_line_length", "max_code_line_length", "max_string_line_length", "max_comment_line_length", - "max_cyclomatic_complexity" ---]] - ---[[ Warnings list - -- 011 A syntax error. - -- 021 An invalid inline option. - -- 022 An unpaired inline push directive. - -- 023 An unpaired inline pop directive. - -- 111 Setting an undefined global variable. - -- 112 Mutating an undefined global variable. - -- 113 Accessing an undefined global variable. - -- 121 Setting a read-only global variable. - -- 122 Setting a read-only field of a global variable. - -- 131 Unused implicitly defined global variable. - -- 142 Setting an undefined field of a global variable. - -- 143 Accessing an undefined field of a global variable. - -- 211 Unused local variable. - -- 212 Unused argument. - -- 213 Unused loop variable. - -- 221 Local variable is accessed but never set. - -- 231 Local variable is set but never accessed. - -- 232 An argument is set but never accessed. - -- 233 Loop variable is set but never accessed. - -- 241 Local variable is mutated but never accessed. - -- 311 Value assigned to a local variable is unused. - -- 312 Value of an argument is unused. - -- 313 Value of a loop variable is unused. - -- 314 Value of a field in a table literal is unused. - -- 321 Accessing uninitialized local variable. - -- 331 Value assigned to a local variable is mutated but never accessed. - -- 341 Mutating uninitialized local variable. - -- 411 Redefining a local variable. - -- 412 Redefining an argument. - -- 413 Redefining a loop variable. - -- 421 Shadowing a local variable. - -- 422 Shadowing an argument. - -- 423 Shadowing a loop variable. - -- 431 Shadowing an upvalue. - -- 432 Shadowing an upvalue argument. - -- 433 Shadowing an upvalue loop variable. - -- 511 Unreachable code. - -- 512 Loop can be executed at most once. - -- 521 Unused label. - -- 531 Left-hand side of an assignment is too short. - -- 532 Left-hand side of an assignment is too long. - -- 541 An empty do end block. - -- 542 An empty if branch. - -- 551 An empty statement. - -- 611 A line consists of nothing but whitespace. - -- 612 A line contains trailing whitespace. - -- 613 Trailing whitespace in a string. - -- 614 Trailing whitespace in a comment. - -- 621 Inconsistent indentation (SPACE followed by TAB). - -- 631 Line is too long. ---]] \ No newline at end of file diff --git a/OLD/PHI-EQ/changelog.txt b/OLD/PHI-EQ/changelog.txt deleted file mode 100644 index 70fb62c..0000000 --- a/OLD/PHI-EQ/changelog.txt +++ /dev/null @@ -1,13 +0,0 @@ ---------------------------------------------------------------------------------------------------- -Version: 1.1.7 -Date: 2023-04-18 - -Changed: - - Space Exploration will be using RTG Geneartor instead - ---------------------------------------------------------------------------------------------------- -Version: 1.1.0 -Date: 2022-12-01 - -Added: - - Standalone mod from old set. diff --git a/OLD/PHI-EQ/config.lua b/OLD/PHI-EQ/config.lua deleted file mode 100644 index a8f9cf4..0000000 --- a/OLD/PHI-EQ/config.lua +++ /dev/null @@ -1,156 +0,0 @@ -local items = { - ['setting'] = { - ['PHI-EQ-SOLAR-TIER'] = { - type = 'max', - effect = {'solar-panel'} - }, - ['PHI-EQ-BATTERY-TIER'] = { - type = 'max', - effect = {'battery'} - }, - ['PHI-EQ-REACTOR-TIER'] = { - type = 'max', - effect = {'fusion-reactor'} - }, - ['PHI-EQ-LASER-TIER'] = { - type = 'max', - effect = {'personal-laser-defense'} - }, - ['PHI-EQ-ROBOPORT-TIER'] = { - type = 'max', - effect = {'personal-roboport'} - }, - ['PHI-EQ-SHIELD-TIER'] = { - type = 'max', - effect = {'energy-shield'} - }, - ['PHI-EQ-NIGHT-TIER'] = { - type = 'max', - effect = {'night-vision'} - }, - ['PHI-EQ-EXO-TIER'] = { - type = 'max', - effect = {'exoskeleton'} - } - }, - ['solar-panel'] = { - enabled = true, - type = 'solar-panel-equipment', - name = 'solar-panel', - base_name = 'solar-panel', - tech = 'solar-panel-equipment', - min = 2, - max = 8, - base = 30, - order = 'a[energy-source]-a[solar-panel]', - graphics_name = 'solar-panel-equipment' - }, - ['fusion-reactor'] = { - enabled = true, - type = 'fusion-reactor', - name = 'fusion-reactor', - base_name = 'fusion-reactor', - tech = 'fusion-reactor-equipment', - min = 2, - max = 8, - base = 750, - order = 'a[energy-source]-b[fusion-reactor]', - graphics_name = 'fusion-reactor-equipment' - }, - ['battery'] = { - enabled = true, - type = 'battery', - name = 'battery', - base_name = 'battery', - tech = 'battery-mk2-equipment', - min = 3, - max = 8, - base = 100, - order = 'b[battery]-b[battery-equipment-mk2]', - graphics_name = 'battery-mk2-equipment' - }, - ['personal-laser-defense'] = { - enabled = true, - type = 'personal-laser-defense', - name = 'personal-laser-defense', - base_name = 'personal-laser-defense', - tech = 'personal-laser-defense-equipment', - min = 2, - max = 8, - base = 3, - order = 'b[active-defense]-a[personal-laser-defense-equipment]', - graphics_name = 'personal-laser-defense-equipment' - }, - ['energy-shield'] = { - enabled = true, - type = 'energy-shield', - name = 'energy-shield', - base_name = 'energy-shield', - tech = 'energy-shield-mk2-equipment', - min = 3, - max = 8, - base = 150, - order = 'a[shield]-b[energy-shield-equipment-mk2]', - graphics_name = 'energy-shield-mk2-equipment' - }, - ['personal-roboport'] = { - enabled = true, - type = 'personal-roboport', - name = 'personal-roboport', - base_name = 'personal-roboport', - tech = 'personal-roboport-mk2-equipment', - min = 3, - max = 8, - base = 0.5, - order = 'e[robotics]-b[personal-roboport-equipment-mk2]', - graphics_name = 'personal-roboport-mk2-equipment' - }, - ['night-vision'] = { - enabled = true, - type = 'night-vision', - name = 'night-vision', - base_name = 'night-vision', - tech = 'night-vision-equipment', - min = 2, - max = 2, - base = 1, - order = 'f[night-vision]-a[night-vision-equipment]', - graphics_name = 'night-vision-equipment' - }, - ['exoskeleton'] = { - enabled = true, - type = 'exoskeleton', - name = 'exoskeleton', - base_name = 'exoskeleton', - tech = 'exoskeleton-equipment', - min = 2, - max = 2, - base = 0.6, - order = 'd[exoskeleton]-a[exoskeleton-equipment]', - graphics_name = 'exoskeleton-equipment' - } -} - -if mods ~= nil then - if mods['space-exploration'] then - items['solar-panel'].base = 30 - - items['fusion-reactor'].tech = 'se-rtg-equipment' - items['fusion-reactor'].base_name = 'se-rtg' - items['fusion-reactor'].base = 400 - - items['battery'].tech = 'battery-equipment' - items['battery'].min = 2 - items['battery'].base = 100 - - items['energy-shield'].tech = 'energy-shield-equipment' - items['energy-shield'].min = 2 - items['energy-shield'].base = 200 - - items['personal-roboport'].tech = 'personal-roboport-equipment' - items['personal-roboport'].min = 2 - items['personal-roboport'].base = 0.5 - end -end - -return items diff --git a/OLD/PHI-EQ/data.lua b/OLD/PHI-EQ/data.lua deleted file mode 100644 index b9f40ea..0000000 --- a/OLD/PHI-EQ/data.lua +++ /dev/null @@ -1,200 +0,0 @@ -local alpha_order = {'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'} -local graphics_location = '__PHI-EQ__/graphics/' -local items = require 'config' - --- equipment -local function EEQ(source, tier) - local item = {} - item['name'] = source.name .. '-mk' .. tier .. '-equipment' - item['categories'] = {'armor'} - local w = 1 - local h = 1 - - if (source.name == 'solar-panel') then - item['power'] = (source.base * (2 ^ (tier - source.min + 1))) .. 'kW' - item['energy_source'] = {type = 'electric', usage_priority = 'primary-output'} - - elseif (source.name == 'battery') then - h = 2 - item['energy_source'] = {type = 'electric', usage_priority = 'tertiary', buffer_capacity= (source.base * (2 ^ (tier - source.min + 1))) .. 'MJ'} - - elseif (source.type == 'fusion-reactor') then - w = 4 - h = 4 - item['power'] = (source.base * (2 ^ (tier - source.min + 1))) .. 'kW' - item['energy_source'] = {type = 'electric', usage_priority = 'primary-output'} - - elseif (source.type == 'personal-laser-defense') then - w = 2 - h = 2 - item['energy_source'] = {type = 'electric', usage_priority = 'secondary-input', buffer_capacity = (250 * (2 ^ (tier - source.min + 1))) .. 'kJ'} - -- item['source_direction_count'] = 64 - -- item['source_offset'] = {0, -3.423489 / 4} - item['attack_parameters'] = {type = 'beam', cooldown = 40, range = (18 + tier), damage_modifier = (source.base * (2 ^ (tier - source.min + 1))), ammo_type = {category = 'laser', energy_consumption = (50 * (2 ^ (tier - 1))) .. 'kJ', action = {type = 'direct', action_delivery = {type = 'beam', beam = 'laser-beam', max_length = (18 + tier), duration = 60, source_offset = {0, -1.31439}}}}} - item['automatic'] = true - - elseif (source.type == 'energy-shield') then - w = 2 - h = 2 - item['energy_source'] = {type = 'electric', usage_priority = 'primary-input', input_flow_limit = (source.base * 4 * (2 ^ (tier - source.min + 1))) .. 'kW', buffer_capacity = (source.base * 2 * (2 ^ (tier - 1))) .. 'kJ'} - item['max_shield_value'] = (source.base * (2 ^ (tier - 2))) - item['energy_per_shield'] = '80kJ' - - elseif (source.type == 'personal-roboport') then - w = 2 - h = 2 - item['energy_source'] = {type = 'electric', usage_priority = 'secondary-input', buffer_capacity = (source.base * 32 * (2 ^ (tier - source.min + 1))) .. 'MJ'} - item['robot_limit'] = 50 - item['construction_radius'] = 32 - item['spawn_and_station_height'] = 0.4 - item['spawn_and_station_shadow_height_offset'] = 0.5 - item['charge_approach_distance'] = 2.6 - item['robots_shrink_when_entering_and_exiting'] = true - item['recharging_animation'] = {filename = '__base__/graphics/entity/roboport/roboport-recharging.png', draw_as_glow = true, priority = 'high', width = 37, height = 35, frame_count = 16, scale = 1.5, animation_speed = 0.5} - item['recharging_light'] = {intensity = 0.2, size = 3, color = {r = 0.5, g = 0.5, b = 1.0}} - item['stationing_offset'] = {0, -0.6} - item['charging_station_shift'] = {0, 0.5} - item['charging_station_count'] = 16 - item['charging_energy'] = (source.base * (2 ^ (tier - source.min + 1))) .. 'MW' - item['charging_distance'] = 1.6 - item['charging_threshold_distance'] = 5 - - elseif (source.type == 'night-vision') then - w = 2 - h = 2 - item['energy_source'] = {type = 'electric', usage_priority = 'primary-input', buffer_capacity = '1MJ'} - item['energy_input'] = '20kW' - item['activate_sound'] = {filename = '__base__/sound/nightvision-on.ogg', volume = 0.5} - item['deactivate_sound'] = {filename = '__base__/sound/nightvision-off.ogg', volume = 0.5} - item['darkness_to_turn_on'] = source.base - item['color_lookup'] = {{0, '__core__/graphics/color_luts/lut-sunset.png'}} - - elseif (source.type == 'exoskeleton') then - w = 2 - h = 4 - item['energy_source'] = {type = 'electric', usage_priority = 'secondary-input', buffer_capacity = '10MJ'} - item['energy_consumption'] = '400kW' - item['movement_bonus'] = source.base - end - - item['shape'] = {width = w, height = h, type = 'full'} - item['sprite'] = {filename = '__base__/graphics/equipment/' .. source.graphics_name .. '.png', width = w * 32, height = h * 32, priority = 'medium', hr_version = {filename = '__base__/graphics/equipment/hr-' .. source.graphics_name .. '.png', width = w * 64, height = h *64, priority = 'medium', scale = 0.5}} - - data:extend({item}) -end - --- item -local function EI(source, tier) - local item = table.deepcopy(data.raw.item[source.name .. '-equipment']) - item.name = source.name .. '-mk' .. tier .. '-equipment' - item.placed_as_equipment_result = source.name .. '-mk' .. tier .. '-equipment' - item.subgroup = 'equipment' - item.stack_size = 20 - item.default_request_amount = 5 - item.icons = {{icon = '__base__/graphics/icons/' .. source.graphics_name .. '.png', icon_mipmaps = 4, icon_size = 64}} - item.order = item.order .. tier - data:extend({item}) -end - --- recipe -local function ER(source, tier) - local na = source.name - - if (tier == 1) then - na = source.name .. '-equipment' - - else - na = source.name .. '-mk' .. (tier - 1) .. '-equipment' - end - - data:extend({{ - type = 'recipe', - name = source.name .. '-mk' .. tier .. '-equipment', - energy_required = 2, - enabled = false, - ingredients = {{na, 2}}, - result = source.name .. '-mk' .. tier .. '-equipment', - }}) -end - --- tech -local function ET(source, tier) - table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=source.name .. '-mk' .. tier .. '-equipment'}) -end - -if settings.startup['PHI-EQ-ARMOR'].value then - data:extend({ - { - type = 'equipment-grid', - name = 'equipment-grid-14x14', - width = 14, - height = 14, - equipment_categories = {'armor'} - }, - { - type = 'armor', - name = 'power-armor-mk3', - icon = '__base__/graphics/icons/power-armor-mk2.png', - icon_size = 64, icon_mipmaps = 4, - resistances = {{type = 'physical', decrease = 20, percent = 50}, {type = 'acid', decrease = 20, percent = 80}, - {type = 'explosion', decrease = 70, percent = 60}, {type = 'fire', decrease = 20, percent = 80}, - {type = 'laser', decrease = 20, percent = 50}, {type = 'electric', decrease = 20, percent = 50}, - {type = 'impact', decrease = 20, percent = 50}, {type = 'poison', decrease = 20, percent = 50}}, - subgroup = 'armor', - order = 'eb[power-armor-mk3]', - stack_size = 1, - infinite = true, - equipment_grid = 'equipment-grid-14x14', - inventory_size_bonus = 40, - open_sound = {filename = '__base__/sound/armor-open.ogg', volume = 1}, - close_sound = {filename = '__base__/sound/armor-close.ogg', volume = 1} - } - }) - - data:extend({{ - type = 'recipe', - name = 'power-armor-mk3', - energy_required = 5, - enabled = 'false', - ingredients = {{'power-armor-mk2', 2}}, - result = 'power-armor-mk3' - }}) - - for _, animation in ipairs(data.raw['character']['character']['animations']) do - if animation.armors then - for _, armor in ipairs(animation.armors) do - if armor == 'power-armor-mk2' then - animation.armors[#animation.armors + 1] = 'power-armor-mk3' - break - end - end - end - end - - table.insert(data.raw.technology['power-armor-mk2'].effects, {type='unlock-recipe', recipe='power-armor-mk3'}) -end - -for k, v in pairs(items['setting']) do - for k2=1, #v.effect do - if items[v.effect[k2]] ~= nil then - if settings.startup[k].value < items[v.effect[k2]].min then - items[v.effect[k2]].enabled = false - end - - items[v.effect[k2]][v.type] = settings.startup[k].value - end - end -end - -for k, v in pairs(items) do - if k ~= 'setting' then - if v.enabled then - for j=v.min, v.max, 1 do - EEQ(v, j) - EI(v, j) - ER(v, j) - ET(v, j) - end - end - end -end diff --git a/OLD/PHI-EQ/info.json b/OLD/PHI-EQ/info.json deleted file mode 100644 index 78b570b..0000000 --- a/OLD/PHI-EQ/info.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "PHI-EQ", - "version": "1.2.3", - "factorio_version": "1.1", - "date": "2023-09-19", - "title": "Phidias Equipment", - "author": "PHIDIAS0303", - "contributers": "", - "homepage": "", - "description": "Additional Armor Equipment", - "dependencies": [ - "base >= 1.1.0", - "? space-exploration >= 0.6.0" - ] -} \ No newline at end of file diff --git a/OLD/PHI-EQ/locale/en/locale.cfg b/OLD/PHI-EQ/locale/en/locale.cfg deleted file mode 100644 index 1d8a99b..0000000 --- a/OLD/PHI-EQ/locale/en/locale.cfg +++ /dev/null @@ -1,169 +0,0 @@ -[item-name] -solar-panel-mk2-equipment=Portable Solar Panel MK2 -solar-panel-mk3-equipment=Portable Solar Panel MK3 -solar-panel-mk4-equipment=Portable Solar Panel MK4 -solar-panel-mk5-equipment=Portable Solar Panel MK5 -solar-panel-mk6-equipment=Portable Solar Panel MK6 -solar-panel-mk7-equipment=Portable Solar Panel MK7 -solar-panel-mk8-equipment=Portable Solar Panel MK8 - -battery-mk3-equipment=Personal Battery MK3 -battery-mk4-equipment=Personal Battery MK4 -battery-mk5-equipment=Personal Battery MK5 -battery-mk6-equipment=Personal Battery MK6 -battery-mk7-equipment=Personal Battery MK7 -battery-mk8-equipment=Personal Battery MK8 - -fusion-reactor-mk2-equipment=Portable Fusion Reactor MK2 -fusion-reactor-mk3-equipment=Portable Fusion Reactor MK3 -fusion-reactor-mk4-equipment=Portable Fusion Reactor MK4 -fusion-reactor-mk5-equipment=Portable Fusion Reactor MK5 -fusion-reactor-mk6-equipment=Portable Fusion Reactor MK6 -fusion-reactor-mk7-equipment=Portable Fusion Reactor MK7 -fusion-reactor-mk8-equipment=Portable Fusion Reactor MK8 - -energy-shield-mk3-equipment=Energy Shield MK3 -energy-shield-mk4-equipment=Energy Shield MK4 -energy-shield-mk5-equipment=Energy Shield MK5 -energy-shield-mk6-equipment=Energy Shield MK6 -energy-shield-mk7-equipment=Energy Shield MK7 -energy-shield-mk8-equipment=Energy Shield MK8 - -personal-laser-defense-mk2-equipment=Personal Laser Defense MK2 -personal-laser-defense-mk3-equipment=Personal Laser Defense MK3 -personal-laser-defense-mk4-equipment=Personal Laser Defense MK4 -personal-laser-defense-mk5-equipment=Personal Laser Defense MK5 -personal-laser-defense-mk6-equipment=Personal Laser Defense MK6 -personal-laser-defense-mk7-equipment=Personal Laser Defense MK7 -personal-laser-defense-mk8-equipment=Personal Laser Defense MK8 - -personal-roboport-mk3-equipment=Personal Roboport MK3 -personal-roboport-mk4-equipment=Personal Roboport MK4 -personal-roboport-mk5-equipment=Personal Roboport MK5 -personal-roboport-mk6-equipment=Personal Roboport MK6 -personal-roboport-mk7-equipment=Personal Roboport MK7 -personal-roboport-mk8-equipment=Personal Roboport MK8 - -night-vision-mk2-equipment=Nightvision Equipment MK2 -exoskeleton-mk2-equipment=Exoskeleton MK2 -power-armor-mk3=Power Armor MK3 - -[item-description] -solar-panel-mk2-equipment=Provides power for equipment modules. -solar-panel-mk3-equipment=Provides power for equipment modules. -solar-panel-mk4-equipment=Provides power for equipment modules. -solar-panel-mk5-equipment=Provides power for equipment modules. -solar-panel-mk6-equipment=Provides power for equipment modules. -solar-panel-mk7-equipment=Provides power for equipment modules. -solar-panel-mk8-equipment=Provides power for equipment modules. - -battery-mk3-equipment=Stores electric energy for equipment modules. -battery-mk4-equipment=Stores electric energy for equipment modules. -battery-mk5-equipment=Stores electric energy for equipment modules. -battery-mk6-equipment=Stores electric energy for equipment modules. -battery-mk7-equipment=Stores electric energy for equipment modules. -battery-mk8-equipment=Stores electric energy for equipment modules. - -fusion-reactor-mk2-equipment=Provides power for equipment modules. -fusion-reactor-mk3-equipment=Provides power for equipment modules. -fusion-reactor-mk4-equipment=Provides power for equipment modules. -fusion-reactor-mk5-equipment=Provides power for equipment modules. -fusion-reactor-mk6-equipment=Provides power for equipment modules. -fusion-reactor-mk7-equipment=Provides power for equipment modules. -fusion-reactor-mk8-equipment=Provides power for equipment modules. - -energy-shield-mk3-equipment=Provides an energy shield to protect the character. -energy-shield-mk4-equipment=Provides an energy shield to protect the character. -energy-shield-mk5-equipment=Provides an energy shield to protect the character. -energy-shield-mk6-equipment=Provides an energy shield to protect the character. -energy-shield-mk7-equipment=Provides an energy shield to protect the character. -energy-shield-mk8-equipment=Provides an energy shield to protect the character. - -personal-laser-defense-mk2-equipment=Inserted into armor to automatically fire at nearby enemies. -personal-laser-defense-mk3-equipment=Inserted into armor to automatically fire at nearby enemies. -personal-laser-defense-mk4-equipment=Inserted into armor to automatically fire at nearby enemies. -personal-laser-defense-mk5-equipment=Inserted into armor to automatically fire at nearby enemies. -personal-laser-defense-mk6-equipment=Inserted into armor to automatically fire at nearby enemies. -personal-laser-defense-mk7-equipment=Inserted into armor to automatically fire at nearby enemies. -personal-laser-defense-mk8-equipment=Inserted into armor to automatically fire at nearby enemies. - -personal-roboport-mk3-equipment=Inserted into armor to allow many construction robots to work from your inventory. -personal-roboport-mk4-equipment=Inserted into armor to allow many construction robots to work from your inventory. -personal-roboport-mk5-equipment=Inserted into armor to allow many construction robots to work from your inventory. -personal-roboport-mk6-equipment=Inserted into armor to allow many construction robots to work from your inventory. -personal-roboport-mk7-equipment=Inserted into armor to allow many construction robots to work from your inventory. -personal-roboport-mk8-equipment=Inserted into armor to allow many construction robots to work from your inventory. - -night-vision-mk2-equipment=Allows you to see more clearly in darkness. -exoskeleton-mk2-equipment=Inserted into armor to increase movement speed. You can equip multiple exoskeletons at once. -power-armor-mk3=Armor with a huge equipment grid and inventory size bonus. - -[equipment-name] -solar-panel-mk2-equipment=Portable Solar Panel MK2 -solar-panel-mk3-equipment=Portable Solar Panel MK3 -solar-panel-mk4-equipment=Portable Solar Panel MK4 -solar-panel-mk5-equipment=Portable Solar Panel MK5 -solar-panel-mk6-equipment=Portable Solar Panel MK6 -solar-panel-mk7-equipment=Portable Solar Panel MK7 -solar-panel-mk8-equipment=Portable Solar Panel MK8 - -battery-mk3-equipment=Personal Battery MK3 -battery-mk4-equipment=Personal Battery MK4 -battery-mk5-equipment=Personal Battery MK5 -battery-mk6-equipment=Personal Battery MK6 -battery-mk7-equipment=Personal Battery MK7 -battery-mk8-equipment=Personal Battery MK8 - -fusion-reactor-mk2-equipment=Portable Fusion Reactor MK2 -fusion-reactor-mk3-equipment=Portable Fusion Reactor MK3 -fusion-reactor-mk4-equipment=Portable Fusion Reactor MK4 -fusion-reactor-mk5-equipment=Portable Fusion Reactor MK5 -fusion-reactor-mk6-equipment=Portable Fusion Reactor MK6 -fusion-reactor-mk7-equipment=Portable Fusion Reactor MK7 -fusion-reactor-mk8-equipment=Portable Fusion Reactor MK8 - -energy-shield-mk3-equipment=Energy Shield MK3 -energy-shield-mk4-equipment=Energy Shield MK4 -energy-shield-mk5-equipment=Energy Shield MK5 -energy-shield-mk6-equipment=Energy Shield MK6 -energy-shield-mk7-equipment=Energy Shield MK7 -energy-shield-mk8-equipment=Energy Shield MK8 - -personal-laser-defense-mk2-equipment=Personal Laser Defense MK2 -personal-laser-defense-mk3-equipment=Personal Laser Defense MK3 -personal-laser-defense-mk4-equipment=Personal Laser Defense MK4 -personal-laser-defense-mk5-equipment=Personal Laser Defense MK5 -personal-laser-defense-mk6-equipment=Personal Laser Defense MK6 -personal-laser-defense-mk7-equipment=Personal Laser Defense MK7 -personal-laser-defense-mk8-equipment=Personal Laser Defense MK8 - -personal-roboport-mk3-equipment=Personal Roboport MK3 -personal-roboport-mk4-equipment=Personal Roboport MK4 -personal-roboport-mk5-equipment=Personal Roboport MK5 -personal-roboport-mk6-equipment=Personal Roboport MK6 -personal-roboport-mk7-equipment=Personal Roboport MK7 -personal-roboport-mk8-equipment=Personal Roboport MK8 - -night-vision-mk2-equipment=Nightvision Equipment MK2 -exoskeleton-mk2-equipment=Exoskeleton MK2 - -[mod-setting-name] -PHI-EQ-SOLAR-TIER=Portable Solar Panel -PHI-EQ-BATTERY-TIER=Personal Battery -PHI-EQ-REACTOR-TIER=Portable Fusion Reactor -PHI-EQ-LASER-TIER=Personal Laser Defense -PHI-EQ-ROBOPORT-TIER=Personal Roboport -PHI-EQ-SHIELD-TIER=Energy Shield -PHI-EQ-NIGHT-TIER=Nightvision Equipment -PHI-EQ-EXO-TIER=Exoskeleton -PHI-EQ-ARMOR=Power armor - -[mod-setting-description] -PHI-EQ-SOLAR-TIER=Default 8 ; Disable 1 -PHI-EQ-BATTERY-TIER=Default 8 ; Disable 2 -PHI-EQ-REACTOR-TIER=Default 8 ; Disable 1 -PHI-EQ-LASER-TIER=Default 8 ; Disable 1 -PHI-EQ-ROBOPORT-TIER=Default 8 ; Disable 2 -PHI-EQ-SHIELD-TIER=Default 8 ; Disable 2 -PHI-EQ-NIGHT-TIER=Default 2 ; Disable 1 -PHI-EQ-EXO-TIER=Default 2 ; Disable 1 diff --git a/OLD/PHI-EQ/locale/ja/locale.cfg b/OLD/PHI-EQ/locale/ja/locale.cfg deleted file mode 100644 index 6b9ed0a..0000000 --- a/OLD/PHI-EQ/locale/ja/locale.cfg +++ /dev/null @@ -1,169 +0,0 @@ -[item-name] -solar-panel-mk2-equipment=携帯ソーラーパネルモジュール2代目 -solar-panel-mk3-equipment=携帯ソーラーパネルモジュール3代目 -solar-panel-mk4-equipment=携帯ソーラーパネルモジュール4代目 -solar-panel-mk5-equipment=携帯ソーラーパネルモジュール5代目 -solar-panel-mk6-equipment=携帯ソーラーパネルモジュール6代目 -solar-panel-mk7-equipment=携帯ソーラーパネルモジュール7代目 -solar-panel-mk8-equipment=携帯ソーラーパネルモジュール8代目 - -battery-mk3-equipment=個人用バッテリー3代目 -battery-mk4-equipment=個人用バッテリー4代目 -battery-mk5-equipment=個人用バッテリー5代目 -battery-mk6-equipment=個人用バッテリー6代目 -battery-mk7-equipment=個人用バッテリー7代目 -battery-mk8-equipment=個人用バッテリー8代目 - -fusion-reactor-mk2-equipment=携帯核融合炉モジュール2代目 -fusion-reactor-mk3-equipment=携帯核融合炉モジュール3代目 -fusion-reactor-mk4-equipment=携帯核融合炉モジュール4代目 -fusion-reactor-mk5-equipment=携帯核融合炉モジュール5代目 -fusion-reactor-mk6-equipment=携帯核融合炉モジュール6代目 -fusion-reactor-mk7-equipment=携帯核融合炉モジュール7代目 -fusion-reactor-mk8-equipment=携帯核融合炉モジュール8代目 - -energy-shield-mk3-equipment=エネルギーシールドモジュール3代 -energy-shield-mk4-equipment=エネルギーシールドモジュール4代 -energy-shield-mk5-equipment=エネルギーシールドモジュール5代 -energy-shield-mk6-equipment=エネルギーシールドモジュール6代 -energy-shield-mk7-equipment=エネルギーシールドモジュール7代 -energy-shield-mk8-equipment=エネルギーシールドモジュール8代 - -personal-laser-defense-mk2-equipment=携帯レーザー防御モジュール2代 -personal-laser-defense-mk3-equipment=携帯レーザー防御モジュール3代 -personal-laser-defense-mk4-equipment=携帯レーザー防御モジュール4代 -personal-laser-defense-mk5-equipment=携帯レーザー防御モジュール5代 -personal-laser-defense-mk6-equipment=携帯レーザー防御モジュール6代 -personal-laser-defense-mk7-equipment=携帯レーザー防御モジュール7代 -personal-laser-defense-mk8-equipment=携帯レーザー防御モジュール8代 - -personal-roboport-mk3-equipment=携帯ロボットステーション3代 -personal-roboport-mk4-equipment=携帯ロボットステーション4代 -personal-roboport-mk5-equipment=携帯ロボットステーション5代 -personal-roboport-mk6-equipment=携帯ロボットステーション6代 -personal-roboport-mk7-equipment=携帯ロボットステーション7代 -personal-roboport-mk8-equipment=携帯ロボットステーション8代 - -night-vision-mk2-equipment=暗視モジュール2代 -exoskeleton-mk2-equipment=強化外骨格モジュール2代 -power-armor-mk3=パワーアーマー3代 - -[item-description] -solar-panel-mk2-equipment=装備用モジュールに電力を供給します。 -solar-panel-mk3-equipment=装備用モジュールに電力を供給します。 -solar-panel-mk4-equipment=装備用モジュールに電力を供給します。 -solar-panel-mk5-equipment=装備用モジュールに電力を供給します。 -solar-panel-mk6-equipment=装備用モジュールに電力を供給します。 -solar-panel-mk7-equipment=装備用モジュールに電力を供給します。 -solar-panel-mk8-equipment=装備用モジュールに電力を供給します。 - -battery-mk3-equipment=装備用モジュール向けに電力を貯蓄します。 -battery-mk4-equipment=装備用モジュール向けに電力を貯蓄します。 -battery-mk5-equipment=装備用モジュール向けに電力を貯蓄します。 -battery-mk6-equipment=装備用モジュール向けに電力を貯蓄します。 -battery-mk7-equipment=装備用モジュール向けに電力を貯蓄します。 -battery-mk8-equipment=装備用モジュール向けに電力を貯蓄します。 - -fusion-reactor-mk2-equipment=装備用モジュールに電力を供給します。 -fusion-reactor-mk3-equipment=装備用モジュールに電力を供給します。 -fusion-reactor-mk4-equipment=装備用モジュールに電力を供給します。 -fusion-reactor-mk5-equipment=装備用モジュールに電力を供給します。 -fusion-reactor-mk6-equipment=装備用モジュールに電力を供給します。 -fusion-reactor-mk7-equipment=装備用モジュールに電力を供給します。 -fusion-reactor-mk8-equipment=装備用モジュールに電力を供給します。 - -energy-shield-mk3-equipment=プレイヤーを守るエネルギーシールドを展開します。 -energy-shield-mk4-equipment=プレイヤーを守るエネルギーシールドを展開します。 -energy-shield-mk5-equipment=プレイヤーを守るエネルギーシールドを展開します。 -energy-shield-mk6-equipment=プレイヤーを守るエネルギーシールドを展開します。 -energy-shield-mk7-equipment=プレイヤーを守るエネルギーシールドを展開します。 -energy-shield-mk8-equipment=プレイヤーを守るエネルギーシールドを展開します。 - -personal-laser-defense-mk2-equipment=アーマーに挿入して使い、自動的に近くの敵を撃ちます。 -personal-laser-defense-mk3-equipment=アーマーに挿入して使い、自動的に近くの敵を撃ちます。 -personal-laser-defense-mk4-equipment=アーマーに挿入して使い、自動的に近くの敵を撃ちます。 -personal-laser-defense-mk5-equipment=アーマーに挿入して使い、自動的に近くの敵を撃ちます。 -personal-laser-defense-mk6-equipment=アーマーに挿入して使い、自動的に近くの敵を撃ちます。 -personal-laser-defense-mk7-equipment=アーマーに挿入して使い、自動的に近くの敵を撃ちます。 -personal-laser-defense-mk8-equipment=アーマーに挿入して使い、自動的に近くの敵を撃ちます。 - -personal-roboport-mk3-equipment=アーマーに挿入して使い、インベントリから多くの建設ロボットを使えるようになります。 -personal-roboport-mk4-equipment=アーマーに挿入して使い、インベントリから多くの建設ロボットを使えるようになります。 -personal-roboport-mk5-equipment=アーマーに挿入して使い、インベントリから多くの建設ロボットを使えるようになります。 -personal-roboport-mk6-equipment=アーマーに挿入して使い、インベントリから多くの建設ロボットを使えるようになります。 -personal-roboport-mk7-equipment=アーマーに挿入して使い、インベントリから多くの建設ロボットを使えるようになります。 -personal-roboport-mk8-equipment=アーマーに挿入して使い、インベントリから多くの建設ロボットを使えるようになります。 - -night-vision-equipment-mk2=アーマーに挿入して使い、夜間の視界を改善します。 -exoskeleton-equipment-mk2=プレイヤーの移動速度を上昇させます。 -power-armor-mk3=巨大な装備グリッドとインベントリサイズボーナス付きアーマー。 - -[equipment-name] -solar-panel-mk2-equipment=携帯ソーラーパネルモジュール2代目 -solar-panel-mk3-equipment=携帯ソーラーパネルモジュール3代目 -solar-panel-mk4-equipment=携帯ソーラーパネルモジュール4代目 -solar-panel-mk5-equipment=携帯ソーラーパネルモジュール5代目 -solar-panel-mk6-equipment=携帯ソーラーパネルモジュール6代目 -solar-panel-mk7-equipment=携帯ソーラーパネルモジュール7代目 -solar-panel-mk8-equipment=携帯ソーラーパネルモジュール8代目 - -battery-mk3-equipment=個人用バッテリー3代目 -battery-mk4-equipment=個人用バッテリー4代目 -battery-mk5-equipment=個人用バッテリー5代目 -battery-mk6-equipment=個人用バッテリー6代目 -battery-mk7-equipment=個人用バッテリー7代目 -battery-mk8-equipment=個人用バッテリー8代目 - -fusion-reactor-mk2-equipment=携帯核融合炉モジュール2代目 -fusion-reactor-mk3-equipment=携帯核融合炉モジュール3代目 -fusion-reactor-mk4-equipment=携帯核融合炉モジュール4代目 -fusion-reactor-mk5-equipment=携帯核融合炉モジュール5代目 -fusion-reactor-mk6-equipment=携帯核融合炉モジュール6代目 -fusion-reactor-mk7-equipment=携帯核融合炉モジュール7代目 -fusion-reactor-mk8-equipment=携帯核融合炉モジュール8代目 - -energy-shield-mk3-equipment=エネルギーシールドモジュール3代 -energy-shield-mk4-equipment=エネルギーシールドモジュール4代 -energy-shield-mk5-equipment=エネルギーシールドモジュール5代 -energy-shield-mk6-equipment=エネルギーシールドモジュール6代 -energy-shield-mk7-equipment=エネルギーシールドモジュール7代 -energy-shield-mk8-equipment=エネルギーシールドモジュール8代 - -personal-laser-defense-mk2-equipment=携帯レーザー防御モジュール2代 -personal-laser-defense-mk3-equipment=携帯レーザー防御モジュール3代 -personal-laser-defense-mk4-equipment=携帯レーザー防御モジュール4代 -personal-laser-defense-mk5-equipment=携帯レーザー防御モジュール5代 -personal-laser-defense-mk6-equipment=携帯レーザー防御モジュール6代 -personal-laser-defense-mk7-equipment=携帯レーザー防御モジュール7代 -personal-laser-defense-mk8-equipment=携帯レーザー防御モジュール8代 - -personal-roboport-mk3-equipment=携帯ロボットステーション3代 -personal-roboport-mk4-equipment=携帯ロボットステーション4代 -personal-roboport-mk5-equipment=携帯ロボットステーション5代 -personal-roboport-mk6-equipment=携帯ロボットステーション6代 -personal-roboport-mk7-equipment=携帯ロボットステーション7代 -personal-roboport-mk8-equipment=携帯ロボットステーション8代 - -night-vision-mk2-equipment=暗視モジュール2代 -exoskeleton-mk2-equipment=強化外骨格モジュール2代 - -[mod-setting-name] -PHI-EQ-SOLAR-TIER=携帯ソーラーパネルモジュール -PHI-EQ-BATTERY-TIER=個人用バッテリー -PHI-EQ-REACTOR-TIER=携帯核融合炉モジュール -PHI-EQ-LASER-TIER=携帯レーザー防御モジュール -PHI-EQ-ROBOPORT-TIER=携帯ロボットステーション -PHI-EQ-SHIELD-TIER=エネルギーシールドモジュール -PHI-EQ-NIGHT-TIER=暗視モジュール -PHI-EQ-EXO-TIER=強化外骨格モジュール -PHI-EQ-ARMOR=パワーアーマー - -[mod-setting-description] -PHI-EQ-SOLAR-TIER=デフォルト 8 ; 止める 1 -PHI-EQ-BATTERY-TIER=デフォルト 8 ; 止める 2 -PHI-EQ-REACTOR-TIER=デフォルト 8 ; 止める 1 -PHI-EQ-LASER-TIER=デフォルト 8 ; 止める 1 -PHI-EQ-ROBOPORT-TIER=デフォルト 8 ; 止める 2 -PHI-EQ-SHIELD-TIER=デフォルト 8 ; 止める 2 -PHI-EQ-NIGHT-TIER=デフォルト 2 ; 止める 1 -PHI-EQ-EXO-TIER=デフォルト 2 ; 止める 1 diff --git a/OLD/PHI-EQ/locale/zh-CN/locale.cfg b/OLD/PHI-EQ/locale/zh-CN/locale.cfg deleted file mode 100644 index 1c29c45..0000000 --- a/OLD/PHI-EQ/locale/zh-CN/locale.cfg +++ /dev/null @@ -1,169 +0,0 @@ -[item-name] -solar-panel-mk2-equipment=攜帶式太陽能板2代 -solar-panel-mk3-equipment=攜帶式太陽能板3代 -solar-panel-mk4-equipment=攜帶式太陽能板4代 -solar-panel-mk5-equipment=攜帶式太陽能板5代 -solar-panel-mk6-equipment=攜帶式太陽能板6代 -solar-panel-mk7-equipment=攜帶式太陽能板7代 -solar-panel-mk8-equipment=攜帶式太陽能板8代 - -battery-mk3-equipment=電池設備3代 -battery-mk4-equipment=電池設備4代 -battery-mk5-equipment=電池設備5代 -battery-mk6-equipment=電池設備6代 -battery-mk7-equipment=電池設備7代 -battery-mk8-equipment=電池設備8代 - -fusion-reactor-mk2-equipment=攜帶式核融合反應器2代 -fusion-reactor-mk3-equipment=攜帶式核融合反應器3代 -fusion-reactor-mk4-equipment=攜帶式核融合反應器4代 -fusion-reactor-mk5-equipment=攜帶式核融合反應器5代 -fusion-reactor-mk6-equipment=攜帶式核融合反應器6代 -fusion-reactor-mk7-equipment=攜帶式核融合反應器7代 -fusion-reactor-mk8-equipment=攜帶式核融合反應器8代 - -energy-shield-mk3-equipment=能量護盾3代 -energy-shield-mk4-equipment=能量護盾4代 -energy-shield-mk5-equipment=能量護盾5代 -energy-shield-mk6-equipment=能量護盾6代 -energy-shield-mk7-equipment=能量護盾7代 -energy-shield-mk8-equipment=能量護盾8代 - -personal-laser-defense-mk2-equipment=個人雷射防禦2代 -personal-laser-defense-mk3-equipment=個人雷射防禦3代 -personal-laser-defense-mk4-equipment=個人雷射防禦4代 -personal-laser-defense-mk5-equipment=個人雷射防禦5代 -personal-laser-defense-mk6-equipment=個人雷射防禦6代 -personal-laser-defense-mk7-equipment=個人雷射防禦7代 -personal-laser-defense-mk8-equipment=個人雷射防禦8代 - -personal-roboport-mk3-equipment=機動無人機調度站3代 -personal-roboport-mk4-equipment=機動無人機調度站4代 -personal-roboport-mk5-equipment=機動無人機調度站5代 -personal-roboport-mk6-equipment=機動無人機調度站6代 -personal-roboport-mk7-equipment=機動無人機調度站7代 -personal-roboport-mk8-equipment=機動無人機調度站8代 - -night-vision-mk2-equipment=夜視鏡2代 -exoskeleton-mk2-equipment=動力外骨骼2代 -power-armor-mk3=動力護甲3代 - -[item-description] -solar-panel-mk2-equipment=替裝備的模組供電。 -solar-panel-mk3-equipment=替裝備的模組供電。 -solar-panel-mk4-equipment=替裝備的模組供電。 -solar-panel-mk5-equipment=替裝備的模組供電。 -solar-panel-mk6-equipment=替裝備的模組供電。 -solar-panel-mk7-equipment=替裝備的模組供電。 -solar-panel-mk8-equipment=替裝備的模組供電。 - -battery-mk3-equipment=為設備模組儲存電力。 -battery-mk4-equipment=為設備模組儲存電力。 -battery-mk5-equipment=為設備模組儲存電力。 -battery-mk6-equipment=為設備模組儲存電力。 -battery-mk7-equipment=為設備模組儲存電力。 -battery-mk8-equipment=為設備模組儲存電力。 - -fusion-reactor-mk2-equipment=替裝備的模組供電。 -fusion-reactor-mk3-equipment=替裝備的模組供電。 -fusion-reactor-mk4-equipment=替裝備的模組供電。 -fusion-reactor-mk5-equipment=替裝備的模組供電。 -fusion-reactor-mk6-equipment=替裝備的模組供電。 -fusion-reactor-mk7-equipment=替裝備的模組供電。 -fusion-reactor-mk8-equipment=替裝備的模組供電。 - -energy-shield-mk3-equipment=用於插入模組化裝甲,可吸收大量傷害。 -energy-shield-mk4-equipment=用於插入模組化裝甲,可吸收大量傷害。 -energy-shield-mk5-equipment=用於插入模組化裝甲,可吸收大量傷害。 -energy-shield-mk6-equipment=用於插入模組化裝甲,可吸收大量傷害。 -energy-shield-mk7-equipment=用於插入模組化裝甲,可吸收大量傷害。 -energy-shield-mk8-equipment=用於插入模組化裝甲,可吸收大量傷害。 - -personal-laser-defense-mk2-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk3-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk4-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk5-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk6-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk7-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk8-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 - -personal-roboport-mk3-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 -personal-roboport-mk4-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 -personal-roboport-mk5-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 -personal-roboport-mk6-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 -personal-roboport-mk7-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 -personal-roboport-mk8-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 - -night-vision-equipment-mk2=放入模組化裝甲可使玩家獲得夜視能力。 -exoskeleton-equipment-mk2=用於插入模組化裝甲,可提高玩家的移動速度。你可以同時裝備多個外骨骼模組。 -power-armor-mk3=具有巨大模組化插槽和背包容量加成的裝甲。 - -[equipment-name] -solar-panel-mk2-equipment=攜帶式太陽能板2代 -solar-panel-mk3-equipment=攜帶式太陽能板3代 -solar-panel-mk4-equipment=攜帶式太陽能板4代 -solar-panel-mk5-equipment=攜帶式太陽能板5代 -solar-panel-mk6-equipment=攜帶式太陽能板6代 -solar-panel-mk7-equipment=攜帶式太陽能板7代 -solar-panel-mk8-equipment=攜帶式太陽能板8代 - -battery-mk3-equipment=電池設備3代 -battery-mk4-equipment=電池設備4代 -battery-mk5-equipment=電池設備5代 -battery-mk6-equipment=電池設備6代 -battery-mk7-equipment=電池設備7代 -battery-mk8-equipment=電池設備8代 - -fusion-reactor-mk2-equipment=攜帶式核融合反應器2代 -fusion-reactor-mk3-equipment=攜帶式核融合反應器3代 -fusion-reactor-mk4-equipment=攜帶式核融合反應器4代 -fusion-reactor-mk5-equipment=攜帶式核融合反應器5代 -fusion-reactor-mk6-equipment=攜帶式核融合反應器6代 -fusion-reactor-mk7-equipment=攜帶式核融合反應器7代 -fusion-reactor-mk8-equipment=攜帶式核融合反應器8代 - -energy-shield-mk3-equipment=能量護盾3代 -energy-shield-mk4-equipment=能量護盾4代 -energy-shield-mk5-equipment=能量護盾5代 -energy-shield-mk6-equipment=能量護盾6代 -energy-shield-mk7-equipment=能量護盾7代 -energy-shield-mk8-equipment=能量護盾8代 - -personal-laser-defense-mk2-equipment=個人雷射防禦2代 -personal-laser-defense-mk3-equipment=個人雷射防禦3代 -personal-laser-defense-mk4-equipment=個人雷射防禦4代 -personal-laser-defense-mk5-equipment=個人雷射防禦5代 -personal-laser-defense-mk6-equipment=個人雷射防禦6代 -personal-laser-defense-mk7-equipment=個人雷射防禦7代 -personal-laser-defense-mk8-equipment=個人雷射防禦8代 - -personal-roboport-mk3-equipment=機動無人機調度站3代 -personal-roboport-mk4-equipment=機動無人機調度站4代 -personal-roboport-mk5-equipment=機動無人機調度站5代 -personal-roboport-mk6-equipment=機動無人機調度站6代 -personal-roboport-mk7-equipment=機動無人機調度站7代 -personal-roboport-mk8-equipment=機動無人機調度站8代 - -night-vision-mk2-equipment=夜視鏡2代 -exoskeleton-mk2-equipment=動力外骨骼2代 - -[mod-setting-name] -PHI-EQ-SOLAR-TIER=攜帶式太陽能板 -PHI-EQ-BATTERY-TIER=電池設備 -PHI-EQ-REACTOR-TIER=攜帶式核融合反應器 -PHI-EQ-LASER-TIER=個人雷射防禦 -PHI-EQ-ROBOPORT-TIER=機動無人機調度站 -PHI-EQ-SHIELD-TIER=能量護盾 -PHI-EQ-NIGHT-TIER=夜視鏡 -PHI-EQ-EXO-TIER=動力外骨骼 -PHI-EQ-ARMOR=動力護甲 - -[mod-setting-description] -PHI-EQ-SOLAR-TIER=預設 8 ; 停用 1 -PHI-EQ-BATTERY-TIER=預設 8 ; 停用 2 -PHI-EQ-REACTOR-TIER=預設 8 ; 停用 1 -PHI-EQ-LASER-TIER=預設 8 ; 停用 1 -PHI-EQ-ROBOPORT-TIER=預設 8 ; 停用 2 -PHI-EQ-SHIELD-TIER=預設 8 ; 停用 2 -PHI-EQ-NIGHT-TIER=預設 2 ; 停用 1 -PHI-EQ-EXO-TIER=預設 2 ; 停用 1 diff --git a/OLD/PHI-EQ/locale/zh-TW/locale.cfg b/OLD/PHI-EQ/locale/zh-TW/locale.cfg deleted file mode 100644 index 1c29c45..0000000 --- a/OLD/PHI-EQ/locale/zh-TW/locale.cfg +++ /dev/null @@ -1,169 +0,0 @@ -[item-name] -solar-panel-mk2-equipment=攜帶式太陽能板2代 -solar-panel-mk3-equipment=攜帶式太陽能板3代 -solar-panel-mk4-equipment=攜帶式太陽能板4代 -solar-panel-mk5-equipment=攜帶式太陽能板5代 -solar-panel-mk6-equipment=攜帶式太陽能板6代 -solar-panel-mk7-equipment=攜帶式太陽能板7代 -solar-panel-mk8-equipment=攜帶式太陽能板8代 - -battery-mk3-equipment=電池設備3代 -battery-mk4-equipment=電池設備4代 -battery-mk5-equipment=電池設備5代 -battery-mk6-equipment=電池設備6代 -battery-mk7-equipment=電池設備7代 -battery-mk8-equipment=電池設備8代 - -fusion-reactor-mk2-equipment=攜帶式核融合反應器2代 -fusion-reactor-mk3-equipment=攜帶式核融合反應器3代 -fusion-reactor-mk4-equipment=攜帶式核融合反應器4代 -fusion-reactor-mk5-equipment=攜帶式核融合反應器5代 -fusion-reactor-mk6-equipment=攜帶式核融合反應器6代 -fusion-reactor-mk7-equipment=攜帶式核融合反應器7代 -fusion-reactor-mk8-equipment=攜帶式核融合反應器8代 - -energy-shield-mk3-equipment=能量護盾3代 -energy-shield-mk4-equipment=能量護盾4代 -energy-shield-mk5-equipment=能量護盾5代 -energy-shield-mk6-equipment=能量護盾6代 -energy-shield-mk7-equipment=能量護盾7代 -energy-shield-mk8-equipment=能量護盾8代 - -personal-laser-defense-mk2-equipment=個人雷射防禦2代 -personal-laser-defense-mk3-equipment=個人雷射防禦3代 -personal-laser-defense-mk4-equipment=個人雷射防禦4代 -personal-laser-defense-mk5-equipment=個人雷射防禦5代 -personal-laser-defense-mk6-equipment=個人雷射防禦6代 -personal-laser-defense-mk7-equipment=個人雷射防禦7代 -personal-laser-defense-mk8-equipment=個人雷射防禦8代 - -personal-roboport-mk3-equipment=機動無人機調度站3代 -personal-roboport-mk4-equipment=機動無人機調度站4代 -personal-roboport-mk5-equipment=機動無人機調度站5代 -personal-roboport-mk6-equipment=機動無人機調度站6代 -personal-roboport-mk7-equipment=機動無人機調度站7代 -personal-roboport-mk8-equipment=機動無人機調度站8代 - -night-vision-mk2-equipment=夜視鏡2代 -exoskeleton-mk2-equipment=動力外骨骼2代 -power-armor-mk3=動力護甲3代 - -[item-description] -solar-panel-mk2-equipment=替裝備的模組供電。 -solar-panel-mk3-equipment=替裝備的模組供電。 -solar-panel-mk4-equipment=替裝備的模組供電。 -solar-panel-mk5-equipment=替裝備的模組供電。 -solar-panel-mk6-equipment=替裝備的模組供電。 -solar-panel-mk7-equipment=替裝備的模組供電。 -solar-panel-mk8-equipment=替裝備的模組供電。 - -battery-mk3-equipment=為設備模組儲存電力。 -battery-mk4-equipment=為設備模組儲存電力。 -battery-mk5-equipment=為設備模組儲存電力。 -battery-mk6-equipment=為設備模組儲存電力。 -battery-mk7-equipment=為設備模組儲存電力。 -battery-mk8-equipment=為設備模組儲存電力。 - -fusion-reactor-mk2-equipment=替裝備的模組供電。 -fusion-reactor-mk3-equipment=替裝備的模組供電。 -fusion-reactor-mk4-equipment=替裝備的模組供電。 -fusion-reactor-mk5-equipment=替裝備的模組供電。 -fusion-reactor-mk6-equipment=替裝備的模組供電。 -fusion-reactor-mk7-equipment=替裝備的模組供電。 -fusion-reactor-mk8-equipment=替裝備的模組供電。 - -energy-shield-mk3-equipment=用於插入模組化裝甲,可吸收大量傷害。 -energy-shield-mk4-equipment=用於插入模組化裝甲,可吸收大量傷害。 -energy-shield-mk5-equipment=用於插入模組化裝甲,可吸收大量傷害。 -energy-shield-mk6-equipment=用於插入模組化裝甲,可吸收大量傷害。 -energy-shield-mk7-equipment=用於插入模組化裝甲,可吸收大量傷害。 -energy-shield-mk8-equipment=用於插入模組化裝甲,可吸收大量傷害。 - -personal-laser-defense-mk2-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk3-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk4-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk5-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk6-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk7-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 -personal-laser-defense-mk8-equipment=用於插入模組化裝甲,可自動向周邊的敵對單位開火。 - -personal-roboport-mk3-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 -personal-roboport-mk4-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 -personal-roboport-mk5-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 -personal-roboport-mk6-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 -personal-roboport-mk7-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 -personal-roboport-mk8-equipment=用於放入裝甲,可讓建設無人機直接從背包中飛出來作業。 - -night-vision-equipment-mk2=放入模組化裝甲可使玩家獲得夜視能力。 -exoskeleton-equipment-mk2=用於插入模組化裝甲,可提高玩家的移動速度。你可以同時裝備多個外骨骼模組。 -power-armor-mk3=具有巨大模組化插槽和背包容量加成的裝甲。 - -[equipment-name] -solar-panel-mk2-equipment=攜帶式太陽能板2代 -solar-panel-mk3-equipment=攜帶式太陽能板3代 -solar-panel-mk4-equipment=攜帶式太陽能板4代 -solar-panel-mk5-equipment=攜帶式太陽能板5代 -solar-panel-mk6-equipment=攜帶式太陽能板6代 -solar-panel-mk7-equipment=攜帶式太陽能板7代 -solar-panel-mk8-equipment=攜帶式太陽能板8代 - -battery-mk3-equipment=電池設備3代 -battery-mk4-equipment=電池設備4代 -battery-mk5-equipment=電池設備5代 -battery-mk6-equipment=電池設備6代 -battery-mk7-equipment=電池設備7代 -battery-mk8-equipment=電池設備8代 - -fusion-reactor-mk2-equipment=攜帶式核融合反應器2代 -fusion-reactor-mk3-equipment=攜帶式核融合反應器3代 -fusion-reactor-mk4-equipment=攜帶式核融合反應器4代 -fusion-reactor-mk5-equipment=攜帶式核融合反應器5代 -fusion-reactor-mk6-equipment=攜帶式核融合反應器6代 -fusion-reactor-mk7-equipment=攜帶式核融合反應器7代 -fusion-reactor-mk8-equipment=攜帶式核融合反應器8代 - -energy-shield-mk3-equipment=能量護盾3代 -energy-shield-mk4-equipment=能量護盾4代 -energy-shield-mk5-equipment=能量護盾5代 -energy-shield-mk6-equipment=能量護盾6代 -energy-shield-mk7-equipment=能量護盾7代 -energy-shield-mk8-equipment=能量護盾8代 - -personal-laser-defense-mk2-equipment=個人雷射防禦2代 -personal-laser-defense-mk3-equipment=個人雷射防禦3代 -personal-laser-defense-mk4-equipment=個人雷射防禦4代 -personal-laser-defense-mk5-equipment=個人雷射防禦5代 -personal-laser-defense-mk6-equipment=個人雷射防禦6代 -personal-laser-defense-mk7-equipment=個人雷射防禦7代 -personal-laser-defense-mk8-equipment=個人雷射防禦8代 - -personal-roboport-mk3-equipment=機動無人機調度站3代 -personal-roboport-mk4-equipment=機動無人機調度站4代 -personal-roboport-mk5-equipment=機動無人機調度站5代 -personal-roboport-mk6-equipment=機動無人機調度站6代 -personal-roboport-mk7-equipment=機動無人機調度站7代 -personal-roboport-mk8-equipment=機動無人機調度站8代 - -night-vision-mk2-equipment=夜視鏡2代 -exoskeleton-mk2-equipment=動力外骨骼2代 - -[mod-setting-name] -PHI-EQ-SOLAR-TIER=攜帶式太陽能板 -PHI-EQ-BATTERY-TIER=電池設備 -PHI-EQ-REACTOR-TIER=攜帶式核融合反應器 -PHI-EQ-LASER-TIER=個人雷射防禦 -PHI-EQ-ROBOPORT-TIER=機動無人機調度站 -PHI-EQ-SHIELD-TIER=能量護盾 -PHI-EQ-NIGHT-TIER=夜視鏡 -PHI-EQ-EXO-TIER=動力外骨骼 -PHI-EQ-ARMOR=動力護甲 - -[mod-setting-description] -PHI-EQ-SOLAR-TIER=預設 8 ; 停用 1 -PHI-EQ-BATTERY-TIER=預設 8 ; 停用 2 -PHI-EQ-REACTOR-TIER=預設 8 ; 停用 1 -PHI-EQ-LASER-TIER=預設 8 ; 停用 1 -PHI-EQ-ROBOPORT-TIER=預設 8 ; 停用 2 -PHI-EQ-SHIELD-TIER=預設 8 ; 停用 2 -PHI-EQ-NIGHT-TIER=預設 2 ; 停用 1 -PHI-EQ-EXO-TIER=預設 2 ; 停用 1 diff --git a/OLD/PHI-EQ/migrations/migrations.lua b/OLD/PHI-EQ/migrations/migrations.lua deleted file mode 100644 index 9b33e26..0000000 --- a/OLD/PHI-EQ/migrations/migrations.lua +++ /dev/null @@ -1,28 +0,0 @@ -local items = require '__PHI-EQ__/config' - -for _, force in pairs(game.forces) do - local technologies = force.technologies - local recipes = force.recipes - - for k, v in pairs(items) do - if k ~= 'setting' then - if v.enabled then - if technologies[v.tech] ~= nil then - if technologies[v.tech].researched then - for j=v.min, v.max, 1 do - if recipes[v.name .. '-mk' .. j .. '-equipment'] ~= nil then - recipes[v.name .. '-mk' .. j .. '-equipment'].enabled = true - recipes[v.name .. '-mk' .. j .. '-equipment'].reload() - end - end - end - end - end - end - end - - if technologies['power-armor-mk2'].researched then - recipes['power-armor-mk3'].enabled = true - recipes['power-armor-mk3'].reload() - end -end diff --git a/OLD/PHI-EQ/settings.lua b/OLD/PHI-EQ/settings.lua deleted file mode 100644 index eb6cdaf..0000000 --- a/OLD/PHI-EQ/settings.lua +++ /dev/null @@ -1,64 +0,0 @@ -data:extend({ - { - type = 'int-setting', - name = 'PHI-EQ-SOLAR-TIER', - setting_type = 'startup', - default_value = 8, - allowed_values = {1, 2, 3, 4, 5, 6, 7, 8}, - order = 'A1' - }, { - type = 'int-setting', - name = 'PHI-EQ-BATTERY-TIER', - setting_type = 'startup', - default_value = 8, - allowed_values = {2, 3, 4, 5, 6, 7, 8}, - order = 'A2' - }, { - type = 'int-setting', - name = 'PHI-EQ-REACTOR-TIER', - setting_type = 'startup', - default_value = 8, - allowed_values = {1, 2, 3, 4, 5, 6, 7, 8}, - order = 'A3' - }, { - type = 'int-setting', - name = 'PHI-EQ-LASER-TIER', - setting_type = 'startup', - default_value = 8, - allowed_values = {1, 2, 3, 4, 5, 6, 7, 8}, - order = 'A4' - }, { - type = 'int-setting', - name = 'PHI-EQ-ROBOPORT-TIER', - setting_type = 'startup', - default_value = 8, - allowed_values = {2, 3, 4, 5, 6, 7, 8}, - order = 'A5' - }, { - type = 'int-setting', - name = 'PHI-EQ-SHIELD-TIER', - setting_type = 'startup', - default_value = 8, - allowed_values = {2, 3, 4, 5, 6, 7, 8}, - order = 'A6' - }, { - type = 'int-setting', - name = 'PHI-EQ-NIGHT-TIER', - setting_type = 'startup', - default_value = 2, - allowed_values = {1, 2}, - order = 'A7' - }, { - type = 'int-setting', - name = 'PHI-EQ-EXO-TIER', - setting_type = 'startup', - default_value = 2, - allowed_values = {1, 2}, - order = 'A8' - }, { - type = 'bool-setting', - name = 'PHI-EQ-ARMOR', - setting_type = 'startup', - default_value = true, - order = 'A9' - }}) \ No newline at end of file diff --git a/OLD/PHI-EQ/thumbnail.png b/OLD/PHI-EQ/thumbnail.png deleted file mode 100644 index ea60207..0000000 Binary files a/OLD/PHI-EQ/thumbnail.png and /dev/null differ diff --git a/OLD/PHI-MB/.editorconfig b/OLD/PHI-MB/.editorconfig deleted file mode 100644 index 73c5516..0000000 --- a/OLD/PHI-MB/.editorconfig +++ /dev/null @@ -1,8 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 4 -charset = utf-8 -trim_trailing_whitespace = false -insert_final_newline = false \ No newline at end of file diff --git a/OLD/PHI-MB/.luacheckrc b/OLD/PHI-MB/.luacheckrc deleted file mode 100644 index 0da1ad4..0000000 --- a/OLD/PHI-MB/.luacheckrc +++ /dev/null @@ -1,1597 +0,0 @@ -------------------------------------------------------------------------------- ---[LICENSE]-- -------------------------------------------------------------------------------- --- .luacheckrc --- This file is free and unencumbered software released into the public domain. --- --- Anyone is free to copy, modify, publish, use, compile, sell, or --- distribute this file, either in source code form or as a compiled --- binary, for any purpose, commercial or non-commercial, and by any --- means. --- --- In jurisdictions that recognize copyright laws, the author or authors --- of this file dedicate any and all copyright interest in the --- software to the public domain. We make this dedication for the benefit --- of the public at large and to the detriment of our heirs and --- successors. We intend this dedication to be an overt act of --- relinquishment in perpetuity of all present and future rights to this --- software under copyright law. --- --- THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, --- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR --- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, --- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR --- OTHER DEALINGS IN THE SOFTWARE. --- --- For more information, please refer to --- ]] - --- Current Factorio Version 0.17.0, luacheck version 0.23.0 - -------------------------------------------------------------------------------- ---[Set Defaults]-- -------------------------------------------------------------------------------- -local LINE_LENGTH = false -- It is 2017 limits on length are a waste -local IGNORE = {'21./%w+_$', '21./^_%w+$', '213/[ijk]', '213/index', '213/key'} -local NOT_GLOBALS = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'} -- These globals are not available to the factorio API - -local STD_CONTROL = 'lua52c+factorio+factorio_control+stdlib+factorio_defines' -local STD_DATA = 'lua52c+factorio+factorio_data+stdlib+stdlib_data+factorio_defines' -local STD_LOVE = 'luajit+love+love_extra+stdlib+stdlib_data' - --- In a perfect world these would be STD_DATA and STD_CONTROL (mostly) -local STD_BASE_DATA = 'lua52c+factorio+factorio_data+factorio_defines+factorio_base_data' -local STD_BASE_CONTROL = 'lua52c+factorio+factorio_control+factorio_defines+factorio_base_control' - -------------------------------------------------------------------------------- ---[Assume Factorio Control stage as default]-- -------------------------------------------------------------------------------- -std = STD_CONTROL -max_line_length = LINE_LENGTH - -not_globals = NOT_GLOBALS -ignore = IGNORE -quiet = 1 -- pass -q option -max_cyclomatic_complexity = 75 -codes = true - ---List of files and directories to exclude -exclude_files = { - --Ignore special folders - '**/.*/*', --Ignore if path starts with . - '**/stdlib/vendor/', - '**/*WIP/', - - --Ignore development mods - '**/combat-tester/', - '**/test-maker/', - '**/trailer/', - - --Ignore love Includes - '**/love/includes/' -} - -------------------------------------------------------------------------------- ---[Mod Prototypes]-- -------------------------------------------------------------------------------- ---Set default prototype files -files['**/data.lua'].std = STD_DATA -files['**/data-updates.lua'].std = STD_DATA -files['**/data-final-fixes.lua'].std = STD_DATA -files['**/settings.lua'].std = STD_DATA -files['**/settings-updates.lua'].std = STD_DATA -files['**/settings-final-fixes.lua'].std = STD_DATA -files['**/prototypes/'].std = STD_DATA -files['**/settings/'].std = STD_DATA -files['**/love/'] = {std = STD_LOVE, globals = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'}} - -------------------------------------------------------------------------------- ---[Base]-- -------------------------------------------------------------------------------- ---Find and replace ignores *.cfg, migrations, *.txt, control.lua, *.json, trailer, scenarios, campaigns, *.glsl - -local base_scenarios = { - std = STD_BASE_CONTROL .. '+factorio_base_scenarios+factorio_base_story', - --ignore = {'212/event', '111', '112', '113', '211', '212', '213', '311', '411', '412', '421', '422', '423', '431', '432', '512'} - ignore = {'...'} -} -files['**/base/scenarios/'] = base_scenarios -files['**/base/tutorials/'] = base_scenarios -files['**/base/campaigns/'] = base_scenarios -files['**/wip-scenario/'] = base_scenarios - -files['**/base/migrations/'] = {std = STD_BASE_CONTROL} - -files['**/core/lualib/'] = {std = STD_BASE_CONTROL} -files['**/core/lualib/util.lua'] = {globals = {'util', 'table'}, ignore = {'432/object'}} -files['**/core/lualib/silo-script.lua'] = {globals = {'silo_script'}, ignore = {'4../player'}} -files['**/core/lualib/production-score.lua'] = {globals = {'production_score', 'get_price_recursive'}, ignore = {'4../player'}} -files['**/core/lualib/story*'] = {std = '+factorio_base_story', ignore = {'42./k', '42./filter'}} -files['**/core/lualib/mod-gui.lua'] = {globals = {'mod_gui'}} -files['**/core/lualib/camera.lua'] = {globals = {'camera'}} -files['**/core/lualib/builder.lua'] = {globals = {'Builder', 'builder', 'action', 'down', 'right'}} - -files['**/core/lualib/bonus-gui-ordering/'] = {std = STD_BASE_DATA} -files['**/core/lualib/dataloader.lua'] = {globals = {'data'}} -files['**/core/lualib/circuit-connector-*'] = {std = STD_BASE_DATA..'+factorio_circuit_connector_generated'} -files['**/core/lualib/bonus-gui-ordering.lua'] = {globals = {'bonus_gui_ordering'}} - -files['**/base/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/noise-programs.lua'] = {ignore = {'212/x', '212/y', '212/tile', '212/map'}} - ---(( stdlib ))-- -local stdlib_control = { - std = 'lua52c+factorio+factorio_control+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - -local stdlib_data = { - std = 'lua52c+factorio+factorio_data+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - --- Assume control stage for stdlib -files['**/stdlib/'] = stdlib_control - --- Assume generic content for stdlib utils -files['**/stdlib/utils/**'].std = 'lua52c+stdlib' - --- STDLIB data files -files['**/stdlib/data/'] = stdlib_data - --- STDLIB Busted Spec -files['**/spec/**'] = { - globals = {'serpent', 'log', 'SLOG', 'RESET'}, - std = 'lua52c+busted+factorio_defines+factorio_control+stdlib' -} --)) - ---(( Factorio ))-- -stds.factorio = { - --Set the read only variables - read_globals = { - -- @log@: Gives writing access to Factorio's logger instance. - "log", - -- @serpent@: Lua serializer and pretty printer. (https://github.com/pkulchenko/serpent) - "serpent", - -- @table_size@: Returns the number of elements inside an LUA table - "table_size", - util = { - fields = { - "by_pixel", "distance", "findfirstentity", "positiontostr", "formattime", "moveposition", "oppositedirection", - "ismoduleavailable", "multiplystripes", "format_number", "increment", "color", "conditional_return", - "add_shift", "merge", "premul_color", "encode", "decode", "insert_safe", - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, - }, - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, -} - -stds.factorio_control = { - read_globals = { - - -- @commands@: - commands = { - fields = { - "add_command", "commands", "game_commands", "remove_command" - }, - }, - - -- @settings@: - settings = { - fields = { - "get_player_settings", - startup = {read_only = false, other_fields = true}, - global = {read_only = false, other_fields = true}, - player = {read_only = false, other_fields = true}, - }, - }, - - -- @script@: Provides an interface for registering event handlers. - -- (http://lua-api.factorio.com/latest/LuaBootstrap.html) - script = { - fields = { - "on_event", "on_nth_tick", "on_configuration_changed", "on_init", "on_load", "generate_event_name", - "raise_event", "get_event_handler", "mod_name", "get_event_order" - }, - other_fields = false, - }, - - -- @remote@: Allows inter-mod communication by providing a repository of interfaces that is shared by all mods. - -- (http://lua-api.factorio.com/latest/LuaRemote.html) - remote = { - fields = { - interfaces = {read_only = false, other_fields = true}, - "add_interface", "remove_interface", "call" - }, - read_only = true, - other_fields = false, - }, - - rcon = { - fields = {'print'} - }, - - rendering = { - other_fields = false, - read_only = true, - fields = { - 'draw_animation', - 'draw_line', - 'draw_text', - 'draw_circle', - 'draw_rectangle', - 'draw_arc', - 'draw_polygon', - 'draw_sprite', - 'draw_light', - 'destroy', - 'is_font_valid', - 'is_valid', - 'get_all_ids', - 'clear', - 'get_type', - 'get_surface', - 'get_time_to_live', - 'set_time_to_live', - 'get_forces', - 'set_forces', - 'get_players', - 'set_players', - 'get_color', - 'set_color', - 'get_width', - 'set_width', - 'get_from', - 'set_from', - 'get_to', - 'set_to', - 'get_gap_amount', - 'set_gap_amount', - 'get_gap_length', - 'set_gap_length', - 'get_target', - 'set_target', - 'get_orientation', - 'set_orientation', - 'get_scale', - 'set_scale', - 'get_text', - 'set_text', - 'get_font', - 'set_font', - 'get_alignment', - 'set_alignment', - 'get_scale_with_zoom', - 'set_scale_with_zoom', - 'get_filled', - 'set_filled', - 'get_radius', - 'set_radius', - 'get_left_top', - 'set_left_top', - 'get_right_bottom', - 'set_right_bottom', - 'get_max_radius', - 'set_max_radius', - 'get_min_radius', - 'set_min_radius', - 'get_start_angle', - 'set_start_angle', - 'get_angle', - 'set_angle', - 'get_vertices', - 'set_vertices', - 'get_sprite', - 'set_sprite', - 'get_x_scale', - 'set_x_scale', - 'get_y_scale', - 'set_y_scale', - 'get_render_layer', - 'set_render_layer', - 'get_orientation_target', - 'set_orientation_target', - 'get_oriented_offset', - 'set_oriented_offset', - 'get_intensity', - 'set_intensity', - 'get_minimum_darkness', - 'set_minimum_darkness' - } - }, - - -- @game@: Main object through which most of the API is accessed. - -- It is, however, not available inside handlers registered with @script.on_load@. - -- (http://lua-api.factorio.com/latest/LuaGameScript.html) - game ={ - other_fields = false, - read_only = false, - fields = { - "auto_save", - "ban_player", - "check_consistency", - "check_prototype_translations", - "count_pipe_groups", - "create_force", - "create_profiler", - "create_random_generator", - "get_surface", - "create_surface", - "delete_surface", - "desync_players", - "direction_to_string", - "disable_replay", - "disable_tips_and_tricks", - "draw_resource_selection", - "force_crc", - "get_active_entities_count", - "get_entity_by_tag", - "get_map_exchange_string", - "get_player", - "help", - "is_demo", - "is_multiplayer", - "is_valid_sound_path", - "json_to_table", - "kick_player", - "merge_forces", - "mute_player", - "play_sound", - "print", - "print_stack_size", - "purge_player", - "regenerate_entity", - "reload_mods", - "reload_script", - "remove_offline_players", - "remove_path", - "save_atlas", - "server_save", - "set_game_state", - "show_message_dialog", - "table_to_json", - "take_screenshot", - "take_technology_screenshot", - "unban_player", - "unmute_player", - "write_file", - "get_filtered_entity_prototypes", - "get_filtered_item_prototypes", - "get_filtered_equipment_prototypes", - "get_filtered_mod_setting_prototypes", - "get_filtered_achievement_prototypes", - - active_mods = {read_only = true, other_fields = true}, - ammo_category_prototypes = {read_only = true, other_fields = true}, - autoplace_control_prototypes = {read_only = true, other_fields = true}, - backer_names = {read_only = true, other_fields = true}, - connected_players = {read_only = true, other_fields = true}, - custom_input_prototypes = {read_only = true, other_fields = true}, - damage_prototypes = {read_only = true, other_fields = true}, - decorative_prototypes = {read_only = true, other_fields = true}, - default_map_gen_settings = {read_only = true, other_fields = true}, - difficulty = {read_only = true, other_fields = true}, - difficulty_settings = {read_only = true, other_fields = true}, - enemy_has_vision_on_land_mines = {read_only = false, other_fields = false}, - entity_prototypes = {read_only = true, other_fields = true}, - equipment_grid_prototypes = {read_only = true, other_fields = true}, - equipment_prototypes = {read_only = true, other_fields = true}, - finished = {read_only = true, other_fields = true}, - fluid_prototypes = {read_only = true, other_fields = true}, - forces = {read_only = true, other_fields = true}, - item_prototypes = {read_only = true, other_fields = true}, - map_settings = {read_only = true, other_fields = true}, - mod_setting_prototypes = {read_only = true, other_fields = true}, - noise_layer_prototypes = {read_only = true, other_fields = true}, - permissions = {read_only = true, other_fields = true}, - player = {read_only = true, other_fields = true}, - players = {read_only = true, other_fields = true}, - recipe_prototypes = {read_only = true, other_fields = true}, - speed = {read_only = false, other_fields = false}, - styles = {read_only = true, other_fields = true}, - surfaces = {read_only = true, other_fields = true}, - technology_prototypes = {read_only = true, other_fields = true}, - tick = {read_only = true, other_fields = true}, - tick_paused = {read_only = false, other_fields = false}, - ticks_played = {read_only = true, other_fields = true}, - ticks_to_run = {read_only = false, other_fields = false}, - tile_prototypes = {read_only = true, other_fields = true}, - virtual_signal_prototypes = {read_only = true, other_fields = true}, - pollution_statistics = {read_only = true, other_fields = true} - }, - }, - }, - - globals = { - -- @global@: The global dictionary, useful for storing data persistent across a save-load cycle. - -- Writing access is given to the mod-id field (for mod-wise saved data). - -- (http://lua-api.factorio.com/latest/Global.html) - "global", - - -- @MOD@: Keep it organized, use this variable for anything that "NEEDS" to be global for some reason. - "MOD" - }, -} - -stds.factorio_data = { - - read_globals = { - data = { - fields = { - raw = { - other_fields = true, - read_only = false - }, - "extend", "is_demo" - }, - }, - - settings = { - fields = { - "startup", "global", "player", - }, - }, - - --Popular mods - angelsmods = { - other_fields = true - }, - - bobmods = { - other_fields = true - }, - - mods = { - other_fields = true - } - } -} --)) - ---(( Factorio Globals are bad mkay ))-- -stds.factorio_base_control = { - read_globals = {"silo_script", "mod_gui", "camera"} -} - -stds.factorio_base_scenarios = { - globals = { - "check_automate_science_packs_advice", "check_research_hints", "check_supplies", "manage_attacks", "all_dead", - "on_win", "difficulty_number", "init_attack_data", "handle_attacks", "count_items_in_container", "progress", "scanned", - "check_light", "check_machine_gun", "level", "story_table", - - "tightspot_prices", "tightspot_make_offer", "tightspot_init", "tightspot_get_required_balance", - "tightspot_init_level", "tightspot_init_spending_frame", "tightspot_init_progress_frame", "tightspot_update_progress", "tightspot_update_spending", - "tightspot_get_missing_to_win", "tightspot_sell_back", "tightspot_start_level", "tightspot_show_level_description", "tightspot_update_speed_label", - "map_ignore", "tightspot_check_level", "land_price", - - "transport_belt_madness_init", "transport_belt_madness_init_level", "transport_belt_madness_create_chests", "transport_belt_madness_fill_chests", - "transport_belt_madness_start_level", "map_ignore", "map_clear", "map_load", "map_save", "transport_belt_madness_show_level_description", - "transport_belt_madness_check_level", "transport_belt_madness_next_level", "transport_belt_madness_clear_level", "transport_belt_madness_contains_next_level", - - "restricted", "check_built_items", "result", "disable_combat_technologies", "apply_character_modifiers", "apply_combat_modifiers", "apply_balance", - "load_config", "starting_area_constant", "create_next_surface", "end_round", "prepare_next_round", "silo_died","choose_joining_gui", - "destroy_joining_guis", "create_random_join_gui", "create_auto_assign_gui", "create_pick_join_gui", "create_config_gui", "make_config_table", "default", - "make_team_gui", "make_team_gui_config", "add_team_button_press", "trash_team_button_press", "remove_team_from_team_table", "add_team_to_team_table", - "set_teams_from_gui", "on_team_button_press", "make_color_dropdown", "create_balance_option", "create_disable_frame", "disable_frame", "parse_disabled_items", - "set_balance_settings", "config_confirm", "parse_config_from_gui", "get_color", "roll_starting_area", "delete_roll_surfaces", "auto_assign", - "destroy_config_for_all", "prepare_map", "set_evolution_factor", "update_players_on_team_count", "random_join", "init_player_gui", - "destroy_player_gui", "objective_button_press", "admin_button_press", "admin_frame_button_press", "diplomacy_button_press", "update_diplomacy_frame", - "diplomacy_frame_button_press", "team_changed_diplomacy", "diplomacy_check_press", "get_stance", "give_inventory", "setup_teams", "disable_items_for_all", - "set_random_team", "set_diplomacy", "create_spawn_positions", "set_spawn_position", "set_team_together_spawns", "chart_starting_area_for_force_spawns", - "check_starting_area_chunks_are_generated", "check_player_color", "check_round_start", "clear_starting_area_enemies", "check_no_rush_end", "check_no_rush_players", - "finish_setup", "chart_area_for_force", "setup_start_area_copy", "update_copy_progress", "update_progress_bar", "copy_paste_starting_area_tiles", - "copy_paste_starting_area_entities", "create_silo_for_force", "setup_research", "on_chunk_generated", "get_distance_to_nearest_spawn", - "create_wall_for_force", "fpn", "give_items", "create_item_frame", "create_technologies_frame", "create_cheat_frame", "create_day_frame", - "time_modifier", "points_per_second_start", "points_per_second_level_subtract", "levels", "update_info", "get_time_left", "update_time_left", - "on_joined", "make_frame", "update_frame", "update_table", "calculate_task_item_multiplayer", "setup_config", "select_from_probability_table", - "select_inventory", "select_equipment", "select_challange_type", "save_round_statistics", "start_challenge", "create_teams", "set_areas", - "decide_player_team", "set_teams", "refresh_leaderboard", "set_player", "generate_technology_list", "generate_research_task","setup_unlocks", - "check_technology_progress", "generate_production_task", "generate_shopping_list_task", "set_gui_flow_table", "create_visibility_button", - "check_item_lists", "update_task_gui", "check_end_of_round", "end_round_gui_update", "try_to_check_victory", "update_gui", "check_start_round", - "check_start_set_areas", "check_start_setting_entities", "check_set_areas", "check_clear_areas", "check_chests", "check_chests_shopping_list", - "check_chests_production", "check_input_chests", "fill_input_chests", "check_victory", "shopping_task_finished", "calculate_force_points", - "update_research_task_table", "update_production_task_table", "update_shopping_list_task_table", "create_joined_game_gui", "pre_ending_round", - "player_ending_prompt", "update_end_timer", "update_begin_timer", "team_finished", "save_points_list", "give_force_players_points", - "update_winners_list", "set_spectator", "set_character", "give_starting_inventory", "give_equipment", "shuffle_table", "format_time", - "spairs", "fill_leaderboard", "create_grid", "simple_entities", "save_map_data", "clear_map", "create_tiles", "recreate_entities", - "map_sets", "give_points", "init_forces", "init_globals", "init_unit_settings", "check_next_wave", "next_wave", "calculate_wave_power", - "wave_end", "make_next_spawn_tick", "check_spawn_units", "get_wave_units", "spawn_units", "randomize_ore", "set_command", "command_straglers", - "unit_config", "make_next_wave_tick", "time_to_next_wave", "time_to_wave_end", "rocket_died", "unit_died", "get_bounty_price", "setup_waypoints", - "insert_items", "give_starting_equipment", "give_spawn_equipment", "next_round_button_visible", "gui_init", "create_wave_frame", "create_money_frame", - "create_upgrade_gui", "update_upgrade_listing", "upgrade_research", "get_upgrades", "get_money", "update_connected_players", "update_round_number", - "set_research", "set_recipes", "check_deconstruction", "check_blueprint_placement", "loop_entities", "experiment_items", - "setup", "story_gui_click", "clear_surface", "add_run_trains_button", "puzzle_condition", "basic_signals", - "loop_trains", "Y_offset", "ghosts_1", "ghosts_2", "required_path", "through_wall_path", "count", "check_built_real_rail", - "current_ghosts_count", "other", "rails", "set_rails", "straight_section", "late_entities", "entities", "stop", - "get_spawn_coordinate", - - --tutorials - "intermission", "create_entities_on_tick", "on_player_created", "required_count", "non_player_entities", "clear_rails", - "chest", "damage", "furnace", "init_prototypes", "build_infi_table", "junk", "update_player_tags", "time_left", "team_production", - "create_task_frame", "create_visibilty_buttons", "update_leaderboard", "in_in_area" - } -} - -stds.factorio_base_data = { - globals = { - --Style - "make_cursor_box", "make_full_cursor_box", - "default_container_padding", "default_orange_color", "default_light_orange_color", "warning_red_color", - "achievement_green_color", "achievement_tan_color", "orangebuttongraphcialset", "bluebuttongraphcialset", - "bonus_gui_ordering", "trivial_smoke", "technology_slot_base_width", "technology_slot_base_height", "default_frame_font_vertical_compensation", - - --Belts - "transport_belt_connector_frame_sprites", "transport_belt_circuit_wire_connection_point", "transport_belt_circuit_wire_max_distance", - "transport_belt_circuit_connector_sprites", "ending_patch_prototype", "basic_belt_horizontal", "basic_belt_vertical", - "basic_belt_ending_top", "basic_belt_ending_bottom", "basic_belt_ending_side", "basic_belt_starting_top", "basic_belt_starting_bottom", - "basic_belt_starting_side", "fast_belt_horizontal", "fast_belt_vertical", "fast_belt_ending_top", "fast_belt_ending_bottom", - "fast_belt_ending_side", "fast_belt_starting_top", "fast_belt_starting_bottom", "fast_belt_starting_side", "express_belt_horizontal", - "express_belt_vertical", "express_belt_ending_top", "express_belt_ending_bottom", "express_belt_ending_side", "express_belt_starting_top", - "express_belt_starting_bottom", "express_belt_starting_side", - - --Circuit Connectors - "circuit_connector_definitions", "default_circuit_wire_max_distance", "inserter_circuit_wire_max_distance", - "universal_connector_template", "belt_connector_template", "belt_frame_connector_template", "inserter_connector_template", - - --Inserter Circuit Connectors - "inserter_circuit_wire_max_distance", "inserter_default_stack_control_input_signal", - - --Sounds/beams - "make_heavy_gunshot_sounds", "make_light_gunshot_sounds", "make_laser_sounds", - - --Gun/Laser - "gun_turret_extension", "gun_turret_extension_shadow", "gun_turret_extension_mask", "gun_turret_attack", - "laser_turret_extension", "laser_turret_extension_shadow", "laser_turret_extension_mask", - - --Pipes - "pipecoverspictures", "pipepictures", "assembler2pipepictures", "assembler3pipepictures", "make_heat_pipe_pictures", - - --Combinators - "generate_arithmetic_combinator", "generate_decider_combinator", "generate_constant_combinator", - - --Rail - "destroyed_rail_pictures", "rail_pictures", "rail_pictures_internal", "standard_train_wheels", "drive_over_tie", - "rolling_stock_back_light", "rolling_stock_stand_by_light", - - --Enemies - "make_enemy_autoplace", "make_enemy_spawner_autoplace", "make_enemy_worm_autoplace", - "make_spitter_attack_animation", "make_spitter_run_animation", "make_spitter_dying_animation", - "make_spitter_attack_parameters", "make_spitter_roars", "make_spitter_dying_sounds", - "make_spawner_idle_animation", "make_spawner_die_animation", - "make_biter_run_animation", "make_biter_attack_animation", "make_biter_die_animation", - "make_biter_roars", "make_biter_dying_sounds", "make_biter_calls", - "make_worm_roars", "make_worm_dying_sounds", "make_worm_folded_animation", "make_worm_preparing_animation", - "make_worm_prepared_animation", "make_worm_attack_animation", "make_worm_die_animation", - - --Other - "tile_variations_template", "make_water_autoplace_settings", - "make_unit_melee_ammo_type", "make_trivial_smoke", "make_4way_animation_from_spritesheet", "flying_robot_sounds", - "productivitymodulelimitation", "crash_trigger", "capsule_smoke", "make_beam", "playeranimations", - "make_blood_tint", "make_shadow_tint", - - --tiles - "water_transition_template", "make_water_transition_template", "water_autoplace_settings", "water_tile_type_names", - "patch_for_inner_corner_of_transition_between_transition", - } -} - -stds.factorio_base_story = { - globals = { - "story_init_helpers", "story_update_table", "story_init", "story_update", "story_on_tick", "story_add_update", - "story_remove_update", "story_jump_to", "story_elapsed", "story_elapsed_check", "story_show_message_dialog", - "set_goal", "player_set_goal", "on_player_joined", "flash_goal", "set_info", "player_set_info", "export_entities", - "list", "recreate_entities", "entity_to_connect", "limit_camera", "find_gui_recursive", "enable_entity_export", - "add_button", "on_gui_click", "set_continue_button_style", "add_message_log", "story_add_message_log", - "player_add_message_log", "message_log_frame", "message_log_scrollpane", "message_log_close_button", - "message_log_table", "toggle_message_log_button", "toggle_objective_button", "message_log_init", - "add_gui_recursive", "add_toggle_message_log_button", "add_toggle_objective_button", "mod_gui", - "flash_message_log_button", "flash_message_log_on_tick", "story_gui_click", "story_points_by_name", "story_branches", - "player", "surface", "deconstruct_on_tick", "recreate_entities_on_tick", "flying_congrats", "story_table" - } -} - -stds.factorio_circuit_connector_generated = { - globals = { - 'default_circuit_wire_max_distance', 'circuit_connector_definitions', 'universal_connector_template', - 'belt_connector_template', 'belt_frame_connector_template', 'inserter_connector_template', 'inserter_connector_template', - 'inserter_circuit_wire_max_distance', 'inserter_default_stack_control_input_signal', 'transport_belt_connector_frame_sprites', - 'transport_belt_circuit_wire_max_distance', - } -} --)) - ---(( STDLIB ))-- -stds.stdlib = { - read_globals = { - }, - globals = { - "STDLIB", - "prequire", "rawtostring", "traceback", "inspect", "serpent", "inline_if", "install", "log", - "concat", - "GAME", "AREA", "POSITION", "TILE", "SURFACE", "CHUNK", "COLOR", "ENTITY", "INVENTORY", - "RESOURCE", "CONFIG", "LOGGER", "QUEUE", "EVENT", "GUI", "PLAYER", "FORCE", - "MATH", "STRING", "TABLE", - } -} - -stds.stdlib_control = { -} - -stds.stdlib_data = { - globals = { - 'DATA', 'RECIPE', 'ITEM', 'FLUID', 'ENTITY', 'TECHNOLOGY', 'CATEGORY' - } -} --)) - ---(( FACTORIO DEFINES ))-- -stds.factorio_defines = { - read_globals = { - defines = { - fields = { - alert_type = { - fields = { - 'custom', - 'entity_destroyed', - 'entity_under_attack', - 'no_material_for_construction', - 'no_storage', - 'not_enough_construction_robots', - 'not_enough_repair_packs', - 'train_out_of_fuel', - 'turret_fire', - 'fluid_mixing' - } - }, - behavior_result = { - fields = { - 'deleted', - 'fail', - 'in_progress', - 'success' - } - }, - build_check_type = { - fields = { - 'ghost_place', - 'ghost_revive', - 'manual', - 'script' - } - }, - chain_signal_state = { - fields = { - 'all_open', - 'none', - 'none_open', - 'partially_open' - } - }, - chunk_generated_status = { - fields = { - 'basic_tiles', - 'corrected_tiles', - 'custom_tiles', - 'entities', - 'nothing', - 'tiles' - } - }, - circuit_condition_index = { - fields = { - 'arithmetic_combinator', - 'constant_combinator', - 'decider_combinator', - 'inserter_circuit', - 'inserter_logistic', - 'lamp', - 'offshore_pump', - 'pump' - } - }, - circuit_connector_id = { - fields = { - 'accumulator', - 'combinator_input', - 'combinator_output', - 'constant_combinator', - 'container', - 'electric_pole', - 'inserter', - 'lamp', - 'offshore_pump', - 'programmable_speaker', - 'pump', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'wall' - } - }, - command = { - fields = { - 'attack', - 'attack_area', - 'build_base', - 'compound', - 'flee', - 'go_to_location', - 'group', - 'stop', - 'wander' - } - }, - compound_command = { - fields = { - 'logical_and', - 'logical_or', - 'return_last' - } - }, - control_behavior = { - fields = { - inserter = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'none', - 'read_hand_contents', - 'set_filters', - 'set_stack_size' - } - }, - hand_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - lamp = { - fields = { - circuit_mode_of_operation = { - fields = { - 'use_colors' - } - } - } - }, - logistic_container = { - fields = { - circuit_mode_of_operation = { - fields = { - 'send_contents', - 'set_requests' - } - } - } - }, - mining_drill = { - fields = { - resource_read_mode = { - fields = { - 'entire_patch', - 'this_miner' - } - } - } - }, - roboport = { - fields = { - circuit_mode_of_operation = { - fields = { - 'read_logistics', - 'read_robot_stats' - } - } - } - }, - train_stop = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'read_from_train', - 'read_stopped_train', - 'send_to_train' - } - } - } - }, - transport_belt = { - fields = { - content_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - type = { - fields = { - 'accumulator', - 'arithmetic_combinator', - 'constant_combinator', - 'container', - 'decider_combinator', - 'generic_on_off', - 'inserter', - 'lamp', - 'logistic_container', - 'mining_drill', - 'programmable_speaker', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'train_stop', - 'transport_belt', - 'wall' - } - } - } - }, - controllers = { - fields = { - 'character', - 'cutscene', - 'editor', - 'ghost', - 'god', - 'spectator' - } - }, - deconstruction_item = { - fields = { - entity_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_selection_mode = { - fields = { - 'always', - 'never', - 'normal', - 'only' - } - } - } - }, - difficulty = { - fields = { - 'easy', - 'hard', - 'normal' - } - }, - difficulty_settings = { - fields = { - recipe_difficulty = { - fields = { - 'expensive', - 'normal' - } - }, - technology_difficulty = { - fields = { - 'expensive', - 'normal' - } - } - } - }, - direction = { - fields = { - 'east', - 'north', - 'northeast', - 'northwest', - 'south', - 'southeast', - 'southwest', - 'west' - } - }, - distraction = { - fields = { - 'by_anything', - 'by_damage', - 'by_enemy', - 'none' - } - }, - entity_status = { - fields = { - 'working', - 'no_power', - 'no_fuel', - 'no_recipe', - 'no_input_fluid', - 'no_research_in_progress', - 'no_minable_resources', - 'low_input_fluid', - 'low_power', - 'disabled_by_control_behavior', - 'disabled_by_script', - 'fluid_ingredient_shortage', - 'fluid_production_overload', - 'item_ingredient_shortage', - 'item_production_overload', - 'marked_for_deconstruction', - 'missing_required_fluid', - 'missing_science_packs', - 'waiting_for_source_items', - 'waiting_for_space_in_destination', - } - }, - render_mode = { - fields = { - 'game', - 'chart', - 'chart_zoomed_in' - } - }, - events = { - fields = { - 'on_ai_command_completed', - 'on_area_cloned', - 'on_biter_base_built', - 'on_built_entity', - 'on_cancelled_deconstruction', - 'on_cancelled_upgrade', - 'on_character_corpse_expired', - 'on_chart_tag_added', - 'on_chart_tag_modified', - 'on_chart_tag_removed', - 'on_chunk_charted', - 'on_chunk_deleted', - 'on_chunk_generated', - 'on_combat_robot_expired', - 'on_console_chat', - 'on_console_command', - 'on_cutscene_waypoint_reached', - 'on_difficulty_settings_changed', - 'on_entity_cloned', - 'on_entity_damaged', - 'on_entity_died', - 'on_entity_renamed', - 'on_entity_settings_pasted', - 'on_entity_spawned', - 'on_force_created', - 'on_forces_merged', - 'on_forces_merging', - 'on_game_created_from_scenario', - 'on_gui_checked_state_changed', - 'on_gui_click', - 'on_gui_closed', - 'on_gui_confirmed', - 'on_gui_elem_changed', - 'on_gui_location_changed', - 'on_gui_opened', - 'on_gui_selected_tab_changed', - 'on_gui_selection_state_changed', - 'on_gui_switch_state_changed', - 'on_gui_text_changed', - 'on_gui_value_changed', - 'on_land_mine_armed', - 'on_lua_shortcut', - 'on_marked_for_deconstruction', - 'on_marked_for_upgrade', - 'on_market_item_purchased', - 'on_mod_item_opened', - 'on_picked_up_item', - 'on_player_alt_selected_area', - 'on_player_ammo_inventory_changed', - 'on_player_armor_inventory_changed', - 'on_player_banned', - 'on_player_built_tile', - 'on_player_cancelled_crafting', - 'on_player_changed_force', - 'on_player_changed_position', - 'on_player_changed_surface', - 'on_player_cheat_mode_disabled', - 'on_player_cheat_mode_enabled', - 'on_player_configured_blueprint', - 'on_player_crafted_item', - 'on_player_created', - 'on_player_cursor_stack_changed', - 'on_player_deconstructed_area', - 'on_player_demoted', - 'on_player_died', - 'on_player_display_resolution_changed', - 'on_player_display_scale_changed', - 'on_player_driving_changed_state', - 'on_player_dropped_item', - 'on_player_fast_transferred', - 'on_player_gun_inventory_changed', - 'on_player_joined_game', - 'on_player_kicked', - 'on_player_left_game', - 'on_player_main_inventory_changed', - 'on_player_mined_entity', - 'on_player_mined_item', - 'on_player_mined_tile', - 'on_player_muted', - 'on_player_pipette', - 'on_player_placed_equipment', - 'on_player_promoted', - 'on_player_removed', - 'on_player_removed_equipment', - 'on_player_repaired_entity', - 'on_player_respawned', - 'on_player_rotated_entity', - 'on_player_selected_area', - 'on_player_setup_blueprint', - 'on_player_toggled_alt_mode', - 'on_player_toggled_map_editor', - 'on_player_tool_inventory_changed', - 'on_player_trash_inventory_changed', - 'on_player_unbanned', - 'on_player_unmuted', - 'on_player_used_capsule', - 'on_post_entity_died', - 'on_pre_chunk_deleted', - 'on_pre_entity_settings_pasted', - 'on_pre_ghost_deconstructed', - 'on_pre_player_crafted_item', - 'on_pre_player_died', - 'on_pre_player_left_game', - 'on_pre_player_mined_item', - 'on_pre_player_removed', - 'on_pre_robot_exploded_cliff', - 'on_pre_surface_cleared', - 'on_pre_surface_deleted', - 'on_put_item', - 'on_research_finished', - 'on_research_started', - 'on_resource_depleted', - 'on_robot_built_entity', - 'on_robot_built_tile', - 'on_robot_exploded_cliff', - 'on_robot_mined', - 'on_robot_mined_entity', - 'on_robot_mined_tile', - 'on_robot_pre_mined', - 'on_rocket_launch_ordered', - 'on_rocket_launched', - 'on_runtime_mod_setting_changed', - 'on_script_path_request_finished', - 'on_sector_scanned', - 'on_selected_entity_changed', - 'on_surface_cleared', - 'on_surface_created', - 'on_surface_deleted', - 'on_surface_imported', - 'on_surface_renamed', - 'on_technology_effects_reset', - 'on_tick', - 'on_train_changed_state', - 'on_train_created', - 'on_train_schedule_changed', - 'on_trigger_created_entity', - 'on_trigger_fired_artillery', - 'on_unit_added_to_group', - 'on_unit_group_created', - 'on_unit_removed_from_group', - 'script_raised_built', - 'script_raised_destroy', - 'script_raised_revive' - } - }, - flow_precision_index = { - fields = { - 'fifty_hours', - 'one_hour', - 'one_minute', - 'one_second', - 'one_thousand_hours', - 'ten_hours', - 'ten_minutes', - 'two_hundred_fifty_hours' - } - }, - group_state = { - fields = { - 'attacking_distraction', - 'attacking_target', - 'finished', - 'gathering', - 'moving' - } - }, - gui_type = { - fields = { - 'achievement', - 'blueprint_library', - 'bonus', - 'controller', - 'custom', - 'entity', - 'equipment', - 'item', - 'kills', - 'logistic', - 'none', - 'other_player', - 'permissions', - 'player_management', - 'production', - 'research', - 'server_management', - 'trains', - 'tutorials' - } - }, - input_action = { - fields = { - 'activate_copy', - 'activate_cut', - 'activate_paste', - 'add_permission_group', - 'add_train_station', - 'admin_action', - 'alt_select_area', - 'alt_select_blueprint_entities', - 'alternative_copy', - 'begin_mining', - 'begin_mining_terrain', - 'build_item', - 'build_rail', - 'build_terrain', - 'cancel_craft', - 'cancel_deconstruct', - 'cancel_new_blueprint', - 'cancel_research', - 'cancel_upgrade', - 'change_active_item_group_for_crafting', - 'change_active_item_group_for_filters', - 'change_active_quick_bar', - 'change_arithmetic_combinator_parameters', - 'change_blueprint_book_record_label', - 'change_decider_combinator_parameters', - 'change_item_label', - 'change_multiplayer_config', - 'change_picking_state', - 'change_programmable_speaker_alert_parameters', - 'change_programmable_speaker_circuit_parameters', - 'change_programmable_speaker_parameters', - 'change_riding_state', - 'change_shooting_state', - 'change_single_blueprint_record_label', - 'change_train_stop_station', - 'change_train_wait_condition', - 'change_train_wait_condition_data', - 'clean_cursor_stack', - 'clear_selected_blueprint', - 'clear_selected_deconstruction_item', - 'clear_selected_upgrade_item', - 'connect_rolling_stock', - 'copy', - 'copy_entity_settings', - 'craft', - 'create_blueprint_like', - 'cursor_split', - 'cursor_transfer', - 'custom_input', - 'cycle_blueprint_book_backwards', - 'cycle_blueprint_book_forwards', - 'deconstruct', - 'delete_blueprint_library', - 'delete_blueprint_record', - 'delete_custom_tag', - 'delete_permission_group', - 'destroy_opened_item', - 'disconnect_rolling_stock', - 'drag_train_schedule', - 'drag_train_wait_condition', - 'drop_blueprint_record', - 'drop_item', - 'drop_to_blueprint_book', - 'edit_custom_tag', - 'edit_permission_group', - 'export_blueprint', - 'fast_entity_split', - 'fast_entity_transfer', - 'go_to_train_station', - 'grab_blueprint_record', - 'gui_checked_state_changed', - 'gui_click', - 'gui_confirmed', - 'gui_elem_changed', - 'gui_location_changed', - 'gui_selected_tab_changed', - 'gui_selection_state_changed', - 'gui_switch_state_changed', - 'gui_text_changed', - 'gui_value_changed', - 'import_blueprint', - 'import_blueprint_string', - 'import_permissions_string', - 'inventory_split', - 'inventory_transfer', - 'launch_rocket', - 'map_editor_action', - 'market_offer', - 'mod_settings_changed', - 'open_achievements_gui', - 'open_blueprint_library_gui', - 'open_blueprint_record', - 'open_bonus_gui', - 'open_character_gui', - 'open_equipment', - 'open_gui', - 'open_item', - 'open_kills_gui', - 'open_logistic_gui', - 'open_mod_item', - 'open_production_gui', - 'open_technology_gui', - 'open_train_gui', - 'open_train_station_gui', - 'open_trains_gui', - 'open_tutorials_gui', - 'paste_entity_settings', - 'place_equipment', - 'quick_bar_pick_slot', - 'quick_bar_set_selected_page', - 'quick_bar_set_slot', - 'remove_cables', - 'remove_train_station', - 'reset_assembling_machine', - 'rotate_entity', - 'select_area', - 'select_blueprint_entities', - 'select_entity_slot', - 'select_item', - 'select_mapper_slot', - 'select_next_valid_gun', - 'select_tile_slot', - 'set_auto_launch_rocket', - 'set_autosort_inventory', - 'set_behavior_mode', - 'set_car_weapons_control', - 'set_circuit_condition', - 'set_circuit_mode_of_operation', - 'set_deconstruction_item_tile_selection_mode', - 'set_deconstruction_item_trees_and_rocks_only', - 'set_entity_color', - 'set_entity_energy_property', - 'set_filter', - 'set_heat_interface_mode', - 'set_heat_interface_temperature', - 'set_infinity_container_filter_item', - 'set_infinity_container_remove_unfiltered_items', - 'set_infinity_pipe_filter', - 'set_inserter_max_stack_size', - 'set_inventory_bar', - 'set_logistic_filter_item', - 'set_logistic_filter_signal', - 'set_logistic_trash_filter_item', - 'set_request_from_buffers', - 'set_research_finished_stops_game', - 'set_signal', - 'set_single_blueprint_record_icon', - 'set_splitter_priority', - 'set_train_stopped', - 'setup_assembling_machine', - 'setup_blueprint', - 'setup_single_blueprint_record', - 'smart_pipette', - 'stack_split', - 'stack_transfer', - 'start_repair', - 'start_research', - 'start_walking', - 'switch_connect_to_logistic_network', - 'switch_constant_combinator_state', - 'switch_inserter_filter_mode_state', - 'switch_power_switch_state', - 'switch_to_rename_stop_gui', - 'take_equipment', - 'toggle_deconstruction_item_entity_filter_mode', - 'toggle_deconstruction_item_tile_filter_mode', - 'toggle_driving', - 'toggle_enable_vehicle_logistics_while_moving', - 'toggle_equipment_movement_bonus', - 'toggle_map_editor', - 'toggle_personal_roboport', - 'toggle_show_entity_info', - 'undo', - 'upgrade', - 'upgrade_opened_blueprint', - 'use_artillery_remote', - 'use_item', - 'wire_dragging', - 'write_to_console' - } - }, - inventory = { - fields = { - 'artillery_turret_ammo', - 'artillery_wagon_ammo', - 'assembling_machine_input', - 'assembling_machine_modules', - 'assembling_machine_output', - 'beacon_modules', - 'burnt_result', - 'car_ammo', - 'car_trunk', - 'cargo_wagon', - 'character_corpse', - 'chest', - 'editor_main', - 'editor_guns', - 'editor_ammo', - 'editor_armor', - 'fuel', - 'furnace_modules', - 'furnace_result', - 'furnace_source', - 'god_main', - 'item_main', - 'lab_input', - 'lab_modules', - 'mining_drill_modules', - 'character_ammo', - 'character_armor', - 'character_guns', - 'character_main', - 'character_trash', - 'character_vehicle', - 'roboport_material', - 'roboport_robot', - 'robot_cargo', - 'robot_repair', - 'rocket', - 'rocket_silo_result', - 'rocket_silo_rocket', - 'turret_ammo' - } - }, - logistic_member_index = { - fields = { - 'character_provider', - 'character_requester', - 'character_storage', - 'generic_on_off_behavior', - 'logistic_container', - 'vehicle_storage' - } - }, - logistic_mode = { - fields = { - 'active_provider', - 'buffer', - 'none', - 'passive_provider', - 'requester', - 'storage' - } - }, - mouse_button_type = { - fields = { - 'left', - 'middle', - 'none', - 'right' - } - }, - rail_connection_direction = { - fields = { - 'left', - 'none', - 'right', - 'straight' - } - }, - rail_direction = { - fields = { - 'back', - 'front' - } - }, - riding = { - fields = { - acceleration = { - fields = { - 'accelerating', - 'braking', - 'nothing', - 'reversing' - } - }, - direction = { - fields = { - 'left', - 'right', - 'straight' - } - } - } - }, - shooting = { - fields = { - 'not_shooting', - 'shooting_enemies', - 'shooting_selected' - } - }, - signal_state = { - fields = { - 'closed', - 'open', - 'reserved', - 'reserved_by_circuit_network' - } - }, - train_state = { - fields = { - 'arrive_signal', - 'arrive_station', - 'manual_control', - 'manual_control_stop', - 'no_path', - 'no_schedule', - 'on_the_path', - 'path_lost', - 'wait_signal', - 'wait_station' - } - }, - transport_line = { - fields = { - 'left_line', - 'left_split_line', - 'left_underground_line', - 'right_line', - 'right_split_line', - 'right_underground_line', - 'secondary_left_line', - 'secondary_left_split_line', - 'secondary_right_line', - 'secondary_right_split_line' - } - }, - wire_connection_id = { - fields = { - 'electric_pole', - 'power_switch_left', - 'power_switch_right' - } - }, - wire_type = { - fields = { - 'copper', - 'green', - 'red' - } - }, - -- Defines additional modules - color = { - other_fields = true - }, - anticolor = { - other_fields = true - }, - lightcolor = { - other_fields = true - }, - time = { - fields = { - 'second', - 'minute', - 'hour', - 'day', - 'week', - 'month', - 'year' - } - } - } - } - } -}--)) - -stds.love_extra = { - read_globals = { - love = { - fields = { - arg = { - fields = { - 'parseGameArguments', 'parseOption', 'getLow', 'optionIndices', 'options' - } - } - } - } - }, - globals = { - --'coroutine', 'io', 'socket', 'dofile', 'loadfile', - love = { - fields = { - 'handlers' - } - } - } -} - ---[[ Options - "ignore", "std", "globals", "unused_args", "self", "compat", "global", "unused", "redefined", - "unused_secondaries", "allow_defined", "allow_defined_top", "module", - "read_globals", "new_globals", "new_read_globals", "enable", "only", "not_globals", - "max_line_length", "max_code_line_length", "max_string_line_length", "max_comment_line_length", - "max_cyclomatic_complexity" ---]] - ---[[ Warnings list - -- 011 A syntax error. - -- 021 An invalid inline option. - -- 022 An unpaired inline push directive. - -- 023 An unpaired inline pop directive. - -- 111 Setting an undefined global variable. - -- 112 Mutating an undefined global variable. - -- 113 Accessing an undefined global variable. - -- 121 Setting a read-only global variable. - -- 122 Setting a read-only field of a global variable. - -- 131 Unused implicitly defined global variable. - -- 142 Setting an undefined field of a global variable. - -- 143 Accessing an undefined field of a global variable. - -- 211 Unused local variable. - -- 212 Unused argument. - -- 213 Unused loop variable. - -- 221 Local variable is accessed but never set. - -- 231 Local variable is set but never accessed. - -- 232 An argument is set but never accessed. - -- 233 Loop variable is set but never accessed. - -- 241 Local variable is mutated but never accessed. - -- 311 Value assigned to a local variable is unused. - -- 312 Value of an argument is unused. - -- 313 Value of a loop variable is unused. - -- 314 Value of a field in a table literal is unused. - -- 321 Accessing uninitialized local variable. - -- 331 Value assigned to a local variable is mutated but never accessed. - -- 341 Mutating uninitialized local variable. - -- 411 Redefining a local variable. - -- 412 Redefining an argument. - -- 413 Redefining a loop variable. - -- 421 Shadowing a local variable. - -- 422 Shadowing an argument. - -- 423 Shadowing a loop variable. - -- 431 Shadowing an upvalue. - -- 432 Shadowing an upvalue argument. - -- 433 Shadowing an upvalue loop variable. - -- 511 Unreachable code. - -- 512 Loop can be executed at most once. - -- 521 Unused label. - -- 531 Left-hand side of an assignment is too short. - -- 532 Left-hand side of an assignment is too long. - -- 541 An empty do end block. - -- 542 An empty if branch. - -- 551 An empty statement. - -- 611 A line consists of nothing but whitespace. - -- 612 A line contains trailing whitespace. - -- 613 Trailing whitespace in a string. - -- 614 Trailing whitespace in a comment. - -- 621 Inconsistent indentation (SPACE followed by TAB). - -- 631 Line is too long. ---]] \ No newline at end of file diff --git a/OLD/PHI-MB/changelog.txt b/OLD/PHI-MB/changelog.txt deleted file mode 100644 index e69de29..0000000 diff --git a/OLD/PHI-MB/config.lua b/OLD/PHI-MB/config.lua deleted file mode 100644 index 806a0e3..0000000 --- a/OLD/PHI-MB/config.lua +++ /dev/null @@ -1,536 +0,0 @@ -local items = { - ['setting'] = { - ['PHI-MB-ASSEMBLING-TIER'] = { - type = 'max', - effect = { - 'assembling-machine' - } - }, - ['PHI-MB-FURNACE-TIER'] = { - type = 'max', - effect = { - 'electric-furnace', - 'electric-filter-furnace', - 'industrial-furnace' - } - }, - ['PHI-MB-OIL-TIER'] = { - type = 'max', - effect = { - 'oil-refinery', - 'chemical-plant', - 'fuel-processor', - 'se-fuel-refinery' - } - }, - ['PHI-MB-CENTRIFUGE-TIER'] = { - type = 'max', - effect = { - 'centrifuge' - } - }, - ['PHI-MB-LAB-TIER'] = { - type = 'max', - effect = { - 'lab', - 'se-space-science-lab' - } - }, - ['PHI-MB-MINING-TIER'] = { - type = 'max', - effect = { - 'electric-mining-drill', - 'pumpjack', - 'area-mining-drill', - 'se-core-miner' - } - }, - ['PHI-MB-SE-ASSEMBLING-TIER'] = { - type = 'max', - effect = { - 'se-space-assembling-machine', - 'se-space-manufactory', - 'se-casting-machine', - 'se-pulveriser', - 'se-lifesupport-facility', - 'se-space-decontamination-facility', - 'se-space-genetics-facility', - 'se-space-growth-facility', - 'se-space-biochemical-laboratory', - 'se-space-radiation-laboratory', - 'se-space-electromagnetics-laboratory', - 'se-space-laser-laboratory', - 'se-space-material-fabricator', - 'se-space-particle-accelerator', - 'se-space-particle-collider', - 'se-space-plasma-generator', - 'se-space-hypercooler', - 'se-space-astrometrics-laboratory', - 'se-space-gravimetrics-laboratory', - 'se-space-telescope', - 'se-space-telescope-gammaray', - 'se-space-telescope-microwave', - 'se-space-telescope-radio', - 'se-space-telescope-xray', - 'se-space-mechanical-laboratory' - } - } - }, - ['assembling-machine'] = { - enabled = true, - stage = 1, - type = 'assembling-machine', - name = 'assembling-machine', - ref_name = 'assembling-machine-3', - tech = 'automation-3', - min = 4, - max = 5 - }, - ['electric-furnace'] = { - enabled = true, - stage = 1, - type = 'furnace', - name = 'electric-furnace', - ref_name = 'electric-furnace', - tech = 'advanced-material-processing-2', - min = 2, - max = 3 - }, - ['oil-refinery'] = { - enabled = true, - stage = 1, - type = 'assembling-machine', - name = 'oil-refinery', - ref_name = 'oil-refinery', - tech = 'oil-processing', - min = 2, - max = 3 - }, - ['chemical-plant'] = { - enabled = true, - stage = 1, - type = 'assembling-machine', - name = 'chemical-plant', - ref_name = 'chemical-plant', - tech = 'oil-processing', - min = 2, - max = 3 - }, - ['centrifuge'] = { - enabled = true, - stage = 1, - type = 'assembling-machine', - name = 'centrifuge', - ref_name = 'centrifuge', - tech = 'uranium-processing', - min = 2, - max = 3 - }, - ['lab'] = { - enabled = true, - stage = 1, - type = 'lab', - name = 'lab', - ref_name = 'lab', - tech = 'automation', - min = 2, - max = 3 - }, - ['electric-mining-drill'] = { - enabled = true, - stage = 1, - type = 'mining-drill', - name = 'electric-mining-drill', - ref_name = 'electric-mining-drill', - tech = 'automation', - min = 2, - max = 3 - }, - ['pumpjack'] = { - enabled = true, - stage = 1, - type = 'mining-drill', - name = 'pumpjack', - ref_name = 'pumpjack', - tech = 'automation', - min = 2, - max = 3 - } -} - -if mods ~= nil then - if mods['PHI-RS'] then - items['electric-filter-furnace'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'electric-filter-furnace', - ref_name = 'electric-filter-furnace', - tech = 'advanced-material-processing-2', - min = 2, - max = 3 - } - end - - if mods['aai-industry'] then - items['industrial-furnace'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'industrial-furnace', - ref_name = 'industrial-furnace', - tech = 'industrial-furnace', - min = 2, - max = 3 - } - - items['fuel-processor'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'fuel-processor', - ref_name = 'fuel-processor', - tech = 'fuel-processing', - min = 2, - max = 3 - } - - items['area-mining-drill'] = { - enabled = true, - stage = 2, - type = 'mining-drill', - name = 'area-mining-drill', - ref_name = 'area-mining-drill', - tech = 'area-mining-drill', - min = 2, - max = 3 - } - end - - if mods['space-exploration'] then - items['se-space-assembling-machine'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-assembling-machine', - ref_name = 'se-space-assembling-machine', - tech = 'se-space-assembling', - min = 2, - max = 3 - } - - items['se-space-manufactory'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-manufactory', - ref_name = 'se-space-manufactory', - tech = 'se-space-manufactory', - min = 2, - max = 3 - } - - items['se-casting-machine'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-casting-machine', - ref_name = 'se-casting-machine', - tech = 'se-pyroflux-smelting', - min = 2, - max = 3 - } - - items['se-pulveriser'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-pulveriser', - ref_name = 'se-pulveriser', - tech = 'se-pulveriser', - min = 2, - max = 3 - } - - items['se-lifesupport-facility'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-lifesupport-facility', - ref_name = 'se-lifesupport-facility', - tech = 'se-lifesupport-facility', - min = 2, - max = 3 - } - - items['se-fuel-refinery'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-fuel-refinery', - ref_name = 'se-fuel-refinery', - tech = 'se-fuel-refining', - min = 2, - max = 3 - } - - items['se-core-miner-drill'] = { - enabled = false, - stage = 2, - type = 'mining-drill', - name = 'se-core-miner-drill', - ref_name = 'se-core-miner-drill', - tech = 'se-core-miner', - min = 2, - max = 3 - } - - items['se-space-decontamination-facility'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-decontamination-facility', - ref_name = 'se-space-decontamination-facility', - tech = 'se-space-decontamination-facility', - min = 2, - max = 3 - } - - items['se-space-genetics-laboratory'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-genetics-laboratory', - ref_name = 'se-space-genetics-laboratory', - tech = 'se-space-genetics-laboratory', - min = 2, - max = 3 - } - - items['se-space-growth-facility'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-growth-facility', - ref_name = 'se-space-growth-facility', - tech = 'se-space-growth-facility', - min = 2, - max = 3 - } - - items['se-space-biochemical-laboratory'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-biochemical-laboratory', - ref_name = 'se-space-biochemical-laboratory', - tech = 'se-space-biochemical-laboratory', - min = 2, - max = 3 - } - - items['se-space-radiation-laboratory'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-radiation-laboratory', - ref_name = 'se-space-radiation-laboratory', - tech = 'se-space-radiation-laboratory', - min = 2, - max = 3 - } - - items['se-space-electromagnetics-laboratory'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-electromagnetics-laboratory', - ref_name = 'se-space-electromagnetics-laboratory', - tech = 'se-space-electromagnetics-laboratory', - min = 2, - max = 3 - } - - items['se-space-laser-laboratory'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-laser-laboratory', - ref_name = 'se-space-laser-laboratory', - tech = 'se-space-laser-laboratory', - min = 2, - max = 3 - } - - items['se-space-astrometrics-laboratory'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-astrometrics-laboratory', - ref_name = 'se-space-astrometrics-laboratory', - tech = 'se-space-astrometrics-laboratory', - min = 2, - max = 3 - } - - items['se-space-gravimetrics-laboratory'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-gravimetrics-laboratory', - ref_name = 'se-space-gravimetrics-laboratory', - tech = 'se-space-gravimetrics-laboratory', - min = 2, - max = 3 - } - - items['se-space-mechanical-laboratory'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-mechanical-laboratory', - ref_name = 'se-space-mechanical-laboratory', - tech = 'se-space-mechanical-laboratory', - min = 2, - max = 3 - } - - items['se-space-material-fabricator'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-material-fabricator', - ref_name = 'se-space-material-fabricator', - tech = 'se-space-material-fabricator', - min = 2, - max = 3 - } - - items['se-space-particle-accelerator'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-particle-accelerator', - ref_name = 'se-space-particle-accelerator', - tech = 'se-space-particle-accelerator', - min = 2, - max = 3 - } - - items['se-space-particle-collider'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-particle-collider', - ref_name = 'se-space-particle-collider', - tech = 'se-space-particle-collider', - min = 2, - max = 3 - } - - items['se-space-plasma-generator'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-plasma-generator', - ref_name = 'se-space-plasma-generator', - tech = 'se-space-plasma-generator', - min = 2, - max = 3 - } - - items['se-space-hypercooler'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-hypercooler', - ref_name = 'se-space-hypercooler', - tech = 'se-space-hypercooling-1', - min = 2, - max = 3 - } - - items['se-space-radiator'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-radiator', - ref_name = 'se-space-radiator-2', - tech = 'se-space-radiator-2', - min = 3, - max = 4 - } - - items['se-space-telescope'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-telescope', - ref_name = 'se-space-telescope', - tech = 'se-space-telescope', - min = 2, - max = 3 - } - - items['se-space-telescope-gammaray'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-telescope-gammaray', - ref_name = 'se-space-telescope-gammaray', - tech = 'se-space-telescope-gammaray', - min = 2, - max = 3 - } - - items['se-space-telescope-microwave'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-telescope-microwave', - ref_name = 'se-space-telescope-microwave', - tech = 'se-space-telescope-microwave', - min = 2, - max = 3 - } - - items['se-space-telescope-radio'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-telescope-radio', - ref_name = 'se-space-telescope-radio', - tech = 'se-space-telescope-radio', - min = 2, - max = 3 - } - - items['se-space-telescope-xray'] = { - enabled = true, - stage = 2, - type = 'assembling-machine', - name = 'se-space-telescope-xray', - ref_name = 'se-space-telescope-xray', - tech = 'se-space-telescope-xray', - min = 2, - max = 3 - } - - items['se-space-science-lab'] = { - enabled = true, - stage = 2, - type = 'lab', - name = 'se-space-science-lab', - ref_name = 'se-space-science-lab', - tech = 'se-space-science-lab', - min = 2, - max = 3 - } - end - - if mods['Atomic_Overhaul'] then - items['centrifuge'].stage = 2 - end -end - -return items \ No newline at end of file diff --git a/OLD/PHI-MB/data-updates.lua b/OLD/PHI-MB/data-updates.lua deleted file mode 100644 index 94f5bb0..0000000 --- a/OLD/PHI-MB/data-updates.lua +++ /dev/null @@ -1,130 +0,0 @@ --- local alpha_order = {'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'} --- local graphics_location = '__PHI-MB__/graphics/' -local items = require 'config' - -for k, v in pairs(items['setting']) do - for k2=1, #v.effect do - if items[v.effect[k2]] ~= nil then - if settings.startup[k].value < items[v.effect[k2]].min then - items[v.effect[k2]].enabled = false - end - - items[v.effect[k2]][v.type] = settings.startup[k].value - end - end -end - --- entity -local function EE(source, tier) - local item = table.deepcopy(data.raw[source.type][source.ref_name]) - - item.name = source.name .. '-' .. tier - item.minable.result = source.name .. '-' .. tier - item.max_health = item.max_health * (2 ^ (tier - source.min + 1)) - - if source.type == 'lab' then - item.researching_speed = item.researching_speed * (2 ^ (tier - source.min + 1)) - - elseif source.type == 'mining-drill' then - item.mining_speed = item.mining_speed * (2 ^ (tier - source.min + 1)) - - else - item.crafting_speed = item.crafting_speed * (2 ^ (tier - source.min + 1)) - item.energy_source.emissions_per_minute = item.energy_source.emissions_per_minute * (2 ^ (tier - source.min + 1)) - end - - if item.fluid_boxes ~= nil then - for k, _ in pairs(item.fluid_boxes) do - if item.fluid_boxes[k] ~= false and item.fluid_boxes[k] ~= true then - if item.fluid_boxes[k].production_type ~= nil then - item.fluid_boxes[k].height = 4 - - if item.fluid_boxes[k].base_level ~= nil then - item.fluid_boxes[k].base_level = item.fluid_boxes[k].base_level * 4 - end - end - end - end - end - - item.energy_usage = tonumber(string.match(item.energy_usage, '%d+')) * (2 ^ (tier - source.min + 1)) .. 'kW' - -- item.animation.layers[1].filename = graphics_location .. source .. '-e.png' - -- item.animation.layers[1].hr_version.filename = graphics_location .. source ..'-eh.png' - -- item.icon = graphics_location .. source .. '-i.png' - -- item.icon_size = 64 - -- item.icon_mipmaps = 4 - - if tier < source.max then - item.next_upgrade = source.name .. '-' .. (tier + 1) - end - - data:extend({item}) -end - --- item -local function EI(source, tier) - local item = table.deepcopy(data.raw.item[source.ref_name]) - item.name = source.name .. '-' .. tier - item.place_result = source.name .. '-' .. tier - - -- item.icons = {{icon = graphics_location .. source .. '-i.png', icon_mipmaps = 4, icon_size = 64}} - item.order = item.order .. tier - data:extend({item}) -end - --- recipe -local function ER(source, tier) - local ingredient_name = source.name - - if tier > 2 then - ingredient_name = ingredient_name .. '-' .. (tier - 1) - end - - data:extend({{ - type = 'recipe', - name = source.name .. '-' .. tier, - energy_required = 2, - enabled = false, - ingredients = {{ingredient_name, 2}}, - result = source.name .. '-' .. tier, - }}) -end - --- tech -local function ET(source, tier) - table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=source.name .. '-' .. tier}) -end - --- fast replace group -local function EL(source) - if not data.raw[source.type][source.ref_name].fast_replaceable_group then - data.raw[source.type][source.ref_name].fast_replaceable_group = source.type - end - - if source.max > 2 then - data.raw[source.type][source.name .. '-' .. 2].fast_replaceable_group = data.raw[source.type][source.ref_name].fast_replaceable_group - end - - if source.max > source.min then - for j=source.min + 1, source.max do - data.raw[source.type][source.name .. '-' .. j].fast_replaceable_group = data.raw[source.type][source.name .. '-' .. (j - 1)].fast_replaceable_group - end - end -end - -for k, v in pairs(items) do - if k ~= 'setting' then - if v.enabled then - if v.stage == 2 then - for j=v.min, v.max, 1 do - EE(v, j) - EI(v, j) - ER(v, j) - ET(v, j) - end - - EL(v) - end - end - end -end diff --git a/OLD/PHI-MB/data.lua b/OLD/PHI-MB/data.lua deleted file mode 100644 index 1c9fd44..0000000 --- a/OLD/PHI-MB/data.lua +++ /dev/null @@ -1,130 +0,0 @@ --- local alpha_order = {'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'} --- local graphics_location = '__PHI-MB__/graphics/' -local items = require 'config' - --- entity -local function EE(source, tier) - local item = table.deepcopy(data.raw[source.type][source.ref_name]) - - item.name = source.name .. '-' .. tier - item.minable.result = source.name .. '-' .. tier - item.max_health = item.max_health * (2 ^ (tier - source.min + 1)) - - if source.type == 'lab' then - item.researching_speed = item.researching_speed * (2 ^ (tier - source.min + 1)) - - elseif source.type == 'mining-drill' then - item.mining_speed = item.mining_speed * (2 ^ (tier - source.min + 1)) - - else - item.crafting_speed = item.crafting_speed * (2 ^ (tier - source.min + 1)) - item.energy_source.emissions_per_minute = item.energy_source.emissions_per_minute * (2 ^ (tier - source.min + 1)) - end - - if item.fluid_boxes ~= nil then - for k, _ in pairs(item.fluid_boxes) do - if item.fluid_boxes[k] ~= false and item.fluid_boxes[k] ~= true then - if item.fluid_boxes[k].production_type ~= nil then - item.fluid_boxes[k].height = 4 - - if item.fluid_boxes[k].base_level ~= nil then - item.fluid_boxes[k].base_level = item.fluid_boxes[k].base_level * 4 - end - end - end - end - end - - item.energy_usage = tonumber(string.match(item.energy_usage, '%d+')) * (2 ^ (tier - source.min + 1)) .. 'kW' - -- item.animation.layers[1].filename = graphics_location .. source .. '-e.png' - -- item.animation.layers[1].hr_version.filename = graphics_location .. source ..'-eh.png' - -- item.icon = graphics_location .. source .. '-i.png' - -- item.icon_size = 64 - -- item.icon_mipmaps = 4 - - if tier < source.max then - item.next_upgrade = source.name .. '-' .. (tier + 1) - end - - data:extend({item}) -end - --- item -local function EI(source, tier) - local item = table.deepcopy(data.raw.item[source.ref_name]) - item.name = source.name .. '-' .. tier - item.place_result = source.name .. '-' .. tier - - -- item.icons = {{icon = graphics_location .. source .. '-i.png', icon_mipmaps = 4, icon_size = 64}} - item.order = item.order .. tier - data:extend({item}) -end - --- recipe -local function ER(source, tier) - local ingredient_name = source.name - - if tier > 2 then - ingredient_name = ingredient_name .. '-' .. (tier - 1) - end - - data:extend({{ - type = 'recipe', - name = source.name .. '-' .. tier, - energy_required = 2, - enabled = false, - ingredients = {{ingredient_name, 2}}, - result = source.name .. '-' .. tier, - }}) -end - --- tech -local function ET(source, tier) - table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=source.name .. '-' .. tier}) -end - --- fast replace group -local function EL(source) - if not data.raw[source.type][source.ref_name].fast_replaceable_group then - data.raw[source.type][source.ref_name].fast_replaceable_group = source.type - end - - if source.max > 2 then - data.raw[source.type][source.name .. '-' .. 2].fast_replaceable_group = data.raw[source.type][source.ref_name].fast_replaceable_group - end - - if source.max > source.min then - for j=source.min + 1, source.max do - data.raw[source.type][source.name .. '-' .. j].fast_replaceable_group = data.raw[source.type][source.name .. '-' .. (j - 1)].fast_replaceable_group - end - end -end - -for k, v in pairs(items['setting']) do - for k2=1, #v.effect do - if items[v.effect[k2]] ~= nil then - if settings.startup[k].value < items[v.effect[k2]].min then - items[v.effect[k2]].enabled = false - end - - items[v.effect[k2]][v.type] = settings.startup[k].value - end - end -end - -for k, v in pairs(items) do - if k ~= 'setting' then - if v.enabled then - if v.stage == 1 then - for j=v.min, v.max, 1 do - EE(v, j) - EI(v, j) - ER(v, j) - ET(v, j) - end - - EL(v) - end - end - end -end diff --git a/OLD/PHI-MB/info.json b/OLD/PHI-MB/info.json deleted file mode 100644 index dc1bccc..0000000 --- a/OLD/PHI-MB/info.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "PHI-MB", - "version": "1.1.2", - "factorio_version": "1.1", - "date": "2024-06-16", - "title": "Phidias Megabase", - "author": "PHIDIAS0303", - "contributers": "", - "homepage": "", - "description": "Additional Machines for Megabase", - "dependencies": [ - "base >= 1.1.0", - "? PHI-RS >= 1.0.2", - "? space-exploration >= 0.6.0", - "? aai-industry >= 0.5.0", - "? Atomic_Overhaul >= 1.3.0" - ] -} \ No newline at end of file diff --git a/OLD/PHI-MB/locale/en/locale.cfg b/OLD/PHI-MB/locale/en/locale.cfg deleted file mode 100644 index d458a16..0000000 --- a/OLD/PHI-MB/locale/en/locale.cfg +++ /dev/null @@ -1,269 +0,0 @@ -[item-name] -assembling-machine-4=Assembling machine 4 -assembling-machine-5=Assembling machine 5 -electric-furnace-2=Electric furnace 2 -electric-furnace-3=Electric furnace 3 -chemical-plant-2=Chemical plant 2 -chemical-plant-3=Chemical plant 3 -oil-refinery-2=Oil refinery 2 -oil-refinery-3=Oil refinery 3 -centrifuge-2=Centrifuge 2 -centrifuge-3=Centrifuge 3 -lab-2=Lab 2 -lab-3=Lab 3 -electric-mining-drill-2=Electric mining drill 2 -electric-mining-drill-3=Electric mining drill 3 -pumpjack-2=Pumpjack 2 -pumpjack-3=Pumpjack 3 -electric-filter-furnace-2=Electric filter furnace 2 -electric-filter-furnace-3=Electric filter furnace 3 -industrial-furnace-2=Industrial furnace 2 -industrial-furnace-3=Industrial furnace 3 -fuel-processor-2=Fuel processor 2 -fuel-processor-3=Fuel processor 3 -area-mining-drill-2=Big mining drill 2 -area-mining-drill-3=Big mining drill 3 -se-space-assembling-machine-2=Space assembling machine 2 -se-space-assembling-machine-3=Space assembling machine 3 -se-space-manufactory-2=Space manufactory 2 -se-space-manufactory-3=Space manufactory 3 -se-casting-machine-2=Casting machine 2 -se-casting-machine-3=Casting machine 3 -se-pulveriser-2=Pulveriser 2 -se-pulveriser-3=Pulveriser 3 -se-lifesupport-facility-2=Lifesupport facility 2 -se-lifesupport-facility-3=Lifesupport facility 3 -se-fuel-refinery-2=Fuel refinery 2 -se-fuel-refinery-3=Fuel refinery 3 -se-core-miner-drill-2=Core mining drill 2 -se-core-miner-drill-3=Core mining drill 3 -se-space-decontamination-facility-2=Decontamination facility 2 -se-space-decontamination-facility-3=Decontamination facility 3 -se-space-genetics-laboratory-2=Genetics facility 2 -se-space-genetics-laboratory-3=Genetics facility 3 -se-space-growth-facility-2=Growth facility 2 -se-space-growth-facility-3=Growth facility 3 -se-space-biochemical-laboratory-2=Biochemical facility 2 -se-space-biochemical-laboratory-3=Biochemical facility 3 -se-space-radiation-laboratory-2=Radiation facility 2 -se-space-radiation-laboratory-3=Radiation facility 3 -se-space-electromagnetics-laboratory-2=Electromagnetics facility 2 -se-space-electromagnetics-laboratory-3=Electromagnetics facility 3 -se-space-laser-laboratory-2=Laser facility 2 -se-space-laser-laboratory-3=Laser facility 3 -se-space-astrometrics-laboratory-2=Astrometrics facility 2 -se-space-astrometrics-laboratory-3=Astrometrics facility 3 -se-space-gravimetrics-laboratory-2=Gravimetrics facility 2 -se-space-gravimetrics-laboratory-3=Gravimetrics facility 3 -se-space-mechanical-laboratory-2=Mechanical facility 2 -se-space-mechanical-laboratory-3=Mechanical facility 3 -se-space-material-fabricator-2=Material fabricator 2 -se-space-material-fabricator-3=Material fabricator 3 -se-space-particle-accelerator-2=Particle accelerator 2 -se-space-particle-accelerator-3=Particle accelerator 3 -se-space-particle-collider-2=Particle collider 2 -se-space-particle-collider-3=Particle collider 3 -se-space-plasma-generator-2=Plasma generator 2 -se-space-plasma-generator-3=Plasma generator 3 -se-space-hypercooler-2=Hypercooler 2 -se-space-hypercooler-3=Hypercooler 3 -se-space-radiator-3=Thermal radiator 3 -se-space-radiator-4=Thermal radiator 4 -se-space-telescope-2=Telescope 2 -se-space-telescope-3=Telescope 3 -se-space-telescope-gammaray-2=Gamma ray telescope 2 -se-space-telescope-gammaray-3=Gamma ray telescope 3 -se-space-telescope-microwave-2=Microwave telescope 2 -se-space-telescope-microwave-3=Microwave telescope 3 -se-space-telescope-radio-2=Radio telescope 2 -se-space-telescope-radio-3=Radio telescope 3 -se-space-telescope-xray-2=Xray telescope 2 -se-space-telescope-xray-3=Xray telescope 3 -se-space-science-lab-2=Space science lab 2 -se-space-science-lab-3=Space science lab 3 - -[entity-name] -assembling-machine-4=Assembling machine 4 -assembling-machine-5=Assembling machine 5 -electric-furnace-2=Electric furnace 2 -electric-furnace-3=Electric furnace 3 -chemical-plant-2=Chemical plant 2 -chemical-plant-3=Chemical plant 3 -oil-refinery-2=Oil refinery 2 -oil-refinery-3=Oil refinery 3 -centrifuge-2=Centrifuge 2 -centrifuge-3=Centrifuge 3 -lab-2=Lab 2 -lab-3=Lab 3 -electric-mining-drill-2=Electric mining drill 2 -electric-mining-drill-3=Electric mining drill 3 -pumpjack-2=Pumpjack 2 -pumpjack-3=Pumpjack 3 -electric-filter-furnace-2=Electric filter furnace 2 -electric-filter-furnace-3=Electric filter furnace 3 -industrial-furnace-2=Industrial furnace 2 -industrial-furnace-3=Industrial furnace 3 -fuel-processor-2=Fuel processor 2 -fuel-processor-3=Fuel processor 3 -area-mining-drill-2=Big mining drill 2 -area-mining-drill-3=Big mining drill 3 -se-space-assembling-machine-2=Space assembling machine 2 -se-space-assembling-machine-3=Space assembling machine 3 -se-space-manufactory-2=Space manufactory 2 -se-space-manufactory-3=Space manufactory 3 -se-casting-machine-2=Casting machine 2 -se-casting-machine-3=Casting machine 3 -se-pulveriser-2=Pulveriser 2 -se-pulveriser-3=Pulveriser 3 -se-lifesupport-facility-2=Lifesupport facility 2 -se-lifesupport-facility-3=Lifesupport facility 3 -se-fuel-refinery-2=Fuel refinery 2 -se-fuel-refinery-3=Fuel refinery 3 -se-core-miner-drill-2=Core mining drill 2 -se-core-miner-drill-3=Core mining drill 3 -se-space-decontamination-facility-2=Decontamination facility 2 -se-space-decontamination-facility-3=Decontamination facility 3 -se-space-genetics-laboratory-2=Genetics facility 2 -se-space-genetics-laboratory-3=Genetics facility 3 -se-space-growth-facility-2=Growth facility 2 -se-space-growth-facility-3=Growth facility 3 -se-space-biochemical-laboratory-2=Biochemical facility 2 -se-space-biochemical-laboratory-3=Biochemical facility 3 -se-space-radiation-laboratory-2=Radiation facility 2 -se-space-radiation-laboratory-3=Radiation facility 3 -se-space-electromagnetics-laboratory-2=Electromagnetics facility 2 -se-space-electromagnetics-laboratory-3=Electromagnetics facility 3 -se-space-laser-laboratory-2=Laser facility 2 -se-space-laser-laboratory-3=Laser facility 3 -se-space-astrometrics-laboratory-2=Astrometrics facility 2 -se-space-astrometrics-laboratory-3=Astrometrics facility 3 -se-space-gravimetrics-laboratory-2=Gravimetrics facility 2 -se-space-gravimetrics-laboratory-3=Gravimetrics facility 3 -se-space-mechanical-laboratory-2=Mechanical facility 2 -se-space-mechanical-laboratory-3=Mechanical facility 3 -se-space-material-fabricator-2=Material fabricator 2 -se-space-material-fabricator-3=Material fabricator 3 -se-space-particle-accelerator-2=Particle accelerator 2 -se-space-particle-accelerator-3=Particle accelerator 3 -se-space-particle-collider-2=Particle collider 2 -se-space-particle-collider-3=Particle collider 3 -se-space-plasma-generator-2=Plasma generator 2 -se-space-plasma-generator-3=Plasma generator 3 -se-space-hypercooler-2=Hypercooler 2 -se-space-hypercooler-3=Hypercooler 3 -se-space-radiator-3=Thermal radiator 3 -se-space-radiator-4=Thermal radiator 4 -se-space-telescope-2=Telescope 2 -se-space-telescope-3=Telescope 3 -se-space-telescope-gammaray-2=Gamma ray telescope 2 -se-space-telescope-gammaray-3=Gamma ray telescope 3 -se-space-telescope-microwave-2=Microwave telescope 2 -se-space-telescope-microwave-3=Microwave telescope 3 -se-space-telescope-radio-2=Radio telescope 2 -se-space-telescope-radio-3=Radio telescope 3 -se-space-telescope-xray-2=Xray telescope 2 -se-space-telescope-xray-3=Xray telescope 3 -se-space-science-lab-2=Space science lab 2 -se-space-science-lab-3=Space science lab 3 - -[entity-description] -assembling-machine-4=Assembling machines capable of processing fluid ingredients, with additional speed and module slots. -assembling-machine-5=Assembling machines capable of processing fluid ingredients, with additional speed and module slots. -electric-furnace-2=Faster and more flexible furnaces. -electric-furnace-3=Faster and more flexible furnaces. -chemical-plant-2=Chemical plant 2 -chemical-plant-3=Chemical plant 3 -oil-refinery-2=Oil refinery 2 -oil-refinery-3=Oil refinery 3 -centrifuge-2=Processes various uranium-related recipes. -centrifuge-3=Processes various uranium-related recipes. -lab-2=Lab 2 -lab-3=Lab 3 -electric-mining-drill-2=Electric mining drill 2 -electric-mining-drill-3=Electric mining drill 3 -pumpjack-2=Pumpjack 2 -pumpjack-3=Pumpjack 3 -electric-filter-furnace-2=Faster and more flexible furnaces. -electric-filter-furnace-3=Faster and more flexible furnaces. -industrial-furnace-2=Can use advanced smelting and metallurgy recipes but not kiln recipes. -industrial-furnace-3=Can use advanced smelting and metallurgy recipes but not kiln recipes. -fuel-processor-2=Process any chemical fuels into processed fuel. -fuel-processor-3=Process any chemical fuels into processed fuel. -area-mining-drill-2=A larger electric mining drill with increased range, speed and an extra module slots. -area-mining-drill-3=A larger electric mining drill with increased range, speed and an extra module slots. -se-space-assembling-machine-2=A modified assembling machine that can work in space. -se-space-assembling-machine-3=A modified assembling machine that can work in space. -se-space-manufactory-2=A giant assembling machine, but can craft more complicated recipes. Only works in space (or spaceships). -se-space-manufactory-3=A giant assembling machine, but can craft more complicated recipes. Only works in space (or spaceships). -se-casting-machine-2=Graphics are placeholders. -se-casting-machine-3=Graphics are placeholders. -se-pulveriser-2=Pulverises and crushes harder minerals and planet core fragments. -se-pulveriser-3=Pulverises and crushes harder minerals and planet core fragments. -se-lifesupport-facility-2=Sustaining life in more hostile environments. -se-lifesupport-facility-3=Sustaining life in more hostile environments. -se-fuel-refinery-2=An automated fuel processing structure. -se-fuel-refinery-3=An automated fuel processing structure. -se-core-miner-drill-2=Allows endless extraction of resources from planets and moons, but has diminishing returns if multiple are used on the same body. -se-core-miner-drill-3=Allows endless extraction of resources from planets and moons, but has diminishing returns if multiple are used on the same body. -se-space-decontamination-facility-2=Cleans substances for use in sterile environments, and prepares liquids for use in low-pressure conditions. -se-space-decontamination-facility-3=Cleans substances for use in sterile environments, and prepares liquids for use in low-pressure conditions. -se-space-genetics-laboratory-2=A lab dedicated to genetic sequencing, genetic modification, and genetic printing of cultures. -se-space-genetics-laboratory-3=A lab dedicated to genetic sequencing, genetic modification, and genetic printing of cultures. -se-space-growth-facility-2=Grows biological specimens under a range of controlled conditions that are impossible elsewhere. In addition to standard climate controls, everything from micro-gravity vats to high-G centrifuges are available -se-space-growth-facility-3=Grows biological specimens under a range of controlled conditions that are impossible elsewhere. In addition to standard climate controls, everything from micro-gravity vats to high-G centrifuges are available -se-space-biochemical-laboratory-2=An advanced chemical lab that specialises in bio-chemistry. Can also perform more basic chemical and oil processing. -se-space-biochemical-laboratory-3=An advanced chemical lab that specialises in bio-chemistry. Can also perform more basic chemical and oil processing. -se-space-radiation-laboratory-2=A relatively safe place to play with radioactive material. Can be used for uranium processing. -se-space-radiation-laboratory-3=A relatively safe place to play with radioactive material. Can be used for uranium processing. -se-space-electromagnetics-laboratory-2=Equipment for intense magnetic field and extremely high voltage applications. -se-space-electromagnetics-laboratory-3=Equipment for intense magnetic field and extremely high voltage applications. -se-space-laser-laboratory-2=Experiments with lasers. Eye protection must be worn. -se-space-laser-laboratory-3=Experiments with lasers. Eye protection must be worn. -se-space-astrometrics-laboratory-2=Combines, compares, and quantifies different sources of astronomic information. -se-space-astrometrics-laboratory-3=Combines, compares, and quantifies different sources of astronomic information. -se-space-gravimetrics-laboratory-2=Analyses and simulates gravitational disturbances. -se-space-gravimetrics-laboratory-3=Analyses and simulates gravitational disturbances. -se-space-mechanical-laboratory-2=Provides a range of mechanical processes: Crushing, tearing, shearing, vibration, etc. -se-space-mechanical-laboratory-3=Provides a range of mechanical processes: Crushing, tearing, shearing, vibration, etc. -se-space-material-fabricator-2=Synthesises new materials. A cross between a particle collider and 3d printer. -se-space-material-fabricator-3=Synthesises new materials. A cross between a particle collider and 3d printer. -se-space-particle-accelerator-2=Accelerates particles near to the speed of light. -se-space-particle-accelerator-3=Accelerates particles near to the speed of light. -se-space-particle-collider-2=Collides high-speed particles and analyses the results. -se-space-particle-collider-3=Collides high-speed particles and analyses the results. -se-space-plasma-generator-2=Generates a variety of plasmas. -se-space-plasma-generator-3=Generates a variety of plasmas. -se-space-hypercooler-2=Performs a heat exchange on thermofluid, making one hotter and the other colder. -se-space-hypercooler-3=Performs a heat exchange on thermofluid, making one hotter and the other colder. -se-space-radiator-3=Radiates away excess heat from overheated thermofluid. -se-space-radiator-4=Radiates away excess heat from overheated thermofluid. -se-space-telescope-2=A sophisticated telescope sensitive to multiple wavelengths around the visible spectrum. -se-space-telescope-3=A sophisticated telescope sensitive to multiple wavelengths around the visible spectrum. -se-space-telescope-gammaray-2=Gamma rays don't refract so you can't focus them with lenses. This powerful telescope uses mirrors and special detectors instead. -se-space-telescope-gammaray-3=Gamma rays don't refract so you can't focus them with lenses. This powerful telescope uses mirrors and special detectors instead. -se-space-telescope-microwave-2=A huge telescope that detects microwaves and the cosmic microwave background. -se-space-telescope-microwave-3=A huge telescope that detects microwaves and the cosmic microwave background. -se-space-telescope-radio-2=A huge telescope that detects very weak radio waves from distant sources. -se-space-telescope-radio-3=A huge telescope that detects very weak radio waves from distant sources. -se-space-telescope-xray-2=X-rays are blocked by most atmospheres. This powerful telescope is designed for space where atmosphere is not a problem. -se-space-telescope-xray-3=X-rays are blocked by most atmospheres. This powerful telescope is designed for space where atmosphere is not a problem. -se-space-science-lab-2=Allows processing of rocket science packs and more advanced space science. -se-space-science-lab-3=Allows processing of rocket science packs and more advanced space science. - -[mod-setting-name] -PHI-MB-ASSEMBLING-TIER=Assembling machine -PHI-MB-FURNACE-TIER=Electric furnace -PHI-MB-OIL-TIER=Oil refinery -PHI-MB-CENTRIFUGE-TIER=Centrifuge -PHI-MB-LAB-TIER=Lab -PHI-MB-MINING-TIER=Electric mining drill -PHI-MB-SE-ASSEMBLING-TIER=Space assembling machine - -[mod-setting-description] -PHI-MB-ASSEMBLING-TIER=Default 5 ; Disable 3 -PHI-MB-FURNACE-TIER=Default 3 ; Disable 1 -PHI-MB-OIL-TIER=Default 3 ; Disable 1 -PHI-MB-CENTRIFUGE-TIER=Default 3 ; Disable 1 -PHI-MB-LAB-TIER=Default 3 ; Disable 1 -PHI-MB-MINING-TIER=Default 3 ; Disable 1 -PHI-MB-SE-ASSEMBLING-TIER=Default 3 ; Disable 1 diff --git a/OLD/PHI-MB/locale/ja/locale.cfg b/OLD/PHI-MB/locale/ja/locale.cfg deleted file mode 100644 index 53aba15..0000000 --- a/OLD/PHI-MB/locale/ja/locale.cfg +++ /dev/null @@ -1,269 +0,0 @@ -[item-name] -assembling-machine-4=組立機 4 -assembling-machine-5=組立機 5 -electric-furnace-2=電気炉 2 -electric-furnace-3=電気炉 3 -chemical-plant-2=化学プラント 2 -chemical-plant-3=化学プラント 3 -oil-refinery-2=原油精製所 2 -oil-refinery-3=原油精製所 3 -centrifuge-2=遠心分離機 2 -centrifuge-3=遠心分離機 3 -lab-2=研究所 2 -lab-3=研究所 3 -electric-mining-drill-2=電動掘削機 2 -electric-mining-drill-3=電動掘削機 3 -pumpjack-2=油井 2 -pumpjack-3=油井 3 -electric-filter-furnace-2=電気フィルター炉 2 -electric-filter-furnace-3=電気フィルター炉 3 -industrial-furnace-2=工業炉 2 -industrial-furnace-3=工業炉 3 -fuel-processor-2=燃料加工所 2 -fuel-processor-3=燃料加工所 3 -area-mining-drill-2=大型掘削機 2 -area-mining-drill-3=大型掘削機 3 -se-space-assembling-machine-2=宇宙組立機 2 -se-space-assembling-machine-3=宇宙組立機 3 -se-space-manufactory-2=宇宙工場 2 -se-space-manufactory-3=宇宙工場 3 -se-casting-machine-2=鋳造機 2 -se-casting-machine-3=鋳造機 3 -se-pulveriser-2=粉砕機 2 -se-pulveriser-3=粉砕機 3 -se-lifesupport-facility-2=生命維持施設 2 -se-lifesupport-facility-3=生命維持施設 3 -se-fuel-refinery-2=燃料精製所 2 -se-fuel-refinery-3=燃料精製所 3 -se-core-miner-drill-2=コアマイニングドリル 2 -se-core-miner-drill-3=コアマイニングドリル 3 -se-space-decontamination-facility-2=除染施設 2 -se-space-decontamination-facility-3=除染施設 3 -se-space-genetics-laboratory-2=遺伝学実験室 2 -se-space-genetics-laboratory-3=遺伝学実験室 3 -se-space-growth-facility-2=生体育成施設 2 -se-space-growth-facility-3=生体育成施設 3 -se-space-biochemical-laboratory-2=生化学実験室 2 -se-space-biochemical-laboratory-3=生化学実験室 3 -se-space-radiation-laboratory-2=放射線実験室 2 -se-space-radiation-laboratory-3=放射線実験室 3 -se-space-electromagnetics-laboratory-2=電磁気学実験室 2 -se-space-electromagnetics-laboratory-3=電磁気学実験室 3 -se-space-laser-laboratory-2=レーザー実験室 2 -se-space-laser-laboratory-3=レーザー実験室 3 -se-space-astrometrics-laboratory-2=天体座標研究室 2 -se-space-astrometrics-laboratory-3=天体座標研究室 3 -se-space-gravimetrics-laboratory-2=重力波研究室 2 -se-space-gravimetrics-laboratory-3=重力波研究室 3 -se-space-mechanical-laboratory-2=機械力学実験室 2 -se-space-mechanical-laboratory-3=機械力学実験室 3 -se-space-material-fabricator-2=物質製造機 2 -se-space-material-fabricator-3=物質製造機 3 -se-space-particle-accelerator-2=粒子加速器 2 -se-space-particle-accelerator-3=粒子加速器 3 -se-space-particle-collider-2=衝突型粒子加速器 2 -se-space-particle-collider-3=衝突型粒子加速器 3 -se-space-plasma-generator-2=プラズマ発生器 2 -se-space-plasma-generator-3=プラズマ発生器 3 -se-space-hypercooler-2=ハイパークーラー 2 -se-space-hypercooler-3=ハイパークーラー 3 -se-space-radiator-3=放熱器 3 -se-space-radiator-4=放熱器 4 -se-space-telescope-2=望遠鏡 2 -se-space-telescope-3=望遠鏡 3 -se-space-telescope-gammaray-2=ガンマ線望遠鏡 2 -se-space-telescope-gammaray-3=ガンマ線望遠鏡 3 -se-space-telescope-microwave-2=マイクロ波望遠鏡 2 -se-space-telescope-microwave-3=マイクロ波望遠鏡 3 -se-space-telescope-radio-2=電波望遠鏡 2 -se-space-telescope-radio-3=電波望遠鏡 3 -se-space-telescope-xray-2=X線望遠鏡 2 -se-space-telescope-xray-3=X線望遠鏡 3 -se-space-science-lab-2=宇宙科学研究所 2 -se-space-science-lab-3=宇宙科学研究所 3 - -[entity-name] -assembling-machine-4=組立機 4 -assembling-machine-5=組立機 5 -electric-furnace-2=電気炉 2 -electric-furnace-3=電気炉 3 -chemical-plant-2=化学プラント 2 -chemical-plant-3=化学プラント 3 -oil-refinery-2=原油精製所 2 -oil-refinery-3=原油精製所 3 -centrifuge-2=遠心分離機 2 -centrifuge-3=遠心分離機 3 -lab-2=研究所 2 -lab-3=研究所 3 -electric-mining-drill-2=電動掘削機 2 -electric-mining-drill-3=電動掘削機 3 -pumpjack-2=油井 2 -pumpjack-3=油井 3 -electric-filter-furnace-2=電気フィルター炉 2 -electric-filter-furnace-3=電気フィルター炉 3 -industrial-furnace-2=工業炉 2 -industrial-furnace-3=工業炉 3 -fuel-processor-2=燃料加工所 2 -fuel-processor-3=燃料加工所 3 -area-mining-drill-2=大型掘削機 2 -area-mining-drill-3=大型掘削機 3 -se-space-assembling-machine-2=宇宙組立機 2 -se-space-assembling-machine-3=宇宙組立機 3 -se-space-manufactory-2=宇宙工場 2 -se-space-manufactory-3=宇宙工場 3 -se-casting-machine-2=鋳造機 2 -se-casting-machine-3=鋳造機 3 -se-pulveriser-2=粉砕機 2 -se-pulveriser-3=粉砕機 3 -se-lifesupport-facility-2=生命維持施設 2 -se-lifesupport-facility-3=生命維持施設 3 -se-fuel-refinery-2=燃料精製所 2 -se-fuel-refinery-3=燃料精製所 3 -se-core-miner-drill-2=コアマイニングドリル 2 -se-core-miner-drill-3=コアマイニングドリル 3 -se-space-decontamination-facility-2=除染施設 2 -se-space-decontamination-facility-3=除染施設 3 -se-space-genetics-laboratory-2=遺伝学実験室 2 -se-space-genetics-laboratory-3=遺伝学実験室 3 -se-space-growth-facility-2=生体育成施設 2 -se-space-growth-facility-3=生体育成施設 3 -se-space-biochemical-laboratory-2=生化学実験室 2 -se-space-biochemical-laboratory-3=生化学実験室 3 -se-space-radiation-laboratory-2=放射線実験室 2 -se-space-radiation-laboratory-3=放射線実験室 3 -se-space-electromagnetics-laboratory-2=電磁気学実験室 2 -se-space-electromagnetics-laboratory-3=電磁気学実験室 3 -se-space-laser-laboratory-2=レーザー実験室 2 -se-space-laser-laboratory-3=レーザー実験室 3 -se-space-astrometrics-laboratory-2=天体座標研究室 2 -se-space-astrometrics-laboratory-3=天体座標研究室 3 -se-space-gravimetrics-laboratory-2=重力波研究室 2 -se-space-gravimetrics-laboratory-3=重力波研究室 3 -se-space-mechanical-laboratory-2=機械力学実験室 2 -se-space-mechanical-laboratory-3=機械力学実験室 3 -se-space-material-fabricator-2=物質製造機 2 -se-space-material-fabricator-3=物質製造機 3 -se-space-particle-accelerator-2=粒子加速器 2 -se-space-particle-accelerator-3=粒子加速器 3 -se-space-particle-collider-2=衝突型粒子加速器 2 -se-space-particle-collider-3=衝突型粒子加速器 3 -se-space-plasma-generator-2=プラズマ発生器 2 -se-space-plasma-generator-3=プラズマ発生器 3 -se-space-hypercooler-2=ハイパークーラー 2 -se-space-hypercooler-3=ハイパークーラー 3 -se-space-radiator-3=放熱器 3 -se-space-radiator-4=放熱器 4 -se-space-telescope-2=望遠鏡 2 -se-space-telescope-3=望遠鏡 3 -se-space-telescope-gammaray-2=ガンマ線望遠鏡 2 -se-space-telescope-gammaray-3=ガンマ線望遠鏡 3 -se-space-telescope-microwave-2=マイクロ波望遠鏡 2 -se-space-telescope-microwave-3=マイクロ波望遠鏡 3 -se-space-telescope-radio-2=電波望遠鏡 2 -se-space-telescope-radio-3=電波望遠鏡 3 -se-space-telescope-xray-2=X線望遠鏡 2 -se-space-telescope-xray-3=X線望遠鏡 3 -se-space-science-lab-2=宇宙科学研究所 2 -se-space-science-lab-3=宇宙科学研究所 3 - -[entity-description] -assembling-machine-4=流体素材の処理が可能で、更なる工作速度とモジュールスロットを持つ組立機です。 -assembling-machine-5=流体素材の処理が可能で、更なる工作速度とモジュールスロットを持つ組立機です。 -electric-furnace-2=より高速で便利な炉です。 -electric-furnace-3=より高速で便利な炉です。 -chemical-plant-2=化学プラント 2 -chemical-plant-3=化学プラント 3 -oil-refinery-2=原油精製所 2 -oil-refinery-3=原油精製所 3 -centrifuge-2=様々なウランに関するレシピを処理します。 -centrifuge-3=様々なウランに関するレシピを処理します。 -lab-2=研究所 2 -lab-3=研究所 3 -electric-mining-drill-2=電動掘削機 2 -electric-mining-drill-3=電動掘削機 3 -pumpjack-2=油井 2 -pumpjack-3=油井 3 -electric-filter-furnace-2=より高速で便利な炉です。 -electric-filter-furnace-3=より高速で便利な炉です。 -industrial-furnace-2=高度な製錬と冶金のレシピを使用できますが、れんがなどを焼けません。 -industrial-furnace-3=高度な製錬と冶金のレシピを使用できますが、れんがなどを焼けません。 -fuel-processor-2=通常の燃料を加工燃料へと処理します。 -fuel-processor-3=通常の燃料を加工燃料へと処理します。 -area-mining-drill-2=掘削範囲が広く高速でモジュールスロットを追加した、より大型の電動掘削機です。 -area-mining-drill-3=掘削範囲が広く高速でモジュールスロットを追加した、より大型の電動掘削機です。 -se-space-assembling-machine-2=宇宙空間で動作するように調整された組立機 -se-space-assembling-machine-3=宇宙空間で動作するように調整された組立機 -se-space-manufactory-2=巨大な組立機、より複雑なレシピを扱えます。宇宙空間(または宇宙船内)のみで動作します。 -se-space-manufactory-3=巨大な組立機、より複雑なレシピを扱えます。宇宙空間(または宇宙船内)のみで動作します。 -se-casting-machine-2=グラフィックはプレースホルダーです。 -se-casting-machine-3=グラフィックはプレースホルダーです。 -se-pulveriser-2=り硬い鉱物やコア断片などを粉砕・破砕することができます。 -se-pulveriser-3=り硬い鉱物やコア断片などを粉砕・破砕することができます。 -se-lifesupport-facility-2=過酷な環境での生存を支えます。 -se-lifesupport-facility-3=過酷な環境での生存を支えます。 -se-fuel-refinery-2=燃料を自動で製作します。 -se-fuel-refinery-3=燃料を自動で製作します。 -se-core-miner-drill-2=星のコアから無限に資源を得ることができます。同じ星に複数設置すると効率が低下します。 -se-core-miner-drill-3=星のコアから無限に資源を得ることができます。同じ星に複数設置すると効率が低下します。 -se-space-decontamination-facility-2=物質を除染して無菌環境で使用できるようにします。 -se-space-decontamination-facility-3=物質を除染して無菌環境で使用できるようにします。 -se-space-genetics-laboratory-2=遺伝子配列決定、遺伝子組み換え、およびゲノムインプリンティングを行う研究室です。 -se-space-genetics-laboratory-3=遺伝子配列決定、遺伝子組み換え、およびゲノムインプリンティングを行う研究室です。 -se-space-growth-facility-2=特殊な環境下でのみ育つ実験生物を育てます。 標準的な気候制御に加え、高G重力環境も作れます。 -se-space-growth-facility-3=特殊な環境下でのみ育つ実験生物を育てます。 標準的な気候制御に加え、高G重力環境も作れます。 -se-space-biochemical-laboratory-2=生化学を専門に扱う高度な化学実験室。また、より多くの基本的な化学および石油処理を行うことができます。 -se-space-biochemical-laboratory-3=生化学を専門に扱う高度な化学実験室。また、より多くの基本的な化学および石油処理を行うことができます。 -se-space-radiation-laboratory-2=比較的安全に放射性物質で遊ぶ場所です。ウラン処理に使用することができます。 -se-space-radiation-laboratory-3=比較的安全に放射性物質で遊ぶ場所です。ウラン処理に使用することができます。 -se-space-electromagnetics-laboratory-2=強い磁界と非常に高い電圧を扱う実験室です。 -se-space-electromagnetics-laboratory-3=強い磁界と非常に高い電圧を扱う実験室です。 -se-space-laser-laboratory-2=レーザーを用いた実験を行っています。防護メガネの着用が義務付けられています。 -se-space-laser-laboratory-3=レーザーを用いた実験を行っています。防護メガネの着用が義務付けられています。 -se-space-astrometrics-laboratory-2=天体情報を組み合わせ、比較し、定量化します。 -se-space-astrometrics-laboratory-3=天体情報を組み合わせ、比較し、定量化します。 -se-space-gravimetrics-laboratory-2=重力散乱を分析、シミュレーションします。 -se-space-gravimetrics-laboratory-3=重力散乱を分析、シミュレーションします。 -se-space-mechanical-laboratory-2=粉砕、引張、せん断、振動などの工業的処理ができます。 -se-space-mechanical-laboratory-3=粉砕、引張、せん断、振動などの工業的処理ができます。 -se-space-material-fabricator-2=粒子衝突と3Dプリンターを使い、新たな物質を合成します。 -se-space-material-fabricator-3=粒子衝突と3Dプリンターを使い、新たな物質を合成します。 -se-space-particle-accelerator-2=粒子を亜光速まで加速させます。 -se-space-particle-accelerator-3=粒子を亜光速まで加速させます。 -se-space-particle-collider-2=粒子を亜光速で衝突させ、その結果を分析します。 -se-space-particle-collider-3=粒子を亜光速で衝突させ、その結果を分析します。 -se-space-plasma-generator-2=様々なプラズマを生成します。 -se-space-plasma-generator-3=様々なプラズマを生成します。 -se-space-hypercooler-2=冷却液の熱交換を行い、一方を高温に、他方を低温にします。 -se-space-hypercooler-3=冷却液の熱交換を行い、一方を高温に、他方を低温にします。 -se-space-radiator-3=過熱した冷却液から余分な熱を放熱します。 -se-space-radiator-4=過熱した冷却液から余分な熱を放熱します。 -se-space-telescope-2=可視スペクトル周辺波長に最適化された望遠鏡です。 -se-space-telescope-3=可視スペクトル周辺波長に最適化された望遠鏡です。 -se-space-telescope-gammaray-2=ガンマ線は屈折しないため、レンズで焦点を合わせることはできません。この強力な望遠鏡は、代わりに鏡や特殊な検出器を使用しています。 -se-space-telescope-gammaray-3=ガンマ線は屈折しないため、レンズで焦点を合わせることはできません。この強力な望遠鏡は、代わりに鏡や特殊な検出器を使用しています。 -se-space-telescope-microwave-2=マイクロ波を検出し、宇宙背景放射を観測する巨大な望遠鏡です。 -se-space-telescope-microwave-3=マイクロ波を検出し、宇宙背景放射を観測する巨大な望遠鏡です。 -se-space-telescope-radio-2=遠距離からの微弱な電波を検出するための巨大な望遠鏡です。 -se-space-telescope-radio-3=遠距離からの微弱な電波を検出するための巨大な望遠鏡です。 -se-space-telescope-xray-2=X線のほとんどは大気によってブロックされています。そのため、この望遠鏡は大気がない宇宙に設置されます。 -se-space-telescope-xray-3=X線のほとんどは大気によってブロックされています。そのため、この望遠鏡は大気がない宇宙に設置されます。 -se-space-science-lab-2=高度なサイエンスパックを使用できます。 -se-space-science-lab-3=高度なサイエンスパックを使用できます。 - -[mod-setting-name] -PHI-MB-ASSEMBLING-TIER=組立機 -PHI-MB-FURNACE-TIER=電気炉 -PHI-MB-OIL-TIER=原油精製所 -PHI-MB-CENTRIFUGE-TIER=遠心分離機 -PHI-MB-LAB-TIER=研究所 -PHI-MB-MINING-TIER=電動掘削機 -PHI-MB-SE-ASSEMBLING-TIER=宇宙組立機 - -[mod-setting-description] -PHI-MB-ASSEMBLING-TIER=デフォルト 5 ; 止める 3 -PHI-MB-FURNACE-TIER=デフォルト 3 ; 止める 1 -PHI-MB-OIL-TIER=デフォルト 3 ; 止める 1 -PHI-MB-CENTRIFUGE-TIER=デフォルト 3 ; 止める 1 -PHI-MB-LAB-TIER=デフォルト 3 ; 止める 1 -PHI-MB-MINING-TIER=デフォルト 3 ; 止める 1 -PHI-MB-SE-ASSEMBLING-TIER=デフォルト 3 ; 止める 1 diff --git a/OLD/PHI-MB/locale/zh-CN/locale.cfg b/OLD/PHI-MB/locale/zh-CN/locale.cfg deleted file mode 100644 index 2ee42ba..0000000 --- a/OLD/PHI-MB/locale/zh-CN/locale.cfg +++ /dev/null @@ -1,269 +0,0 @@ -[item-name] -assembling-machine-4=組裝機 4 -assembling-machine-5=組裝機 5 -electric-furnace-2=電爐 2 -electric-furnace-3=電爐 3 -chemical-plant-2=化工廠 2 -chemical-plant-3=化工廠 3 -oil-refinery-2=煉油廠 2 -oil-refinery-3=煉油廠 3 -centrifuge-2=離心機 2 -centrifuge-3=離心機 3 -lab-2=實驗室 2 -lab-3=實驗室 3 -electric-mining-drill-2=電能採礦機 2 -electric-mining-drill-3=電能採礦機 3 -pumpjack-2=抽油幫浦 2 -pumpjack-3=抽油幫浦 3 -electric-filter-furnace-2=智慧電爐 2 -electric-filter-furnace-3=智慧電爐 3 -industrial-furnace-2=工業熔爐 2 -industrial-furnace-3=工業熔爐 3 -fuel-processor-2=燃料加工機 2 -fuel-processor-3=燃料加工機 3 -area-mining-drill-2=大型採礦機 2 -area-mining-drill-3=大型採礦機 3 -se-space-assembling-machine-2=太空組裝機 2 -se-space-assembling-machine-3=太空組裝機 3 -se-space-manufactory-2=太空製造廠 2 -se-space-manufactory-3=太空製造廠 3 -se-casting-machine-2=鑄造機 2 -se-casting-machine-3=鑄造機 3 -se-pulveriser-2=粉碎機 2 -se-pulveriser-3=粉碎機 3 -se-lifesupport-facility-2=維生設施 2 -se-lifesupport-facility-3=維生設施 3 -se-fuel-refinery-2=燃料精煉廠 2 -se-fuel-refinery-3=燃料精煉廠 3 -se-core-miner-drill-2=星核鑽機 2 -se-core-miner-drill-3=星核鑽機 3 -se-space-decontamination-facility-2=淨化設施 2 -se-space-decontamination-facility-3=淨化設施 3 -se-space-genetics-laboratory-2=遺傳學實驗室 2 -se-space-genetics-laboratory-3=遺傳學實驗室 3 -se-space-growth-facility-2=培養設施 2 -se-space-growth-facility-3=培養設施 3 -se-space-biochemical-laboratory-2=生物化學實驗室 2 -se-space-biochemical-laboratory-3=生物化學實驗室 3 -se-space-radiation-laboratory-2=輻射實驗室 2 -se-space-radiation-laboratory-3=輻射實驗室 3 -se-space-electromagnetics-laboratory-2=電磁學設施 2 -se-space-electromagnetics-laboratory-3=電磁學設施 3 -se-space-laser-laboratory-2=雷射設施 2 -se-space-laser-laboratory-3=雷射設施 3 -se-space-astrometrics-laboratory-2=天體測量設施 2 -se-space-astrometrics-laboratory-3=天體測量設施 3 -se-space-gravimetrics-laboratory-2=重力學設施 2 -se-space-gravimetrics-laboratory-3=重力學設施 3 -se-space-mechanical-laboratory-2=空間機械加工設施 2 -se-space-mechanical-laboratory-3=空間機械加工設施 3 -se-space-material-fabricator-2=材料合成機 2 -se-space-material-fabricator-3=材料合成機 3 -se-space-particle-accelerator-2=粒子加速器 2 -se-space-particle-accelerator-3=粒子加速器 3 -se-space-particle-collider-2=粒子對撞機 2 -se-space-particle-collider-3=粒子對撞機 3 -se-space-plasma-generator-2=等離子發生器 2 -se-space-plasma-generator-3=等離子發生器 3 -se-space-hypercooler-2=超級冷卻器 2 -se-space-hypercooler-3=超級冷卻器 3 -se-space-radiator-3=散熱器 3 -se-space-radiator-4=散熱器 4 -se-space-telescope-2=望遠鏡 2 -se-space-telescope-3=望遠鏡 3 -se-space-telescope-gammaray-2=伽馬射線望遠鏡 2 -se-space-telescope-gammaray-3=伽馬射線望遠鏡 3 -se-space-telescope-microwave-2=微波望遠鏡 2 -se-space-telescope-microwave-3=微波望遠鏡 3 -se-space-telescope-radio-2=電波望遠鏡 2 -se-space-telescope-radio-3=電波望遠鏡 3 -se-space-telescope-xray-2=X射線望遠鏡 2 -se-space-telescope-xray-3=X射線望遠鏡 3 -se-space-science-lab-2=太空科學實驗室 2 -se-space-science-lab-3=太空科學實驗室 3 - -[entity-name] -assembling-machine-4=組裝機 4 -assembling-machine-5=組裝機 5 -electric-furnace-2=電爐 2 -electric-furnace-3=電爐 3 -chemical-plant-2=化工廠 2 -chemical-plant-3=化工廠 3 -oil-refinery-2=煉油廠 2 -oil-refinery-3=煉油廠 3 -centrifuge-2=離心機 2 -centrifuge-3=離心機 3 -lab-2=實驗室 2 -lab-3=實驗室 3 -electric-mining-drill-2=電能採礦機 2 -electric-mining-drill-3=電能採礦機 3 -pumpjack-2=抽油幫浦 2 -pumpjack-3=抽油幫浦 3 -electric-filter-furnace-2=智慧電爐 2 -electric-filter-furnace-3=智慧電爐 3 -industrial-furnace-2=工業熔爐 2 -industrial-furnace-3=工業熔爐 3 -fuel-processor-2=燃料加工機 2 -fuel-processor-3=燃料加工機 3 -area-mining-drill-2=大型採礦機 2 -area-mining-drill-3=大型採礦機 3 -se-space-assembling-machine-2=太空組裝機 2 -se-space-assembling-machine-3=太空組裝機 3 -se-space-manufactory-2=太空製造廠 2 -se-space-manufactory-3=太空製造廠 3 -se-casting-machine-2=鑄造機 2 -se-casting-machine-3=鑄造機 3 -se-pulveriser-2=粉碎機 2 -se-pulveriser-3=粉碎機 3 -se-lifesupport-facility-2=維生設施 2 -se-lifesupport-facility-3=維生設施 3 -se-fuel-refinery-2=燃料精煉廠 2 -se-fuel-refinery-3=燃料精煉廠 3 -se-core-miner-drill-2=星核鑽機 2 -se-core-miner-drill-3=星核鑽機 3 -se-space-decontamination-facility-2=淨化設施 2 -se-space-decontamination-facility-3=淨化設施 3 -se-space-genetics-laboratory-2=遺傳學實驗室 2 -se-space-genetics-laboratory-3=遺傳學實驗室 3 -se-space-growth-facility-2=培養設施 2 -se-space-growth-facility-3=培養設施 3 -se-space-biochemical-laboratory-2=生物化學實驗室 2 -se-space-biochemical-laboratory-3=生物化學實驗室 3 -se-space-radiation-laboratory-2=輻射實驗室 2 -se-space-radiation-laboratory-3=輻射實驗室 3 -se-space-electromagnetics-laboratory-2=電磁學設施 2 -se-space-electromagnetics-laboratory-3=電磁學設施 3 -se-space-laser-laboratory-2=雷射設施 2 -se-space-laser-laboratory-3=雷射設施 3 -se-space-astrometrics-laboratory-2=天體測量設施 2 -se-space-astrometrics-laboratory-3=天體測量設施 3 -se-space-gravimetrics-laboratory-2=重力學設施 2 -se-space-gravimetrics-laboratory-3=重力學設施 3 -se-space-mechanical-laboratory-2=空間機械加工設施 2 -se-space-mechanical-laboratory-3=空間機械加工設施 3 -se-space-material-fabricator-2=材料合成機 2 -se-space-material-fabricator-3=材料合成機 3 -se-space-particle-accelerator-2=粒子加速器 2 -se-space-particle-accelerator-3=粒子加速器 3 -se-space-particle-collider-2=粒子對撞機 2 -se-space-particle-collider-3=粒子對撞機 3 -se-space-plasma-generator-2=等離子發生器 2 -se-space-plasma-generator-3=等離子發生器 3 -se-space-hypercooler-2=超級冷卻器 2 -se-space-hypercooler-3=超級冷卻器 3 -se-space-radiator-3=散熱器 3 -se-space-radiator-4=散熱器 4 -se-space-telescope-2=望遠鏡 2 -se-space-telescope-3=望遠鏡 3 -se-space-telescope-gammaray-2=伽馬射線望遠鏡 2 -se-space-telescope-gammaray-3=伽馬射線望遠鏡 3 -se-space-telescope-microwave-2=微波望遠鏡 2 -se-space-telescope-microwave-3=微波望遠鏡 3 -se-space-telescope-radio-2=電波望遠鏡 2 -se-space-telescope-radio-3=電波望遠鏡 3 -se-space-telescope-xray-2=X射線望遠鏡 2 -se-space-telescope-xray-3=X射線望遠鏡 3 -se-space-science-lab-2=太空科學實驗室 2 -se-space-science-lab-3=太空科學實驗室 3 - -[entity-description] -assembling-machine-4=可加工流體原料的組裝機,而且還具備更快的組裝速度和組件插槽。 -assembling-machine-5=可加工流體原料的組裝機,而且還具備更快的組裝速度和組件插槽。 -electric-furnace-2=更快速、更方便的熔爐。 -electric-furnace-3=更快速、更方便的熔爐。 -chemical-plant-2=化工廠 2 -chemical-plant-3=化工廠 3 -oil-refinery-2=煉油廠 2 -oil-refinery-3=煉油廠 3 -centrifuge-2=加工多種有關鈾的配方。 -centrifuge-3=加工多種有關鈾的配方。 -lab-2=實驗室 2 -lab-3=實驗室 3 -electric-mining-drill-2=電能採礦機 2 -electric-mining-drill-3=電能採礦機 3 -pumpjack-2=抽油幫浦 2 -pumpjack-3=抽油幫浦 3 -electric-filter-furnace-2=更快速、更方便的熔爐。 -electric-filter-furnace-3=更快速、更方便的熔爐。 -industrial-furnace-2=與電爐相比,更大、速度快且具有更多插件插槽。需要選擇配方,但可以處理具有多種輸入和流體的高級的配方。 -industrial-furnace-3=與電爐相比,更大、速度快且具有更多插件插槽。需要選擇配方,但可以處理具有多種輸入和流體的高級的配方。 -fuel-processor-2=將任何化學燃料製成成加工燃料。 -fuel-processor-3=將任何化學燃料製成成加工燃料。 -area-mining-drill-2=具有更大作業範圍和額外插件插槽的礦機。 -area-mining-drill-3=具有更大作業範圍和額外插件插槽的礦機。 -se-space-assembling-machine-2=一台特製的組裝機,可以在太空中工作。 -se-space-assembling-machine-3=一台特製的組裝機,可以在太空中工作。 -se-space-manufactory-2=一個巨大的組裝機,可以製作更複雜的配方。只在太空(或飛船)中工作。 -se-space-manufactory-3=一個巨大的組裝機,可以製作更複雜的配方。只在太空(或飛船)中工作。 -se-casting-machine-2=圖形是佔位符。 -se-casting-machine-3=圖形是佔位符。 -se-pulveriser-2=粉碎和研磨較硬的礦物和行星核心碎片。 -se-pulveriser-3=粉碎和研磨較硬的礦物和行星核心碎片。 -se-lifesupport-facility-2=在更加惡劣的環境中支持生命。 -se-lifesupport-facility-3=在更加惡劣的環境中支持生命。 -se-fuel-refinery-2=一種自動的原油精煉建築物。 -se-fuel-refinery-3=一種自動的原油精煉建築物。 -se-core-miner-drill-2=允許從行星和衛星中無限地提取資源,但在同個星體中使用多個則會收益遞減。 -se-core-miner-drill-3=允許從行星和衛星中無限地提取資源,但在同個星體中使用多個則會收益遞減。 -se-space-decontamination-facility-2=淨化需要在無菌環境中使用的物質,並製備低壓條件下使用的液體。 -se-space-decontamination-facility-3=淨化需要在無菌環境中使用的物質,並製備低壓條件下使用的液體。 -se-space-genetics-laboratory-2=一所用於基因測序、基因修飾和基因印刷的實驗室。 -se-space-genetics-laboratory-3=一所用於基因測序、基因修飾和基因印刷的實驗室。 -se-space-growth-facility-2=在一些常規環境下無法實現的條件下培育生物,如微重力環境。 -se-space-growth-facility-3=在一些常規環境下無法實現的條件下培育生物,如微重力環境。 -se-space-biochemical-laboratory-2=一所重點研究生物化學的實驗室。 也可以用來進行基本的化學反應和原油處理。 -se-space-biochemical-laboratory-3=一所重點研究生物化學的實驗室。 也可以用來進行基本的化學反應和原油處理。 -se-space-radiation-laboratory-2=提供一個相對安全的環境來處理放射性物質,可以用來處理鈾。 -se-space-radiation-laboratory-3=提供一個相對安全的環境來處理放射性物質,可以用來處理鈾。 -se-space-electromagnetics-laboratory-2=用於強磁場和極高電壓環境下使用的設備。 -se-space-electromagnetics-laboratory-3=用於強磁場和極高電壓環境下使用的設備。 -se-space-laser-laboratory-2=雷射實驗場所,必須配戴護目鏡。 -se-space-laser-laboratory-3=雷射實驗場所,必須配戴護目鏡。 -se-space-astrometrics-laboratory-2=組合、比較和量化來自不同天體的資訊。 -se-space-astrometrics-laboratory-3=組合、比較和量化來自不同天體的資訊。 -se-space-gravimetrics-laboratory-2=分析並模擬重力擾動。 -se-space-gravimetrics-laboratory-3=分析並模擬重力擾動。 -se-space-mechanical-laboratory-2=提供一系列的機械加工工序:破碎,撕裂,剪切,振動等。 -se-space-mechanical-laboratory-3=提供一系列的機械加工工序:破碎,撕裂,剪切,振動等。 -se-space-material-fabricator-2=用來合成新材料,是粒子對撞機和3D列印機的完美融合。 -se-space-material-fabricator-3=用來合成新材料,是粒子對撞機和3D列印機的完美融合。 -se-space-particle-accelerator-2=將粒子加速到亞光速。 -se-space-particle-accelerator-3=將粒子加速到亞光速。 -se-space-particle-collider-2=使高速粒子相互撞擊並分析結果。 -se-space-particle-collider-3=使高速粒子相互撞擊並分析結果。 -se-space-plasma-generator-2=產生各種等離子體。 -se-space-plasma-generator-3=產生各種等離子體。 -se-space-hypercooler-2=使用熱流體進行熱交換,使一端更熱,另一端更冷。 -se-space-hypercooler-3=使用熱流體進行熱交換,使一端更熱,另一端更冷。 -se-space-radiator-3=從高溫熱流體中散發出多餘的熱量。 -se-space-radiator-4=從高溫熱流體中散發出多餘的熱量。 -se-space-telescope-2=精密的望遠鏡,對可見光譜範圍內的多個波長敏感。 -se-space-telescope-3=精密的望遠鏡,對可見光譜範圍內的多個波長敏感。 -se-space-telescope-gammaray-2=伽馬射線不會折射。這個強大的望遠鏡使用鏡子和特殊的感測器進行觀測。 -se-space-telescope-gammaray-3=伽馬射線不會折射。這個強大的望遠鏡使用鏡子和特殊的感測器進行觀測。 -se-space-telescope-microwave-2=一台巨大的望遠鏡,可以探測微波和宇宙微波背景。 -se-space-telescope-microwave-3=一台巨大的望遠鏡,可以探測微波和宇宙微波背景。 -se-space-telescope-radio-2=一台巨大的望遠鏡,可以偵測從非常遙遠距離發射的微弱的無線電波。 -se-space-telescope-radio-3=一台巨大的望遠鏡,可以偵測從非常遙遠距離發射的微弱的無線電波。 -se-space-telescope-xray-2=X射線會被大氣層阻擋,這個強大的望遠鏡轉為真空環境設計,在這裡大氣層不再是問題。 -se-space-telescope-xray-3=X射線會被大氣層阻擋,這個強大的望遠鏡轉為真空環境設計,在這裡大氣層不再是問題。 -se-space-science-lab-2=使用高級研究包進行研究,僅可在太空中使用。 -se-space-science-lab-3=使用高級研究包進行研究,僅可在太空中使用。 - -[mod-setting-name] -PHI-MB-ASSEMBLING-TIER=組裝機 -PHI-MB-FURNACE-TIER=電爐 -PHI-MB-OIL-TIER=煉油廠 -PHI-MB-CENTRIFUGE-TIER=離心機 -PHI-MB-LAB-TIER=實驗室 -PHI-MB-MINING-TIER=電能採礦機 -PHI-MB-SE-ASSEMBLING-TIER=太空組裝機 - -[mod-setting-description] -PHI-MB-ASSEMBLING-TIER=預設 5 ; 停用 3 -PHI-MB-FURNACE-TIER=預設 3 ; 停用 1 -PHI-MB-OIL-TIER=預設 3 ; 停用 1 -PHI-MB-CENTRIFUGE-TIER=預設 3 ; 停用 1 -PHI-MB-LAB-TIER=預設 3 ; 停用 1 -PHI-MB-MINING-TIER=預設 3 ; 停用 1 -PHI-MB-SE-ASSEMBLING-TIER=預設 3 ; 停用 1 diff --git a/OLD/PHI-MB/locale/zh-TW/locale.cfg b/OLD/PHI-MB/locale/zh-TW/locale.cfg deleted file mode 100644 index 2ee42ba..0000000 --- a/OLD/PHI-MB/locale/zh-TW/locale.cfg +++ /dev/null @@ -1,269 +0,0 @@ -[item-name] -assembling-machine-4=組裝機 4 -assembling-machine-5=組裝機 5 -electric-furnace-2=電爐 2 -electric-furnace-3=電爐 3 -chemical-plant-2=化工廠 2 -chemical-plant-3=化工廠 3 -oil-refinery-2=煉油廠 2 -oil-refinery-3=煉油廠 3 -centrifuge-2=離心機 2 -centrifuge-3=離心機 3 -lab-2=實驗室 2 -lab-3=實驗室 3 -electric-mining-drill-2=電能採礦機 2 -electric-mining-drill-3=電能採礦機 3 -pumpjack-2=抽油幫浦 2 -pumpjack-3=抽油幫浦 3 -electric-filter-furnace-2=智慧電爐 2 -electric-filter-furnace-3=智慧電爐 3 -industrial-furnace-2=工業熔爐 2 -industrial-furnace-3=工業熔爐 3 -fuel-processor-2=燃料加工機 2 -fuel-processor-3=燃料加工機 3 -area-mining-drill-2=大型採礦機 2 -area-mining-drill-3=大型採礦機 3 -se-space-assembling-machine-2=太空組裝機 2 -se-space-assembling-machine-3=太空組裝機 3 -se-space-manufactory-2=太空製造廠 2 -se-space-manufactory-3=太空製造廠 3 -se-casting-machine-2=鑄造機 2 -se-casting-machine-3=鑄造機 3 -se-pulveriser-2=粉碎機 2 -se-pulveriser-3=粉碎機 3 -se-lifesupport-facility-2=維生設施 2 -se-lifesupport-facility-3=維生設施 3 -se-fuel-refinery-2=燃料精煉廠 2 -se-fuel-refinery-3=燃料精煉廠 3 -se-core-miner-drill-2=星核鑽機 2 -se-core-miner-drill-3=星核鑽機 3 -se-space-decontamination-facility-2=淨化設施 2 -se-space-decontamination-facility-3=淨化設施 3 -se-space-genetics-laboratory-2=遺傳學實驗室 2 -se-space-genetics-laboratory-3=遺傳學實驗室 3 -se-space-growth-facility-2=培養設施 2 -se-space-growth-facility-3=培養設施 3 -se-space-biochemical-laboratory-2=生物化學實驗室 2 -se-space-biochemical-laboratory-3=生物化學實驗室 3 -se-space-radiation-laboratory-2=輻射實驗室 2 -se-space-radiation-laboratory-3=輻射實驗室 3 -se-space-electromagnetics-laboratory-2=電磁學設施 2 -se-space-electromagnetics-laboratory-3=電磁學設施 3 -se-space-laser-laboratory-2=雷射設施 2 -se-space-laser-laboratory-3=雷射設施 3 -se-space-astrometrics-laboratory-2=天體測量設施 2 -se-space-astrometrics-laboratory-3=天體測量設施 3 -se-space-gravimetrics-laboratory-2=重力學設施 2 -se-space-gravimetrics-laboratory-3=重力學設施 3 -se-space-mechanical-laboratory-2=空間機械加工設施 2 -se-space-mechanical-laboratory-3=空間機械加工設施 3 -se-space-material-fabricator-2=材料合成機 2 -se-space-material-fabricator-3=材料合成機 3 -se-space-particle-accelerator-2=粒子加速器 2 -se-space-particle-accelerator-3=粒子加速器 3 -se-space-particle-collider-2=粒子對撞機 2 -se-space-particle-collider-3=粒子對撞機 3 -se-space-plasma-generator-2=等離子發生器 2 -se-space-plasma-generator-3=等離子發生器 3 -se-space-hypercooler-2=超級冷卻器 2 -se-space-hypercooler-3=超級冷卻器 3 -se-space-radiator-3=散熱器 3 -se-space-radiator-4=散熱器 4 -se-space-telescope-2=望遠鏡 2 -se-space-telescope-3=望遠鏡 3 -se-space-telescope-gammaray-2=伽馬射線望遠鏡 2 -se-space-telescope-gammaray-3=伽馬射線望遠鏡 3 -se-space-telescope-microwave-2=微波望遠鏡 2 -se-space-telescope-microwave-3=微波望遠鏡 3 -se-space-telescope-radio-2=電波望遠鏡 2 -se-space-telescope-radio-3=電波望遠鏡 3 -se-space-telescope-xray-2=X射線望遠鏡 2 -se-space-telescope-xray-3=X射線望遠鏡 3 -se-space-science-lab-2=太空科學實驗室 2 -se-space-science-lab-3=太空科學實驗室 3 - -[entity-name] -assembling-machine-4=組裝機 4 -assembling-machine-5=組裝機 5 -electric-furnace-2=電爐 2 -electric-furnace-3=電爐 3 -chemical-plant-2=化工廠 2 -chemical-plant-3=化工廠 3 -oil-refinery-2=煉油廠 2 -oil-refinery-3=煉油廠 3 -centrifuge-2=離心機 2 -centrifuge-3=離心機 3 -lab-2=實驗室 2 -lab-3=實驗室 3 -electric-mining-drill-2=電能採礦機 2 -electric-mining-drill-3=電能採礦機 3 -pumpjack-2=抽油幫浦 2 -pumpjack-3=抽油幫浦 3 -electric-filter-furnace-2=智慧電爐 2 -electric-filter-furnace-3=智慧電爐 3 -industrial-furnace-2=工業熔爐 2 -industrial-furnace-3=工業熔爐 3 -fuel-processor-2=燃料加工機 2 -fuel-processor-3=燃料加工機 3 -area-mining-drill-2=大型採礦機 2 -area-mining-drill-3=大型採礦機 3 -se-space-assembling-machine-2=太空組裝機 2 -se-space-assembling-machine-3=太空組裝機 3 -se-space-manufactory-2=太空製造廠 2 -se-space-manufactory-3=太空製造廠 3 -se-casting-machine-2=鑄造機 2 -se-casting-machine-3=鑄造機 3 -se-pulveriser-2=粉碎機 2 -se-pulveriser-3=粉碎機 3 -se-lifesupport-facility-2=維生設施 2 -se-lifesupport-facility-3=維生設施 3 -se-fuel-refinery-2=燃料精煉廠 2 -se-fuel-refinery-3=燃料精煉廠 3 -se-core-miner-drill-2=星核鑽機 2 -se-core-miner-drill-3=星核鑽機 3 -se-space-decontamination-facility-2=淨化設施 2 -se-space-decontamination-facility-3=淨化設施 3 -se-space-genetics-laboratory-2=遺傳學實驗室 2 -se-space-genetics-laboratory-3=遺傳學實驗室 3 -se-space-growth-facility-2=培養設施 2 -se-space-growth-facility-3=培養設施 3 -se-space-biochemical-laboratory-2=生物化學實驗室 2 -se-space-biochemical-laboratory-3=生物化學實驗室 3 -se-space-radiation-laboratory-2=輻射實驗室 2 -se-space-radiation-laboratory-3=輻射實驗室 3 -se-space-electromagnetics-laboratory-2=電磁學設施 2 -se-space-electromagnetics-laboratory-3=電磁學設施 3 -se-space-laser-laboratory-2=雷射設施 2 -se-space-laser-laboratory-3=雷射設施 3 -se-space-astrometrics-laboratory-2=天體測量設施 2 -se-space-astrometrics-laboratory-3=天體測量設施 3 -se-space-gravimetrics-laboratory-2=重力學設施 2 -se-space-gravimetrics-laboratory-3=重力學設施 3 -se-space-mechanical-laboratory-2=空間機械加工設施 2 -se-space-mechanical-laboratory-3=空間機械加工設施 3 -se-space-material-fabricator-2=材料合成機 2 -se-space-material-fabricator-3=材料合成機 3 -se-space-particle-accelerator-2=粒子加速器 2 -se-space-particle-accelerator-3=粒子加速器 3 -se-space-particle-collider-2=粒子對撞機 2 -se-space-particle-collider-3=粒子對撞機 3 -se-space-plasma-generator-2=等離子發生器 2 -se-space-plasma-generator-3=等離子發生器 3 -se-space-hypercooler-2=超級冷卻器 2 -se-space-hypercooler-3=超級冷卻器 3 -se-space-radiator-3=散熱器 3 -se-space-radiator-4=散熱器 4 -se-space-telescope-2=望遠鏡 2 -se-space-telescope-3=望遠鏡 3 -se-space-telescope-gammaray-2=伽馬射線望遠鏡 2 -se-space-telescope-gammaray-3=伽馬射線望遠鏡 3 -se-space-telescope-microwave-2=微波望遠鏡 2 -se-space-telescope-microwave-3=微波望遠鏡 3 -se-space-telescope-radio-2=電波望遠鏡 2 -se-space-telescope-radio-3=電波望遠鏡 3 -se-space-telescope-xray-2=X射線望遠鏡 2 -se-space-telescope-xray-3=X射線望遠鏡 3 -se-space-science-lab-2=太空科學實驗室 2 -se-space-science-lab-3=太空科學實驗室 3 - -[entity-description] -assembling-machine-4=可加工流體原料的組裝機,而且還具備更快的組裝速度和組件插槽。 -assembling-machine-5=可加工流體原料的組裝機,而且還具備更快的組裝速度和組件插槽。 -electric-furnace-2=更快速、更方便的熔爐。 -electric-furnace-3=更快速、更方便的熔爐。 -chemical-plant-2=化工廠 2 -chemical-plant-3=化工廠 3 -oil-refinery-2=煉油廠 2 -oil-refinery-3=煉油廠 3 -centrifuge-2=加工多種有關鈾的配方。 -centrifuge-3=加工多種有關鈾的配方。 -lab-2=實驗室 2 -lab-3=實驗室 3 -electric-mining-drill-2=電能採礦機 2 -electric-mining-drill-3=電能採礦機 3 -pumpjack-2=抽油幫浦 2 -pumpjack-3=抽油幫浦 3 -electric-filter-furnace-2=更快速、更方便的熔爐。 -electric-filter-furnace-3=更快速、更方便的熔爐。 -industrial-furnace-2=與電爐相比,更大、速度快且具有更多插件插槽。需要選擇配方,但可以處理具有多種輸入和流體的高級的配方。 -industrial-furnace-3=與電爐相比,更大、速度快且具有更多插件插槽。需要選擇配方,但可以處理具有多種輸入和流體的高級的配方。 -fuel-processor-2=將任何化學燃料製成成加工燃料。 -fuel-processor-3=將任何化學燃料製成成加工燃料。 -area-mining-drill-2=具有更大作業範圍和額外插件插槽的礦機。 -area-mining-drill-3=具有更大作業範圍和額外插件插槽的礦機。 -se-space-assembling-machine-2=一台特製的組裝機,可以在太空中工作。 -se-space-assembling-machine-3=一台特製的組裝機,可以在太空中工作。 -se-space-manufactory-2=一個巨大的組裝機,可以製作更複雜的配方。只在太空(或飛船)中工作。 -se-space-manufactory-3=一個巨大的組裝機,可以製作更複雜的配方。只在太空(或飛船)中工作。 -se-casting-machine-2=圖形是佔位符。 -se-casting-machine-3=圖形是佔位符。 -se-pulveriser-2=粉碎和研磨較硬的礦物和行星核心碎片。 -se-pulveriser-3=粉碎和研磨較硬的礦物和行星核心碎片。 -se-lifesupport-facility-2=在更加惡劣的環境中支持生命。 -se-lifesupport-facility-3=在更加惡劣的環境中支持生命。 -se-fuel-refinery-2=一種自動的原油精煉建築物。 -se-fuel-refinery-3=一種自動的原油精煉建築物。 -se-core-miner-drill-2=允許從行星和衛星中無限地提取資源,但在同個星體中使用多個則會收益遞減。 -se-core-miner-drill-3=允許從行星和衛星中無限地提取資源,但在同個星體中使用多個則會收益遞減。 -se-space-decontamination-facility-2=淨化需要在無菌環境中使用的物質,並製備低壓條件下使用的液體。 -se-space-decontamination-facility-3=淨化需要在無菌環境中使用的物質,並製備低壓條件下使用的液體。 -se-space-genetics-laboratory-2=一所用於基因測序、基因修飾和基因印刷的實驗室。 -se-space-genetics-laboratory-3=一所用於基因測序、基因修飾和基因印刷的實驗室。 -se-space-growth-facility-2=在一些常規環境下無法實現的條件下培育生物,如微重力環境。 -se-space-growth-facility-3=在一些常規環境下無法實現的條件下培育生物,如微重力環境。 -se-space-biochemical-laboratory-2=一所重點研究生物化學的實驗室。 也可以用來進行基本的化學反應和原油處理。 -se-space-biochemical-laboratory-3=一所重點研究生物化學的實驗室。 也可以用來進行基本的化學反應和原油處理。 -se-space-radiation-laboratory-2=提供一個相對安全的環境來處理放射性物質,可以用來處理鈾。 -se-space-radiation-laboratory-3=提供一個相對安全的環境來處理放射性物質,可以用來處理鈾。 -se-space-electromagnetics-laboratory-2=用於強磁場和極高電壓環境下使用的設備。 -se-space-electromagnetics-laboratory-3=用於強磁場和極高電壓環境下使用的設備。 -se-space-laser-laboratory-2=雷射實驗場所,必須配戴護目鏡。 -se-space-laser-laboratory-3=雷射實驗場所,必須配戴護目鏡。 -se-space-astrometrics-laboratory-2=組合、比較和量化來自不同天體的資訊。 -se-space-astrometrics-laboratory-3=組合、比較和量化來自不同天體的資訊。 -se-space-gravimetrics-laboratory-2=分析並模擬重力擾動。 -se-space-gravimetrics-laboratory-3=分析並模擬重力擾動。 -se-space-mechanical-laboratory-2=提供一系列的機械加工工序:破碎,撕裂,剪切,振動等。 -se-space-mechanical-laboratory-3=提供一系列的機械加工工序:破碎,撕裂,剪切,振動等。 -se-space-material-fabricator-2=用來合成新材料,是粒子對撞機和3D列印機的完美融合。 -se-space-material-fabricator-3=用來合成新材料,是粒子對撞機和3D列印機的完美融合。 -se-space-particle-accelerator-2=將粒子加速到亞光速。 -se-space-particle-accelerator-3=將粒子加速到亞光速。 -se-space-particle-collider-2=使高速粒子相互撞擊並分析結果。 -se-space-particle-collider-3=使高速粒子相互撞擊並分析結果。 -se-space-plasma-generator-2=產生各種等離子體。 -se-space-plasma-generator-3=產生各種等離子體。 -se-space-hypercooler-2=使用熱流體進行熱交換,使一端更熱,另一端更冷。 -se-space-hypercooler-3=使用熱流體進行熱交換,使一端更熱,另一端更冷。 -se-space-radiator-3=從高溫熱流體中散發出多餘的熱量。 -se-space-radiator-4=從高溫熱流體中散發出多餘的熱量。 -se-space-telescope-2=精密的望遠鏡,對可見光譜範圍內的多個波長敏感。 -se-space-telescope-3=精密的望遠鏡,對可見光譜範圍內的多個波長敏感。 -se-space-telescope-gammaray-2=伽馬射線不會折射。這個強大的望遠鏡使用鏡子和特殊的感測器進行觀測。 -se-space-telescope-gammaray-3=伽馬射線不會折射。這個強大的望遠鏡使用鏡子和特殊的感測器進行觀測。 -se-space-telescope-microwave-2=一台巨大的望遠鏡,可以探測微波和宇宙微波背景。 -se-space-telescope-microwave-3=一台巨大的望遠鏡,可以探測微波和宇宙微波背景。 -se-space-telescope-radio-2=一台巨大的望遠鏡,可以偵測從非常遙遠距離發射的微弱的無線電波。 -se-space-telescope-radio-3=一台巨大的望遠鏡,可以偵測從非常遙遠距離發射的微弱的無線電波。 -se-space-telescope-xray-2=X射線會被大氣層阻擋,這個強大的望遠鏡轉為真空環境設計,在這裡大氣層不再是問題。 -se-space-telescope-xray-3=X射線會被大氣層阻擋,這個強大的望遠鏡轉為真空環境設計,在這裡大氣層不再是問題。 -se-space-science-lab-2=使用高級研究包進行研究,僅可在太空中使用。 -se-space-science-lab-3=使用高級研究包進行研究,僅可在太空中使用。 - -[mod-setting-name] -PHI-MB-ASSEMBLING-TIER=組裝機 -PHI-MB-FURNACE-TIER=電爐 -PHI-MB-OIL-TIER=煉油廠 -PHI-MB-CENTRIFUGE-TIER=離心機 -PHI-MB-LAB-TIER=實驗室 -PHI-MB-MINING-TIER=電能採礦機 -PHI-MB-SE-ASSEMBLING-TIER=太空組裝機 - -[mod-setting-description] -PHI-MB-ASSEMBLING-TIER=預設 5 ; 停用 3 -PHI-MB-FURNACE-TIER=預設 3 ; 停用 1 -PHI-MB-OIL-TIER=預設 3 ; 停用 1 -PHI-MB-CENTRIFUGE-TIER=預設 3 ; 停用 1 -PHI-MB-LAB-TIER=預設 3 ; 停用 1 -PHI-MB-MINING-TIER=預設 3 ; 停用 1 -PHI-MB-SE-ASSEMBLING-TIER=預設 3 ; 停用 1 diff --git a/OLD/PHI-MB/migrations/migrations.lua b/OLD/PHI-MB/migrations/migrations.lua deleted file mode 100644 index 238cd67..0000000 --- a/OLD/PHI-MB/migrations/migrations.lua +++ /dev/null @@ -1,23 +0,0 @@ -local items = require '__PHI-MB__/config' - -for _, force in pairs(game.forces) do - local technologies = force.technologies - local recipes = force.recipes - - for k, v in pairs(items) do - if k ~= 'setting' then - if v.enabled then - if technologies[v.tech] ~= nil then - if technologies[v.tech].researched then - for j=v.min, v.max, 1 do - if recipes[v.name .. '-' .. j] ~= nil then - recipes[v.name .. '-' .. j].enabled = true - recipes[v.name .. '-' .. j].reload() - end - end - end - end - end - end - end -end diff --git a/OLD/PHI-MB/settings.lua b/OLD/PHI-MB/settings.lua deleted file mode 100644 index 9c75452..0000000 --- a/OLD/PHI-MB/settings.lua +++ /dev/null @@ -1,51 +0,0 @@ -data:extend({ - { - type = 'int-setting', - name = 'PHI-MB-ASSEMBLING-TIER', - setting_type = 'startup', - default_value = 5, - allowed_values = {3, 4, 5}, - order = 'A1' - }, { - type = 'int-setting', - name = 'PHI-MB-FURNACE-TIER', - setting_type = 'startup', - default_value = 3, - allowed_values = {1, 2, 3}, - order = 'A2' - }, { - type = 'int-setting', - name = 'PHI-MB-OIL-TIER', - setting_type = 'startup', - default_value = 3, - allowed_values = {1, 2, 3}, - order = 'A3' - }, { - type = 'int-setting', - name = 'PHI-MB-CENTRIFUGE-TIER', - setting_type = 'startup', - default_value = 3, - allowed_values = {1, 2, 3}, - order = 'A4' - }, { - type = 'int-setting', - name = 'PHI-MB-LAB-TIER', - setting_type = 'startup', - default_value = 3, - allowed_values = {1, 2, 3}, - order = 'A5' - }, { - type = 'int-setting', - name = 'PHI-MB-MINING-TIER', - setting_type = 'startup', - default_value = 3, - allowed_values = {1, 2, 3}, - order = 'A6' - }, { - type = 'int-setting', - name = 'PHI-MB-SE-ASSEMBLING-TIER', - setting_type = 'startup', - default_value = 3, - allowed_values = {1, 2, 3}, - order = 'A7' - }}) \ No newline at end of file diff --git a/OLD/PHI-MB/thumbnail.png b/OLD/PHI-MB/thumbnail.png deleted file mode 100644 index ea60207..0000000 Binary files a/OLD/PHI-MB/thumbnail.png and /dev/null differ diff --git a/OLD/PHI-PB/.editorconfig b/OLD/PHI-PB/.editorconfig deleted file mode 100644 index 73c5516..0000000 --- a/OLD/PHI-PB/.editorconfig +++ /dev/null @@ -1,8 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 4 -charset = utf-8 -trim_trailing_whitespace = false -insert_final_newline = false \ No newline at end of file diff --git a/OLD/PHI-PB/.luacheckrc b/OLD/PHI-PB/.luacheckrc deleted file mode 100644 index 0da1ad4..0000000 --- a/OLD/PHI-PB/.luacheckrc +++ /dev/null @@ -1,1597 +0,0 @@ -------------------------------------------------------------------------------- ---[LICENSE]-- -------------------------------------------------------------------------------- --- .luacheckrc --- This file is free and unencumbered software released into the public domain. --- --- Anyone is free to copy, modify, publish, use, compile, sell, or --- distribute this file, either in source code form or as a compiled --- binary, for any purpose, commercial or non-commercial, and by any --- means. --- --- In jurisdictions that recognize copyright laws, the author or authors --- of this file dedicate any and all copyright interest in the --- software to the public domain. We make this dedication for the benefit --- of the public at large and to the detriment of our heirs and --- successors. We intend this dedication to be an overt act of --- relinquishment in perpetuity of all present and future rights to this --- software under copyright law. --- --- THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, --- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR --- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, --- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR --- OTHER DEALINGS IN THE SOFTWARE. --- --- For more information, please refer to --- ]] - --- Current Factorio Version 0.17.0, luacheck version 0.23.0 - -------------------------------------------------------------------------------- ---[Set Defaults]-- -------------------------------------------------------------------------------- -local LINE_LENGTH = false -- It is 2017 limits on length are a waste -local IGNORE = {'21./%w+_$', '21./^_%w+$', '213/[ijk]', '213/index', '213/key'} -local NOT_GLOBALS = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'} -- These globals are not available to the factorio API - -local STD_CONTROL = 'lua52c+factorio+factorio_control+stdlib+factorio_defines' -local STD_DATA = 'lua52c+factorio+factorio_data+stdlib+stdlib_data+factorio_defines' -local STD_LOVE = 'luajit+love+love_extra+stdlib+stdlib_data' - --- In a perfect world these would be STD_DATA and STD_CONTROL (mostly) -local STD_BASE_DATA = 'lua52c+factorio+factorio_data+factorio_defines+factorio_base_data' -local STD_BASE_CONTROL = 'lua52c+factorio+factorio_control+factorio_defines+factorio_base_control' - -------------------------------------------------------------------------------- ---[Assume Factorio Control stage as default]-- -------------------------------------------------------------------------------- -std = STD_CONTROL -max_line_length = LINE_LENGTH - -not_globals = NOT_GLOBALS -ignore = IGNORE -quiet = 1 -- pass -q option -max_cyclomatic_complexity = 75 -codes = true - ---List of files and directories to exclude -exclude_files = { - --Ignore special folders - '**/.*/*', --Ignore if path starts with . - '**/stdlib/vendor/', - '**/*WIP/', - - --Ignore development mods - '**/combat-tester/', - '**/test-maker/', - '**/trailer/', - - --Ignore love Includes - '**/love/includes/' -} - -------------------------------------------------------------------------------- ---[Mod Prototypes]-- -------------------------------------------------------------------------------- ---Set default prototype files -files['**/data.lua'].std = STD_DATA -files['**/data-updates.lua'].std = STD_DATA -files['**/data-final-fixes.lua'].std = STD_DATA -files['**/settings.lua'].std = STD_DATA -files['**/settings-updates.lua'].std = STD_DATA -files['**/settings-final-fixes.lua'].std = STD_DATA -files['**/prototypes/'].std = STD_DATA -files['**/settings/'].std = STD_DATA -files['**/love/'] = {std = STD_LOVE, globals = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'}} - -------------------------------------------------------------------------------- ---[Base]-- -------------------------------------------------------------------------------- ---Find and replace ignores *.cfg, migrations, *.txt, control.lua, *.json, trailer, scenarios, campaigns, *.glsl - -local base_scenarios = { - std = STD_BASE_CONTROL .. '+factorio_base_scenarios+factorio_base_story', - --ignore = {'212/event', '111', '112', '113', '211', '212', '213', '311', '411', '412', '421', '422', '423', '431', '432', '512'} - ignore = {'...'} -} -files['**/base/scenarios/'] = base_scenarios -files['**/base/tutorials/'] = base_scenarios -files['**/base/campaigns/'] = base_scenarios -files['**/wip-scenario/'] = base_scenarios - -files['**/base/migrations/'] = {std = STD_BASE_CONTROL} - -files['**/core/lualib/'] = {std = STD_BASE_CONTROL} -files['**/core/lualib/util.lua'] = {globals = {'util', 'table'}, ignore = {'432/object'}} -files['**/core/lualib/silo-script.lua'] = {globals = {'silo_script'}, ignore = {'4../player'}} -files['**/core/lualib/production-score.lua'] = {globals = {'production_score', 'get_price_recursive'}, ignore = {'4../player'}} -files['**/core/lualib/story*'] = {std = '+factorio_base_story', ignore = {'42./k', '42./filter'}} -files['**/core/lualib/mod-gui.lua'] = {globals = {'mod_gui'}} -files['**/core/lualib/camera.lua'] = {globals = {'camera'}} -files['**/core/lualib/builder.lua'] = {globals = {'Builder', 'builder', 'action', 'down', 'right'}} - -files['**/core/lualib/bonus-gui-ordering/'] = {std = STD_BASE_DATA} -files['**/core/lualib/dataloader.lua'] = {globals = {'data'}} -files['**/core/lualib/circuit-connector-*'] = {std = STD_BASE_DATA..'+factorio_circuit_connector_generated'} -files['**/core/lualib/bonus-gui-ordering.lua'] = {globals = {'bonus_gui_ordering'}} - -files['**/base/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/noise-programs.lua'] = {ignore = {'212/x', '212/y', '212/tile', '212/map'}} - ---(( stdlib ))-- -local stdlib_control = { - std = 'lua52c+factorio+factorio_control+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - -local stdlib_data = { - std = 'lua52c+factorio+factorio_data+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - --- Assume control stage for stdlib -files['**/stdlib/'] = stdlib_control - --- Assume generic content for stdlib utils -files['**/stdlib/utils/**'].std = 'lua52c+stdlib' - --- STDLIB data files -files['**/stdlib/data/'] = stdlib_data - --- STDLIB Busted Spec -files['**/spec/**'] = { - globals = {'serpent', 'log', 'SLOG', 'RESET'}, - std = 'lua52c+busted+factorio_defines+factorio_control+stdlib' -} --)) - ---(( Factorio ))-- -stds.factorio = { - --Set the read only variables - read_globals = { - -- @log@: Gives writing access to Factorio's logger instance. - "log", - -- @serpent@: Lua serializer and pretty printer. (https://github.com/pkulchenko/serpent) - "serpent", - -- @table_size@: Returns the number of elements inside an LUA table - "table_size", - util = { - fields = { - "by_pixel", "distance", "findfirstentity", "positiontostr", "formattime", "moveposition", "oppositedirection", - "ismoduleavailable", "multiplystripes", "format_number", "increment", "color", "conditional_return", - "add_shift", "merge", "premul_color", "encode", "decode", "insert_safe", - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, - }, - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, -} - -stds.factorio_control = { - read_globals = { - - -- @commands@: - commands = { - fields = { - "add_command", "commands", "game_commands", "remove_command" - }, - }, - - -- @settings@: - settings = { - fields = { - "get_player_settings", - startup = {read_only = false, other_fields = true}, - global = {read_only = false, other_fields = true}, - player = {read_only = false, other_fields = true}, - }, - }, - - -- @script@: Provides an interface for registering event handlers. - -- (http://lua-api.factorio.com/latest/LuaBootstrap.html) - script = { - fields = { - "on_event", "on_nth_tick", "on_configuration_changed", "on_init", "on_load", "generate_event_name", - "raise_event", "get_event_handler", "mod_name", "get_event_order" - }, - other_fields = false, - }, - - -- @remote@: Allows inter-mod communication by providing a repository of interfaces that is shared by all mods. - -- (http://lua-api.factorio.com/latest/LuaRemote.html) - remote = { - fields = { - interfaces = {read_only = false, other_fields = true}, - "add_interface", "remove_interface", "call" - }, - read_only = true, - other_fields = false, - }, - - rcon = { - fields = {'print'} - }, - - rendering = { - other_fields = false, - read_only = true, - fields = { - 'draw_animation', - 'draw_line', - 'draw_text', - 'draw_circle', - 'draw_rectangle', - 'draw_arc', - 'draw_polygon', - 'draw_sprite', - 'draw_light', - 'destroy', - 'is_font_valid', - 'is_valid', - 'get_all_ids', - 'clear', - 'get_type', - 'get_surface', - 'get_time_to_live', - 'set_time_to_live', - 'get_forces', - 'set_forces', - 'get_players', - 'set_players', - 'get_color', - 'set_color', - 'get_width', - 'set_width', - 'get_from', - 'set_from', - 'get_to', - 'set_to', - 'get_gap_amount', - 'set_gap_amount', - 'get_gap_length', - 'set_gap_length', - 'get_target', - 'set_target', - 'get_orientation', - 'set_orientation', - 'get_scale', - 'set_scale', - 'get_text', - 'set_text', - 'get_font', - 'set_font', - 'get_alignment', - 'set_alignment', - 'get_scale_with_zoom', - 'set_scale_with_zoom', - 'get_filled', - 'set_filled', - 'get_radius', - 'set_radius', - 'get_left_top', - 'set_left_top', - 'get_right_bottom', - 'set_right_bottom', - 'get_max_radius', - 'set_max_radius', - 'get_min_radius', - 'set_min_radius', - 'get_start_angle', - 'set_start_angle', - 'get_angle', - 'set_angle', - 'get_vertices', - 'set_vertices', - 'get_sprite', - 'set_sprite', - 'get_x_scale', - 'set_x_scale', - 'get_y_scale', - 'set_y_scale', - 'get_render_layer', - 'set_render_layer', - 'get_orientation_target', - 'set_orientation_target', - 'get_oriented_offset', - 'set_oriented_offset', - 'get_intensity', - 'set_intensity', - 'get_minimum_darkness', - 'set_minimum_darkness' - } - }, - - -- @game@: Main object through which most of the API is accessed. - -- It is, however, not available inside handlers registered with @script.on_load@. - -- (http://lua-api.factorio.com/latest/LuaGameScript.html) - game ={ - other_fields = false, - read_only = false, - fields = { - "auto_save", - "ban_player", - "check_consistency", - "check_prototype_translations", - "count_pipe_groups", - "create_force", - "create_profiler", - "create_random_generator", - "get_surface", - "create_surface", - "delete_surface", - "desync_players", - "direction_to_string", - "disable_replay", - "disable_tips_and_tricks", - "draw_resource_selection", - "force_crc", - "get_active_entities_count", - "get_entity_by_tag", - "get_map_exchange_string", - "get_player", - "help", - "is_demo", - "is_multiplayer", - "is_valid_sound_path", - "json_to_table", - "kick_player", - "merge_forces", - "mute_player", - "play_sound", - "print", - "print_stack_size", - "purge_player", - "regenerate_entity", - "reload_mods", - "reload_script", - "remove_offline_players", - "remove_path", - "save_atlas", - "server_save", - "set_game_state", - "show_message_dialog", - "table_to_json", - "take_screenshot", - "take_technology_screenshot", - "unban_player", - "unmute_player", - "write_file", - "get_filtered_entity_prototypes", - "get_filtered_item_prototypes", - "get_filtered_equipment_prototypes", - "get_filtered_mod_setting_prototypes", - "get_filtered_achievement_prototypes", - - active_mods = {read_only = true, other_fields = true}, - ammo_category_prototypes = {read_only = true, other_fields = true}, - autoplace_control_prototypes = {read_only = true, other_fields = true}, - backer_names = {read_only = true, other_fields = true}, - connected_players = {read_only = true, other_fields = true}, - custom_input_prototypes = {read_only = true, other_fields = true}, - damage_prototypes = {read_only = true, other_fields = true}, - decorative_prototypes = {read_only = true, other_fields = true}, - default_map_gen_settings = {read_only = true, other_fields = true}, - difficulty = {read_only = true, other_fields = true}, - difficulty_settings = {read_only = true, other_fields = true}, - enemy_has_vision_on_land_mines = {read_only = false, other_fields = false}, - entity_prototypes = {read_only = true, other_fields = true}, - equipment_grid_prototypes = {read_only = true, other_fields = true}, - equipment_prototypes = {read_only = true, other_fields = true}, - finished = {read_only = true, other_fields = true}, - fluid_prototypes = {read_only = true, other_fields = true}, - forces = {read_only = true, other_fields = true}, - item_prototypes = {read_only = true, other_fields = true}, - map_settings = {read_only = true, other_fields = true}, - mod_setting_prototypes = {read_only = true, other_fields = true}, - noise_layer_prototypes = {read_only = true, other_fields = true}, - permissions = {read_only = true, other_fields = true}, - player = {read_only = true, other_fields = true}, - players = {read_only = true, other_fields = true}, - recipe_prototypes = {read_only = true, other_fields = true}, - speed = {read_only = false, other_fields = false}, - styles = {read_only = true, other_fields = true}, - surfaces = {read_only = true, other_fields = true}, - technology_prototypes = {read_only = true, other_fields = true}, - tick = {read_only = true, other_fields = true}, - tick_paused = {read_only = false, other_fields = false}, - ticks_played = {read_only = true, other_fields = true}, - ticks_to_run = {read_only = false, other_fields = false}, - tile_prototypes = {read_only = true, other_fields = true}, - virtual_signal_prototypes = {read_only = true, other_fields = true}, - pollution_statistics = {read_only = true, other_fields = true} - }, - }, - }, - - globals = { - -- @global@: The global dictionary, useful for storing data persistent across a save-load cycle. - -- Writing access is given to the mod-id field (for mod-wise saved data). - -- (http://lua-api.factorio.com/latest/Global.html) - "global", - - -- @MOD@: Keep it organized, use this variable for anything that "NEEDS" to be global for some reason. - "MOD" - }, -} - -stds.factorio_data = { - - read_globals = { - data = { - fields = { - raw = { - other_fields = true, - read_only = false - }, - "extend", "is_demo" - }, - }, - - settings = { - fields = { - "startup", "global", "player", - }, - }, - - --Popular mods - angelsmods = { - other_fields = true - }, - - bobmods = { - other_fields = true - }, - - mods = { - other_fields = true - } - } -} --)) - ---(( Factorio Globals are bad mkay ))-- -stds.factorio_base_control = { - read_globals = {"silo_script", "mod_gui", "camera"} -} - -stds.factorio_base_scenarios = { - globals = { - "check_automate_science_packs_advice", "check_research_hints", "check_supplies", "manage_attacks", "all_dead", - "on_win", "difficulty_number", "init_attack_data", "handle_attacks", "count_items_in_container", "progress", "scanned", - "check_light", "check_machine_gun", "level", "story_table", - - "tightspot_prices", "tightspot_make_offer", "tightspot_init", "tightspot_get_required_balance", - "tightspot_init_level", "tightspot_init_spending_frame", "tightspot_init_progress_frame", "tightspot_update_progress", "tightspot_update_spending", - "tightspot_get_missing_to_win", "tightspot_sell_back", "tightspot_start_level", "tightspot_show_level_description", "tightspot_update_speed_label", - "map_ignore", "tightspot_check_level", "land_price", - - "transport_belt_madness_init", "transport_belt_madness_init_level", "transport_belt_madness_create_chests", "transport_belt_madness_fill_chests", - "transport_belt_madness_start_level", "map_ignore", "map_clear", "map_load", "map_save", "transport_belt_madness_show_level_description", - "transport_belt_madness_check_level", "transport_belt_madness_next_level", "transport_belt_madness_clear_level", "transport_belt_madness_contains_next_level", - - "restricted", "check_built_items", "result", "disable_combat_technologies", "apply_character_modifiers", "apply_combat_modifiers", "apply_balance", - "load_config", "starting_area_constant", "create_next_surface", "end_round", "prepare_next_round", "silo_died","choose_joining_gui", - "destroy_joining_guis", "create_random_join_gui", "create_auto_assign_gui", "create_pick_join_gui", "create_config_gui", "make_config_table", "default", - "make_team_gui", "make_team_gui_config", "add_team_button_press", "trash_team_button_press", "remove_team_from_team_table", "add_team_to_team_table", - "set_teams_from_gui", "on_team_button_press", "make_color_dropdown", "create_balance_option", "create_disable_frame", "disable_frame", "parse_disabled_items", - "set_balance_settings", "config_confirm", "parse_config_from_gui", "get_color", "roll_starting_area", "delete_roll_surfaces", "auto_assign", - "destroy_config_for_all", "prepare_map", "set_evolution_factor", "update_players_on_team_count", "random_join", "init_player_gui", - "destroy_player_gui", "objective_button_press", "admin_button_press", "admin_frame_button_press", "diplomacy_button_press", "update_diplomacy_frame", - "diplomacy_frame_button_press", "team_changed_diplomacy", "diplomacy_check_press", "get_stance", "give_inventory", "setup_teams", "disable_items_for_all", - "set_random_team", "set_diplomacy", "create_spawn_positions", "set_spawn_position", "set_team_together_spawns", "chart_starting_area_for_force_spawns", - "check_starting_area_chunks_are_generated", "check_player_color", "check_round_start", "clear_starting_area_enemies", "check_no_rush_end", "check_no_rush_players", - "finish_setup", "chart_area_for_force", "setup_start_area_copy", "update_copy_progress", "update_progress_bar", "copy_paste_starting_area_tiles", - "copy_paste_starting_area_entities", "create_silo_for_force", "setup_research", "on_chunk_generated", "get_distance_to_nearest_spawn", - "create_wall_for_force", "fpn", "give_items", "create_item_frame", "create_technologies_frame", "create_cheat_frame", "create_day_frame", - "time_modifier", "points_per_second_start", "points_per_second_level_subtract", "levels", "update_info", "get_time_left", "update_time_left", - "on_joined", "make_frame", "update_frame", "update_table", "calculate_task_item_multiplayer", "setup_config", "select_from_probability_table", - "select_inventory", "select_equipment", "select_challange_type", "save_round_statistics", "start_challenge", "create_teams", "set_areas", - "decide_player_team", "set_teams", "refresh_leaderboard", "set_player", "generate_technology_list", "generate_research_task","setup_unlocks", - "check_technology_progress", "generate_production_task", "generate_shopping_list_task", "set_gui_flow_table", "create_visibility_button", - "check_item_lists", "update_task_gui", "check_end_of_round", "end_round_gui_update", "try_to_check_victory", "update_gui", "check_start_round", - "check_start_set_areas", "check_start_setting_entities", "check_set_areas", "check_clear_areas", "check_chests", "check_chests_shopping_list", - "check_chests_production", "check_input_chests", "fill_input_chests", "check_victory", "shopping_task_finished", "calculate_force_points", - "update_research_task_table", "update_production_task_table", "update_shopping_list_task_table", "create_joined_game_gui", "pre_ending_round", - "player_ending_prompt", "update_end_timer", "update_begin_timer", "team_finished", "save_points_list", "give_force_players_points", - "update_winners_list", "set_spectator", "set_character", "give_starting_inventory", "give_equipment", "shuffle_table", "format_time", - "spairs", "fill_leaderboard", "create_grid", "simple_entities", "save_map_data", "clear_map", "create_tiles", "recreate_entities", - "map_sets", "give_points", "init_forces", "init_globals", "init_unit_settings", "check_next_wave", "next_wave", "calculate_wave_power", - "wave_end", "make_next_spawn_tick", "check_spawn_units", "get_wave_units", "spawn_units", "randomize_ore", "set_command", "command_straglers", - "unit_config", "make_next_wave_tick", "time_to_next_wave", "time_to_wave_end", "rocket_died", "unit_died", "get_bounty_price", "setup_waypoints", - "insert_items", "give_starting_equipment", "give_spawn_equipment", "next_round_button_visible", "gui_init", "create_wave_frame", "create_money_frame", - "create_upgrade_gui", "update_upgrade_listing", "upgrade_research", "get_upgrades", "get_money", "update_connected_players", "update_round_number", - "set_research", "set_recipes", "check_deconstruction", "check_blueprint_placement", "loop_entities", "experiment_items", - "setup", "story_gui_click", "clear_surface", "add_run_trains_button", "puzzle_condition", "basic_signals", - "loop_trains", "Y_offset", "ghosts_1", "ghosts_2", "required_path", "through_wall_path", "count", "check_built_real_rail", - "current_ghosts_count", "other", "rails", "set_rails", "straight_section", "late_entities", "entities", "stop", - "get_spawn_coordinate", - - --tutorials - "intermission", "create_entities_on_tick", "on_player_created", "required_count", "non_player_entities", "clear_rails", - "chest", "damage", "furnace", "init_prototypes", "build_infi_table", "junk", "update_player_tags", "time_left", "team_production", - "create_task_frame", "create_visibilty_buttons", "update_leaderboard", "in_in_area" - } -} - -stds.factorio_base_data = { - globals = { - --Style - "make_cursor_box", "make_full_cursor_box", - "default_container_padding", "default_orange_color", "default_light_orange_color", "warning_red_color", - "achievement_green_color", "achievement_tan_color", "orangebuttongraphcialset", "bluebuttongraphcialset", - "bonus_gui_ordering", "trivial_smoke", "technology_slot_base_width", "technology_slot_base_height", "default_frame_font_vertical_compensation", - - --Belts - "transport_belt_connector_frame_sprites", "transport_belt_circuit_wire_connection_point", "transport_belt_circuit_wire_max_distance", - "transport_belt_circuit_connector_sprites", "ending_patch_prototype", "basic_belt_horizontal", "basic_belt_vertical", - "basic_belt_ending_top", "basic_belt_ending_bottom", "basic_belt_ending_side", "basic_belt_starting_top", "basic_belt_starting_bottom", - "basic_belt_starting_side", "fast_belt_horizontal", "fast_belt_vertical", "fast_belt_ending_top", "fast_belt_ending_bottom", - "fast_belt_ending_side", "fast_belt_starting_top", "fast_belt_starting_bottom", "fast_belt_starting_side", "express_belt_horizontal", - "express_belt_vertical", "express_belt_ending_top", "express_belt_ending_bottom", "express_belt_ending_side", "express_belt_starting_top", - "express_belt_starting_bottom", "express_belt_starting_side", - - --Circuit Connectors - "circuit_connector_definitions", "default_circuit_wire_max_distance", "inserter_circuit_wire_max_distance", - "universal_connector_template", "belt_connector_template", "belt_frame_connector_template", "inserter_connector_template", - - --Inserter Circuit Connectors - "inserter_circuit_wire_max_distance", "inserter_default_stack_control_input_signal", - - --Sounds/beams - "make_heavy_gunshot_sounds", "make_light_gunshot_sounds", "make_laser_sounds", - - --Gun/Laser - "gun_turret_extension", "gun_turret_extension_shadow", "gun_turret_extension_mask", "gun_turret_attack", - "laser_turret_extension", "laser_turret_extension_shadow", "laser_turret_extension_mask", - - --Pipes - "pipecoverspictures", "pipepictures", "assembler2pipepictures", "assembler3pipepictures", "make_heat_pipe_pictures", - - --Combinators - "generate_arithmetic_combinator", "generate_decider_combinator", "generate_constant_combinator", - - --Rail - "destroyed_rail_pictures", "rail_pictures", "rail_pictures_internal", "standard_train_wheels", "drive_over_tie", - "rolling_stock_back_light", "rolling_stock_stand_by_light", - - --Enemies - "make_enemy_autoplace", "make_enemy_spawner_autoplace", "make_enemy_worm_autoplace", - "make_spitter_attack_animation", "make_spitter_run_animation", "make_spitter_dying_animation", - "make_spitter_attack_parameters", "make_spitter_roars", "make_spitter_dying_sounds", - "make_spawner_idle_animation", "make_spawner_die_animation", - "make_biter_run_animation", "make_biter_attack_animation", "make_biter_die_animation", - "make_biter_roars", "make_biter_dying_sounds", "make_biter_calls", - "make_worm_roars", "make_worm_dying_sounds", "make_worm_folded_animation", "make_worm_preparing_animation", - "make_worm_prepared_animation", "make_worm_attack_animation", "make_worm_die_animation", - - --Other - "tile_variations_template", "make_water_autoplace_settings", - "make_unit_melee_ammo_type", "make_trivial_smoke", "make_4way_animation_from_spritesheet", "flying_robot_sounds", - "productivitymodulelimitation", "crash_trigger", "capsule_smoke", "make_beam", "playeranimations", - "make_blood_tint", "make_shadow_tint", - - --tiles - "water_transition_template", "make_water_transition_template", "water_autoplace_settings", "water_tile_type_names", - "patch_for_inner_corner_of_transition_between_transition", - } -} - -stds.factorio_base_story = { - globals = { - "story_init_helpers", "story_update_table", "story_init", "story_update", "story_on_tick", "story_add_update", - "story_remove_update", "story_jump_to", "story_elapsed", "story_elapsed_check", "story_show_message_dialog", - "set_goal", "player_set_goal", "on_player_joined", "flash_goal", "set_info", "player_set_info", "export_entities", - "list", "recreate_entities", "entity_to_connect", "limit_camera", "find_gui_recursive", "enable_entity_export", - "add_button", "on_gui_click", "set_continue_button_style", "add_message_log", "story_add_message_log", - "player_add_message_log", "message_log_frame", "message_log_scrollpane", "message_log_close_button", - "message_log_table", "toggle_message_log_button", "toggle_objective_button", "message_log_init", - "add_gui_recursive", "add_toggle_message_log_button", "add_toggle_objective_button", "mod_gui", - "flash_message_log_button", "flash_message_log_on_tick", "story_gui_click", "story_points_by_name", "story_branches", - "player", "surface", "deconstruct_on_tick", "recreate_entities_on_tick", "flying_congrats", "story_table" - } -} - -stds.factorio_circuit_connector_generated = { - globals = { - 'default_circuit_wire_max_distance', 'circuit_connector_definitions', 'universal_connector_template', - 'belt_connector_template', 'belt_frame_connector_template', 'inserter_connector_template', 'inserter_connector_template', - 'inserter_circuit_wire_max_distance', 'inserter_default_stack_control_input_signal', 'transport_belt_connector_frame_sprites', - 'transport_belt_circuit_wire_max_distance', - } -} --)) - ---(( STDLIB ))-- -stds.stdlib = { - read_globals = { - }, - globals = { - "STDLIB", - "prequire", "rawtostring", "traceback", "inspect", "serpent", "inline_if", "install", "log", - "concat", - "GAME", "AREA", "POSITION", "TILE", "SURFACE", "CHUNK", "COLOR", "ENTITY", "INVENTORY", - "RESOURCE", "CONFIG", "LOGGER", "QUEUE", "EVENT", "GUI", "PLAYER", "FORCE", - "MATH", "STRING", "TABLE", - } -} - -stds.stdlib_control = { -} - -stds.stdlib_data = { - globals = { - 'DATA', 'RECIPE', 'ITEM', 'FLUID', 'ENTITY', 'TECHNOLOGY', 'CATEGORY' - } -} --)) - ---(( FACTORIO DEFINES ))-- -stds.factorio_defines = { - read_globals = { - defines = { - fields = { - alert_type = { - fields = { - 'custom', - 'entity_destroyed', - 'entity_under_attack', - 'no_material_for_construction', - 'no_storage', - 'not_enough_construction_robots', - 'not_enough_repair_packs', - 'train_out_of_fuel', - 'turret_fire', - 'fluid_mixing' - } - }, - behavior_result = { - fields = { - 'deleted', - 'fail', - 'in_progress', - 'success' - } - }, - build_check_type = { - fields = { - 'ghost_place', - 'ghost_revive', - 'manual', - 'script' - } - }, - chain_signal_state = { - fields = { - 'all_open', - 'none', - 'none_open', - 'partially_open' - } - }, - chunk_generated_status = { - fields = { - 'basic_tiles', - 'corrected_tiles', - 'custom_tiles', - 'entities', - 'nothing', - 'tiles' - } - }, - circuit_condition_index = { - fields = { - 'arithmetic_combinator', - 'constant_combinator', - 'decider_combinator', - 'inserter_circuit', - 'inserter_logistic', - 'lamp', - 'offshore_pump', - 'pump' - } - }, - circuit_connector_id = { - fields = { - 'accumulator', - 'combinator_input', - 'combinator_output', - 'constant_combinator', - 'container', - 'electric_pole', - 'inserter', - 'lamp', - 'offshore_pump', - 'programmable_speaker', - 'pump', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'wall' - } - }, - command = { - fields = { - 'attack', - 'attack_area', - 'build_base', - 'compound', - 'flee', - 'go_to_location', - 'group', - 'stop', - 'wander' - } - }, - compound_command = { - fields = { - 'logical_and', - 'logical_or', - 'return_last' - } - }, - control_behavior = { - fields = { - inserter = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'none', - 'read_hand_contents', - 'set_filters', - 'set_stack_size' - } - }, - hand_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - lamp = { - fields = { - circuit_mode_of_operation = { - fields = { - 'use_colors' - } - } - } - }, - logistic_container = { - fields = { - circuit_mode_of_operation = { - fields = { - 'send_contents', - 'set_requests' - } - } - } - }, - mining_drill = { - fields = { - resource_read_mode = { - fields = { - 'entire_patch', - 'this_miner' - } - } - } - }, - roboport = { - fields = { - circuit_mode_of_operation = { - fields = { - 'read_logistics', - 'read_robot_stats' - } - } - } - }, - train_stop = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'read_from_train', - 'read_stopped_train', - 'send_to_train' - } - } - } - }, - transport_belt = { - fields = { - content_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - type = { - fields = { - 'accumulator', - 'arithmetic_combinator', - 'constant_combinator', - 'container', - 'decider_combinator', - 'generic_on_off', - 'inserter', - 'lamp', - 'logistic_container', - 'mining_drill', - 'programmable_speaker', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'train_stop', - 'transport_belt', - 'wall' - } - } - } - }, - controllers = { - fields = { - 'character', - 'cutscene', - 'editor', - 'ghost', - 'god', - 'spectator' - } - }, - deconstruction_item = { - fields = { - entity_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_selection_mode = { - fields = { - 'always', - 'never', - 'normal', - 'only' - } - } - } - }, - difficulty = { - fields = { - 'easy', - 'hard', - 'normal' - } - }, - difficulty_settings = { - fields = { - recipe_difficulty = { - fields = { - 'expensive', - 'normal' - } - }, - technology_difficulty = { - fields = { - 'expensive', - 'normal' - } - } - } - }, - direction = { - fields = { - 'east', - 'north', - 'northeast', - 'northwest', - 'south', - 'southeast', - 'southwest', - 'west' - } - }, - distraction = { - fields = { - 'by_anything', - 'by_damage', - 'by_enemy', - 'none' - } - }, - entity_status = { - fields = { - 'working', - 'no_power', - 'no_fuel', - 'no_recipe', - 'no_input_fluid', - 'no_research_in_progress', - 'no_minable_resources', - 'low_input_fluid', - 'low_power', - 'disabled_by_control_behavior', - 'disabled_by_script', - 'fluid_ingredient_shortage', - 'fluid_production_overload', - 'item_ingredient_shortage', - 'item_production_overload', - 'marked_for_deconstruction', - 'missing_required_fluid', - 'missing_science_packs', - 'waiting_for_source_items', - 'waiting_for_space_in_destination', - } - }, - render_mode = { - fields = { - 'game', - 'chart', - 'chart_zoomed_in' - } - }, - events = { - fields = { - 'on_ai_command_completed', - 'on_area_cloned', - 'on_biter_base_built', - 'on_built_entity', - 'on_cancelled_deconstruction', - 'on_cancelled_upgrade', - 'on_character_corpse_expired', - 'on_chart_tag_added', - 'on_chart_tag_modified', - 'on_chart_tag_removed', - 'on_chunk_charted', - 'on_chunk_deleted', - 'on_chunk_generated', - 'on_combat_robot_expired', - 'on_console_chat', - 'on_console_command', - 'on_cutscene_waypoint_reached', - 'on_difficulty_settings_changed', - 'on_entity_cloned', - 'on_entity_damaged', - 'on_entity_died', - 'on_entity_renamed', - 'on_entity_settings_pasted', - 'on_entity_spawned', - 'on_force_created', - 'on_forces_merged', - 'on_forces_merging', - 'on_game_created_from_scenario', - 'on_gui_checked_state_changed', - 'on_gui_click', - 'on_gui_closed', - 'on_gui_confirmed', - 'on_gui_elem_changed', - 'on_gui_location_changed', - 'on_gui_opened', - 'on_gui_selected_tab_changed', - 'on_gui_selection_state_changed', - 'on_gui_switch_state_changed', - 'on_gui_text_changed', - 'on_gui_value_changed', - 'on_land_mine_armed', - 'on_lua_shortcut', - 'on_marked_for_deconstruction', - 'on_marked_for_upgrade', - 'on_market_item_purchased', - 'on_mod_item_opened', - 'on_picked_up_item', - 'on_player_alt_selected_area', - 'on_player_ammo_inventory_changed', - 'on_player_armor_inventory_changed', - 'on_player_banned', - 'on_player_built_tile', - 'on_player_cancelled_crafting', - 'on_player_changed_force', - 'on_player_changed_position', - 'on_player_changed_surface', - 'on_player_cheat_mode_disabled', - 'on_player_cheat_mode_enabled', - 'on_player_configured_blueprint', - 'on_player_crafted_item', - 'on_player_created', - 'on_player_cursor_stack_changed', - 'on_player_deconstructed_area', - 'on_player_demoted', - 'on_player_died', - 'on_player_display_resolution_changed', - 'on_player_display_scale_changed', - 'on_player_driving_changed_state', - 'on_player_dropped_item', - 'on_player_fast_transferred', - 'on_player_gun_inventory_changed', - 'on_player_joined_game', - 'on_player_kicked', - 'on_player_left_game', - 'on_player_main_inventory_changed', - 'on_player_mined_entity', - 'on_player_mined_item', - 'on_player_mined_tile', - 'on_player_muted', - 'on_player_pipette', - 'on_player_placed_equipment', - 'on_player_promoted', - 'on_player_removed', - 'on_player_removed_equipment', - 'on_player_repaired_entity', - 'on_player_respawned', - 'on_player_rotated_entity', - 'on_player_selected_area', - 'on_player_setup_blueprint', - 'on_player_toggled_alt_mode', - 'on_player_toggled_map_editor', - 'on_player_tool_inventory_changed', - 'on_player_trash_inventory_changed', - 'on_player_unbanned', - 'on_player_unmuted', - 'on_player_used_capsule', - 'on_post_entity_died', - 'on_pre_chunk_deleted', - 'on_pre_entity_settings_pasted', - 'on_pre_ghost_deconstructed', - 'on_pre_player_crafted_item', - 'on_pre_player_died', - 'on_pre_player_left_game', - 'on_pre_player_mined_item', - 'on_pre_player_removed', - 'on_pre_robot_exploded_cliff', - 'on_pre_surface_cleared', - 'on_pre_surface_deleted', - 'on_put_item', - 'on_research_finished', - 'on_research_started', - 'on_resource_depleted', - 'on_robot_built_entity', - 'on_robot_built_tile', - 'on_robot_exploded_cliff', - 'on_robot_mined', - 'on_robot_mined_entity', - 'on_robot_mined_tile', - 'on_robot_pre_mined', - 'on_rocket_launch_ordered', - 'on_rocket_launched', - 'on_runtime_mod_setting_changed', - 'on_script_path_request_finished', - 'on_sector_scanned', - 'on_selected_entity_changed', - 'on_surface_cleared', - 'on_surface_created', - 'on_surface_deleted', - 'on_surface_imported', - 'on_surface_renamed', - 'on_technology_effects_reset', - 'on_tick', - 'on_train_changed_state', - 'on_train_created', - 'on_train_schedule_changed', - 'on_trigger_created_entity', - 'on_trigger_fired_artillery', - 'on_unit_added_to_group', - 'on_unit_group_created', - 'on_unit_removed_from_group', - 'script_raised_built', - 'script_raised_destroy', - 'script_raised_revive' - } - }, - flow_precision_index = { - fields = { - 'fifty_hours', - 'one_hour', - 'one_minute', - 'one_second', - 'one_thousand_hours', - 'ten_hours', - 'ten_minutes', - 'two_hundred_fifty_hours' - } - }, - group_state = { - fields = { - 'attacking_distraction', - 'attacking_target', - 'finished', - 'gathering', - 'moving' - } - }, - gui_type = { - fields = { - 'achievement', - 'blueprint_library', - 'bonus', - 'controller', - 'custom', - 'entity', - 'equipment', - 'item', - 'kills', - 'logistic', - 'none', - 'other_player', - 'permissions', - 'player_management', - 'production', - 'research', - 'server_management', - 'trains', - 'tutorials' - } - }, - input_action = { - fields = { - 'activate_copy', - 'activate_cut', - 'activate_paste', - 'add_permission_group', - 'add_train_station', - 'admin_action', - 'alt_select_area', - 'alt_select_blueprint_entities', - 'alternative_copy', - 'begin_mining', - 'begin_mining_terrain', - 'build_item', - 'build_rail', - 'build_terrain', - 'cancel_craft', - 'cancel_deconstruct', - 'cancel_new_blueprint', - 'cancel_research', - 'cancel_upgrade', - 'change_active_item_group_for_crafting', - 'change_active_item_group_for_filters', - 'change_active_quick_bar', - 'change_arithmetic_combinator_parameters', - 'change_blueprint_book_record_label', - 'change_decider_combinator_parameters', - 'change_item_label', - 'change_multiplayer_config', - 'change_picking_state', - 'change_programmable_speaker_alert_parameters', - 'change_programmable_speaker_circuit_parameters', - 'change_programmable_speaker_parameters', - 'change_riding_state', - 'change_shooting_state', - 'change_single_blueprint_record_label', - 'change_train_stop_station', - 'change_train_wait_condition', - 'change_train_wait_condition_data', - 'clean_cursor_stack', - 'clear_selected_blueprint', - 'clear_selected_deconstruction_item', - 'clear_selected_upgrade_item', - 'connect_rolling_stock', - 'copy', - 'copy_entity_settings', - 'craft', - 'create_blueprint_like', - 'cursor_split', - 'cursor_transfer', - 'custom_input', - 'cycle_blueprint_book_backwards', - 'cycle_blueprint_book_forwards', - 'deconstruct', - 'delete_blueprint_library', - 'delete_blueprint_record', - 'delete_custom_tag', - 'delete_permission_group', - 'destroy_opened_item', - 'disconnect_rolling_stock', - 'drag_train_schedule', - 'drag_train_wait_condition', - 'drop_blueprint_record', - 'drop_item', - 'drop_to_blueprint_book', - 'edit_custom_tag', - 'edit_permission_group', - 'export_blueprint', - 'fast_entity_split', - 'fast_entity_transfer', - 'go_to_train_station', - 'grab_blueprint_record', - 'gui_checked_state_changed', - 'gui_click', - 'gui_confirmed', - 'gui_elem_changed', - 'gui_location_changed', - 'gui_selected_tab_changed', - 'gui_selection_state_changed', - 'gui_switch_state_changed', - 'gui_text_changed', - 'gui_value_changed', - 'import_blueprint', - 'import_blueprint_string', - 'import_permissions_string', - 'inventory_split', - 'inventory_transfer', - 'launch_rocket', - 'map_editor_action', - 'market_offer', - 'mod_settings_changed', - 'open_achievements_gui', - 'open_blueprint_library_gui', - 'open_blueprint_record', - 'open_bonus_gui', - 'open_character_gui', - 'open_equipment', - 'open_gui', - 'open_item', - 'open_kills_gui', - 'open_logistic_gui', - 'open_mod_item', - 'open_production_gui', - 'open_technology_gui', - 'open_train_gui', - 'open_train_station_gui', - 'open_trains_gui', - 'open_tutorials_gui', - 'paste_entity_settings', - 'place_equipment', - 'quick_bar_pick_slot', - 'quick_bar_set_selected_page', - 'quick_bar_set_slot', - 'remove_cables', - 'remove_train_station', - 'reset_assembling_machine', - 'rotate_entity', - 'select_area', - 'select_blueprint_entities', - 'select_entity_slot', - 'select_item', - 'select_mapper_slot', - 'select_next_valid_gun', - 'select_tile_slot', - 'set_auto_launch_rocket', - 'set_autosort_inventory', - 'set_behavior_mode', - 'set_car_weapons_control', - 'set_circuit_condition', - 'set_circuit_mode_of_operation', - 'set_deconstruction_item_tile_selection_mode', - 'set_deconstruction_item_trees_and_rocks_only', - 'set_entity_color', - 'set_entity_energy_property', - 'set_filter', - 'set_heat_interface_mode', - 'set_heat_interface_temperature', - 'set_infinity_container_filter_item', - 'set_infinity_container_remove_unfiltered_items', - 'set_infinity_pipe_filter', - 'set_inserter_max_stack_size', - 'set_inventory_bar', - 'set_logistic_filter_item', - 'set_logistic_filter_signal', - 'set_logistic_trash_filter_item', - 'set_request_from_buffers', - 'set_research_finished_stops_game', - 'set_signal', - 'set_single_blueprint_record_icon', - 'set_splitter_priority', - 'set_train_stopped', - 'setup_assembling_machine', - 'setup_blueprint', - 'setup_single_blueprint_record', - 'smart_pipette', - 'stack_split', - 'stack_transfer', - 'start_repair', - 'start_research', - 'start_walking', - 'switch_connect_to_logistic_network', - 'switch_constant_combinator_state', - 'switch_inserter_filter_mode_state', - 'switch_power_switch_state', - 'switch_to_rename_stop_gui', - 'take_equipment', - 'toggle_deconstruction_item_entity_filter_mode', - 'toggle_deconstruction_item_tile_filter_mode', - 'toggle_driving', - 'toggle_enable_vehicle_logistics_while_moving', - 'toggle_equipment_movement_bonus', - 'toggle_map_editor', - 'toggle_personal_roboport', - 'toggle_show_entity_info', - 'undo', - 'upgrade', - 'upgrade_opened_blueprint', - 'use_artillery_remote', - 'use_item', - 'wire_dragging', - 'write_to_console' - } - }, - inventory = { - fields = { - 'artillery_turret_ammo', - 'artillery_wagon_ammo', - 'assembling_machine_input', - 'assembling_machine_modules', - 'assembling_machine_output', - 'beacon_modules', - 'burnt_result', - 'car_ammo', - 'car_trunk', - 'cargo_wagon', - 'character_corpse', - 'chest', - 'editor_main', - 'editor_guns', - 'editor_ammo', - 'editor_armor', - 'fuel', - 'furnace_modules', - 'furnace_result', - 'furnace_source', - 'god_main', - 'item_main', - 'lab_input', - 'lab_modules', - 'mining_drill_modules', - 'character_ammo', - 'character_armor', - 'character_guns', - 'character_main', - 'character_trash', - 'character_vehicle', - 'roboport_material', - 'roboport_robot', - 'robot_cargo', - 'robot_repair', - 'rocket', - 'rocket_silo_result', - 'rocket_silo_rocket', - 'turret_ammo' - } - }, - logistic_member_index = { - fields = { - 'character_provider', - 'character_requester', - 'character_storage', - 'generic_on_off_behavior', - 'logistic_container', - 'vehicle_storage' - } - }, - logistic_mode = { - fields = { - 'active_provider', - 'buffer', - 'none', - 'passive_provider', - 'requester', - 'storage' - } - }, - mouse_button_type = { - fields = { - 'left', - 'middle', - 'none', - 'right' - } - }, - rail_connection_direction = { - fields = { - 'left', - 'none', - 'right', - 'straight' - } - }, - rail_direction = { - fields = { - 'back', - 'front' - } - }, - riding = { - fields = { - acceleration = { - fields = { - 'accelerating', - 'braking', - 'nothing', - 'reversing' - } - }, - direction = { - fields = { - 'left', - 'right', - 'straight' - } - } - } - }, - shooting = { - fields = { - 'not_shooting', - 'shooting_enemies', - 'shooting_selected' - } - }, - signal_state = { - fields = { - 'closed', - 'open', - 'reserved', - 'reserved_by_circuit_network' - } - }, - train_state = { - fields = { - 'arrive_signal', - 'arrive_station', - 'manual_control', - 'manual_control_stop', - 'no_path', - 'no_schedule', - 'on_the_path', - 'path_lost', - 'wait_signal', - 'wait_station' - } - }, - transport_line = { - fields = { - 'left_line', - 'left_split_line', - 'left_underground_line', - 'right_line', - 'right_split_line', - 'right_underground_line', - 'secondary_left_line', - 'secondary_left_split_line', - 'secondary_right_line', - 'secondary_right_split_line' - } - }, - wire_connection_id = { - fields = { - 'electric_pole', - 'power_switch_left', - 'power_switch_right' - } - }, - wire_type = { - fields = { - 'copper', - 'green', - 'red' - } - }, - -- Defines additional modules - color = { - other_fields = true - }, - anticolor = { - other_fields = true - }, - lightcolor = { - other_fields = true - }, - time = { - fields = { - 'second', - 'minute', - 'hour', - 'day', - 'week', - 'month', - 'year' - } - } - } - } - } -}--)) - -stds.love_extra = { - read_globals = { - love = { - fields = { - arg = { - fields = { - 'parseGameArguments', 'parseOption', 'getLow', 'optionIndices', 'options' - } - } - } - } - }, - globals = { - --'coroutine', 'io', 'socket', 'dofile', 'loadfile', - love = { - fields = { - 'handlers' - } - } - } -} - ---[[ Options - "ignore", "std", "globals", "unused_args", "self", "compat", "global", "unused", "redefined", - "unused_secondaries", "allow_defined", "allow_defined_top", "module", - "read_globals", "new_globals", "new_read_globals", "enable", "only", "not_globals", - "max_line_length", "max_code_line_length", "max_string_line_length", "max_comment_line_length", - "max_cyclomatic_complexity" ---]] - ---[[ Warnings list - -- 011 A syntax error. - -- 021 An invalid inline option. - -- 022 An unpaired inline push directive. - -- 023 An unpaired inline pop directive. - -- 111 Setting an undefined global variable. - -- 112 Mutating an undefined global variable. - -- 113 Accessing an undefined global variable. - -- 121 Setting a read-only global variable. - -- 122 Setting a read-only field of a global variable. - -- 131 Unused implicitly defined global variable. - -- 142 Setting an undefined field of a global variable. - -- 143 Accessing an undefined field of a global variable. - -- 211 Unused local variable. - -- 212 Unused argument. - -- 213 Unused loop variable. - -- 221 Local variable is accessed but never set. - -- 231 Local variable is set but never accessed. - -- 232 An argument is set but never accessed. - -- 233 Loop variable is set but never accessed. - -- 241 Local variable is mutated but never accessed. - -- 311 Value assigned to a local variable is unused. - -- 312 Value of an argument is unused. - -- 313 Value of a loop variable is unused. - -- 314 Value of a field in a table literal is unused. - -- 321 Accessing uninitialized local variable. - -- 331 Value assigned to a local variable is mutated but never accessed. - -- 341 Mutating uninitialized local variable. - -- 411 Redefining a local variable. - -- 412 Redefining an argument. - -- 413 Redefining a loop variable. - -- 421 Shadowing a local variable. - -- 422 Shadowing an argument. - -- 423 Shadowing a loop variable. - -- 431 Shadowing an upvalue. - -- 432 Shadowing an upvalue argument. - -- 433 Shadowing an upvalue loop variable. - -- 511 Unreachable code. - -- 512 Loop can be executed at most once. - -- 521 Unused label. - -- 531 Left-hand side of an assignment is too short. - -- 532 Left-hand side of an assignment is too long. - -- 541 An empty do end block. - -- 542 An empty if branch. - -- 551 An empty statement. - -- 611 A line consists of nothing but whitespace. - -- 612 A line contains trailing whitespace. - -- 613 Trailing whitespace in a string. - -- 614 Trailing whitespace in a comment. - -- 621 Inconsistent indentation (SPACE followed by TAB). - -- 631 Line is too long. ---]] \ No newline at end of file diff --git a/OLD/PHI-PB/changelog.txt b/OLD/PHI-PB/changelog.txt deleted file mode 100644 index 39c7894..0000000 --- a/OLD/PHI-PB/changelog.txt +++ /dev/null @@ -1,6 +0,0 @@ ---------------------------------------------------------------------------------------------------- -Version: 1.1.0 -Date: 2022-12-01 - -Added: - - Player Bonus diff --git a/OLD/PHI-PB/config.lua b/OLD/PHI-PB/config.lua deleted file mode 100644 index a4fdd81..0000000 --- a/OLD/PHI-PB/config.lua +++ /dev/null @@ -1,96 +0,0 @@ -local items = { - ['manual_mining_speed_modifier'] = { - enabled = true, - val = 2 - }, - ['character_running_speed_modifier'] = { - enabled = true, - val = 1 - }, - ['manual_crafting_speed_modifier'] = { - enabled = true, - val = 5 - }, - ['character_reach_distance_bonus'] = { - enabled = true, - val = 10 - }, - ['character_resource_reach_distance_bonus'] = { - enabled = true, - val = 10 - }, - ['character_build_distance_bonus'] = { - enabled = true, - val = 10 - }, - ['character_item_pickup_distance_bonus'] = { - enabled = false, - val = 0 - }, - ['character_loot_pickup_distance_bonus'] = { - enabled = false, - val = 0 - }, - ['character_item_drop_distance_bonus'] = { - enabled = false, - val = 5 - }, - ['character_inventory_slots_bonus'] = { - enabled = true, - val = 100 - }, - ['character_health_bonus'] = { - enabled = true, - val = 200 - }, - ['worker_robots_speed_modifier'] = { - enabled = true, - val = 1.3 - }, - ['worker_robots_battery_modifier'] = { - enabled = true, - val = 1 - }, - ['worker_robots_storage_bonus'] = { - enabled = true, - val = 1 - }, - ['following_robots_lifetime_modifier'] = { - enabled = true, - val = 1 - }, - ['character_trash_slot_count'] = { - enabled = false, - val = 20 - }, - ['mining_drill_productivity_bonus'] = { - enabled = false, - val = 0 - }, - ['train_braking_force_bonus'] = { - enabled = false, - val = 0 - }, - ['laboratory_speed_modifier'] = { - enabled = false, - val = 0 - }, - ['laboratory_productivity_bonus'] = { - enabled = false, - val = 0 - }, - ['inserter_stack_size_bonus'] = { - enabled = false, - val = 0 - }, - ['stack_inserter_capacity_bonus'] = { - enabled = false, - val = 0 - }, - ['artillery_range_modifier'] = { - enabled = false, - val = 0 - } -} - -return items diff --git a/OLD/PHI-PB/control.lua b/OLD/PHI-PB/control.lua deleted file mode 100644 index 9eca2a7..0000000 --- a/OLD/PHI-PB/control.lua +++ /dev/null @@ -1,19 +0,0 @@ -local config = require 'config' - -script.on_event(defines.events.on_player_created, function(event) - if event.player_index == 1 then - for k, v in pairs(config) do - if (v.enabled) then - game.forces.player[k] = game.forces.player[k] + v.val - end - end - end -end) - -script.on_event(defines.events.on_player_died, function(event) - local player = game.players[event.player_index] - - if (player.character) then - player.ticks_to_respawn = 120 - end -end) diff --git a/OLD/PHI-PB/info.json b/OLD/PHI-PB/info.json deleted file mode 100644 index c02aeae..0000000 --- a/OLD/PHI-PB/info.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "PHI-PB", - "version": "1.0.3", - "factorio_version": "1.1", - "date": "2023-05-09", - "title": "Phidias Player Bonus", - "author": "PHIDIAS0303", - "contributers": "", - "homepage": "", - "description": "", - "dependencies": [ - "base >= 1.1.0" - ] -} \ No newline at end of file diff --git a/OLD/PHI-PB/thumbnail.png b/OLD/PHI-PB/thumbnail.png deleted file mode 100644 index ea60207..0000000 Binary files a/OLD/PHI-PB/thumbnail.png and /dev/null differ diff --git a/OLD/PHI-RS/.editorconfig b/OLD/PHI-RS/.editorconfig deleted file mode 100644 index 73c5516..0000000 --- a/OLD/PHI-RS/.editorconfig +++ /dev/null @@ -1,8 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 4 -charset = utf-8 -trim_trailing_whitespace = false -insert_final_newline = false \ No newline at end of file diff --git a/OLD/PHI-RS/.luacheckrc b/OLD/PHI-RS/.luacheckrc deleted file mode 100644 index 0da1ad4..0000000 --- a/OLD/PHI-RS/.luacheckrc +++ /dev/null @@ -1,1597 +0,0 @@ -------------------------------------------------------------------------------- ---[LICENSE]-- -------------------------------------------------------------------------------- --- .luacheckrc --- This file is free and unencumbered software released into the public domain. --- --- Anyone is free to copy, modify, publish, use, compile, sell, or --- distribute this file, either in source code form or as a compiled --- binary, for any purpose, commercial or non-commercial, and by any --- means. --- --- In jurisdictions that recognize copyright laws, the author or authors --- of this file dedicate any and all copyright interest in the --- software to the public domain. We make this dedication for the benefit --- of the public at large and to the detriment of our heirs and --- successors. We intend this dedication to be an overt act of --- relinquishment in perpetuity of all present and future rights to this --- software under copyright law. --- --- THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, --- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR --- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, --- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR --- OTHER DEALINGS IN THE SOFTWARE. --- --- For more information, please refer to --- ]] - --- Current Factorio Version 0.17.0, luacheck version 0.23.0 - -------------------------------------------------------------------------------- ---[Set Defaults]-- -------------------------------------------------------------------------------- -local LINE_LENGTH = false -- It is 2017 limits on length are a waste -local IGNORE = {'21./%w+_$', '21./^_%w+$', '213/[ijk]', '213/index', '213/key'} -local NOT_GLOBALS = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'} -- These globals are not available to the factorio API - -local STD_CONTROL = 'lua52c+factorio+factorio_control+stdlib+factorio_defines' -local STD_DATA = 'lua52c+factorio+factorio_data+stdlib+stdlib_data+factorio_defines' -local STD_LOVE = 'luajit+love+love_extra+stdlib+stdlib_data' - --- In a perfect world these would be STD_DATA and STD_CONTROL (mostly) -local STD_BASE_DATA = 'lua52c+factorio+factorio_data+factorio_defines+factorio_base_data' -local STD_BASE_CONTROL = 'lua52c+factorio+factorio_control+factorio_defines+factorio_base_control' - -------------------------------------------------------------------------------- ---[Assume Factorio Control stage as default]-- -------------------------------------------------------------------------------- -std = STD_CONTROL -max_line_length = LINE_LENGTH - -not_globals = NOT_GLOBALS -ignore = IGNORE -quiet = 1 -- pass -q option -max_cyclomatic_complexity = 75 -codes = true - ---List of files and directories to exclude -exclude_files = { - --Ignore special folders - '**/.*/*', --Ignore if path starts with . - '**/stdlib/vendor/', - '**/*WIP/', - - --Ignore development mods - '**/combat-tester/', - '**/test-maker/', - '**/trailer/', - - --Ignore love Includes - '**/love/includes/' -} - -------------------------------------------------------------------------------- ---[Mod Prototypes]-- -------------------------------------------------------------------------------- ---Set default prototype files -files['**/data.lua'].std = STD_DATA -files['**/data-updates.lua'].std = STD_DATA -files['**/data-final-fixes.lua'].std = STD_DATA -files['**/settings.lua'].std = STD_DATA -files['**/settings-updates.lua'].std = STD_DATA -files['**/settings-final-fixes.lua'].std = STD_DATA -files['**/prototypes/'].std = STD_DATA -files['**/settings/'].std = STD_DATA -files['**/love/'] = {std = STD_LOVE, globals = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'}} - -------------------------------------------------------------------------------- ---[Base]-- -------------------------------------------------------------------------------- ---Find and replace ignores *.cfg, migrations, *.txt, control.lua, *.json, trailer, scenarios, campaigns, *.glsl - -local base_scenarios = { - std = STD_BASE_CONTROL .. '+factorio_base_scenarios+factorio_base_story', - --ignore = {'212/event', '111', '112', '113', '211', '212', '213', '311', '411', '412', '421', '422', '423', '431', '432', '512'} - ignore = {'...'} -} -files['**/base/scenarios/'] = base_scenarios -files['**/base/tutorials/'] = base_scenarios -files['**/base/campaigns/'] = base_scenarios -files['**/wip-scenario/'] = base_scenarios - -files['**/base/migrations/'] = {std = STD_BASE_CONTROL} - -files['**/core/lualib/'] = {std = STD_BASE_CONTROL} -files['**/core/lualib/util.lua'] = {globals = {'util', 'table'}, ignore = {'432/object'}} -files['**/core/lualib/silo-script.lua'] = {globals = {'silo_script'}, ignore = {'4../player'}} -files['**/core/lualib/production-score.lua'] = {globals = {'production_score', 'get_price_recursive'}, ignore = {'4../player'}} -files['**/core/lualib/story*'] = {std = '+factorio_base_story', ignore = {'42./k', '42./filter'}} -files['**/core/lualib/mod-gui.lua'] = {globals = {'mod_gui'}} -files['**/core/lualib/camera.lua'] = {globals = {'camera'}} -files['**/core/lualib/builder.lua'] = {globals = {'Builder', 'builder', 'action', 'down', 'right'}} - -files['**/core/lualib/bonus-gui-ordering/'] = {std = STD_BASE_DATA} -files['**/core/lualib/dataloader.lua'] = {globals = {'data'}} -files['**/core/lualib/circuit-connector-*'] = {std = STD_BASE_DATA..'+factorio_circuit_connector_generated'} -files['**/core/lualib/bonus-gui-ordering.lua'] = {globals = {'bonus_gui_ordering'}} - -files['**/base/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/noise-programs.lua'] = {ignore = {'212/x', '212/y', '212/tile', '212/map'}} - ---(( stdlib ))-- -local stdlib_control = { - std = 'lua52c+factorio+factorio_control+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - -local stdlib_data = { - std = 'lua52c+factorio+factorio_data+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - --- Assume control stage for stdlib -files['**/stdlib/'] = stdlib_control - --- Assume generic content for stdlib utils -files['**/stdlib/utils/**'].std = 'lua52c+stdlib' - --- STDLIB data files -files['**/stdlib/data/'] = stdlib_data - --- STDLIB Busted Spec -files['**/spec/**'] = { - globals = {'serpent', 'log', 'SLOG', 'RESET'}, - std = 'lua52c+busted+factorio_defines+factorio_control+stdlib' -} --)) - ---(( Factorio ))-- -stds.factorio = { - --Set the read only variables - read_globals = { - -- @log@: Gives writing access to Factorio's logger instance. - "log", - -- @serpent@: Lua serializer and pretty printer. (https://github.com/pkulchenko/serpent) - "serpent", - -- @table_size@: Returns the number of elements inside an LUA table - "table_size", - util = { - fields = { - "by_pixel", "distance", "findfirstentity", "positiontostr", "formattime", "moveposition", "oppositedirection", - "ismoduleavailable", "multiplystripes", "format_number", "increment", "color", "conditional_return", - "add_shift", "merge", "premul_color", "encode", "decode", "insert_safe", - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, - }, - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, -} - -stds.factorio_control = { - read_globals = { - - -- @commands@: - commands = { - fields = { - "add_command", "commands", "game_commands", "remove_command" - }, - }, - - -- @settings@: - settings = { - fields = { - "get_player_settings", - startup = {read_only = false, other_fields = true}, - global = {read_only = false, other_fields = true}, - player = {read_only = false, other_fields = true}, - }, - }, - - -- @script@: Provides an interface for registering event handlers. - -- (http://lua-api.factorio.com/latest/LuaBootstrap.html) - script = { - fields = { - "on_event", "on_nth_tick", "on_configuration_changed", "on_init", "on_load", "generate_event_name", - "raise_event", "get_event_handler", "mod_name", "get_event_order" - }, - other_fields = false, - }, - - -- @remote@: Allows inter-mod communication by providing a repository of interfaces that is shared by all mods. - -- (http://lua-api.factorio.com/latest/LuaRemote.html) - remote = { - fields = { - interfaces = {read_only = false, other_fields = true}, - "add_interface", "remove_interface", "call" - }, - read_only = true, - other_fields = false, - }, - - rcon = { - fields = {'print'} - }, - - rendering = { - other_fields = false, - read_only = true, - fields = { - 'draw_animation', - 'draw_line', - 'draw_text', - 'draw_circle', - 'draw_rectangle', - 'draw_arc', - 'draw_polygon', - 'draw_sprite', - 'draw_light', - 'destroy', - 'is_font_valid', - 'is_valid', - 'get_all_ids', - 'clear', - 'get_type', - 'get_surface', - 'get_time_to_live', - 'set_time_to_live', - 'get_forces', - 'set_forces', - 'get_players', - 'set_players', - 'get_color', - 'set_color', - 'get_width', - 'set_width', - 'get_from', - 'set_from', - 'get_to', - 'set_to', - 'get_gap_amount', - 'set_gap_amount', - 'get_gap_length', - 'set_gap_length', - 'get_target', - 'set_target', - 'get_orientation', - 'set_orientation', - 'get_scale', - 'set_scale', - 'get_text', - 'set_text', - 'get_font', - 'set_font', - 'get_alignment', - 'set_alignment', - 'get_scale_with_zoom', - 'set_scale_with_zoom', - 'get_filled', - 'set_filled', - 'get_radius', - 'set_radius', - 'get_left_top', - 'set_left_top', - 'get_right_bottom', - 'set_right_bottom', - 'get_max_radius', - 'set_max_radius', - 'get_min_radius', - 'set_min_radius', - 'get_start_angle', - 'set_start_angle', - 'get_angle', - 'set_angle', - 'get_vertices', - 'set_vertices', - 'get_sprite', - 'set_sprite', - 'get_x_scale', - 'set_x_scale', - 'get_y_scale', - 'set_y_scale', - 'get_render_layer', - 'set_render_layer', - 'get_orientation_target', - 'set_orientation_target', - 'get_oriented_offset', - 'set_oriented_offset', - 'get_intensity', - 'set_intensity', - 'get_minimum_darkness', - 'set_minimum_darkness' - } - }, - - -- @game@: Main object through which most of the API is accessed. - -- It is, however, not available inside handlers registered with @script.on_load@. - -- (http://lua-api.factorio.com/latest/LuaGameScript.html) - game ={ - other_fields = false, - read_only = false, - fields = { - "auto_save", - "ban_player", - "check_consistency", - "check_prototype_translations", - "count_pipe_groups", - "create_force", - "create_profiler", - "create_random_generator", - "get_surface", - "create_surface", - "delete_surface", - "desync_players", - "direction_to_string", - "disable_replay", - "disable_tips_and_tricks", - "draw_resource_selection", - "force_crc", - "get_active_entities_count", - "get_entity_by_tag", - "get_map_exchange_string", - "get_player", - "help", - "is_demo", - "is_multiplayer", - "is_valid_sound_path", - "json_to_table", - "kick_player", - "merge_forces", - "mute_player", - "play_sound", - "print", - "print_stack_size", - "purge_player", - "regenerate_entity", - "reload_mods", - "reload_script", - "remove_offline_players", - "remove_path", - "save_atlas", - "server_save", - "set_game_state", - "show_message_dialog", - "table_to_json", - "take_screenshot", - "take_technology_screenshot", - "unban_player", - "unmute_player", - "write_file", - "get_filtered_entity_prototypes", - "get_filtered_item_prototypes", - "get_filtered_equipment_prototypes", - "get_filtered_mod_setting_prototypes", - "get_filtered_achievement_prototypes", - - active_mods = {read_only = true, other_fields = true}, - ammo_category_prototypes = {read_only = true, other_fields = true}, - autoplace_control_prototypes = {read_only = true, other_fields = true}, - backer_names = {read_only = true, other_fields = true}, - connected_players = {read_only = true, other_fields = true}, - custom_input_prototypes = {read_only = true, other_fields = true}, - damage_prototypes = {read_only = true, other_fields = true}, - decorative_prototypes = {read_only = true, other_fields = true}, - default_map_gen_settings = {read_only = true, other_fields = true}, - difficulty = {read_only = true, other_fields = true}, - difficulty_settings = {read_only = true, other_fields = true}, - enemy_has_vision_on_land_mines = {read_only = false, other_fields = false}, - entity_prototypes = {read_only = true, other_fields = true}, - equipment_grid_prototypes = {read_only = true, other_fields = true}, - equipment_prototypes = {read_only = true, other_fields = true}, - finished = {read_only = true, other_fields = true}, - fluid_prototypes = {read_only = true, other_fields = true}, - forces = {read_only = true, other_fields = true}, - item_prototypes = {read_only = true, other_fields = true}, - map_settings = {read_only = true, other_fields = true}, - mod_setting_prototypes = {read_only = true, other_fields = true}, - noise_layer_prototypes = {read_only = true, other_fields = true}, - permissions = {read_only = true, other_fields = true}, - player = {read_only = true, other_fields = true}, - players = {read_only = true, other_fields = true}, - recipe_prototypes = {read_only = true, other_fields = true}, - speed = {read_only = false, other_fields = false}, - styles = {read_only = true, other_fields = true}, - surfaces = {read_only = true, other_fields = true}, - technology_prototypes = {read_only = true, other_fields = true}, - tick = {read_only = true, other_fields = true}, - tick_paused = {read_only = false, other_fields = false}, - ticks_played = {read_only = true, other_fields = true}, - ticks_to_run = {read_only = false, other_fields = false}, - tile_prototypes = {read_only = true, other_fields = true}, - virtual_signal_prototypes = {read_only = true, other_fields = true}, - pollution_statistics = {read_only = true, other_fields = true} - }, - }, - }, - - globals = { - -- @global@: The global dictionary, useful for storing data persistent across a save-load cycle. - -- Writing access is given to the mod-id field (for mod-wise saved data). - -- (http://lua-api.factorio.com/latest/Global.html) - "global", - - -- @MOD@: Keep it organized, use this variable for anything that "NEEDS" to be global for some reason. - "MOD" - }, -} - -stds.factorio_data = { - - read_globals = { - data = { - fields = { - raw = { - other_fields = true, - read_only = false - }, - "extend", "is_demo" - }, - }, - - settings = { - fields = { - "startup", "global", "player", - }, - }, - - --Popular mods - angelsmods = { - other_fields = true - }, - - bobmods = { - other_fields = true - }, - - mods = { - other_fields = true - } - } -} --)) - ---(( Factorio Globals are bad mkay ))-- -stds.factorio_base_control = { - read_globals = {"silo_script", "mod_gui", "camera"} -} - -stds.factorio_base_scenarios = { - globals = { - "check_automate_science_packs_advice", "check_research_hints", "check_supplies", "manage_attacks", "all_dead", - "on_win", "difficulty_number", "init_attack_data", "handle_attacks", "count_items_in_container", "progress", "scanned", - "check_light", "check_machine_gun", "level", "story_table", - - "tightspot_prices", "tightspot_make_offer", "tightspot_init", "tightspot_get_required_balance", - "tightspot_init_level", "tightspot_init_spending_frame", "tightspot_init_progress_frame", "tightspot_update_progress", "tightspot_update_spending", - "tightspot_get_missing_to_win", "tightspot_sell_back", "tightspot_start_level", "tightspot_show_level_description", "tightspot_update_speed_label", - "map_ignore", "tightspot_check_level", "land_price", - - "transport_belt_madness_init", "transport_belt_madness_init_level", "transport_belt_madness_create_chests", "transport_belt_madness_fill_chests", - "transport_belt_madness_start_level", "map_ignore", "map_clear", "map_load", "map_save", "transport_belt_madness_show_level_description", - "transport_belt_madness_check_level", "transport_belt_madness_next_level", "transport_belt_madness_clear_level", "transport_belt_madness_contains_next_level", - - "restricted", "check_built_items", "result", "disable_combat_technologies", "apply_character_modifiers", "apply_combat_modifiers", "apply_balance", - "load_config", "starting_area_constant", "create_next_surface", "end_round", "prepare_next_round", "silo_died","choose_joining_gui", - "destroy_joining_guis", "create_random_join_gui", "create_auto_assign_gui", "create_pick_join_gui", "create_config_gui", "make_config_table", "default", - "make_team_gui", "make_team_gui_config", "add_team_button_press", "trash_team_button_press", "remove_team_from_team_table", "add_team_to_team_table", - "set_teams_from_gui", "on_team_button_press", "make_color_dropdown", "create_balance_option", "create_disable_frame", "disable_frame", "parse_disabled_items", - "set_balance_settings", "config_confirm", "parse_config_from_gui", "get_color", "roll_starting_area", "delete_roll_surfaces", "auto_assign", - "destroy_config_for_all", "prepare_map", "set_evolution_factor", "update_players_on_team_count", "random_join", "init_player_gui", - "destroy_player_gui", "objective_button_press", "admin_button_press", "admin_frame_button_press", "diplomacy_button_press", "update_diplomacy_frame", - "diplomacy_frame_button_press", "team_changed_diplomacy", "diplomacy_check_press", "get_stance", "give_inventory", "setup_teams", "disable_items_for_all", - "set_random_team", "set_diplomacy", "create_spawn_positions", "set_spawn_position", "set_team_together_spawns", "chart_starting_area_for_force_spawns", - "check_starting_area_chunks_are_generated", "check_player_color", "check_round_start", "clear_starting_area_enemies", "check_no_rush_end", "check_no_rush_players", - "finish_setup", "chart_area_for_force", "setup_start_area_copy", "update_copy_progress", "update_progress_bar", "copy_paste_starting_area_tiles", - "copy_paste_starting_area_entities", "create_silo_for_force", "setup_research", "on_chunk_generated", "get_distance_to_nearest_spawn", - "create_wall_for_force", "fpn", "give_items", "create_item_frame", "create_technologies_frame", "create_cheat_frame", "create_day_frame", - "time_modifier", "points_per_second_start", "points_per_second_level_subtract", "levels", "update_info", "get_time_left", "update_time_left", - "on_joined", "make_frame", "update_frame", "update_table", "calculate_task_item_multiplayer", "setup_config", "select_from_probability_table", - "select_inventory", "select_equipment", "select_challange_type", "save_round_statistics", "start_challenge", "create_teams", "set_areas", - "decide_player_team", "set_teams", "refresh_leaderboard", "set_player", "generate_technology_list", "generate_research_task","setup_unlocks", - "check_technology_progress", "generate_production_task", "generate_shopping_list_task", "set_gui_flow_table", "create_visibility_button", - "check_item_lists", "update_task_gui", "check_end_of_round", "end_round_gui_update", "try_to_check_victory", "update_gui", "check_start_round", - "check_start_set_areas", "check_start_setting_entities", "check_set_areas", "check_clear_areas", "check_chests", "check_chests_shopping_list", - "check_chests_production", "check_input_chests", "fill_input_chests", "check_victory", "shopping_task_finished", "calculate_force_points", - "update_research_task_table", "update_production_task_table", "update_shopping_list_task_table", "create_joined_game_gui", "pre_ending_round", - "player_ending_prompt", "update_end_timer", "update_begin_timer", "team_finished", "save_points_list", "give_force_players_points", - "update_winners_list", "set_spectator", "set_character", "give_starting_inventory", "give_equipment", "shuffle_table", "format_time", - "spairs", "fill_leaderboard", "create_grid", "simple_entities", "save_map_data", "clear_map", "create_tiles", "recreate_entities", - "map_sets", "give_points", "init_forces", "init_globals", "init_unit_settings", "check_next_wave", "next_wave", "calculate_wave_power", - "wave_end", "make_next_spawn_tick", "check_spawn_units", "get_wave_units", "spawn_units", "randomize_ore", "set_command", "command_straglers", - "unit_config", "make_next_wave_tick", "time_to_next_wave", "time_to_wave_end", "rocket_died", "unit_died", "get_bounty_price", "setup_waypoints", - "insert_items", "give_starting_equipment", "give_spawn_equipment", "next_round_button_visible", "gui_init", "create_wave_frame", "create_money_frame", - "create_upgrade_gui", "update_upgrade_listing", "upgrade_research", "get_upgrades", "get_money", "update_connected_players", "update_round_number", - "set_research", "set_recipes", "check_deconstruction", "check_blueprint_placement", "loop_entities", "experiment_items", - "setup", "story_gui_click", "clear_surface", "add_run_trains_button", "puzzle_condition", "basic_signals", - "loop_trains", "Y_offset", "ghosts_1", "ghosts_2", "required_path", "through_wall_path", "count", "check_built_real_rail", - "current_ghosts_count", "other", "rails", "set_rails", "straight_section", "late_entities", "entities", "stop", - "get_spawn_coordinate", - - --tutorials - "intermission", "create_entities_on_tick", "on_player_created", "required_count", "non_player_entities", "clear_rails", - "chest", "damage", "furnace", "init_prototypes", "build_infi_table", "junk", "update_player_tags", "time_left", "team_production", - "create_task_frame", "create_visibilty_buttons", "update_leaderboard", "in_in_area" - } -} - -stds.factorio_base_data = { - globals = { - --Style - "make_cursor_box", "make_full_cursor_box", - "default_container_padding", "default_orange_color", "default_light_orange_color", "warning_red_color", - "achievement_green_color", "achievement_tan_color", "orangebuttongraphcialset", "bluebuttongraphcialset", - "bonus_gui_ordering", "trivial_smoke", "technology_slot_base_width", "technology_slot_base_height", "default_frame_font_vertical_compensation", - - --Belts - "transport_belt_connector_frame_sprites", "transport_belt_circuit_wire_connection_point", "transport_belt_circuit_wire_max_distance", - "transport_belt_circuit_connector_sprites", "ending_patch_prototype", "basic_belt_horizontal", "basic_belt_vertical", - "basic_belt_ending_top", "basic_belt_ending_bottom", "basic_belt_ending_side", "basic_belt_starting_top", "basic_belt_starting_bottom", - "basic_belt_starting_side", "fast_belt_horizontal", "fast_belt_vertical", "fast_belt_ending_top", "fast_belt_ending_bottom", - "fast_belt_ending_side", "fast_belt_starting_top", "fast_belt_starting_bottom", "fast_belt_starting_side", "express_belt_horizontal", - "express_belt_vertical", "express_belt_ending_top", "express_belt_ending_bottom", "express_belt_ending_side", "express_belt_starting_top", - "express_belt_starting_bottom", "express_belt_starting_side", - - --Circuit Connectors - "circuit_connector_definitions", "default_circuit_wire_max_distance", "inserter_circuit_wire_max_distance", - "universal_connector_template", "belt_connector_template", "belt_frame_connector_template", "inserter_connector_template", - - --Inserter Circuit Connectors - "inserter_circuit_wire_max_distance", "inserter_default_stack_control_input_signal", - - --Sounds/beams - "make_heavy_gunshot_sounds", "make_light_gunshot_sounds", "make_laser_sounds", - - --Gun/Laser - "gun_turret_extension", "gun_turret_extension_shadow", "gun_turret_extension_mask", "gun_turret_attack", - "laser_turret_extension", "laser_turret_extension_shadow", "laser_turret_extension_mask", - - --Pipes - "pipecoverspictures", "pipepictures", "assembler2pipepictures", "assembler3pipepictures", "make_heat_pipe_pictures", - - --Combinators - "generate_arithmetic_combinator", "generate_decider_combinator", "generate_constant_combinator", - - --Rail - "destroyed_rail_pictures", "rail_pictures", "rail_pictures_internal", "standard_train_wheels", "drive_over_tie", - "rolling_stock_back_light", "rolling_stock_stand_by_light", - - --Enemies - "make_enemy_autoplace", "make_enemy_spawner_autoplace", "make_enemy_worm_autoplace", - "make_spitter_attack_animation", "make_spitter_run_animation", "make_spitter_dying_animation", - "make_spitter_attack_parameters", "make_spitter_roars", "make_spitter_dying_sounds", - "make_spawner_idle_animation", "make_spawner_die_animation", - "make_biter_run_animation", "make_biter_attack_animation", "make_biter_die_animation", - "make_biter_roars", "make_biter_dying_sounds", "make_biter_calls", - "make_worm_roars", "make_worm_dying_sounds", "make_worm_folded_animation", "make_worm_preparing_animation", - "make_worm_prepared_animation", "make_worm_attack_animation", "make_worm_die_animation", - - --Other - "tile_variations_template", "make_water_autoplace_settings", - "make_unit_melee_ammo_type", "make_trivial_smoke", "make_4way_animation_from_spritesheet", "flying_robot_sounds", - "productivitymodulelimitation", "crash_trigger", "capsule_smoke", "make_beam", "playeranimations", - "make_blood_tint", "make_shadow_tint", - - --tiles - "water_transition_template", "make_water_transition_template", "water_autoplace_settings", "water_tile_type_names", - "patch_for_inner_corner_of_transition_between_transition", - } -} - -stds.factorio_base_story = { - globals = { - "story_init_helpers", "story_update_table", "story_init", "story_update", "story_on_tick", "story_add_update", - "story_remove_update", "story_jump_to", "story_elapsed", "story_elapsed_check", "story_show_message_dialog", - "set_goal", "player_set_goal", "on_player_joined", "flash_goal", "set_info", "player_set_info", "export_entities", - "list", "recreate_entities", "entity_to_connect", "limit_camera", "find_gui_recursive", "enable_entity_export", - "add_button", "on_gui_click", "set_continue_button_style", "add_message_log", "story_add_message_log", - "player_add_message_log", "message_log_frame", "message_log_scrollpane", "message_log_close_button", - "message_log_table", "toggle_message_log_button", "toggle_objective_button", "message_log_init", - "add_gui_recursive", "add_toggle_message_log_button", "add_toggle_objective_button", "mod_gui", - "flash_message_log_button", "flash_message_log_on_tick", "story_gui_click", "story_points_by_name", "story_branches", - "player", "surface", "deconstruct_on_tick", "recreate_entities_on_tick", "flying_congrats", "story_table" - } -} - -stds.factorio_circuit_connector_generated = { - globals = { - 'default_circuit_wire_max_distance', 'circuit_connector_definitions', 'universal_connector_template', - 'belt_connector_template', 'belt_frame_connector_template', 'inserter_connector_template', 'inserter_connector_template', - 'inserter_circuit_wire_max_distance', 'inserter_default_stack_control_input_signal', 'transport_belt_connector_frame_sprites', - 'transport_belt_circuit_wire_max_distance', - } -} --)) - ---(( STDLIB ))-- -stds.stdlib = { - read_globals = { - }, - globals = { - "STDLIB", - "prequire", "rawtostring", "traceback", "inspect", "serpent", "inline_if", "install", "log", - "concat", - "GAME", "AREA", "POSITION", "TILE", "SURFACE", "CHUNK", "COLOR", "ENTITY", "INVENTORY", - "RESOURCE", "CONFIG", "LOGGER", "QUEUE", "EVENT", "GUI", "PLAYER", "FORCE", - "MATH", "STRING", "TABLE", - } -} - -stds.stdlib_control = { -} - -stds.stdlib_data = { - globals = { - 'DATA', 'RECIPE', 'ITEM', 'FLUID', 'ENTITY', 'TECHNOLOGY', 'CATEGORY' - } -} --)) - ---(( FACTORIO DEFINES ))-- -stds.factorio_defines = { - read_globals = { - defines = { - fields = { - alert_type = { - fields = { - 'custom', - 'entity_destroyed', - 'entity_under_attack', - 'no_material_for_construction', - 'no_storage', - 'not_enough_construction_robots', - 'not_enough_repair_packs', - 'train_out_of_fuel', - 'turret_fire', - 'fluid_mixing' - } - }, - behavior_result = { - fields = { - 'deleted', - 'fail', - 'in_progress', - 'success' - } - }, - build_check_type = { - fields = { - 'ghost_place', - 'ghost_revive', - 'manual', - 'script' - } - }, - chain_signal_state = { - fields = { - 'all_open', - 'none', - 'none_open', - 'partially_open' - } - }, - chunk_generated_status = { - fields = { - 'basic_tiles', - 'corrected_tiles', - 'custom_tiles', - 'entities', - 'nothing', - 'tiles' - } - }, - circuit_condition_index = { - fields = { - 'arithmetic_combinator', - 'constant_combinator', - 'decider_combinator', - 'inserter_circuit', - 'inserter_logistic', - 'lamp', - 'offshore_pump', - 'pump' - } - }, - circuit_connector_id = { - fields = { - 'accumulator', - 'combinator_input', - 'combinator_output', - 'constant_combinator', - 'container', - 'electric_pole', - 'inserter', - 'lamp', - 'offshore_pump', - 'programmable_speaker', - 'pump', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'wall' - } - }, - command = { - fields = { - 'attack', - 'attack_area', - 'build_base', - 'compound', - 'flee', - 'go_to_location', - 'group', - 'stop', - 'wander' - } - }, - compound_command = { - fields = { - 'logical_and', - 'logical_or', - 'return_last' - } - }, - control_behavior = { - fields = { - inserter = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'none', - 'read_hand_contents', - 'set_filters', - 'set_stack_size' - } - }, - hand_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - lamp = { - fields = { - circuit_mode_of_operation = { - fields = { - 'use_colors' - } - } - } - }, - logistic_container = { - fields = { - circuit_mode_of_operation = { - fields = { - 'send_contents', - 'set_requests' - } - } - } - }, - mining_drill = { - fields = { - resource_read_mode = { - fields = { - 'entire_patch', - 'this_miner' - } - } - } - }, - roboport = { - fields = { - circuit_mode_of_operation = { - fields = { - 'read_logistics', - 'read_robot_stats' - } - } - } - }, - train_stop = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'read_from_train', - 'read_stopped_train', - 'send_to_train' - } - } - } - }, - transport_belt = { - fields = { - content_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - type = { - fields = { - 'accumulator', - 'arithmetic_combinator', - 'constant_combinator', - 'container', - 'decider_combinator', - 'generic_on_off', - 'inserter', - 'lamp', - 'logistic_container', - 'mining_drill', - 'programmable_speaker', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'train_stop', - 'transport_belt', - 'wall' - } - } - } - }, - controllers = { - fields = { - 'character', - 'cutscene', - 'editor', - 'ghost', - 'god', - 'spectator' - } - }, - deconstruction_item = { - fields = { - entity_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_selection_mode = { - fields = { - 'always', - 'never', - 'normal', - 'only' - } - } - } - }, - difficulty = { - fields = { - 'easy', - 'hard', - 'normal' - } - }, - difficulty_settings = { - fields = { - recipe_difficulty = { - fields = { - 'expensive', - 'normal' - } - }, - technology_difficulty = { - fields = { - 'expensive', - 'normal' - } - } - } - }, - direction = { - fields = { - 'east', - 'north', - 'northeast', - 'northwest', - 'south', - 'southeast', - 'southwest', - 'west' - } - }, - distraction = { - fields = { - 'by_anything', - 'by_damage', - 'by_enemy', - 'none' - } - }, - entity_status = { - fields = { - 'working', - 'no_power', - 'no_fuel', - 'no_recipe', - 'no_input_fluid', - 'no_research_in_progress', - 'no_minable_resources', - 'low_input_fluid', - 'low_power', - 'disabled_by_control_behavior', - 'disabled_by_script', - 'fluid_ingredient_shortage', - 'fluid_production_overload', - 'item_ingredient_shortage', - 'item_production_overload', - 'marked_for_deconstruction', - 'missing_required_fluid', - 'missing_science_packs', - 'waiting_for_source_items', - 'waiting_for_space_in_destination', - } - }, - render_mode = { - fields = { - 'game', - 'chart', - 'chart_zoomed_in' - } - }, - events = { - fields = { - 'on_ai_command_completed', - 'on_area_cloned', - 'on_biter_base_built', - 'on_built_entity', - 'on_cancelled_deconstruction', - 'on_cancelled_upgrade', - 'on_character_corpse_expired', - 'on_chart_tag_added', - 'on_chart_tag_modified', - 'on_chart_tag_removed', - 'on_chunk_charted', - 'on_chunk_deleted', - 'on_chunk_generated', - 'on_combat_robot_expired', - 'on_console_chat', - 'on_console_command', - 'on_cutscene_waypoint_reached', - 'on_difficulty_settings_changed', - 'on_entity_cloned', - 'on_entity_damaged', - 'on_entity_died', - 'on_entity_renamed', - 'on_entity_settings_pasted', - 'on_entity_spawned', - 'on_force_created', - 'on_forces_merged', - 'on_forces_merging', - 'on_game_created_from_scenario', - 'on_gui_checked_state_changed', - 'on_gui_click', - 'on_gui_closed', - 'on_gui_confirmed', - 'on_gui_elem_changed', - 'on_gui_location_changed', - 'on_gui_opened', - 'on_gui_selected_tab_changed', - 'on_gui_selection_state_changed', - 'on_gui_switch_state_changed', - 'on_gui_text_changed', - 'on_gui_value_changed', - 'on_land_mine_armed', - 'on_lua_shortcut', - 'on_marked_for_deconstruction', - 'on_marked_for_upgrade', - 'on_market_item_purchased', - 'on_mod_item_opened', - 'on_picked_up_item', - 'on_player_alt_selected_area', - 'on_player_ammo_inventory_changed', - 'on_player_armor_inventory_changed', - 'on_player_banned', - 'on_player_built_tile', - 'on_player_cancelled_crafting', - 'on_player_changed_force', - 'on_player_changed_position', - 'on_player_changed_surface', - 'on_player_cheat_mode_disabled', - 'on_player_cheat_mode_enabled', - 'on_player_configured_blueprint', - 'on_player_crafted_item', - 'on_player_created', - 'on_player_cursor_stack_changed', - 'on_player_deconstructed_area', - 'on_player_demoted', - 'on_player_died', - 'on_player_display_resolution_changed', - 'on_player_display_scale_changed', - 'on_player_driving_changed_state', - 'on_player_dropped_item', - 'on_player_fast_transferred', - 'on_player_gun_inventory_changed', - 'on_player_joined_game', - 'on_player_kicked', - 'on_player_left_game', - 'on_player_main_inventory_changed', - 'on_player_mined_entity', - 'on_player_mined_item', - 'on_player_mined_tile', - 'on_player_muted', - 'on_player_pipette', - 'on_player_placed_equipment', - 'on_player_promoted', - 'on_player_removed', - 'on_player_removed_equipment', - 'on_player_repaired_entity', - 'on_player_respawned', - 'on_player_rotated_entity', - 'on_player_selected_area', - 'on_player_setup_blueprint', - 'on_player_toggled_alt_mode', - 'on_player_toggled_map_editor', - 'on_player_tool_inventory_changed', - 'on_player_trash_inventory_changed', - 'on_player_unbanned', - 'on_player_unmuted', - 'on_player_used_capsule', - 'on_post_entity_died', - 'on_pre_chunk_deleted', - 'on_pre_entity_settings_pasted', - 'on_pre_ghost_deconstructed', - 'on_pre_player_crafted_item', - 'on_pre_player_died', - 'on_pre_player_left_game', - 'on_pre_player_mined_item', - 'on_pre_player_removed', - 'on_pre_robot_exploded_cliff', - 'on_pre_surface_cleared', - 'on_pre_surface_deleted', - 'on_put_item', - 'on_research_finished', - 'on_research_started', - 'on_resource_depleted', - 'on_robot_built_entity', - 'on_robot_built_tile', - 'on_robot_exploded_cliff', - 'on_robot_mined', - 'on_robot_mined_entity', - 'on_robot_mined_tile', - 'on_robot_pre_mined', - 'on_rocket_launch_ordered', - 'on_rocket_launched', - 'on_runtime_mod_setting_changed', - 'on_script_path_request_finished', - 'on_sector_scanned', - 'on_selected_entity_changed', - 'on_surface_cleared', - 'on_surface_created', - 'on_surface_deleted', - 'on_surface_imported', - 'on_surface_renamed', - 'on_technology_effects_reset', - 'on_tick', - 'on_train_changed_state', - 'on_train_created', - 'on_train_schedule_changed', - 'on_trigger_created_entity', - 'on_trigger_fired_artillery', - 'on_unit_added_to_group', - 'on_unit_group_created', - 'on_unit_removed_from_group', - 'script_raised_built', - 'script_raised_destroy', - 'script_raised_revive' - } - }, - flow_precision_index = { - fields = { - 'fifty_hours', - 'one_hour', - 'one_minute', - 'one_second', - 'one_thousand_hours', - 'ten_hours', - 'ten_minutes', - 'two_hundred_fifty_hours' - } - }, - group_state = { - fields = { - 'attacking_distraction', - 'attacking_target', - 'finished', - 'gathering', - 'moving' - } - }, - gui_type = { - fields = { - 'achievement', - 'blueprint_library', - 'bonus', - 'controller', - 'custom', - 'entity', - 'equipment', - 'item', - 'kills', - 'logistic', - 'none', - 'other_player', - 'permissions', - 'player_management', - 'production', - 'research', - 'server_management', - 'trains', - 'tutorials' - } - }, - input_action = { - fields = { - 'activate_copy', - 'activate_cut', - 'activate_paste', - 'add_permission_group', - 'add_train_station', - 'admin_action', - 'alt_select_area', - 'alt_select_blueprint_entities', - 'alternative_copy', - 'begin_mining', - 'begin_mining_terrain', - 'build_item', - 'build_rail', - 'build_terrain', - 'cancel_craft', - 'cancel_deconstruct', - 'cancel_new_blueprint', - 'cancel_research', - 'cancel_upgrade', - 'change_active_item_group_for_crafting', - 'change_active_item_group_for_filters', - 'change_active_quick_bar', - 'change_arithmetic_combinator_parameters', - 'change_blueprint_book_record_label', - 'change_decider_combinator_parameters', - 'change_item_label', - 'change_multiplayer_config', - 'change_picking_state', - 'change_programmable_speaker_alert_parameters', - 'change_programmable_speaker_circuit_parameters', - 'change_programmable_speaker_parameters', - 'change_riding_state', - 'change_shooting_state', - 'change_single_blueprint_record_label', - 'change_train_stop_station', - 'change_train_wait_condition', - 'change_train_wait_condition_data', - 'clean_cursor_stack', - 'clear_selected_blueprint', - 'clear_selected_deconstruction_item', - 'clear_selected_upgrade_item', - 'connect_rolling_stock', - 'copy', - 'copy_entity_settings', - 'craft', - 'create_blueprint_like', - 'cursor_split', - 'cursor_transfer', - 'custom_input', - 'cycle_blueprint_book_backwards', - 'cycle_blueprint_book_forwards', - 'deconstruct', - 'delete_blueprint_library', - 'delete_blueprint_record', - 'delete_custom_tag', - 'delete_permission_group', - 'destroy_opened_item', - 'disconnect_rolling_stock', - 'drag_train_schedule', - 'drag_train_wait_condition', - 'drop_blueprint_record', - 'drop_item', - 'drop_to_blueprint_book', - 'edit_custom_tag', - 'edit_permission_group', - 'export_blueprint', - 'fast_entity_split', - 'fast_entity_transfer', - 'go_to_train_station', - 'grab_blueprint_record', - 'gui_checked_state_changed', - 'gui_click', - 'gui_confirmed', - 'gui_elem_changed', - 'gui_location_changed', - 'gui_selected_tab_changed', - 'gui_selection_state_changed', - 'gui_switch_state_changed', - 'gui_text_changed', - 'gui_value_changed', - 'import_blueprint', - 'import_blueprint_string', - 'import_permissions_string', - 'inventory_split', - 'inventory_transfer', - 'launch_rocket', - 'map_editor_action', - 'market_offer', - 'mod_settings_changed', - 'open_achievements_gui', - 'open_blueprint_library_gui', - 'open_blueprint_record', - 'open_bonus_gui', - 'open_character_gui', - 'open_equipment', - 'open_gui', - 'open_item', - 'open_kills_gui', - 'open_logistic_gui', - 'open_mod_item', - 'open_production_gui', - 'open_technology_gui', - 'open_train_gui', - 'open_train_station_gui', - 'open_trains_gui', - 'open_tutorials_gui', - 'paste_entity_settings', - 'place_equipment', - 'quick_bar_pick_slot', - 'quick_bar_set_selected_page', - 'quick_bar_set_slot', - 'remove_cables', - 'remove_train_station', - 'reset_assembling_machine', - 'rotate_entity', - 'select_area', - 'select_blueprint_entities', - 'select_entity_slot', - 'select_item', - 'select_mapper_slot', - 'select_next_valid_gun', - 'select_tile_slot', - 'set_auto_launch_rocket', - 'set_autosort_inventory', - 'set_behavior_mode', - 'set_car_weapons_control', - 'set_circuit_condition', - 'set_circuit_mode_of_operation', - 'set_deconstruction_item_tile_selection_mode', - 'set_deconstruction_item_trees_and_rocks_only', - 'set_entity_color', - 'set_entity_energy_property', - 'set_filter', - 'set_heat_interface_mode', - 'set_heat_interface_temperature', - 'set_infinity_container_filter_item', - 'set_infinity_container_remove_unfiltered_items', - 'set_infinity_pipe_filter', - 'set_inserter_max_stack_size', - 'set_inventory_bar', - 'set_logistic_filter_item', - 'set_logistic_filter_signal', - 'set_logistic_trash_filter_item', - 'set_request_from_buffers', - 'set_research_finished_stops_game', - 'set_signal', - 'set_single_blueprint_record_icon', - 'set_splitter_priority', - 'set_train_stopped', - 'setup_assembling_machine', - 'setup_blueprint', - 'setup_single_blueprint_record', - 'smart_pipette', - 'stack_split', - 'stack_transfer', - 'start_repair', - 'start_research', - 'start_walking', - 'switch_connect_to_logistic_network', - 'switch_constant_combinator_state', - 'switch_inserter_filter_mode_state', - 'switch_power_switch_state', - 'switch_to_rename_stop_gui', - 'take_equipment', - 'toggle_deconstruction_item_entity_filter_mode', - 'toggle_deconstruction_item_tile_filter_mode', - 'toggle_driving', - 'toggle_enable_vehicle_logistics_while_moving', - 'toggle_equipment_movement_bonus', - 'toggle_map_editor', - 'toggle_personal_roboport', - 'toggle_show_entity_info', - 'undo', - 'upgrade', - 'upgrade_opened_blueprint', - 'use_artillery_remote', - 'use_item', - 'wire_dragging', - 'write_to_console' - } - }, - inventory = { - fields = { - 'artillery_turret_ammo', - 'artillery_wagon_ammo', - 'assembling_machine_input', - 'assembling_machine_modules', - 'assembling_machine_output', - 'beacon_modules', - 'burnt_result', - 'car_ammo', - 'car_trunk', - 'cargo_wagon', - 'character_corpse', - 'chest', - 'editor_main', - 'editor_guns', - 'editor_ammo', - 'editor_armor', - 'fuel', - 'furnace_modules', - 'furnace_result', - 'furnace_source', - 'god_main', - 'item_main', - 'lab_input', - 'lab_modules', - 'mining_drill_modules', - 'character_ammo', - 'character_armor', - 'character_guns', - 'character_main', - 'character_trash', - 'character_vehicle', - 'roboport_material', - 'roboport_robot', - 'robot_cargo', - 'robot_repair', - 'rocket', - 'rocket_silo_result', - 'rocket_silo_rocket', - 'turret_ammo' - } - }, - logistic_member_index = { - fields = { - 'character_provider', - 'character_requester', - 'character_storage', - 'generic_on_off_behavior', - 'logistic_container', - 'vehicle_storage' - } - }, - logistic_mode = { - fields = { - 'active_provider', - 'buffer', - 'none', - 'passive_provider', - 'requester', - 'storage' - } - }, - mouse_button_type = { - fields = { - 'left', - 'middle', - 'none', - 'right' - } - }, - rail_connection_direction = { - fields = { - 'left', - 'none', - 'right', - 'straight' - } - }, - rail_direction = { - fields = { - 'back', - 'front' - } - }, - riding = { - fields = { - acceleration = { - fields = { - 'accelerating', - 'braking', - 'nothing', - 'reversing' - } - }, - direction = { - fields = { - 'left', - 'right', - 'straight' - } - } - } - }, - shooting = { - fields = { - 'not_shooting', - 'shooting_enemies', - 'shooting_selected' - } - }, - signal_state = { - fields = { - 'closed', - 'open', - 'reserved', - 'reserved_by_circuit_network' - } - }, - train_state = { - fields = { - 'arrive_signal', - 'arrive_station', - 'manual_control', - 'manual_control_stop', - 'no_path', - 'no_schedule', - 'on_the_path', - 'path_lost', - 'wait_signal', - 'wait_station' - } - }, - transport_line = { - fields = { - 'left_line', - 'left_split_line', - 'left_underground_line', - 'right_line', - 'right_split_line', - 'right_underground_line', - 'secondary_left_line', - 'secondary_left_split_line', - 'secondary_right_line', - 'secondary_right_split_line' - } - }, - wire_connection_id = { - fields = { - 'electric_pole', - 'power_switch_left', - 'power_switch_right' - } - }, - wire_type = { - fields = { - 'copper', - 'green', - 'red' - } - }, - -- Defines additional modules - color = { - other_fields = true - }, - anticolor = { - other_fields = true - }, - lightcolor = { - other_fields = true - }, - time = { - fields = { - 'second', - 'minute', - 'hour', - 'day', - 'week', - 'month', - 'year' - } - } - } - } - } -}--)) - -stds.love_extra = { - read_globals = { - love = { - fields = { - arg = { - fields = { - 'parseGameArguments', 'parseOption', 'getLow', 'optionIndices', 'options' - } - } - } - } - }, - globals = { - --'coroutine', 'io', 'socket', 'dofile', 'loadfile', - love = { - fields = { - 'handlers' - } - } - } -} - ---[[ Options - "ignore", "std", "globals", "unused_args", "self", "compat", "global", "unused", "redefined", - "unused_secondaries", "allow_defined", "allow_defined_top", "module", - "read_globals", "new_globals", "new_read_globals", "enable", "only", "not_globals", - "max_line_length", "max_code_line_length", "max_string_line_length", "max_comment_line_length", - "max_cyclomatic_complexity" ---]] - ---[[ Warnings list - -- 011 A syntax error. - -- 021 An invalid inline option. - -- 022 An unpaired inline push directive. - -- 023 An unpaired inline pop directive. - -- 111 Setting an undefined global variable. - -- 112 Mutating an undefined global variable. - -- 113 Accessing an undefined global variable. - -- 121 Setting a read-only global variable. - -- 122 Setting a read-only field of a global variable. - -- 131 Unused implicitly defined global variable. - -- 142 Setting an undefined field of a global variable. - -- 143 Accessing an undefined field of a global variable. - -- 211 Unused local variable. - -- 212 Unused argument. - -- 213 Unused loop variable. - -- 221 Local variable is accessed but never set. - -- 231 Local variable is set but never accessed. - -- 232 An argument is set but never accessed. - -- 233 Loop variable is set but never accessed. - -- 241 Local variable is mutated but never accessed. - -- 311 Value assigned to a local variable is unused. - -- 312 Value of an argument is unused. - -- 313 Value of a loop variable is unused. - -- 314 Value of a field in a table literal is unused. - -- 321 Accessing uninitialized local variable. - -- 331 Value assigned to a local variable is mutated but never accessed. - -- 341 Mutating uninitialized local variable. - -- 411 Redefining a local variable. - -- 412 Redefining an argument. - -- 413 Redefining a loop variable. - -- 421 Shadowing a local variable. - -- 422 Shadowing an argument. - -- 423 Shadowing a loop variable. - -- 431 Shadowing an upvalue. - -- 432 Shadowing an upvalue argument. - -- 433 Shadowing an upvalue loop variable. - -- 511 Unreachable code. - -- 512 Loop can be executed at most once. - -- 521 Unused label. - -- 531 Left-hand side of an assignment is too short. - -- 532 Left-hand side of an assignment is too long. - -- 541 An empty do end block. - -- 542 An empty if branch. - -- 551 An empty statement. - -- 611 A line consists of nothing but whitespace. - -- 612 A line contains trailing whitespace. - -- 613 Trailing whitespace in a string. - -- 614 Trailing whitespace in a comment. - -- 621 Inconsistent indentation (SPACE followed by TAB). - -- 631 Line is too long. ---]] \ No newline at end of file diff --git a/OLD/PHI-RS/changelog.txt b/OLD/PHI-RS/changelog.txt deleted file mode 100644 index 6ba5619..0000000 --- a/OLD/PHI-RS/changelog.txt +++ /dev/null @@ -1,13 +0,0 @@ ---------------------------------------------------------------------------------------------------- -Version: 1.1.1 -Date: 2024-01-25 - -Added: - - Dynamic Recipe Overload Factor - ---------------------------------------------------------------------------------------------------- -Version: 1.1.0 -Date: 2023-09-19 - -Added: - - Recipe scaling, filter furnace diff --git a/OLD/PHI-RS/config.lua b/OLD/PHI-RS/config.lua deleted file mode 100644 index d10f90d..0000000 --- a/OLD/PHI-RS/config.lua +++ /dev/null @@ -1,268 +0,0 @@ -local items = { - { - name='iron-plate', - tech='automation' - }, - { - name='copper-plate', - tech='automation' - }, - { - name='stone-brick', - tech='automation' - }, - { - name='steel-plate', - tech='steel-processing' - }, - { - name='basic-oil-processing', - tech='oil-processing' - }, - { - name='advanced-oil-processing', - tech='advanced-oil-processing' - }, - { - name='heavy-oil-cracking', - tech='advanced-oil-processing' - }, - { - name='light-oil-cracking', - tech='advanced-oil-processing' - }, - { - name='solid-fuel-from-light-oil', - tech='advanced-oil-processing' - }, - { - name='solid-fuel-from-heavy-oil', - tech='advanced-oil-processing' - }, - { - name='solid-fuel-from-petroleum-gas', - tech='oil-processing' - }, - { - name='coal-liquefaction', - tech='coal-liquefaction' - }, - { - name='sulfur', - tech='sulfur-processing' - }, - { - name='sulfuric-acid', - tech='sulfur-processing' - }, - { - name='lubricant', - tech='lubricant' - }, - { - name='plastic-bar', - tech='plastics' - }, - { - name='battery', - tech='battery' - }, - { - name='explosives', - tech='explosives' - }, - { - name='cliff-explosives', - tech='cliff-explosives' - }, - { - name='empty-barrel', - tech='fluid-handling' - }, - { - name='copper-cable', - tech='automation' - }, - { - name='iron-stick', - tech='automation' - }, - { - name='iron-gear-wheel', - tech='automation' - }, - { - name='pipe', - tech='automation' - }, - { - name='electronic-circuit', - tech='automation' - }, - { - name='advanced-circuit', - tech='advanced-electronics' - }, - { - name='processing-unit', - tech='advanced-electronics-2' - }, - { - name='engine-unit', - tech='engine' - }, - { - name='electric-engine-unit', - tech='electric-engine' - }, - { - name='flying-robot-frame', - tech='robotics' - }, - { - name='low-density-structure', - tech='low-density-structure' - }, - { - name='rocket-fuel', - tech='rocket-fuel' - }, - { - name='rocket-control-unit', - tech='rocket-control-unit' - }, - { - name='automation-science-pack', - tech='automation' - }, - { - name='logistic-science-pack', - tech='logistic-science-pack' - }, - { - name='chemical-science-pack', - tech='chemical-science-pack' - }, - { - name='military-science-pack', - tech='military-science-pack' - }, - { - name='production-science-pack', - tech='production-science-pack' - }, - { - name='utility-science-pack', - tech='utility-science-pack' - }, - { - name='inserter', - tech='automation' - }, - { - name='transport-belt', - tech='automation' - }, - { - name='grenade', - tech='military-2' - }, - { - name='firearm-magazine', - tech='automation' - }, - { - name='piercing-rounds-magazine', - tech='military-2' - }, - { - name='stone-wall', - tech='stone-wall' - }, - { - name='rail', - tech='railway' - }, - { - name='electric-furnace', - tech='advanced-material-processing-2' - }, - { - name='concrete', - tech='concrete' - }, - { - name='uranium-processing', - tech='uranium-processing' - }, - { - name='uranium-fuel-cell', - tech='uranium-processing' - }, - { - name='nuclear-fuel-reprocessing', - tech='nuclear-fuel-reprocessing' - }, - { - name='kovarex-enrichment-process', - tech='kovarex-enrichment-process' - }, - { - name='nuclear-fuel', - tech='kovarex-enrichment-process' - }, - { - name='fast-inserter', - tech='fast-inserter' - }, - { - name='filter-inserter', - tech='fast-inserter' - }, - { - name='long-handed-inserter', - tech='automation' - }, - { - name='stack-inserter', - tech='stack-inserter' - }, - { - name='stack-filter-inserter', - tech='stack-inserter' - }, - { - name='uranium-rounds-magazine', - tech='uranium-ammo' - }, - { - name='explosive-cannon-shell', - tech='tank' - }, - { - name='artillery-shell', - tech='artillery' - }, - { - name='rocket', - tech='rocketry' - }, - { - name='explosive-rocket', - tech='explosive-rocketry' - }, - { - name='solar-panel', - tech='solar-energy' - }, - { - name='accumulator', - tech='electric-energy-accumulators' - }, - { - name='radar', - tech='automation' - } -} - -return items \ No newline at end of file diff --git a/OLD/PHI-RS/data-updates.lua b/OLD/PHI-RS/data-updates.lua deleted file mode 100644 index 320377e..0000000 --- a/OLD/PHI-RS/data-updates.lua +++ /dev/null @@ -1,4 +0,0 @@ --- electric furnace -data.raw['furnace']['electric-furnace'].fast_replaceable_group = 'electric-furnace' -data.raw['assembling-machine']['electric-filter-furnace'].fast_replaceable_group = data.raw['furnace']['electric-furnace'].fast_replaceable_group -data.raw['assembling-machine']['electric-filter-furnace'].crafting_categories = data.raw['furnace']['electric-furnace'].crafting_categories diff --git a/OLD/PHI-RS/data.lua b/OLD/PHI-RS/data.lua deleted file mode 100644 index 3d8ce75..0000000 --- a/OLD/PHI-RS/data.lua +++ /dev/null @@ -1,245 +0,0 @@ -local recipe_multiplier = {settings.startup['PHI-RS-RECIPE-1'].value, settings.startup['PHI-RS-RECIPE-2'].value} -local items = require 'config' - -if settings.startup['PHI-RS-RECIPE-DROF'].value == 1 then - data.raw['utility-constants'].default.dynamic_recipe_overload_factor = 1.17 - -else - data.raw['utility-constants'].default.dynamic_recipe_overload_factor = settings.startup['PHI-RS-RECIPE-DROF'].value -end - -data.raw['utility-constants'].default.minimum_recipe_overload_multiplier = settings.startup['PHI-RS-RECIPE-MINROM'].value -data.raw['utility-constants'].default.maximum_recipe_overload_multiplier = settings.startup['PHI-RS-RECIPE-MAXROM'].value - -if settings.startup['PHI-RS-MODULE'].value then - table.insert(items, { - name='speed-module', - tech='speed-module' - }) - table.insert(items, { - name='speed-module-2', - tech='speed-module-2' - }) - table.insert(items, { - name='speed-module-3', - tech='speed-module-3' - }) - table.insert(items, { - name='productivity-module', - tech='productivity-module' - }) - table.insert(items, { - name='productivity-module-2', - tech='productivity-module-2' - }) - table.insert(items, { - name='productivity-module-3', - tech='productivity-module-3' - }) - table.insert(items, { - name='effectivity-module', - tech='effectivity-module' - }) - table.insert(items, { - name='effectivity-module-2', - tech='effectivity-module-2' - }) - table.insert(items, { - name='effectivity-module-3', - tech='effectivity-module-3' - }) -end - -for j=1, 2, 1 do - if recipe_multiplier[j] ~= 1 then - for i=1, #items, 1 do - if data.raw.recipe[items[i].name] ~= nil then - local item = table.deepcopy(data.raw.recipe[items[i].name]) - item.enabled = false - - if (item.normal ~= nil) and (item.normal ~= false) then - for k, v in pairs(item.normal.ingredients) do - if (v[1] ~= nil) and (v[2] ~= nil) then - item.normal.ingredients[k][2] = v[2] * recipe_multiplier[j] - else - item.normal.ingredients[k].amount = v.amount * recipe_multiplier[j] - end - end - - if item.normal.results ~= nil then - for k, v in pairs(item.normal.results) do - if (v[1] ~= nil) and (v[2] ~= nil) then - item.normal.results[k][2] = v[2] * recipe_multiplier[j] - else - item.normal.results[k].amount = v.amount * recipe_multiplier[j] - end - end - - else - if item.normal.result_count ~= nil then - item.normal.result_count = item.normal.result_count * recipe_multiplier[j] - else - item.normal.result_count = recipe_multiplier[j] - end - end - - if item.normal.energy_required ~= nil then - item.normal.energy_required = item.normal.energy_required * recipe_multiplier[j] - else - item.normal.energy_required = recipe_multiplier[j] / 2 - end - - elseif (item.expensive) ~= nil and (item.expensive ~= false) then - for k, v in pairs(item.expensive.ingredients) do - if (v[1] ~= nil) and (v[2] ~= nil) then - item.expensive.ingredients[k][2] = v[2] * recipe_multiplier[j] - else - item.expensive.ingredients[k].amount = v.amount * recipe_multiplier[j] - end - end - - if item.expensive.results ~= nil then - for k, v in pairs(item.expensive.results) do - if (v[1] ~= nil) and (v[2] ~= nil) then - item.expensive.results[k][2] = v[2] * recipe_multiplier[j] - else - item.expensive.results[k].amount = v.amount * recipe_multiplier[j] - end - end - - else - if item.expensive.result_count ~= nil then - item.expensive.result_count = item.expensive.result_count * recipe_multiplier[j] - else - item.expensive.result_count = recipe_multiplier[j] - end - end - - if item.expensive.energy_required ~= nil then - item.expensive.energy_required = item.expensive.energy_required * recipe_multiplier[j] - else - item.expensive.energy_required = recipe_multiplier[j] / 2 - end - - else - for k, v in pairs(item.ingredients) do - if (v[1] ~= nil) and (v[2] ~= nil) then - item.ingredients[k][2] = v[2] * recipe_multiplier[j] - else - item.ingredients[k].amount = v.amount * recipe_multiplier[j] - end - end - - if item.results ~= nil then - for k, v in pairs(item.results) do - if (v[1] ~= nil) and (v[2] ~= nil) then - item.results[k][2] = v[2] * recipe_multiplier[j] - else - item.results[k].amount = v.amount * recipe_multiplier[j] - end - end - - else - if item.result_count ~= nil then - item.result_count = item.result_count * recipe_multiplier[j] - else - item.result_count = recipe_multiplier[j] - end - end - - if item.energy_required ~= nil then - item.energy_required = item.energy_required * recipe_multiplier[j] - else - item.energy_required = recipe_multiplier[j] / 2 - end - end - - item.name = item.name .. '-s' .. j - - data:extend({item}) - table.insert(data.raw.technology[items[i].tech].effects, {type='unlock-recipe', recipe=item.name}) - end - end - end -end - -local module_limitation = table.deepcopy(data.raw.module['productivity-module']['limitation']) - -for _, v in pairs(data.raw.module) do - if v.limitation and string.find(v.name, 'productivity', 1, true) then - for j=1, #recipe_multiplier, 1 do - for k, _ in pairs(module_limitation) do - if data.raw.recipe[module_limitation[k] .. '-s' .. j] ~= nil then - table.insert(v.limitation, module_limitation[k] .. '-s' .. j) - end - end - end - end -end - -items = { - ['electric-filter-furnace'] = { - enabled = true, - type = 'furnace', - new_type = 'assembling-machine', - name = 'electric-filter-furnace', - ref_name = 'electric-furnace', - tech = 'advanced-material-processing-2' - } -} - --- entity -local function EE(source) - local item = table.deepcopy(data.raw[source.type][source.ref_name]) - - item.name = source.name - item.minable.result = source.name - - -- item.animation.layers[1].filename = graphics_location .. source .. '-e.png' - -- item.animation.layers[1].hr_version.filename = graphics_location .. source ..'-eh.png' - -- item.icon = graphics_location .. source .. '-i.png' - -- item.icon_size = 64 - -- item.icon_mipmaps = 4 - - if source.new_type then - item.type = source.new_type - end - - data:extend({item}) -end - --- item -local function EI(source) - local item = table.deepcopy(data.raw.item[source.ref_name]) - - item.name = source.name - item.place_result = source.name - item.order = item.order .. 'B' - data:extend({item}) -end - --- recipe -local function ER(source) - data:extend({{ - type = 'recipe', - name = source.name, - energy_required = 2, - enabled = false, - ingredients = {{'steel-plate', 10}, {'advanced-circuit', 5}, {'stone-brick', 10}}, - result = source.name, - }}) -end - --- tech -local function ET(source) - table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=source.name}) -end - -for _, v in pairs(items) do - if v.enabled then - EE(v) - EI(v) - ER(v) - ET(v) - end -end diff --git a/OLD/PHI-RS/info.json b/OLD/PHI-RS/info.json deleted file mode 100644 index f4178de..0000000 --- a/OLD/PHI-RS/info.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "PHI-RS", - "version": "1.1.3", - "factorio_version": "1.1", - "date": "2024-01-25", - "title": "Phidias Recipe Scaling", - "author": "PHIDIAS0303", - "contributers": "", - "homepage": "", - "description": "Recipe Scaling", - "dependencies": [ - "base >= 1.1.0" - ] -} \ No newline at end of file diff --git a/OLD/PHI-RS/locale/en/locale.cfg b/OLD/PHI-RS/locale/en/locale.cfg deleted file mode 100644 index ab4ec3c..0000000 --- a/OLD/PHI-RS/locale/en/locale.cfg +++ /dev/null @@ -1,41 +0,0 @@ -[recipe-name] -basic-oil-processing-s1=Basic oil processing -basic-oil-processing-s2=Basic oil processing -advanced-oil-processing-s1=Advanced oil processing -advanced-oil-processing-s2=Advanced oil processing -light-oil-cracking-s1=Light oil cracking to petroleum gas -light-oil-cracking-s2=Light oil cracking to petroleum gas -heavy-oil-cracking-s1=Heavy oil cracking to light oil -heavy-oil-cracking-s2=Heavy oil cracking to light oil -uranium-processing-s1=Uranium processing -uranium-processing-s2=Uranium processing -kovarex-enrichment-process-s1=Kovarex enrichment process -kovarex-enrichment-process-s2=Kovarex enrichment process -nuclear-fuel-reprocessing-s1=Nuclear fuel reprocessing -nuclear-fuel-reprocessing-s2=Nuclear fuel reprocessing -coal-liquefaction-s1=Coal liquefaction -coal-liquefaction-s2=Coal liquefaction - -[item-name] -electric-filter-furnace=Electric filter furnace - -[entity-name] -electric-filter-furnace=Electric filter furnace - -[entity-description] -electric-filter-furnace=Faster and more flexible furnaces. - -[mod-setting-name] -PHI-RS-RECIPE-1=Recipe 1 -PHI-RS-RECIPE-2=Recipe 2 -PHI-RS-RECIPE-DROF=Dynamic Recipe Overload Factor -PHI-RS-RECIPE-MINROM=Minimum Recipe Overload Multiplier -PHI-RS-RECIPE-MAXROM=Maximum Recipe Overload Multiplier -PHI-RS-MODULE=Module - -[mod-setting-description] -PHI-RS-RECIPE-1=Default 4 ; Disable 1 -PHI-RS-RECIPE-2=Default 8 ; Disable 1 -PHI-RS-RECIPE-DROF=Default 1 -PHI-RS-RECIPE-MINROM=Default 2 -PHI-RS-RECIPE-MAXROM=Default 100 diff --git a/OLD/PHI-RS/locale/ja/locale.cfg b/OLD/PHI-RS/locale/ja/locale.cfg deleted file mode 100644 index fb7f39c..0000000 --- a/OLD/PHI-RS/locale/ja/locale.cfg +++ /dev/null @@ -1,41 +0,0 @@ -[recipe-name] -basic-oil-processing-s1=基本的な石油加工 -basic-oil-processing-s2=基本的な石油加工 -advanced-oil-processing-s1=発展的な石油加工 -advanced-oil-processing-s2=発展的な石油加工 -light-oil-cracking-s1=軽油を石油ガスに分解 -light-oil-cracking-s2=軽油を石油ガスに分解 -heavy-oil-cracking-s1=重油を軽油に分解 -heavy-oil-cracking-s2=重油を軽油に分解 -uranium-processing-s1=ウラン濃縮処理 -uranium-processing-s2=ウラン濃縮処理 -kovarex-enrichment-process-s1=Kovarex濃縮プロセス -kovarex-enrichment-process-s2=Kovarex濃縮プロセス -nuclear-fuel-reprocessing-s1=核燃料再処理 -nuclear-fuel-reprocessing-s2=核燃料再処理 -coal-liquefaction-s1=石炭液化 -coal-liquefaction-s2=石炭液化 - -[item-name] -electric-filter-furnace=電気フィルター炉 - -[entity-name] -electric-filter-furnace=電気フィルター炉 - -[entity-description] -electric-filter-furnace=より高速で便利な炉です。 - -[mod-setting-name] -PHI-RS-RECIPE-1=レシピ 1 -PHI-RS-RECIPE-2=レシピ 2 -PHI-RS-RECIPE-DROF=Dynamic Recipe Overload Factor -PHI-RS-RECIPE-MINROM=Minimum Recipe Overload Multiplier -PHI-RS-RECIPE-MAXROM=Maximum Recipe Overload Multiplier -PHI-RS-MODULE=モジュール - -[mod-setting-description] -PHI-RS-RECIPE-1=デフォルト 4 ; 止める 1 -PHI-RS-RECIPE-2=デフォルト 8 ; 止める 1 -PHI-RS-RECIPE-DROF=デフォルト 1 -PHI-RS-RECIPE-MINROM=デフォルト 2 -PHI-RS-RECIPE-MAXROM=デフォルト 100 diff --git a/OLD/PHI-RS/locale/zh-CN/locale.cfg b/OLD/PHI-RS/locale/zh-CN/locale.cfg deleted file mode 100644 index 57a7d15..0000000 --- a/OLD/PHI-RS/locale/zh-CN/locale.cfg +++ /dev/null @@ -1,41 +0,0 @@ -[recipe-name] -basic-oil-processing-s1=基礎石油加工 -basic-oil-processing-s2=基礎石油加工 -advanced-oil-processing-s1=高等石油加工 -advanced-oil-processing-s2=高等石油加工 -light-oil-cracking-s1=輕油裂解為石油氣 -light-oil-cracking-s2=輕油裂解為石油氣 -heavy-oil-cracking-s1=重油裂解為輕油 -heavy-oil-cracking-s2=重油裂解為輕油 -uranium-processing-s1=鈾濃縮加工 -uranium-processing-s2=鈾濃縮加工 -kovarex-enrichment-process-s1=鈾增殖加工 -kovarex-enrichment-process-s2=鈾增殖加工 -nuclear-fuel-reprocessing-s1=核燃料後加工 -nuclear-fuel-reprocessing-s2=核燃料後加工 -coal-liquefaction-s1=液化煤 -coal-liquefaction-s2=液化煤 - -[item-name] -electric-filter-furnace=智慧電爐 - -[entity-name] -electric-filter-furnace=智慧電爐 - -[entity-description] -electric-filter-furnace=更快速、更方便的熔爐。 - -[mod-setting-name] -PHI-RS-RECIPE-1=配方 1 -PHI-RS-RECIPE-2=配方 2 -PHI-RS-RECIPE-DROF=Dynamic Recipe Overload Factor -PHI-RS-RECIPE-MINROM=Minimum Recipe Overload Multiplier -PHI-RS-RECIPE-MAXROM=Maximum Recipe Overload Multiplier -PHI-RS-MODULE=模組 - -[mod-setting-description] -PHI-RS-RECIPE-1=預設 4 ; 停用 1 -PHI-RS-RECIPE-2=預設 8 ; 停用 1 -PHI-RS-RECIPE-DROF=預設 100 -PHI-RS-RECIPE-MINROM=預設 2 -PHI-RS-RECIPE-MAXROM=預設 100 diff --git a/OLD/PHI-RS/locale/zh-TW/locale.cfg b/OLD/PHI-RS/locale/zh-TW/locale.cfg deleted file mode 100644 index 57a7d15..0000000 --- a/OLD/PHI-RS/locale/zh-TW/locale.cfg +++ /dev/null @@ -1,41 +0,0 @@ -[recipe-name] -basic-oil-processing-s1=基礎石油加工 -basic-oil-processing-s2=基礎石油加工 -advanced-oil-processing-s1=高等石油加工 -advanced-oil-processing-s2=高等石油加工 -light-oil-cracking-s1=輕油裂解為石油氣 -light-oil-cracking-s2=輕油裂解為石油氣 -heavy-oil-cracking-s1=重油裂解為輕油 -heavy-oil-cracking-s2=重油裂解為輕油 -uranium-processing-s1=鈾濃縮加工 -uranium-processing-s2=鈾濃縮加工 -kovarex-enrichment-process-s1=鈾增殖加工 -kovarex-enrichment-process-s2=鈾增殖加工 -nuclear-fuel-reprocessing-s1=核燃料後加工 -nuclear-fuel-reprocessing-s2=核燃料後加工 -coal-liquefaction-s1=液化煤 -coal-liquefaction-s2=液化煤 - -[item-name] -electric-filter-furnace=智慧電爐 - -[entity-name] -electric-filter-furnace=智慧電爐 - -[entity-description] -electric-filter-furnace=更快速、更方便的熔爐。 - -[mod-setting-name] -PHI-RS-RECIPE-1=配方 1 -PHI-RS-RECIPE-2=配方 2 -PHI-RS-RECIPE-DROF=Dynamic Recipe Overload Factor -PHI-RS-RECIPE-MINROM=Minimum Recipe Overload Multiplier -PHI-RS-RECIPE-MAXROM=Maximum Recipe Overload Multiplier -PHI-RS-MODULE=模組 - -[mod-setting-description] -PHI-RS-RECIPE-1=預設 4 ; 停用 1 -PHI-RS-RECIPE-2=預設 8 ; 停用 1 -PHI-RS-RECIPE-DROF=預設 100 -PHI-RS-RECIPE-MINROM=預設 2 -PHI-RS-RECIPE-MAXROM=預設 100 diff --git a/OLD/PHI-RS/migrations/migrations.lua b/OLD/PHI-RS/migrations/migrations.lua deleted file mode 100644 index 9b63779..0000000 --- a/OLD/PHI-RS/migrations/migrations.lua +++ /dev/null @@ -1,26 +0,0 @@ -local items = require '__PHI-RS__/config' - -for index, force in pairs(game.forces) do - local technologies = force.technologies - local recipes = force.recipes - - if technologies['advanced-material-processing-2'].researched then - recipes['electric-filter-furnace'].enabled = true - recipes['electric-filter-furnace'].reload() - end - - for _, v in pairs(items) do - if technologies[v.tech] then - if technologies[v.tech].researched then - if recipes[v.name .. '-s1'] ~= nil then - recipes[v.name .. '-s1'].enabled = true - recipes[v.name .. '-s1'].reload() - end - if recipes[v.name .. '-s2'] ~= nil then - recipes[v.name .. '-s2'].enabled = true - recipes[v.name .. '-s2'].reload() - end - end - end - end -end diff --git a/OLD/PHI-RS/settings.lua b/OLD/PHI-RS/settings.lua deleted file mode 100644 index 58b7d3c..0000000 --- a/OLD/PHI-RS/settings.lua +++ /dev/null @@ -1,46 +0,0 @@ -data:extend({ - { - type = 'int-setting', - name = 'PHI-RS-RECIPE-1', - setting_type = 'startup', - default_value = 4, - allowed_values = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, - order = 'A1' - }, { - type = 'int-setting', - name = 'PHI-RS-RECIPE-2', - setting_type = 'startup', - default_value = 8, - allowed_values = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, - order = 'A2' - }, { - type = 'bool-setting', - name = 'PHI-RS-MODULE', - setting_type = 'startup', - default_value = true, - order = 'A3' - }, { - type = 'int-setting', - name = 'PHI-RS-RECIPE-DROF', - setting_type = 'startup', - default_value = 1, - minimum_value = 1, - maximum_value = 100, - order = 'A4' - }, { - type = 'int-setting', - name = 'PHI-RS-RECIPE-MINROM', - setting_type = 'startup', - default_value = 2, - minimum_value = 1, - maximum_value = 100, - order = 'A5' - }, { - type = 'int-setting', - name = 'PHI-RS-RECIPE-MAXROM', - setting_type = 'startup', - default_value = 100, - minimum_value = 1, - maximum_value = 100, - order = 'A6' - }}) \ No newline at end of file diff --git a/OLD/PHI-RS/thumbnail.png b/OLD/PHI-RS/thumbnail.png deleted file mode 100644 index ea60207..0000000 Binary files a/OLD/PHI-RS/thumbnail.png and /dev/null differ diff --git a/OLD/PHI-WE/.editorconfig b/OLD/PHI-WE/.editorconfig deleted file mode 100644 index 73c5516..0000000 --- a/OLD/PHI-WE/.editorconfig +++ /dev/null @@ -1,8 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 4 -charset = utf-8 -trim_trailing_whitespace = false -insert_final_newline = false \ No newline at end of file diff --git a/OLD/PHI-WE/.luacheckrc b/OLD/PHI-WE/.luacheckrc deleted file mode 100644 index 0da1ad4..0000000 --- a/OLD/PHI-WE/.luacheckrc +++ /dev/null @@ -1,1597 +0,0 @@ -------------------------------------------------------------------------------- ---[LICENSE]-- -------------------------------------------------------------------------------- --- .luacheckrc --- This file is free and unencumbered software released into the public domain. --- --- Anyone is free to copy, modify, publish, use, compile, sell, or --- distribute this file, either in source code form or as a compiled --- binary, for any purpose, commercial or non-commercial, and by any --- means. --- --- In jurisdictions that recognize copyright laws, the author or authors --- of this file dedicate any and all copyright interest in the --- software to the public domain. We make this dedication for the benefit --- of the public at large and to the detriment of our heirs and --- successors. We intend this dedication to be an overt act of --- relinquishment in perpetuity of all present and future rights to this --- software under copyright law. --- --- THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, --- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR --- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, --- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR --- OTHER DEALINGS IN THE SOFTWARE. --- --- For more information, please refer to --- ]] - --- Current Factorio Version 0.17.0, luacheck version 0.23.0 - -------------------------------------------------------------------------------- ---[Set Defaults]-- -------------------------------------------------------------------------------- -local LINE_LENGTH = false -- It is 2017 limits on length are a waste -local IGNORE = {'21./%w+_$', '21./^_%w+$', '213/[ijk]', '213/index', '213/key'} -local NOT_GLOBALS = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'} -- These globals are not available to the factorio API - -local STD_CONTROL = 'lua52c+factorio+factorio_control+stdlib+factorio_defines' -local STD_DATA = 'lua52c+factorio+factorio_data+stdlib+stdlib_data+factorio_defines' -local STD_LOVE = 'luajit+love+love_extra+stdlib+stdlib_data' - --- In a perfect world these would be STD_DATA and STD_CONTROL (mostly) -local STD_BASE_DATA = 'lua52c+factorio+factorio_data+factorio_defines+factorio_base_data' -local STD_BASE_CONTROL = 'lua52c+factorio+factorio_control+factorio_defines+factorio_base_control' - -------------------------------------------------------------------------------- ---[Assume Factorio Control stage as default]-- -------------------------------------------------------------------------------- -std = STD_CONTROL -max_line_length = LINE_LENGTH - -not_globals = NOT_GLOBALS -ignore = IGNORE -quiet = 1 -- pass -q option -max_cyclomatic_complexity = 75 -codes = true - ---List of files and directories to exclude -exclude_files = { - --Ignore special folders - '**/.*/*', --Ignore if path starts with . - '**/stdlib/vendor/', - '**/*WIP/', - - --Ignore development mods - '**/combat-tester/', - '**/test-maker/', - '**/trailer/', - - --Ignore love Includes - '**/love/includes/' -} - -------------------------------------------------------------------------------- ---[Mod Prototypes]-- -------------------------------------------------------------------------------- ---Set default prototype files -files['**/data.lua'].std = STD_DATA -files['**/data-updates.lua'].std = STD_DATA -files['**/data-final-fixes.lua'].std = STD_DATA -files['**/settings.lua'].std = STD_DATA -files['**/settings-updates.lua'].std = STD_DATA -files['**/settings-final-fixes.lua'].std = STD_DATA -files['**/prototypes/'].std = STD_DATA -files['**/settings/'].std = STD_DATA -files['**/love/'] = {std = STD_LOVE, globals = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'}} - -------------------------------------------------------------------------------- ---[Base]-- -------------------------------------------------------------------------------- ---Find and replace ignores *.cfg, migrations, *.txt, control.lua, *.json, trailer, scenarios, campaigns, *.glsl - -local base_scenarios = { - std = STD_BASE_CONTROL .. '+factorio_base_scenarios+factorio_base_story', - --ignore = {'212/event', '111', '112', '113', '211', '212', '213', '311', '411', '412', '421', '422', '423', '431', '432', '512'} - ignore = {'...'} -} -files['**/base/scenarios/'] = base_scenarios -files['**/base/tutorials/'] = base_scenarios -files['**/base/campaigns/'] = base_scenarios -files['**/wip-scenario/'] = base_scenarios - -files['**/base/migrations/'] = {std = STD_BASE_CONTROL} - -files['**/core/lualib/'] = {std = STD_BASE_CONTROL} -files['**/core/lualib/util.lua'] = {globals = {'util', 'table'}, ignore = {'432/object'}} -files['**/core/lualib/silo-script.lua'] = {globals = {'silo_script'}, ignore = {'4../player'}} -files['**/core/lualib/production-score.lua'] = {globals = {'production_score', 'get_price_recursive'}, ignore = {'4../player'}} -files['**/core/lualib/story*'] = {std = '+factorio_base_story', ignore = {'42./k', '42./filter'}} -files['**/core/lualib/mod-gui.lua'] = {globals = {'mod_gui'}} -files['**/core/lualib/camera.lua'] = {globals = {'camera'}} -files['**/core/lualib/builder.lua'] = {globals = {'Builder', 'builder', 'action', 'down', 'right'}} - -files['**/core/lualib/bonus-gui-ordering/'] = {std = STD_BASE_DATA} -files['**/core/lualib/dataloader.lua'] = {globals = {'data'}} -files['**/core/lualib/circuit-connector-*'] = {std = STD_BASE_DATA..'+factorio_circuit_connector_generated'} -files['**/core/lualib/bonus-gui-ordering.lua'] = {globals = {'bonus_gui_ordering'}} - -files['**/base/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/noise-programs.lua'] = {ignore = {'212/x', '212/y', '212/tile', '212/map'}} - ---(( stdlib ))-- -local stdlib_control = { - std = 'lua52c+factorio+factorio_control+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - -local stdlib_data = { - std = 'lua52c+factorio+factorio_data+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - --- Assume control stage for stdlib -files['**/stdlib/'] = stdlib_control - --- Assume generic content for stdlib utils -files['**/stdlib/utils/**'].std = 'lua52c+stdlib' - --- STDLIB data files -files['**/stdlib/data/'] = stdlib_data - --- STDLIB Busted Spec -files['**/spec/**'] = { - globals = {'serpent', 'log', 'SLOG', 'RESET'}, - std = 'lua52c+busted+factorio_defines+factorio_control+stdlib' -} --)) - ---(( Factorio ))-- -stds.factorio = { - --Set the read only variables - read_globals = { - -- @log@: Gives writing access to Factorio's logger instance. - "log", - -- @serpent@: Lua serializer and pretty printer. (https://github.com/pkulchenko/serpent) - "serpent", - -- @table_size@: Returns the number of elements inside an LUA table - "table_size", - util = { - fields = { - "by_pixel", "distance", "findfirstentity", "positiontostr", "formattime", "moveposition", "oppositedirection", - "ismoduleavailable", "multiplystripes", "format_number", "increment", "color", "conditional_return", - "add_shift", "merge", "premul_color", "encode", "decode", "insert_safe", - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, - }, - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, -} - -stds.factorio_control = { - read_globals = { - - -- @commands@: - commands = { - fields = { - "add_command", "commands", "game_commands", "remove_command" - }, - }, - - -- @settings@: - settings = { - fields = { - "get_player_settings", - startup = {read_only = false, other_fields = true}, - global = {read_only = false, other_fields = true}, - player = {read_only = false, other_fields = true}, - }, - }, - - -- @script@: Provides an interface for registering event handlers. - -- (http://lua-api.factorio.com/latest/LuaBootstrap.html) - script = { - fields = { - "on_event", "on_nth_tick", "on_configuration_changed", "on_init", "on_load", "generate_event_name", - "raise_event", "get_event_handler", "mod_name", "get_event_order" - }, - other_fields = false, - }, - - -- @remote@: Allows inter-mod communication by providing a repository of interfaces that is shared by all mods. - -- (http://lua-api.factorio.com/latest/LuaRemote.html) - remote = { - fields = { - interfaces = {read_only = false, other_fields = true}, - "add_interface", "remove_interface", "call" - }, - read_only = true, - other_fields = false, - }, - - rcon = { - fields = {'print'} - }, - - rendering = { - other_fields = false, - read_only = true, - fields = { - 'draw_animation', - 'draw_line', - 'draw_text', - 'draw_circle', - 'draw_rectangle', - 'draw_arc', - 'draw_polygon', - 'draw_sprite', - 'draw_light', - 'destroy', - 'is_font_valid', - 'is_valid', - 'get_all_ids', - 'clear', - 'get_type', - 'get_surface', - 'get_time_to_live', - 'set_time_to_live', - 'get_forces', - 'set_forces', - 'get_players', - 'set_players', - 'get_color', - 'set_color', - 'get_width', - 'set_width', - 'get_from', - 'set_from', - 'get_to', - 'set_to', - 'get_gap_amount', - 'set_gap_amount', - 'get_gap_length', - 'set_gap_length', - 'get_target', - 'set_target', - 'get_orientation', - 'set_orientation', - 'get_scale', - 'set_scale', - 'get_text', - 'set_text', - 'get_font', - 'set_font', - 'get_alignment', - 'set_alignment', - 'get_scale_with_zoom', - 'set_scale_with_zoom', - 'get_filled', - 'set_filled', - 'get_radius', - 'set_radius', - 'get_left_top', - 'set_left_top', - 'get_right_bottom', - 'set_right_bottom', - 'get_max_radius', - 'set_max_radius', - 'get_min_radius', - 'set_min_radius', - 'get_start_angle', - 'set_start_angle', - 'get_angle', - 'set_angle', - 'get_vertices', - 'set_vertices', - 'get_sprite', - 'set_sprite', - 'get_x_scale', - 'set_x_scale', - 'get_y_scale', - 'set_y_scale', - 'get_render_layer', - 'set_render_layer', - 'get_orientation_target', - 'set_orientation_target', - 'get_oriented_offset', - 'set_oriented_offset', - 'get_intensity', - 'set_intensity', - 'get_minimum_darkness', - 'set_minimum_darkness' - } - }, - - -- @game@: Main object through which most of the API is accessed. - -- It is, however, not available inside handlers registered with @script.on_load@. - -- (http://lua-api.factorio.com/latest/LuaGameScript.html) - game ={ - other_fields = false, - read_only = false, - fields = { - "auto_save", - "ban_player", - "check_consistency", - "check_prototype_translations", - "count_pipe_groups", - "create_force", - "create_profiler", - "create_random_generator", - "get_surface", - "create_surface", - "delete_surface", - "desync_players", - "direction_to_string", - "disable_replay", - "disable_tips_and_tricks", - "draw_resource_selection", - "force_crc", - "get_active_entities_count", - "get_entity_by_tag", - "get_map_exchange_string", - "get_player", - "help", - "is_demo", - "is_multiplayer", - "is_valid_sound_path", - "json_to_table", - "kick_player", - "merge_forces", - "mute_player", - "play_sound", - "print", - "print_stack_size", - "purge_player", - "regenerate_entity", - "reload_mods", - "reload_script", - "remove_offline_players", - "remove_path", - "save_atlas", - "server_save", - "set_game_state", - "show_message_dialog", - "table_to_json", - "take_screenshot", - "take_technology_screenshot", - "unban_player", - "unmute_player", - "write_file", - "get_filtered_entity_prototypes", - "get_filtered_item_prototypes", - "get_filtered_equipment_prototypes", - "get_filtered_mod_setting_prototypes", - "get_filtered_achievement_prototypes", - - active_mods = {read_only = true, other_fields = true}, - ammo_category_prototypes = {read_only = true, other_fields = true}, - autoplace_control_prototypes = {read_only = true, other_fields = true}, - backer_names = {read_only = true, other_fields = true}, - connected_players = {read_only = true, other_fields = true}, - custom_input_prototypes = {read_only = true, other_fields = true}, - damage_prototypes = {read_only = true, other_fields = true}, - decorative_prototypes = {read_only = true, other_fields = true}, - default_map_gen_settings = {read_only = true, other_fields = true}, - difficulty = {read_only = true, other_fields = true}, - difficulty_settings = {read_only = true, other_fields = true}, - enemy_has_vision_on_land_mines = {read_only = false, other_fields = false}, - entity_prototypes = {read_only = true, other_fields = true}, - equipment_grid_prototypes = {read_only = true, other_fields = true}, - equipment_prototypes = {read_only = true, other_fields = true}, - finished = {read_only = true, other_fields = true}, - fluid_prototypes = {read_only = true, other_fields = true}, - forces = {read_only = true, other_fields = true}, - item_prototypes = {read_only = true, other_fields = true}, - map_settings = {read_only = true, other_fields = true}, - mod_setting_prototypes = {read_only = true, other_fields = true}, - noise_layer_prototypes = {read_only = true, other_fields = true}, - permissions = {read_only = true, other_fields = true}, - player = {read_only = true, other_fields = true}, - players = {read_only = true, other_fields = true}, - recipe_prototypes = {read_only = true, other_fields = true}, - speed = {read_only = false, other_fields = false}, - styles = {read_only = true, other_fields = true}, - surfaces = {read_only = true, other_fields = true}, - technology_prototypes = {read_only = true, other_fields = true}, - tick = {read_only = true, other_fields = true}, - tick_paused = {read_only = false, other_fields = false}, - ticks_played = {read_only = true, other_fields = true}, - ticks_to_run = {read_only = false, other_fields = false}, - tile_prototypes = {read_only = true, other_fields = true}, - virtual_signal_prototypes = {read_only = true, other_fields = true}, - pollution_statistics = {read_only = true, other_fields = true} - }, - }, - }, - - globals = { - -- @global@: The global dictionary, useful for storing data persistent across a save-load cycle. - -- Writing access is given to the mod-id field (for mod-wise saved data). - -- (http://lua-api.factorio.com/latest/Global.html) - "global", - - -- @MOD@: Keep it organized, use this variable for anything that "NEEDS" to be global for some reason. - "MOD" - }, -} - -stds.factorio_data = { - - read_globals = { - data = { - fields = { - raw = { - other_fields = true, - read_only = false - }, - "extend", "is_demo" - }, - }, - - settings = { - fields = { - "startup", "global", "player", - }, - }, - - --Popular mods - angelsmods = { - other_fields = true - }, - - bobmods = { - other_fields = true - }, - - mods = { - other_fields = true - } - } -} --)) - ---(( Factorio Globals are bad mkay ))-- -stds.factorio_base_control = { - read_globals = {"silo_script", "mod_gui", "camera"} -} - -stds.factorio_base_scenarios = { - globals = { - "check_automate_science_packs_advice", "check_research_hints", "check_supplies", "manage_attacks", "all_dead", - "on_win", "difficulty_number", "init_attack_data", "handle_attacks", "count_items_in_container", "progress", "scanned", - "check_light", "check_machine_gun", "level", "story_table", - - "tightspot_prices", "tightspot_make_offer", "tightspot_init", "tightspot_get_required_balance", - "tightspot_init_level", "tightspot_init_spending_frame", "tightspot_init_progress_frame", "tightspot_update_progress", "tightspot_update_spending", - "tightspot_get_missing_to_win", "tightspot_sell_back", "tightspot_start_level", "tightspot_show_level_description", "tightspot_update_speed_label", - "map_ignore", "tightspot_check_level", "land_price", - - "transport_belt_madness_init", "transport_belt_madness_init_level", "transport_belt_madness_create_chests", "transport_belt_madness_fill_chests", - "transport_belt_madness_start_level", "map_ignore", "map_clear", "map_load", "map_save", "transport_belt_madness_show_level_description", - "transport_belt_madness_check_level", "transport_belt_madness_next_level", "transport_belt_madness_clear_level", "transport_belt_madness_contains_next_level", - - "restricted", "check_built_items", "result", "disable_combat_technologies", "apply_character_modifiers", "apply_combat_modifiers", "apply_balance", - "load_config", "starting_area_constant", "create_next_surface", "end_round", "prepare_next_round", "silo_died","choose_joining_gui", - "destroy_joining_guis", "create_random_join_gui", "create_auto_assign_gui", "create_pick_join_gui", "create_config_gui", "make_config_table", "default", - "make_team_gui", "make_team_gui_config", "add_team_button_press", "trash_team_button_press", "remove_team_from_team_table", "add_team_to_team_table", - "set_teams_from_gui", "on_team_button_press", "make_color_dropdown", "create_balance_option", "create_disable_frame", "disable_frame", "parse_disabled_items", - "set_balance_settings", "config_confirm", "parse_config_from_gui", "get_color", "roll_starting_area", "delete_roll_surfaces", "auto_assign", - "destroy_config_for_all", "prepare_map", "set_evolution_factor", "update_players_on_team_count", "random_join", "init_player_gui", - "destroy_player_gui", "objective_button_press", "admin_button_press", "admin_frame_button_press", "diplomacy_button_press", "update_diplomacy_frame", - "diplomacy_frame_button_press", "team_changed_diplomacy", "diplomacy_check_press", "get_stance", "give_inventory", "setup_teams", "disable_items_for_all", - "set_random_team", "set_diplomacy", "create_spawn_positions", "set_spawn_position", "set_team_together_spawns", "chart_starting_area_for_force_spawns", - "check_starting_area_chunks_are_generated", "check_player_color", "check_round_start", "clear_starting_area_enemies", "check_no_rush_end", "check_no_rush_players", - "finish_setup", "chart_area_for_force", "setup_start_area_copy", "update_copy_progress", "update_progress_bar", "copy_paste_starting_area_tiles", - "copy_paste_starting_area_entities", "create_silo_for_force", "setup_research", "on_chunk_generated", "get_distance_to_nearest_spawn", - "create_wall_for_force", "fpn", "give_items", "create_item_frame", "create_technologies_frame", "create_cheat_frame", "create_day_frame", - "time_modifier", "points_per_second_start", "points_per_second_level_subtract", "levels", "update_info", "get_time_left", "update_time_left", - "on_joined", "make_frame", "update_frame", "update_table", "calculate_task_item_multiplayer", "setup_config", "select_from_probability_table", - "select_inventory", "select_equipment", "select_challange_type", "save_round_statistics", "start_challenge", "create_teams", "set_areas", - "decide_player_team", "set_teams", "refresh_leaderboard", "set_player", "generate_technology_list", "generate_research_task","setup_unlocks", - "check_technology_progress", "generate_production_task", "generate_shopping_list_task", "set_gui_flow_table", "create_visibility_button", - "check_item_lists", "update_task_gui", "check_end_of_round", "end_round_gui_update", "try_to_check_victory", "update_gui", "check_start_round", - "check_start_set_areas", "check_start_setting_entities", "check_set_areas", "check_clear_areas", "check_chests", "check_chests_shopping_list", - "check_chests_production", "check_input_chests", "fill_input_chests", "check_victory", "shopping_task_finished", "calculate_force_points", - "update_research_task_table", "update_production_task_table", "update_shopping_list_task_table", "create_joined_game_gui", "pre_ending_round", - "player_ending_prompt", "update_end_timer", "update_begin_timer", "team_finished", "save_points_list", "give_force_players_points", - "update_winners_list", "set_spectator", "set_character", "give_starting_inventory", "give_equipment", "shuffle_table", "format_time", - "spairs", "fill_leaderboard", "create_grid", "simple_entities", "save_map_data", "clear_map", "create_tiles", "recreate_entities", - "map_sets", "give_points", "init_forces", "init_globals", "init_unit_settings", "check_next_wave", "next_wave", "calculate_wave_power", - "wave_end", "make_next_spawn_tick", "check_spawn_units", "get_wave_units", "spawn_units", "randomize_ore", "set_command", "command_straglers", - "unit_config", "make_next_wave_tick", "time_to_next_wave", "time_to_wave_end", "rocket_died", "unit_died", "get_bounty_price", "setup_waypoints", - "insert_items", "give_starting_equipment", "give_spawn_equipment", "next_round_button_visible", "gui_init", "create_wave_frame", "create_money_frame", - "create_upgrade_gui", "update_upgrade_listing", "upgrade_research", "get_upgrades", "get_money", "update_connected_players", "update_round_number", - "set_research", "set_recipes", "check_deconstruction", "check_blueprint_placement", "loop_entities", "experiment_items", - "setup", "story_gui_click", "clear_surface", "add_run_trains_button", "puzzle_condition", "basic_signals", - "loop_trains", "Y_offset", "ghosts_1", "ghosts_2", "required_path", "through_wall_path", "count", "check_built_real_rail", - "current_ghosts_count", "other", "rails", "set_rails", "straight_section", "late_entities", "entities", "stop", - "get_spawn_coordinate", - - --tutorials - "intermission", "create_entities_on_tick", "on_player_created", "required_count", "non_player_entities", "clear_rails", - "chest", "damage", "furnace", "init_prototypes", "build_infi_table", "junk", "update_player_tags", "time_left", "team_production", - "create_task_frame", "create_visibilty_buttons", "update_leaderboard", "in_in_area" - } -} - -stds.factorio_base_data = { - globals = { - --Style - "make_cursor_box", "make_full_cursor_box", - "default_container_padding", "default_orange_color", "default_light_orange_color", "warning_red_color", - "achievement_green_color", "achievement_tan_color", "orangebuttongraphcialset", "bluebuttongraphcialset", - "bonus_gui_ordering", "trivial_smoke", "technology_slot_base_width", "technology_slot_base_height", "default_frame_font_vertical_compensation", - - --Belts - "transport_belt_connector_frame_sprites", "transport_belt_circuit_wire_connection_point", "transport_belt_circuit_wire_max_distance", - "transport_belt_circuit_connector_sprites", "ending_patch_prototype", "basic_belt_horizontal", "basic_belt_vertical", - "basic_belt_ending_top", "basic_belt_ending_bottom", "basic_belt_ending_side", "basic_belt_starting_top", "basic_belt_starting_bottom", - "basic_belt_starting_side", "fast_belt_horizontal", "fast_belt_vertical", "fast_belt_ending_top", "fast_belt_ending_bottom", - "fast_belt_ending_side", "fast_belt_starting_top", "fast_belt_starting_bottom", "fast_belt_starting_side", "express_belt_horizontal", - "express_belt_vertical", "express_belt_ending_top", "express_belt_ending_bottom", "express_belt_ending_side", "express_belt_starting_top", - "express_belt_starting_bottom", "express_belt_starting_side", - - --Circuit Connectors - "circuit_connector_definitions", "default_circuit_wire_max_distance", "inserter_circuit_wire_max_distance", - "universal_connector_template", "belt_connector_template", "belt_frame_connector_template", "inserter_connector_template", - - --Inserter Circuit Connectors - "inserter_circuit_wire_max_distance", "inserter_default_stack_control_input_signal", - - --Sounds/beams - "make_heavy_gunshot_sounds", "make_light_gunshot_sounds", "make_laser_sounds", - - --Gun/Laser - "gun_turret_extension", "gun_turret_extension_shadow", "gun_turret_extension_mask", "gun_turret_attack", - "laser_turret_extension", "laser_turret_extension_shadow", "laser_turret_extension_mask", - - --Pipes - "pipecoverspictures", "pipepictures", "assembler2pipepictures", "assembler3pipepictures", "make_heat_pipe_pictures", - - --Combinators - "generate_arithmetic_combinator", "generate_decider_combinator", "generate_constant_combinator", - - --Rail - "destroyed_rail_pictures", "rail_pictures", "rail_pictures_internal", "standard_train_wheels", "drive_over_tie", - "rolling_stock_back_light", "rolling_stock_stand_by_light", - - --Enemies - "make_enemy_autoplace", "make_enemy_spawner_autoplace", "make_enemy_worm_autoplace", - "make_spitter_attack_animation", "make_spitter_run_animation", "make_spitter_dying_animation", - "make_spitter_attack_parameters", "make_spitter_roars", "make_spitter_dying_sounds", - "make_spawner_idle_animation", "make_spawner_die_animation", - "make_biter_run_animation", "make_biter_attack_animation", "make_biter_die_animation", - "make_biter_roars", "make_biter_dying_sounds", "make_biter_calls", - "make_worm_roars", "make_worm_dying_sounds", "make_worm_folded_animation", "make_worm_preparing_animation", - "make_worm_prepared_animation", "make_worm_attack_animation", "make_worm_die_animation", - - --Other - "tile_variations_template", "make_water_autoplace_settings", - "make_unit_melee_ammo_type", "make_trivial_smoke", "make_4way_animation_from_spritesheet", "flying_robot_sounds", - "productivitymodulelimitation", "crash_trigger", "capsule_smoke", "make_beam", "playeranimations", - "make_blood_tint", "make_shadow_tint", - - --tiles - "water_transition_template", "make_water_transition_template", "water_autoplace_settings", "water_tile_type_names", - "patch_for_inner_corner_of_transition_between_transition", - } -} - -stds.factorio_base_story = { - globals = { - "story_init_helpers", "story_update_table", "story_init", "story_update", "story_on_tick", "story_add_update", - "story_remove_update", "story_jump_to", "story_elapsed", "story_elapsed_check", "story_show_message_dialog", - "set_goal", "player_set_goal", "on_player_joined", "flash_goal", "set_info", "player_set_info", "export_entities", - "list", "recreate_entities", "entity_to_connect", "limit_camera", "find_gui_recursive", "enable_entity_export", - "add_button", "on_gui_click", "set_continue_button_style", "add_message_log", "story_add_message_log", - "player_add_message_log", "message_log_frame", "message_log_scrollpane", "message_log_close_button", - "message_log_table", "toggle_message_log_button", "toggle_objective_button", "message_log_init", - "add_gui_recursive", "add_toggle_message_log_button", "add_toggle_objective_button", "mod_gui", - "flash_message_log_button", "flash_message_log_on_tick", "story_gui_click", "story_points_by_name", "story_branches", - "player", "surface", "deconstruct_on_tick", "recreate_entities_on_tick", "flying_congrats", "story_table" - } -} - -stds.factorio_circuit_connector_generated = { - globals = { - 'default_circuit_wire_max_distance', 'circuit_connector_definitions', 'universal_connector_template', - 'belt_connector_template', 'belt_frame_connector_template', 'inserter_connector_template', 'inserter_connector_template', - 'inserter_circuit_wire_max_distance', 'inserter_default_stack_control_input_signal', 'transport_belt_connector_frame_sprites', - 'transport_belt_circuit_wire_max_distance', - } -} --)) - ---(( STDLIB ))-- -stds.stdlib = { - read_globals = { - }, - globals = { - "STDLIB", - "prequire", "rawtostring", "traceback", "inspect", "serpent", "inline_if", "install", "log", - "concat", - "GAME", "AREA", "POSITION", "TILE", "SURFACE", "CHUNK", "COLOR", "ENTITY", "INVENTORY", - "RESOURCE", "CONFIG", "LOGGER", "QUEUE", "EVENT", "GUI", "PLAYER", "FORCE", - "MATH", "STRING", "TABLE", - } -} - -stds.stdlib_control = { -} - -stds.stdlib_data = { - globals = { - 'DATA', 'RECIPE', 'ITEM', 'FLUID', 'ENTITY', 'TECHNOLOGY', 'CATEGORY' - } -} --)) - ---(( FACTORIO DEFINES ))-- -stds.factorio_defines = { - read_globals = { - defines = { - fields = { - alert_type = { - fields = { - 'custom', - 'entity_destroyed', - 'entity_under_attack', - 'no_material_for_construction', - 'no_storage', - 'not_enough_construction_robots', - 'not_enough_repair_packs', - 'train_out_of_fuel', - 'turret_fire', - 'fluid_mixing' - } - }, - behavior_result = { - fields = { - 'deleted', - 'fail', - 'in_progress', - 'success' - } - }, - build_check_type = { - fields = { - 'ghost_place', - 'ghost_revive', - 'manual', - 'script' - } - }, - chain_signal_state = { - fields = { - 'all_open', - 'none', - 'none_open', - 'partially_open' - } - }, - chunk_generated_status = { - fields = { - 'basic_tiles', - 'corrected_tiles', - 'custom_tiles', - 'entities', - 'nothing', - 'tiles' - } - }, - circuit_condition_index = { - fields = { - 'arithmetic_combinator', - 'constant_combinator', - 'decider_combinator', - 'inserter_circuit', - 'inserter_logistic', - 'lamp', - 'offshore_pump', - 'pump' - } - }, - circuit_connector_id = { - fields = { - 'accumulator', - 'combinator_input', - 'combinator_output', - 'constant_combinator', - 'container', - 'electric_pole', - 'inserter', - 'lamp', - 'offshore_pump', - 'programmable_speaker', - 'pump', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'wall' - } - }, - command = { - fields = { - 'attack', - 'attack_area', - 'build_base', - 'compound', - 'flee', - 'go_to_location', - 'group', - 'stop', - 'wander' - } - }, - compound_command = { - fields = { - 'logical_and', - 'logical_or', - 'return_last' - } - }, - control_behavior = { - fields = { - inserter = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'none', - 'read_hand_contents', - 'set_filters', - 'set_stack_size' - } - }, - hand_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - lamp = { - fields = { - circuit_mode_of_operation = { - fields = { - 'use_colors' - } - } - } - }, - logistic_container = { - fields = { - circuit_mode_of_operation = { - fields = { - 'send_contents', - 'set_requests' - } - } - } - }, - mining_drill = { - fields = { - resource_read_mode = { - fields = { - 'entire_patch', - 'this_miner' - } - } - } - }, - roboport = { - fields = { - circuit_mode_of_operation = { - fields = { - 'read_logistics', - 'read_robot_stats' - } - } - } - }, - train_stop = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'read_from_train', - 'read_stopped_train', - 'send_to_train' - } - } - } - }, - transport_belt = { - fields = { - content_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - type = { - fields = { - 'accumulator', - 'arithmetic_combinator', - 'constant_combinator', - 'container', - 'decider_combinator', - 'generic_on_off', - 'inserter', - 'lamp', - 'logistic_container', - 'mining_drill', - 'programmable_speaker', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'train_stop', - 'transport_belt', - 'wall' - } - } - } - }, - controllers = { - fields = { - 'character', - 'cutscene', - 'editor', - 'ghost', - 'god', - 'spectator' - } - }, - deconstruction_item = { - fields = { - entity_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_selection_mode = { - fields = { - 'always', - 'never', - 'normal', - 'only' - } - } - } - }, - difficulty = { - fields = { - 'easy', - 'hard', - 'normal' - } - }, - difficulty_settings = { - fields = { - recipe_difficulty = { - fields = { - 'expensive', - 'normal' - } - }, - technology_difficulty = { - fields = { - 'expensive', - 'normal' - } - } - } - }, - direction = { - fields = { - 'east', - 'north', - 'northeast', - 'northwest', - 'south', - 'southeast', - 'southwest', - 'west' - } - }, - distraction = { - fields = { - 'by_anything', - 'by_damage', - 'by_enemy', - 'none' - } - }, - entity_status = { - fields = { - 'working', - 'no_power', - 'no_fuel', - 'no_recipe', - 'no_input_fluid', - 'no_research_in_progress', - 'no_minable_resources', - 'low_input_fluid', - 'low_power', - 'disabled_by_control_behavior', - 'disabled_by_script', - 'fluid_ingredient_shortage', - 'fluid_production_overload', - 'item_ingredient_shortage', - 'item_production_overload', - 'marked_for_deconstruction', - 'missing_required_fluid', - 'missing_science_packs', - 'waiting_for_source_items', - 'waiting_for_space_in_destination', - } - }, - render_mode = { - fields = { - 'game', - 'chart', - 'chart_zoomed_in' - } - }, - events = { - fields = { - 'on_ai_command_completed', - 'on_area_cloned', - 'on_biter_base_built', - 'on_built_entity', - 'on_cancelled_deconstruction', - 'on_cancelled_upgrade', - 'on_character_corpse_expired', - 'on_chart_tag_added', - 'on_chart_tag_modified', - 'on_chart_tag_removed', - 'on_chunk_charted', - 'on_chunk_deleted', - 'on_chunk_generated', - 'on_combat_robot_expired', - 'on_console_chat', - 'on_console_command', - 'on_cutscene_waypoint_reached', - 'on_difficulty_settings_changed', - 'on_entity_cloned', - 'on_entity_damaged', - 'on_entity_died', - 'on_entity_renamed', - 'on_entity_settings_pasted', - 'on_entity_spawned', - 'on_force_created', - 'on_forces_merged', - 'on_forces_merging', - 'on_game_created_from_scenario', - 'on_gui_checked_state_changed', - 'on_gui_click', - 'on_gui_closed', - 'on_gui_confirmed', - 'on_gui_elem_changed', - 'on_gui_location_changed', - 'on_gui_opened', - 'on_gui_selected_tab_changed', - 'on_gui_selection_state_changed', - 'on_gui_switch_state_changed', - 'on_gui_text_changed', - 'on_gui_value_changed', - 'on_land_mine_armed', - 'on_lua_shortcut', - 'on_marked_for_deconstruction', - 'on_marked_for_upgrade', - 'on_market_item_purchased', - 'on_mod_item_opened', - 'on_picked_up_item', - 'on_player_alt_selected_area', - 'on_player_ammo_inventory_changed', - 'on_player_armor_inventory_changed', - 'on_player_banned', - 'on_player_built_tile', - 'on_player_cancelled_crafting', - 'on_player_changed_force', - 'on_player_changed_position', - 'on_player_changed_surface', - 'on_player_cheat_mode_disabled', - 'on_player_cheat_mode_enabled', - 'on_player_configured_blueprint', - 'on_player_crafted_item', - 'on_player_created', - 'on_player_cursor_stack_changed', - 'on_player_deconstructed_area', - 'on_player_demoted', - 'on_player_died', - 'on_player_display_resolution_changed', - 'on_player_display_scale_changed', - 'on_player_driving_changed_state', - 'on_player_dropped_item', - 'on_player_fast_transferred', - 'on_player_gun_inventory_changed', - 'on_player_joined_game', - 'on_player_kicked', - 'on_player_left_game', - 'on_player_main_inventory_changed', - 'on_player_mined_entity', - 'on_player_mined_item', - 'on_player_mined_tile', - 'on_player_muted', - 'on_player_pipette', - 'on_player_placed_equipment', - 'on_player_promoted', - 'on_player_removed', - 'on_player_removed_equipment', - 'on_player_repaired_entity', - 'on_player_respawned', - 'on_player_rotated_entity', - 'on_player_selected_area', - 'on_player_setup_blueprint', - 'on_player_toggled_alt_mode', - 'on_player_toggled_map_editor', - 'on_player_tool_inventory_changed', - 'on_player_trash_inventory_changed', - 'on_player_unbanned', - 'on_player_unmuted', - 'on_player_used_capsule', - 'on_post_entity_died', - 'on_pre_chunk_deleted', - 'on_pre_entity_settings_pasted', - 'on_pre_ghost_deconstructed', - 'on_pre_player_crafted_item', - 'on_pre_player_died', - 'on_pre_player_left_game', - 'on_pre_player_mined_item', - 'on_pre_player_removed', - 'on_pre_robot_exploded_cliff', - 'on_pre_surface_cleared', - 'on_pre_surface_deleted', - 'on_put_item', - 'on_research_finished', - 'on_research_started', - 'on_resource_depleted', - 'on_robot_built_entity', - 'on_robot_built_tile', - 'on_robot_exploded_cliff', - 'on_robot_mined', - 'on_robot_mined_entity', - 'on_robot_mined_tile', - 'on_robot_pre_mined', - 'on_rocket_launch_ordered', - 'on_rocket_launched', - 'on_runtime_mod_setting_changed', - 'on_script_path_request_finished', - 'on_sector_scanned', - 'on_selected_entity_changed', - 'on_surface_cleared', - 'on_surface_created', - 'on_surface_deleted', - 'on_surface_imported', - 'on_surface_renamed', - 'on_technology_effects_reset', - 'on_tick', - 'on_train_changed_state', - 'on_train_created', - 'on_train_schedule_changed', - 'on_trigger_created_entity', - 'on_trigger_fired_artillery', - 'on_unit_added_to_group', - 'on_unit_group_created', - 'on_unit_removed_from_group', - 'script_raised_built', - 'script_raised_destroy', - 'script_raised_revive' - } - }, - flow_precision_index = { - fields = { - 'fifty_hours', - 'one_hour', - 'one_minute', - 'one_second', - 'one_thousand_hours', - 'ten_hours', - 'ten_minutes', - 'two_hundred_fifty_hours' - } - }, - group_state = { - fields = { - 'attacking_distraction', - 'attacking_target', - 'finished', - 'gathering', - 'moving' - } - }, - gui_type = { - fields = { - 'achievement', - 'blueprint_library', - 'bonus', - 'controller', - 'custom', - 'entity', - 'equipment', - 'item', - 'kills', - 'logistic', - 'none', - 'other_player', - 'permissions', - 'player_management', - 'production', - 'research', - 'server_management', - 'trains', - 'tutorials' - } - }, - input_action = { - fields = { - 'activate_copy', - 'activate_cut', - 'activate_paste', - 'add_permission_group', - 'add_train_station', - 'admin_action', - 'alt_select_area', - 'alt_select_blueprint_entities', - 'alternative_copy', - 'begin_mining', - 'begin_mining_terrain', - 'build_item', - 'build_rail', - 'build_terrain', - 'cancel_craft', - 'cancel_deconstruct', - 'cancel_new_blueprint', - 'cancel_research', - 'cancel_upgrade', - 'change_active_item_group_for_crafting', - 'change_active_item_group_for_filters', - 'change_active_quick_bar', - 'change_arithmetic_combinator_parameters', - 'change_blueprint_book_record_label', - 'change_decider_combinator_parameters', - 'change_item_label', - 'change_multiplayer_config', - 'change_picking_state', - 'change_programmable_speaker_alert_parameters', - 'change_programmable_speaker_circuit_parameters', - 'change_programmable_speaker_parameters', - 'change_riding_state', - 'change_shooting_state', - 'change_single_blueprint_record_label', - 'change_train_stop_station', - 'change_train_wait_condition', - 'change_train_wait_condition_data', - 'clean_cursor_stack', - 'clear_selected_blueprint', - 'clear_selected_deconstruction_item', - 'clear_selected_upgrade_item', - 'connect_rolling_stock', - 'copy', - 'copy_entity_settings', - 'craft', - 'create_blueprint_like', - 'cursor_split', - 'cursor_transfer', - 'custom_input', - 'cycle_blueprint_book_backwards', - 'cycle_blueprint_book_forwards', - 'deconstruct', - 'delete_blueprint_library', - 'delete_blueprint_record', - 'delete_custom_tag', - 'delete_permission_group', - 'destroy_opened_item', - 'disconnect_rolling_stock', - 'drag_train_schedule', - 'drag_train_wait_condition', - 'drop_blueprint_record', - 'drop_item', - 'drop_to_blueprint_book', - 'edit_custom_tag', - 'edit_permission_group', - 'export_blueprint', - 'fast_entity_split', - 'fast_entity_transfer', - 'go_to_train_station', - 'grab_blueprint_record', - 'gui_checked_state_changed', - 'gui_click', - 'gui_confirmed', - 'gui_elem_changed', - 'gui_location_changed', - 'gui_selected_tab_changed', - 'gui_selection_state_changed', - 'gui_switch_state_changed', - 'gui_text_changed', - 'gui_value_changed', - 'import_blueprint', - 'import_blueprint_string', - 'import_permissions_string', - 'inventory_split', - 'inventory_transfer', - 'launch_rocket', - 'map_editor_action', - 'market_offer', - 'mod_settings_changed', - 'open_achievements_gui', - 'open_blueprint_library_gui', - 'open_blueprint_record', - 'open_bonus_gui', - 'open_character_gui', - 'open_equipment', - 'open_gui', - 'open_item', - 'open_kills_gui', - 'open_logistic_gui', - 'open_mod_item', - 'open_production_gui', - 'open_technology_gui', - 'open_train_gui', - 'open_train_station_gui', - 'open_trains_gui', - 'open_tutorials_gui', - 'paste_entity_settings', - 'place_equipment', - 'quick_bar_pick_slot', - 'quick_bar_set_selected_page', - 'quick_bar_set_slot', - 'remove_cables', - 'remove_train_station', - 'reset_assembling_machine', - 'rotate_entity', - 'select_area', - 'select_blueprint_entities', - 'select_entity_slot', - 'select_item', - 'select_mapper_slot', - 'select_next_valid_gun', - 'select_tile_slot', - 'set_auto_launch_rocket', - 'set_autosort_inventory', - 'set_behavior_mode', - 'set_car_weapons_control', - 'set_circuit_condition', - 'set_circuit_mode_of_operation', - 'set_deconstruction_item_tile_selection_mode', - 'set_deconstruction_item_trees_and_rocks_only', - 'set_entity_color', - 'set_entity_energy_property', - 'set_filter', - 'set_heat_interface_mode', - 'set_heat_interface_temperature', - 'set_infinity_container_filter_item', - 'set_infinity_container_remove_unfiltered_items', - 'set_infinity_pipe_filter', - 'set_inserter_max_stack_size', - 'set_inventory_bar', - 'set_logistic_filter_item', - 'set_logistic_filter_signal', - 'set_logistic_trash_filter_item', - 'set_request_from_buffers', - 'set_research_finished_stops_game', - 'set_signal', - 'set_single_blueprint_record_icon', - 'set_splitter_priority', - 'set_train_stopped', - 'setup_assembling_machine', - 'setup_blueprint', - 'setup_single_blueprint_record', - 'smart_pipette', - 'stack_split', - 'stack_transfer', - 'start_repair', - 'start_research', - 'start_walking', - 'switch_connect_to_logistic_network', - 'switch_constant_combinator_state', - 'switch_inserter_filter_mode_state', - 'switch_power_switch_state', - 'switch_to_rename_stop_gui', - 'take_equipment', - 'toggle_deconstruction_item_entity_filter_mode', - 'toggle_deconstruction_item_tile_filter_mode', - 'toggle_driving', - 'toggle_enable_vehicle_logistics_while_moving', - 'toggle_equipment_movement_bonus', - 'toggle_map_editor', - 'toggle_personal_roboport', - 'toggle_show_entity_info', - 'undo', - 'upgrade', - 'upgrade_opened_blueprint', - 'use_artillery_remote', - 'use_item', - 'wire_dragging', - 'write_to_console' - } - }, - inventory = { - fields = { - 'artillery_turret_ammo', - 'artillery_wagon_ammo', - 'assembling_machine_input', - 'assembling_machine_modules', - 'assembling_machine_output', - 'beacon_modules', - 'burnt_result', - 'car_ammo', - 'car_trunk', - 'cargo_wagon', - 'character_corpse', - 'chest', - 'editor_main', - 'editor_guns', - 'editor_ammo', - 'editor_armor', - 'fuel', - 'furnace_modules', - 'furnace_result', - 'furnace_source', - 'god_main', - 'item_main', - 'lab_input', - 'lab_modules', - 'mining_drill_modules', - 'character_ammo', - 'character_armor', - 'character_guns', - 'character_main', - 'character_trash', - 'character_vehicle', - 'roboport_material', - 'roboport_robot', - 'robot_cargo', - 'robot_repair', - 'rocket', - 'rocket_silo_result', - 'rocket_silo_rocket', - 'turret_ammo' - } - }, - logistic_member_index = { - fields = { - 'character_provider', - 'character_requester', - 'character_storage', - 'generic_on_off_behavior', - 'logistic_container', - 'vehicle_storage' - } - }, - logistic_mode = { - fields = { - 'active_provider', - 'buffer', - 'none', - 'passive_provider', - 'requester', - 'storage' - } - }, - mouse_button_type = { - fields = { - 'left', - 'middle', - 'none', - 'right' - } - }, - rail_connection_direction = { - fields = { - 'left', - 'none', - 'right', - 'straight' - } - }, - rail_direction = { - fields = { - 'back', - 'front' - } - }, - riding = { - fields = { - acceleration = { - fields = { - 'accelerating', - 'braking', - 'nothing', - 'reversing' - } - }, - direction = { - fields = { - 'left', - 'right', - 'straight' - } - } - } - }, - shooting = { - fields = { - 'not_shooting', - 'shooting_enemies', - 'shooting_selected' - } - }, - signal_state = { - fields = { - 'closed', - 'open', - 'reserved', - 'reserved_by_circuit_network' - } - }, - train_state = { - fields = { - 'arrive_signal', - 'arrive_station', - 'manual_control', - 'manual_control_stop', - 'no_path', - 'no_schedule', - 'on_the_path', - 'path_lost', - 'wait_signal', - 'wait_station' - } - }, - transport_line = { - fields = { - 'left_line', - 'left_split_line', - 'left_underground_line', - 'right_line', - 'right_split_line', - 'right_underground_line', - 'secondary_left_line', - 'secondary_left_split_line', - 'secondary_right_line', - 'secondary_right_split_line' - } - }, - wire_connection_id = { - fields = { - 'electric_pole', - 'power_switch_left', - 'power_switch_right' - } - }, - wire_type = { - fields = { - 'copper', - 'green', - 'red' - } - }, - -- Defines additional modules - color = { - other_fields = true - }, - anticolor = { - other_fields = true - }, - lightcolor = { - other_fields = true - }, - time = { - fields = { - 'second', - 'minute', - 'hour', - 'day', - 'week', - 'month', - 'year' - } - } - } - } - } -}--)) - -stds.love_extra = { - read_globals = { - love = { - fields = { - arg = { - fields = { - 'parseGameArguments', 'parseOption', 'getLow', 'optionIndices', 'options' - } - } - } - } - }, - globals = { - --'coroutine', 'io', 'socket', 'dofile', 'loadfile', - love = { - fields = { - 'handlers' - } - } - } -} - ---[[ Options - "ignore", "std", "globals", "unused_args", "self", "compat", "global", "unused", "redefined", - "unused_secondaries", "allow_defined", "allow_defined_top", "module", - "read_globals", "new_globals", "new_read_globals", "enable", "only", "not_globals", - "max_line_length", "max_code_line_length", "max_string_line_length", "max_comment_line_length", - "max_cyclomatic_complexity" ---]] - ---[[ Warnings list - -- 011 A syntax error. - -- 021 An invalid inline option. - -- 022 An unpaired inline push directive. - -- 023 An unpaired inline pop directive. - -- 111 Setting an undefined global variable. - -- 112 Mutating an undefined global variable. - -- 113 Accessing an undefined global variable. - -- 121 Setting a read-only global variable. - -- 122 Setting a read-only field of a global variable. - -- 131 Unused implicitly defined global variable. - -- 142 Setting an undefined field of a global variable. - -- 143 Accessing an undefined field of a global variable. - -- 211 Unused local variable. - -- 212 Unused argument. - -- 213 Unused loop variable. - -- 221 Local variable is accessed but never set. - -- 231 Local variable is set but never accessed. - -- 232 An argument is set but never accessed. - -- 233 Loop variable is set but never accessed. - -- 241 Local variable is mutated but never accessed. - -- 311 Value assigned to a local variable is unused. - -- 312 Value of an argument is unused. - -- 313 Value of a loop variable is unused. - -- 314 Value of a field in a table literal is unused. - -- 321 Accessing uninitialized local variable. - -- 331 Value assigned to a local variable is mutated but never accessed. - -- 341 Mutating uninitialized local variable. - -- 411 Redefining a local variable. - -- 412 Redefining an argument. - -- 413 Redefining a loop variable. - -- 421 Shadowing a local variable. - -- 422 Shadowing an argument. - -- 423 Shadowing a loop variable. - -- 431 Shadowing an upvalue. - -- 432 Shadowing an upvalue argument. - -- 433 Shadowing an upvalue loop variable. - -- 511 Unreachable code. - -- 512 Loop can be executed at most once. - -- 521 Unused label. - -- 531 Left-hand side of an assignment is too short. - -- 532 Left-hand side of an assignment is too long. - -- 541 An empty do end block. - -- 542 An empty if branch. - -- 551 An empty statement. - -- 611 A line consists of nothing but whitespace. - -- 612 A line contains trailing whitespace. - -- 613 Trailing whitespace in a string. - -- 614 Trailing whitespace in a comment. - -- 621 Inconsistent indentation (SPACE followed by TAB). - -- 631 Line is too long. ---]] \ No newline at end of file diff --git a/OLD/PHI-WE/changelog.txt b/OLD/PHI-WE/changelog.txt deleted file mode 100644 index c643886..0000000 --- a/OLD/PHI-WE/changelog.txt +++ /dev/null @@ -1,6 +0,0 @@ ---------------------------------------------------------------------------------------------------- -Version: 1.1.0 -Date: 2022-12-01 - -Added: - - Compound Turret diff --git a/OLD/PHI-WE/config.lua b/OLD/PHI-WE/config.lua deleted file mode 100644 index 337f98f..0000000 --- a/OLD/PHI-WE/config.lua +++ /dev/null @@ -1,61 +0,0 @@ -local items = { - ['setting'] = { - ['PHI-WE-LASER-TIER'] = { - type = 'max', - effect = {'laser-turret'} - }, - ['PHI-WE-FLAME-TIER'] = { - type = 'max', - effect = {'flamethrower-turret'} - }, - ['PHI-WE-GUN-TIER'] = { - type = 'max', - effect = {'gun-turret'} - }, - ['PHI-WE-RADAR-TIER'] = { - type = 'max', - effect = {'radar'} - } - }, - ['laser-turret'] = { - enabled = true, - type = 'electric-turret', - name = 'laser-turret', - ref_name = 'laser-turret', - tech = 'laser-turret', - min = 2, - max = 3, - range = 24 - }, - ['gun-turret'] = { - enabled = true, - type = 'ammo-turret', - name = 'gun-turret', - ref_name = 'gun-turret', - tech = 'gun-turret', - min = 2, - max = 3, - range = 18 - }, - ['flamethrower-turret'] = { - enabled = true, - type = 'fluid-turret', - name = 'flamethrower-turret', - ref_name = 'flamethrower-turret', - tech = 'flamethrower', - min = 2, - max = 3, - range = 30 - }, - ['radar'] = { - enabled = true, - type = 'radar', - name = 'radar', - ref_name = 'radar', - tech = 'automation', - min = 2, - max = 3 - } -} - -return items \ No newline at end of file diff --git a/OLD/PHI-WE/data-updates.lua b/OLD/PHI-WE/data-updates.lua deleted file mode 100644 index 90dbf81..0000000 --- a/OLD/PHI-WE/data-updates.lua +++ /dev/null @@ -1,31 +0,0 @@ -local items = require 'config' - -for k, v in pairs(items['setting']) do - for k2=1, #v.effect do - if items[v.effect[k2]] ~= nil then - if settings.startup[k].value < items[v.effect[k2]].min then - items[v.effect[k2]].enabled = false - end - - items[v.effect[k2]][v.type] = settings.startup[k].value - end - end -end - -for k, v in pairs(items) do - if k ~= 'setting' then - if v.enabled then - data.raw[v.type][v.ref_name].fast_replaceable_group = v.type - - if v.max > 2 then - data.raw[v.type][v.name .. '-' .. 2].fast_replaceable_group = data.raw[v.type][v.ref_name].fast_replaceable_group - end - - if v.max > v.min then - for j=v.min + 1, v.max do - data.raw[v.type][v.name .. '-' .. j].fast_replaceable_group = data.raw[v.type][v.name .. '-' .. (j - 1)].fast_replaceable_group - end - end - end - end -end diff --git a/OLD/PHI-WE/data.lua b/OLD/PHI-WE/data.lua deleted file mode 100644 index 9a85e1b..0000000 --- a/OLD/PHI-WE/data.lua +++ /dev/null @@ -1,146 +0,0 @@ -local items = require 'config' - -local research_modifier = { - --[[ - ['electric-turret'] = { - 'energy-weapons-damage-1', - 'energy-weapons-damage-2', - 'energy-weapons-damage-3', - 'energy-weapons-damage-4', - 'energy-weapons-damage-5', - 'energy-weapons-damage-6', - 'energy-weapons-damage-7' - }, - ]] - ['ammo-turret'] = { - 'physical-projectile-damage-1', - 'physical-projectile-damage-2', - 'physical-projectile-damage-3', - 'physical-projectile-damage-4', - 'physical-projectile-damage-5', - 'physical-projectile-damage-6', - 'physical-projectile-damage-7' - }, - ['fluid-turret'] = { - 'refined-flammables-1', - 'refined-flammables-2', - 'refined-flammables-3', - 'refined-flammables-4', - 'refined-flammables-5', - 'refined-flammables-6', - 'refined-flammables-7' - } -} - --- entity -local function EE(source, tier) - local item = table.deepcopy(data.raw[source.type][source.ref_name]) - - item.name = source.name .. '-' .. tier - item.minable.result = source.name .. '-' .. tier - item.max_health = item.max_health * tier - - if source.type == 'electric-turret' or source.type == 'ammo-turret' or source.type == 'fluid-turret' then - item.attack_parameters.damage_modifier = (2 ^ (tier - 1)) - item.attack_parameters.range = source.range + (2 * (tier - 1)) - item.call_for_help_radius = 40 + (2 * (tier - 1)) - end - - if source.type == 'electric-turret' then - item.attack_parameters.damage_modifier = item.attack_parameters.damage_modifier * 2 - item.glow_light_intensity = 1 - item.attack_parameters.ammo_type.action.action_delivery.max_length = source.range + (2 * (tier - 1)) - -- item.attack_parameters.ammo_type.energy_consumption = 800 * (2 ^ (tier - 1)) .. 'kJ' - item.energy_source.input_flow_limit = 9600 * (2 ^ (tier - 1)) .. 'kW' - item.energy_source.buffer_capacity = 12816 * (2 ^ (tier - 1)) .. 'kJ' - elseif source.type == 'fluid-turret' then - item.prepare_range = 35 + (2 * (tier - 1)) - elseif source.type == 'radar' then - item.max_distance_of_sector_revealed = item.max_distance_of_sector_revealed + (2 * tier) - item.max_distance_of_nearby_sector_revealed = item.max_distance_of_nearby_sector_revealed + (2 * tier) - item.energy_usage = 300 * (1 + (0.5 * (tier - 1))) .. 'kW' - end - - -- item.animation.layers[1].filename = graphics_location .. source .. '-e.png' - -- item.animation.layers[1].hr_version.filename = graphics_location .. source ..'-eh.png' - -- item.icon = graphics_location .. source .. '-i.png' - -- item.icon_size = 64 - -- item.icon_mipmaps = 4 - - if (tier <= source.max - 1) then - item.next_upgrade = source.name .. '-' .. (tier + 1) - end - - data:extend({item}) -end - --- item -local function EI(source, tier) - local item = table.deepcopy(data.raw.item[source.ref_name]) - - item.name = source.name .. '-' .. tier - item.place_result = source.name .. '-' .. tier - -- item.icons = {{icon = graphics_location .. source .. '-i.png', icon_mipmaps = 4, icon_size = 64}} - item.order = item.order .. tier - data:extend({item}) -end - --- recipe -local function ER(source, tier) - local na = source.name - - if tier > 2 then - na = na .. '-' .. (tier - 1) - end - - data:extend({{ - type = 'recipe', - name = source.name .. '-' .. tier, - energy_required = 2, - enabled = false, - ingredients = {{na, 2}}, - result = source.name .. '-' .. tier, - }}) -end - --- tech -local function ET(source, tier) - table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=source.name .. '-' .. tier}) - - if source.type == 'ammo-turret' or source.type == 'fluid-turret' then - for i=1, #research_modifier[source.type], 1 do - for j=1, #data.raw.technology[research_modifier[source.type][i]].effects, 1 do - if (data.raw.technology[research_modifier[source.type][i]].effects[j].type == 'turret-attack') then - if (data.raw.technology[research_modifier[source.type][i]].effects[j].turret_id == source.ref_name) then - table.insert(data.raw.technology[research_modifier[source.type][i]].effects, {type='turret-attack', turret_id=source.name .. '-' .. tier, modifier=data.raw.technology[research_modifier[source.type][i]].effects[j].modifier}) - end - end - end - end - end -end - -for k, v in pairs(items['setting']) do - for k2=1, #v.effect do - if items[v.effect[k2]] ~= nil then - if settings.startup[k].value < items[v.effect[k2]].min then - items[v.effect[k2]].enabled = false - end - - items[v.effect[k2]][v.type] = settings.startup[k].value - end - end -end - -for k, v in pairs(items) do - if k ~= 'setting' then - if v.enabled then - for j=v.min, v.max, 1 do - EE(v, j) - EI(v, j) - ER(v, j) - ET(v, j) - end - end - end -end diff --git a/OLD/PHI-WE/info.json b/OLD/PHI-WE/info.json deleted file mode 100644 index 3e03941..0000000 --- a/OLD/PHI-WE/info.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "PHI-WE", - "version": "1.1.0", - "factorio_version": "1.1", - "date": "2023-09-19", - "title": "Phidias Warfare", - "author": "PHIDIAS0303", - "contributers": "", - "homepage": "", - "description": "Warfare", - "dependencies": [ - "base >= 1.1.0" - ] -} \ No newline at end of file diff --git a/OLD/PHI-WE/locale/en/locale.cfg b/OLD/PHI-WE/locale/en/locale.cfg deleted file mode 100644 index 4aac9a8..0000000 --- a/OLD/PHI-WE/locale/en/locale.cfg +++ /dev/null @@ -1,47 +0,0 @@ -[item-name] -laser-turret-2=Laser turret 2 -laser-turret-3=Laser turret 3 -gun-turret-2=Gun turret 2 -gun-turret-3=Gun turret 3 -flamethrower-turret-2=Flamethrower turret 2 -flamethrower-turret-3=Flamethrower turret 3 -radar-2=Radar 2 -radar-3=Radar 3 - -[entity-name] -laser-turret-2=Laser turret 2 -laser-turret-3=Laser turret 3 -gun-turret-2=Gun turret 2 -gun-turret-3=Gun turret 3 -flamethrower-turret-2=Flamethrower turret 2 -flamethrower-turret-3=Flamethrower turret 3 -radar-2=Radar 2 -radar-3=Radar 3 - -[entity-description] -laser-turret-2=Advanced defensive buildings that only require electricity. -laser-turret-3=Advanced defensive buildings that only require electricity. -gun-turret-2=Basic defensive buildings that must be refilled with magazines. -gun-turret-3=Basic defensive buildings that must be refilled with magazines. -flamethrower-turret-2=Fires a stream of burning liquid at enemies. -flamethrower-turret-3=Fires a stream of burning liquid at enemies. -radar-2=Scans the nearby sectors, and actively reveals an area around it. -radar-3=Scans the nearby sectors, and actively reveals an area around it. - -[modifier-description] -gun-turret-2-attack-bonus=Gun turret damage: +__1__ -gun-turret-3-attack-bonus=Gun turret damage: +__1__ -flamethrower-turret-2-attack-bonus=Fire damage: +__1__ -flamethrower-turret-3-attack-bonus=Fire damage: +__1__ - -[mod-setting-name] -PHI-WE-LASER-TIER=Laser turret -PHI-WE-FLAME-TIER=Flamethrower turret -PHI-WE-GUN-TIER=Gun turret -PHI-WE-RADAR-TIER=Radar - -[mod-setting-description] -PHI-WE-LASER-TIER=Default 3 ; Disable 1 -PHI-WE-FLAME-TIER=Default 3 ; Disable 1 -PHI-WE-GUN-TIER=Default 3 ; Disable 1 -PHI-WE-RADAR-TIER=Default 3 ; Disable 1 diff --git a/OLD/PHI-WE/locale/ja/locale.cfg b/OLD/PHI-WE/locale/ja/locale.cfg deleted file mode 100644 index cfda681..0000000 --- a/OLD/PHI-WE/locale/ja/locale.cfg +++ /dev/null @@ -1,47 +0,0 @@ -[item-name] -laser-turret-2=レーザータレット 2 -laser-turret-3=レーザータレット 3 -gun-turret-2=ガンタレット 2 -gun-turret-3=ガンタレット 3 -flamethrower-turret-2=火炎放射タレット 2 -flamethrower-turret-3=火炎放射タレット 3 -radar-2=レーダー 2 -radar-3=レーダー 3 - -[entity-name] -laser-turret-2=レーザータレット 2 -laser-turret-3=レーザータレット 3 -gun-turret-2=ガンタレット 2 -gun-turret-3=ガンタレット 3 -flamethrower-turret-2=火炎放射タレット 2 -flamethrower-turret-3=火炎放射タレット 3 -radar-2=レーダー 2 -radar-3=レーダー 3 - -[entity-description] -laser-turret-2=電気のみで稼動する高度な防衛施設。 -laser-turret-3=電気のみで稼動する高度な防衛施設。 -gun-turret-2=弾薬を補充する必要がある基本的な防衛施設。 -gun-turret-3=弾薬を補充する必要がある基本的な防衛施設。 -flamethrower-turret-2=敵に火のついた液体を投射します。 -flamethrower-turret-3=敵に火のついた液体を投射します。 -radar-2=近隣の領域をスキャンし、その周囲のエリアを探索します。 -radar-3=近隣の領域をスキャンし、その周囲のエリアを探索します。 - -[modifier-description] -gun-turret-2-attack-bonus=ガンタレットダメージ: +__1__ -gun-turret-3-attack-bonus=ガンタレットダメージ: +__1__ -flamethrower-turret-2-attack-bonus=火炎放射タレット ダメージ: +__1__ -flamethrower-turret-3-attack-bonus=火炎放射タレット ダメージ: +__1__ - -[mod-setting-name] -PHI-WE-LASER-TIER=レーザータレット -PHI-WE-FLAME-TIER=火炎放射タレット -PHI-WE-GUN-TIER=ガンタレット -PHI-WE-RADAR-TIER=レーダー - -[mod-setting-description] -PHI-WE-LASER-TIER=デフォルト 3 ; 止める 1 -PHI-WE-FLAME-TIER=デフォルト 3 ; 止める 1 -PHI-WE-GUN-TIER=デフォルト 3 ; 止める 1 -PHI-WE-RADAR-TIER=デフォルト 3 ; 止める 1 diff --git a/OLD/PHI-WE/locale/zh-CN/locale.cfg b/OLD/PHI-WE/locale/zh-CN/locale.cfg deleted file mode 100644 index 4244425..0000000 --- a/OLD/PHI-WE/locale/zh-CN/locale.cfg +++ /dev/null @@ -1,47 +0,0 @@ -[item-name] -laser-turret-2=雷射炮塔 2 -laser-turret-3=雷射炮塔 3 -gun-turret-2=機槍炮塔 2 -gun-turret-3=機槍炮塔 3 -flamethrower-turret-2=火焰噴射器 2 -flamethrower-turret-3=火焰噴射器 3 -radar-2=雷達 2 -radar-3=雷達 3 - -[entity-name] -laser-turret-2=雷射炮塔 2 -laser-turret-3=雷射炮塔 3 -gun-turret-2=機槍炮塔 2 -gun-turret-3=機槍炮塔 3 -flamethrower-turret-2=火焰噴射器 2 -flamethrower-turret-3=火焰噴射器 3 -radar-2=雷達 2 -radar-3=雷達 3 - -[entity-description] -laser-turret-2=僅需電力即可運轉的先進防禦工事。 -laser-turret-3=僅需電力即可運轉的先進防禦工事。 -gun-turret-2=基礎防禦設施,須裝填彈匣。 -gun-turret-3=基礎防禦設施,須裝填彈匣。 -flamethrower-turret-2=噴射燃燒的油料燒灼敵人。 -flamethrower-turret-3=噴射燃燒的油料燒灼敵人。 -radar-2=掃描並顯示附近的未知區域。 -radar-3=掃描並顯示附近的未知區域。 - -[modifier-description] -gun-turret-2-attack-bonus=機槍炮塔傷害:+__1__ -gun-turret-3-attack-bonus=機槍炮塔傷害:+__1__ -flamethrower-turret-2-attack-bonus=火焰噴射炮塔傷害:+__1__ -flamethrower-turret-3-attack-bonus=火焰噴射炮塔傷害:+__1__ - -[mod-setting-name] -PHI-WE-LASER-TIER=雷射炮塔 -PHI-WE-FLAME-TIER=火焰噴射器 -PHI-WE-GUN-TIER=機槍炮塔 -PHI-WE-RADAR-TIER=雷達 - -[mod-setting-description] -PHI-WE-LASER-TIER=預設 3 ; 停用 1 -PHI-WE-FLAME-TIER=預設 3 ; 停用 1 -PHI-WE-GUN-TIER=預設 3 ; 停用 1 -PHI-WE-RADAR-TIER=預設 3 ; 停用 1 diff --git a/OLD/PHI-WE/locale/zh-TW/locale.cfg b/OLD/PHI-WE/locale/zh-TW/locale.cfg deleted file mode 100644 index 4244425..0000000 --- a/OLD/PHI-WE/locale/zh-TW/locale.cfg +++ /dev/null @@ -1,47 +0,0 @@ -[item-name] -laser-turret-2=雷射炮塔 2 -laser-turret-3=雷射炮塔 3 -gun-turret-2=機槍炮塔 2 -gun-turret-3=機槍炮塔 3 -flamethrower-turret-2=火焰噴射器 2 -flamethrower-turret-3=火焰噴射器 3 -radar-2=雷達 2 -radar-3=雷達 3 - -[entity-name] -laser-turret-2=雷射炮塔 2 -laser-turret-3=雷射炮塔 3 -gun-turret-2=機槍炮塔 2 -gun-turret-3=機槍炮塔 3 -flamethrower-turret-2=火焰噴射器 2 -flamethrower-turret-3=火焰噴射器 3 -radar-2=雷達 2 -radar-3=雷達 3 - -[entity-description] -laser-turret-2=僅需電力即可運轉的先進防禦工事。 -laser-turret-3=僅需電力即可運轉的先進防禦工事。 -gun-turret-2=基礎防禦設施,須裝填彈匣。 -gun-turret-3=基礎防禦設施,須裝填彈匣。 -flamethrower-turret-2=噴射燃燒的油料燒灼敵人。 -flamethrower-turret-3=噴射燃燒的油料燒灼敵人。 -radar-2=掃描並顯示附近的未知區域。 -radar-3=掃描並顯示附近的未知區域。 - -[modifier-description] -gun-turret-2-attack-bonus=機槍炮塔傷害:+__1__ -gun-turret-3-attack-bonus=機槍炮塔傷害:+__1__ -flamethrower-turret-2-attack-bonus=火焰噴射炮塔傷害:+__1__ -flamethrower-turret-3-attack-bonus=火焰噴射炮塔傷害:+__1__ - -[mod-setting-name] -PHI-WE-LASER-TIER=雷射炮塔 -PHI-WE-FLAME-TIER=火焰噴射器 -PHI-WE-GUN-TIER=機槍炮塔 -PHI-WE-RADAR-TIER=雷達 - -[mod-setting-description] -PHI-WE-LASER-TIER=預設 3 ; 停用 1 -PHI-WE-FLAME-TIER=預設 3 ; 停用 1 -PHI-WE-GUN-TIER=預設 3 ; 停用 1 -PHI-WE-RADAR-TIER=預設 3 ; 停用 1 diff --git a/OLD/PHI-WE/migrations/migrations.lua b/OLD/PHI-WE/migrations/migrations.lua deleted file mode 100644 index d401e70..0000000 --- a/OLD/PHI-WE/migrations/migrations.lua +++ /dev/null @@ -1,23 +0,0 @@ -local items = require '__PHI-WE__/config' - -for _, force in pairs(game.forces) do - local technologies = force.technologies - local recipes = force.recipes - - for k, v in pairs(items) do - if k ~= 'setting' then - if v.enabled then - if technologies[v.tech] ~= nil then - if technologies[v.tech].researched then - for j=v.min, v.max, 1 do - if recipes[v.name .. '-' .. j] ~= nil then - recipes[v.name .. '-' .. j].enabled = true - recipes[v.name .. '-' .. j].reload() - end - end - end - end - end - end - end -end diff --git a/OLD/PHI-WE/settings.lua b/OLD/PHI-WE/settings.lua deleted file mode 100644 index 764e7ca..0000000 --- a/OLD/PHI-WE/settings.lua +++ /dev/null @@ -1,29 +0,0 @@ -data:extend({{ - type = 'int-setting', - name = 'PHI-WE-LASER-TIER', - setting_type = 'startup', - default_value = 3, - allowed_values = {1, 2, 3}, - order = 'A1' - }, { - type = 'int-setting', - name = 'PHI-WE-FLAME-TIER', - setting_type = 'startup', - default_value = 3, - allowed_values = {1, 2, 3}, - order = 'A2' - }, { - type = 'int-setting', - name = 'PHI-WE-GUN-TIER', - setting_type = 'startup', - default_value = 3, - allowed_values = {1, 2, 3}, - order = 'A3' - }, { - type = 'int-setting', - name = 'PHI-WE-RADAR-TIER', - setting_type = 'startup', - default_value = 3, - allowed_values = {1, 2, 3}, - order = 'A4' - }}) \ No newline at end of file diff --git a/OLD/PHI-WE/thumbnail.png b/OLD/PHI-WE/thumbnail.png deleted file mode 100644 index ea60207..0000000 Binary files a/OLD/PHI-WE/thumbnail.png and /dev/null differ diff --git a/OLD/PHI-XC/.editorconfig b/OLD/PHI-XC/.editorconfig deleted file mode 100644 index 73c5516..0000000 --- a/OLD/PHI-XC/.editorconfig +++ /dev/null @@ -1,8 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 4 -charset = utf-8 -trim_trailing_whitespace = false -insert_final_newline = false \ No newline at end of file diff --git a/OLD/PHI-XC/.luacheckrc b/OLD/PHI-XC/.luacheckrc deleted file mode 100644 index 0da1ad4..0000000 --- a/OLD/PHI-XC/.luacheckrc +++ /dev/null @@ -1,1597 +0,0 @@ -------------------------------------------------------------------------------- ---[LICENSE]-- -------------------------------------------------------------------------------- --- .luacheckrc --- This file is free and unencumbered software released into the public domain. --- --- Anyone is free to copy, modify, publish, use, compile, sell, or --- distribute this file, either in source code form or as a compiled --- binary, for any purpose, commercial or non-commercial, and by any --- means. --- --- In jurisdictions that recognize copyright laws, the author or authors --- of this file dedicate any and all copyright interest in the --- software to the public domain. We make this dedication for the benefit --- of the public at large and to the detriment of our heirs and --- successors. We intend this dedication to be an overt act of --- relinquishment in perpetuity of all present and future rights to this --- software under copyright law. --- --- THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, --- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR --- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, --- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR --- OTHER DEALINGS IN THE SOFTWARE. --- --- For more information, please refer to --- ]] - --- Current Factorio Version 0.17.0, luacheck version 0.23.0 - -------------------------------------------------------------------------------- ---[Set Defaults]-- -------------------------------------------------------------------------------- -local LINE_LENGTH = false -- It is 2017 limits on length are a waste -local IGNORE = {'21./%w+_$', '21./^_%w+$', '213/[ijk]', '213/index', '213/key'} -local NOT_GLOBALS = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'} -- These globals are not available to the factorio API - -local STD_CONTROL = 'lua52c+factorio+factorio_control+stdlib+factorio_defines' -local STD_DATA = 'lua52c+factorio+factorio_data+stdlib+stdlib_data+factorio_defines' -local STD_LOVE = 'luajit+love+love_extra+stdlib+stdlib_data' - --- In a perfect world these would be STD_DATA and STD_CONTROL (mostly) -local STD_BASE_DATA = 'lua52c+factorio+factorio_data+factorio_defines+factorio_base_data' -local STD_BASE_CONTROL = 'lua52c+factorio+factorio_control+factorio_defines+factorio_base_control' - -------------------------------------------------------------------------------- ---[Assume Factorio Control stage as default]-- -------------------------------------------------------------------------------- -std = STD_CONTROL -max_line_length = LINE_LENGTH - -not_globals = NOT_GLOBALS -ignore = IGNORE -quiet = 1 -- pass -q option -max_cyclomatic_complexity = 75 -codes = true - ---List of files and directories to exclude -exclude_files = { - --Ignore special folders - '**/.*/*', --Ignore if path starts with . - '**/stdlib/vendor/', - '**/*WIP/', - - --Ignore development mods - '**/combat-tester/', - '**/test-maker/', - '**/trailer/', - - --Ignore love Includes - '**/love/includes/' -} - -------------------------------------------------------------------------------- ---[Mod Prototypes]-- -------------------------------------------------------------------------------- ---Set default prototype files -files['**/data.lua'].std = STD_DATA -files['**/data-updates.lua'].std = STD_DATA -files['**/data-final-fixes.lua'].std = STD_DATA -files['**/settings.lua'].std = STD_DATA -files['**/settings-updates.lua'].std = STD_DATA -files['**/settings-final-fixes.lua'].std = STD_DATA -files['**/prototypes/'].std = STD_DATA -files['**/settings/'].std = STD_DATA -files['**/love/'] = {std = STD_LOVE, globals = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'}} - -------------------------------------------------------------------------------- ---[Base]-- -------------------------------------------------------------------------------- ---Find and replace ignores *.cfg, migrations, *.txt, control.lua, *.json, trailer, scenarios, campaigns, *.glsl - -local base_scenarios = { - std = STD_BASE_CONTROL .. '+factorio_base_scenarios+factorio_base_story', - --ignore = {'212/event', '111', '112', '113', '211', '212', '213', '311', '411', '412', '421', '422', '423', '431', '432', '512'} - ignore = {'...'} -} -files['**/base/scenarios/'] = base_scenarios -files['**/base/tutorials/'] = base_scenarios -files['**/base/campaigns/'] = base_scenarios -files['**/wip-scenario/'] = base_scenarios - -files['**/base/migrations/'] = {std = STD_BASE_CONTROL} - -files['**/core/lualib/'] = {std = STD_BASE_CONTROL} -files['**/core/lualib/util.lua'] = {globals = {'util', 'table'}, ignore = {'432/object'}} -files['**/core/lualib/silo-script.lua'] = {globals = {'silo_script'}, ignore = {'4../player'}} -files['**/core/lualib/production-score.lua'] = {globals = {'production_score', 'get_price_recursive'}, ignore = {'4../player'}} -files['**/core/lualib/story*'] = {std = '+factorio_base_story', ignore = {'42./k', '42./filter'}} -files['**/core/lualib/mod-gui.lua'] = {globals = {'mod_gui'}} -files['**/core/lualib/camera.lua'] = {globals = {'camera'}} -files['**/core/lualib/builder.lua'] = {globals = {'Builder', 'builder', 'action', 'down', 'right'}} - -files['**/core/lualib/bonus-gui-ordering/'] = {std = STD_BASE_DATA} -files['**/core/lualib/dataloader.lua'] = {globals = {'data'}} -files['**/core/lualib/circuit-connector-*'] = {std = STD_BASE_DATA..'+factorio_circuit_connector_generated'} -files['**/core/lualib/bonus-gui-ordering.lua'] = {globals = {'bonus_gui_ordering'}} - -files['**/base/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/noise-programs.lua'] = {ignore = {'212/x', '212/y', '212/tile', '212/map'}} - ---(( stdlib ))-- -local stdlib_control = { - std = 'lua52c+factorio+factorio_control+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - -local stdlib_data = { - std = 'lua52c+factorio+factorio_data+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - --- Assume control stage for stdlib -files['**/stdlib/'] = stdlib_control - --- Assume generic content for stdlib utils -files['**/stdlib/utils/**'].std = 'lua52c+stdlib' - --- STDLIB data files -files['**/stdlib/data/'] = stdlib_data - --- STDLIB Busted Spec -files['**/spec/**'] = { - globals = {'serpent', 'log', 'SLOG', 'RESET'}, - std = 'lua52c+busted+factorio_defines+factorio_control+stdlib' -} --)) - ---(( Factorio ))-- -stds.factorio = { - --Set the read only variables - read_globals = { - -- @log@: Gives writing access to Factorio's logger instance. - "log", - -- @serpent@: Lua serializer and pretty printer. (https://github.com/pkulchenko/serpent) - "serpent", - -- @table_size@: Returns the number of elements inside an LUA table - "table_size", - util = { - fields = { - "by_pixel", "distance", "findfirstentity", "positiontostr", "formattime", "moveposition", "oppositedirection", - "ismoduleavailable", "multiplystripes", "format_number", "increment", "color", "conditional_return", - "add_shift", "merge", "premul_color", "encode", "decode", "insert_safe", - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, - }, - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, -} - -stds.factorio_control = { - read_globals = { - - -- @commands@: - commands = { - fields = { - "add_command", "commands", "game_commands", "remove_command" - }, - }, - - -- @settings@: - settings = { - fields = { - "get_player_settings", - startup = {read_only = false, other_fields = true}, - global = {read_only = false, other_fields = true}, - player = {read_only = false, other_fields = true}, - }, - }, - - -- @script@: Provides an interface for registering event handlers. - -- (http://lua-api.factorio.com/latest/LuaBootstrap.html) - script = { - fields = { - "on_event", "on_nth_tick", "on_configuration_changed", "on_init", "on_load", "generate_event_name", - "raise_event", "get_event_handler", "mod_name", "get_event_order" - }, - other_fields = false, - }, - - -- @remote@: Allows inter-mod communication by providing a repository of interfaces that is shared by all mods. - -- (http://lua-api.factorio.com/latest/LuaRemote.html) - remote = { - fields = { - interfaces = {read_only = false, other_fields = true}, - "add_interface", "remove_interface", "call" - }, - read_only = true, - other_fields = false, - }, - - rcon = { - fields = {'print'} - }, - - rendering = { - other_fields = false, - read_only = true, - fields = { - 'draw_animation', - 'draw_line', - 'draw_text', - 'draw_circle', - 'draw_rectangle', - 'draw_arc', - 'draw_polygon', - 'draw_sprite', - 'draw_light', - 'destroy', - 'is_font_valid', - 'is_valid', - 'get_all_ids', - 'clear', - 'get_type', - 'get_surface', - 'get_time_to_live', - 'set_time_to_live', - 'get_forces', - 'set_forces', - 'get_players', - 'set_players', - 'get_color', - 'set_color', - 'get_width', - 'set_width', - 'get_from', - 'set_from', - 'get_to', - 'set_to', - 'get_gap_amount', - 'set_gap_amount', - 'get_gap_length', - 'set_gap_length', - 'get_target', - 'set_target', - 'get_orientation', - 'set_orientation', - 'get_scale', - 'set_scale', - 'get_text', - 'set_text', - 'get_font', - 'set_font', - 'get_alignment', - 'set_alignment', - 'get_scale_with_zoom', - 'set_scale_with_zoom', - 'get_filled', - 'set_filled', - 'get_radius', - 'set_radius', - 'get_left_top', - 'set_left_top', - 'get_right_bottom', - 'set_right_bottom', - 'get_max_radius', - 'set_max_radius', - 'get_min_radius', - 'set_min_radius', - 'get_start_angle', - 'set_start_angle', - 'get_angle', - 'set_angle', - 'get_vertices', - 'set_vertices', - 'get_sprite', - 'set_sprite', - 'get_x_scale', - 'set_x_scale', - 'get_y_scale', - 'set_y_scale', - 'get_render_layer', - 'set_render_layer', - 'get_orientation_target', - 'set_orientation_target', - 'get_oriented_offset', - 'set_oriented_offset', - 'get_intensity', - 'set_intensity', - 'get_minimum_darkness', - 'set_minimum_darkness' - } - }, - - -- @game@: Main object through which most of the API is accessed. - -- It is, however, not available inside handlers registered with @script.on_load@. - -- (http://lua-api.factorio.com/latest/LuaGameScript.html) - game ={ - other_fields = false, - read_only = false, - fields = { - "auto_save", - "ban_player", - "check_consistency", - "check_prototype_translations", - "count_pipe_groups", - "create_force", - "create_profiler", - "create_random_generator", - "get_surface", - "create_surface", - "delete_surface", - "desync_players", - "direction_to_string", - "disable_replay", - "disable_tips_and_tricks", - "draw_resource_selection", - "force_crc", - "get_active_entities_count", - "get_entity_by_tag", - "get_map_exchange_string", - "get_player", - "help", - "is_demo", - "is_multiplayer", - "is_valid_sound_path", - "json_to_table", - "kick_player", - "merge_forces", - "mute_player", - "play_sound", - "print", - "print_stack_size", - "purge_player", - "regenerate_entity", - "reload_mods", - "reload_script", - "remove_offline_players", - "remove_path", - "save_atlas", - "server_save", - "set_game_state", - "show_message_dialog", - "table_to_json", - "take_screenshot", - "take_technology_screenshot", - "unban_player", - "unmute_player", - "write_file", - "get_filtered_entity_prototypes", - "get_filtered_item_prototypes", - "get_filtered_equipment_prototypes", - "get_filtered_mod_setting_prototypes", - "get_filtered_achievement_prototypes", - - active_mods = {read_only = true, other_fields = true}, - ammo_category_prototypes = {read_only = true, other_fields = true}, - autoplace_control_prototypes = {read_only = true, other_fields = true}, - backer_names = {read_only = true, other_fields = true}, - connected_players = {read_only = true, other_fields = true}, - custom_input_prototypes = {read_only = true, other_fields = true}, - damage_prototypes = {read_only = true, other_fields = true}, - decorative_prototypes = {read_only = true, other_fields = true}, - default_map_gen_settings = {read_only = true, other_fields = true}, - difficulty = {read_only = true, other_fields = true}, - difficulty_settings = {read_only = true, other_fields = true}, - enemy_has_vision_on_land_mines = {read_only = false, other_fields = false}, - entity_prototypes = {read_only = true, other_fields = true}, - equipment_grid_prototypes = {read_only = true, other_fields = true}, - equipment_prototypes = {read_only = true, other_fields = true}, - finished = {read_only = true, other_fields = true}, - fluid_prototypes = {read_only = true, other_fields = true}, - forces = {read_only = true, other_fields = true}, - item_prototypes = {read_only = true, other_fields = true}, - map_settings = {read_only = true, other_fields = true}, - mod_setting_prototypes = {read_only = true, other_fields = true}, - noise_layer_prototypes = {read_only = true, other_fields = true}, - permissions = {read_only = true, other_fields = true}, - player = {read_only = true, other_fields = true}, - players = {read_only = true, other_fields = true}, - recipe_prototypes = {read_only = true, other_fields = true}, - speed = {read_only = false, other_fields = false}, - styles = {read_only = true, other_fields = true}, - surfaces = {read_only = true, other_fields = true}, - technology_prototypes = {read_only = true, other_fields = true}, - tick = {read_only = true, other_fields = true}, - tick_paused = {read_only = false, other_fields = false}, - ticks_played = {read_only = true, other_fields = true}, - ticks_to_run = {read_only = false, other_fields = false}, - tile_prototypes = {read_only = true, other_fields = true}, - virtual_signal_prototypes = {read_only = true, other_fields = true}, - pollution_statistics = {read_only = true, other_fields = true} - }, - }, - }, - - globals = { - -- @global@: The global dictionary, useful for storing data persistent across a save-load cycle. - -- Writing access is given to the mod-id field (for mod-wise saved data). - -- (http://lua-api.factorio.com/latest/Global.html) - "global", - - -- @MOD@: Keep it organized, use this variable for anything that "NEEDS" to be global for some reason. - "MOD" - }, -} - -stds.factorio_data = { - - read_globals = { - data = { - fields = { - raw = { - other_fields = true, - read_only = false - }, - "extend", "is_demo" - }, - }, - - settings = { - fields = { - "startup", "global", "player", - }, - }, - - --Popular mods - angelsmods = { - other_fields = true - }, - - bobmods = { - other_fields = true - }, - - mods = { - other_fields = true - } - } -} --)) - ---(( Factorio Globals are bad mkay ))-- -stds.factorio_base_control = { - read_globals = {"silo_script", "mod_gui", "camera"} -} - -stds.factorio_base_scenarios = { - globals = { - "check_automate_science_packs_advice", "check_research_hints", "check_supplies", "manage_attacks", "all_dead", - "on_win", "difficulty_number", "init_attack_data", "handle_attacks", "count_items_in_container", "progress", "scanned", - "check_light", "check_machine_gun", "level", "story_table", - - "tightspot_prices", "tightspot_make_offer", "tightspot_init", "tightspot_get_required_balance", - "tightspot_init_level", "tightspot_init_spending_frame", "tightspot_init_progress_frame", "tightspot_update_progress", "tightspot_update_spending", - "tightspot_get_missing_to_win", "tightspot_sell_back", "tightspot_start_level", "tightspot_show_level_description", "tightspot_update_speed_label", - "map_ignore", "tightspot_check_level", "land_price", - - "transport_belt_madness_init", "transport_belt_madness_init_level", "transport_belt_madness_create_chests", "transport_belt_madness_fill_chests", - "transport_belt_madness_start_level", "map_ignore", "map_clear", "map_load", "map_save", "transport_belt_madness_show_level_description", - "transport_belt_madness_check_level", "transport_belt_madness_next_level", "transport_belt_madness_clear_level", "transport_belt_madness_contains_next_level", - - "restricted", "check_built_items", "result", "disable_combat_technologies", "apply_character_modifiers", "apply_combat_modifiers", "apply_balance", - "load_config", "starting_area_constant", "create_next_surface", "end_round", "prepare_next_round", "silo_died","choose_joining_gui", - "destroy_joining_guis", "create_random_join_gui", "create_auto_assign_gui", "create_pick_join_gui", "create_config_gui", "make_config_table", "default", - "make_team_gui", "make_team_gui_config", "add_team_button_press", "trash_team_button_press", "remove_team_from_team_table", "add_team_to_team_table", - "set_teams_from_gui", "on_team_button_press", "make_color_dropdown", "create_balance_option", "create_disable_frame", "disable_frame", "parse_disabled_items", - "set_balance_settings", "config_confirm", "parse_config_from_gui", "get_color", "roll_starting_area", "delete_roll_surfaces", "auto_assign", - "destroy_config_for_all", "prepare_map", "set_evolution_factor", "update_players_on_team_count", "random_join", "init_player_gui", - "destroy_player_gui", "objective_button_press", "admin_button_press", "admin_frame_button_press", "diplomacy_button_press", "update_diplomacy_frame", - "diplomacy_frame_button_press", "team_changed_diplomacy", "diplomacy_check_press", "get_stance", "give_inventory", "setup_teams", "disable_items_for_all", - "set_random_team", "set_diplomacy", "create_spawn_positions", "set_spawn_position", "set_team_together_spawns", "chart_starting_area_for_force_spawns", - "check_starting_area_chunks_are_generated", "check_player_color", "check_round_start", "clear_starting_area_enemies", "check_no_rush_end", "check_no_rush_players", - "finish_setup", "chart_area_for_force", "setup_start_area_copy", "update_copy_progress", "update_progress_bar", "copy_paste_starting_area_tiles", - "copy_paste_starting_area_entities", "create_silo_for_force", "setup_research", "on_chunk_generated", "get_distance_to_nearest_spawn", - "create_wall_for_force", "fpn", "give_items", "create_item_frame", "create_technologies_frame", "create_cheat_frame", "create_day_frame", - "time_modifier", "points_per_second_start", "points_per_second_level_subtract", "levels", "update_info", "get_time_left", "update_time_left", - "on_joined", "make_frame", "update_frame", "update_table", "calculate_task_item_multiplayer", "setup_config", "select_from_probability_table", - "select_inventory", "select_equipment", "select_challange_type", "save_round_statistics", "start_challenge", "create_teams", "set_areas", - "decide_player_team", "set_teams", "refresh_leaderboard", "set_player", "generate_technology_list", "generate_research_task","setup_unlocks", - "check_technology_progress", "generate_production_task", "generate_shopping_list_task", "set_gui_flow_table", "create_visibility_button", - "check_item_lists", "update_task_gui", "check_end_of_round", "end_round_gui_update", "try_to_check_victory", "update_gui", "check_start_round", - "check_start_set_areas", "check_start_setting_entities", "check_set_areas", "check_clear_areas", "check_chests", "check_chests_shopping_list", - "check_chests_production", "check_input_chests", "fill_input_chests", "check_victory", "shopping_task_finished", "calculate_force_points", - "update_research_task_table", "update_production_task_table", "update_shopping_list_task_table", "create_joined_game_gui", "pre_ending_round", - "player_ending_prompt", "update_end_timer", "update_begin_timer", "team_finished", "save_points_list", "give_force_players_points", - "update_winners_list", "set_spectator", "set_character", "give_starting_inventory", "give_equipment", "shuffle_table", "format_time", - "spairs", "fill_leaderboard", "create_grid", "simple_entities", "save_map_data", "clear_map", "create_tiles", "recreate_entities", - "map_sets", "give_points", "init_forces", "init_globals", "init_unit_settings", "check_next_wave", "next_wave", "calculate_wave_power", - "wave_end", "make_next_spawn_tick", "check_spawn_units", "get_wave_units", "spawn_units", "randomize_ore", "set_command", "command_straglers", - "unit_config", "make_next_wave_tick", "time_to_next_wave", "time_to_wave_end", "rocket_died", "unit_died", "get_bounty_price", "setup_waypoints", - "insert_items", "give_starting_equipment", "give_spawn_equipment", "next_round_button_visible", "gui_init", "create_wave_frame", "create_money_frame", - "create_upgrade_gui", "update_upgrade_listing", "upgrade_research", "get_upgrades", "get_money", "update_connected_players", "update_round_number", - "set_research", "set_recipes", "check_deconstruction", "check_blueprint_placement", "loop_entities", "experiment_items", - "setup", "story_gui_click", "clear_surface", "add_run_trains_button", "puzzle_condition", "basic_signals", - "loop_trains", "Y_offset", "ghosts_1", "ghosts_2", "required_path", "through_wall_path", "count", "check_built_real_rail", - "current_ghosts_count", "other", "rails", "set_rails", "straight_section", "late_entities", "entities", "stop", - "get_spawn_coordinate", - - --tutorials - "intermission", "create_entities_on_tick", "on_player_created", "required_count", "non_player_entities", "clear_rails", - "chest", "damage", "furnace", "init_prototypes", "build_infi_table", "junk", "update_player_tags", "time_left", "team_production", - "create_task_frame", "create_visibilty_buttons", "update_leaderboard", "in_in_area" - } -} - -stds.factorio_base_data = { - globals = { - --Style - "make_cursor_box", "make_full_cursor_box", - "default_container_padding", "default_orange_color", "default_light_orange_color", "warning_red_color", - "achievement_green_color", "achievement_tan_color", "orangebuttongraphcialset", "bluebuttongraphcialset", - "bonus_gui_ordering", "trivial_smoke", "technology_slot_base_width", "technology_slot_base_height", "default_frame_font_vertical_compensation", - - --Belts - "transport_belt_connector_frame_sprites", "transport_belt_circuit_wire_connection_point", "transport_belt_circuit_wire_max_distance", - "transport_belt_circuit_connector_sprites", "ending_patch_prototype", "basic_belt_horizontal", "basic_belt_vertical", - "basic_belt_ending_top", "basic_belt_ending_bottom", "basic_belt_ending_side", "basic_belt_starting_top", "basic_belt_starting_bottom", - "basic_belt_starting_side", "fast_belt_horizontal", "fast_belt_vertical", "fast_belt_ending_top", "fast_belt_ending_bottom", - "fast_belt_ending_side", "fast_belt_starting_top", "fast_belt_starting_bottom", "fast_belt_starting_side", "express_belt_horizontal", - "express_belt_vertical", "express_belt_ending_top", "express_belt_ending_bottom", "express_belt_ending_side", "express_belt_starting_top", - "express_belt_starting_bottom", "express_belt_starting_side", - - --Circuit Connectors - "circuit_connector_definitions", "default_circuit_wire_max_distance", "inserter_circuit_wire_max_distance", - "universal_connector_template", "belt_connector_template", "belt_frame_connector_template", "inserter_connector_template", - - --Inserter Circuit Connectors - "inserter_circuit_wire_max_distance", "inserter_default_stack_control_input_signal", - - --Sounds/beams - "make_heavy_gunshot_sounds", "make_light_gunshot_sounds", "make_laser_sounds", - - --Gun/Laser - "gun_turret_extension", "gun_turret_extension_shadow", "gun_turret_extension_mask", "gun_turret_attack", - "laser_turret_extension", "laser_turret_extension_shadow", "laser_turret_extension_mask", - - --Pipes - "pipecoverspictures", "pipepictures", "assembler2pipepictures", "assembler3pipepictures", "make_heat_pipe_pictures", - - --Combinators - "generate_arithmetic_combinator", "generate_decider_combinator", "generate_constant_combinator", - - --Rail - "destroyed_rail_pictures", "rail_pictures", "rail_pictures_internal", "standard_train_wheels", "drive_over_tie", - "rolling_stock_back_light", "rolling_stock_stand_by_light", - - --Enemies - "make_enemy_autoplace", "make_enemy_spawner_autoplace", "make_enemy_worm_autoplace", - "make_spitter_attack_animation", "make_spitter_run_animation", "make_spitter_dying_animation", - "make_spitter_attack_parameters", "make_spitter_roars", "make_spitter_dying_sounds", - "make_spawner_idle_animation", "make_spawner_die_animation", - "make_biter_run_animation", "make_biter_attack_animation", "make_biter_die_animation", - "make_biter_roars", "make_biter_dying_sounds", "make_biter_calls", - "make_worm_roars", "make_worm_dying_sounds", "make_worm_folded_animation", "make_worm_preparing_animation", - "make_worm_prepared_animation", "make_worm_attack_animation", "make_worm_die_animation", - - --Other - "tile_variations_template", "make_water_autoplace_settings", - "make_unit_melee_ammo_type", "make_trivial_smoke", "make_4way_animation_from_spritesheet", "flying_robot_sounds", - "productivitymodulelimitation", "crash_trigger", "capsule_smoke", "make_beam", "playeranimations", - "make_blood_tint", "make_shadow_tint", - - --tiles - "water_transition_template", "make_water_transition_template", "water_autoplace_settings", "water_tile_type_names", - "patch_for_inner_corner_of_transition_between_transition", - } -} - -stds.factorio_base_story = { - globals = { - "story_init_helpers", "story_update_table", "story_init", "story_update", "story_on_tick", "story_add_update", - "story_remove_update", "story_jump_to", "story_elapsed", "story_elapsed_check", "story_show_message_dialog", - "set_goal", "player_set_goal", "on_player_joined", "flash_goal", "set_info", "player_set_info", "export_entities", - "list", "recreate_entities", "entity_to_connect", "limit_camera", "find_gui_recursive", "enable_entity_export", - "add_button", "on_gui_click", "set_continue_button_style", "add_message_log", "story_add_message_log", - "player_add_message_log", "message_log_frame", "message_log_scrollpane", "message_log_close_button", - "message_log_table", "toggle_message_log_button", "toggle_objective_button", "message_log_init", - "add_gui_recursive", "add_toggle_message_log_button", "add_toggle_objective_button", "mod_gui", - "flash_message_log_button", "flash_message_log_on_tick", "story_gui_click", "story_points_by_name", "story_branches", - "player", "surface", "deconstruct_on_tick", "recreate_entities_on_tick", "flying_congrats", "story_table" - } -} - -stds.factorio_circuit_connector_generated = { - globals = { - 'default_circuit_wire_max_distance', 'circuit_connector_definitions', 'universal_connector_template', - 'belt_connector_template', 'belt_frame_connector_template', 'inserter_connector_template', 'inserter_connector_template', - 'inserter_circuit_wire_max_distance', 'inserter_default_stack_control_input_signal', 'transport_belt_connector_frame_sprites', - 'transport_belt_circuit_wire_max_distance', - } -} --)) - ---(( STDLIB ))-- -stds.stdlib = { - read_globals = { - }, - globals = { - "STDLIB", - "prequire", "rawtostring", "traceback", "inspect", "serpent", "inline_if", "install", "log", - "concat", - "GAME", "AREA", "POSITION", "TILE", "SURFACE", "CHUNK", "COLOR", "ENTITY", "INVENTORY", - "RESOURCE", "CONFIG", "LOGGER", "QUEUE", "EVENT", "GUI", "PLAYER", "FORCE", - "MATH", "STRING", "TABLE", - } -} - -stds.stdlib_control = { -} - -stds.stdlib_data = { - globals = { - 'DATA', 'RECIPE', 'ITEM', 'FLUID', 'ENTITY', 'TECHNOLOGY', 'CATEGORY' - } -} --)) - ---(( FACTORIO DEFINES ))-- -stds.factorio_defines = { - read_globals = { - defines = { - fields = { - alert_type = { - fields = { - 'custom', - 'entity_destroyed', - 'entity_under_attack', - 'no_material_for_construction', - 'no_storage', - 'not_enough_construction_robots', - 'not_enough_repair_packs', - 'train_out_of_fuel', - 'turret_fire', - 'fluid_mixing' - } - }, - behavior_result = { - fields = { - 'deleted', - 'fail', - 'in_progress', - 'success' - } - }, - build_check_type = { - fields = { - 'ghost_place', - 'ghost_revive', - 'manual', - 'script' - } - }, - chain_signal_state = { - fields = { - 'all_open', - 'none', - 'none_open', - 'partially_open' - } - }, - chunk_generated_status = { - fields = { - 'basic_tiles', - 'corrected_tiles', - 'custom_tiles', - 'entities', - 'nothing', - 'tiles' - } - }, - circuit_condition_index = { - fields = { - 'arithmetic_combinator', - 'constant_combinator', - 'decider_combinator', - 'inserter_circuit', - 'inserter_logistic', - 'lamp', - 'offshore_pump', - 'pump' - } - }, - circuit_connector_id = { - fields = { - 'accumulator', - 'combinator_input', - 'combinator_output', - 'constant_combinator', - 'container', - 'electric_pole', - 'inserter', - 'lamp', - 'offshore_pump', - 'programmable_speaker', - 'pump', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'wall' - } - }, - command = { - fields = { - 'attack', - 'attack_area', - 'build_base', - 'compound', - 'flee', - 'go_to_location', - 'group', - 'stop', - 'wander' - } - }, - compound_command = { - fields = { - 'logical_and', - 'logical_or', - 'return_last' - } - }, - control_behavior = { - fields = { - inserter = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'none', - 'read_hand_contents', - 'set_filters', - 'set_stack_size' - } - }, - hand_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - lamp = { - fields = { - circuit_mode_of_operation = { - fields = { - 'use_colors' - } - } - } - }, - logistic_container = { - fields = { - circuit_mode_of_operation = { - fields = { - 'send_contents', - 'set_requests' - } - } - } - }, - mining_drill = { - fields = { - resource_read_mode = { - fields = { - 'entire_patch', - 'this_miner' - } - } - } - }, - roboport = { - fields = { - circuit_mode_of_operation = { - fields = { - 'read_logistics', - 'read_robot_stats' - } - } - } - }, - train_stop = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'read_from_train', - 'read_stopped_train', - 'send_to_train' - } - } - } - }, - transport_belt = { - fields = { - content_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - type = { - fields = { - 'accumulator', - 'arithmetic_combinator', - 'constant_combinator', - 'container', - 'decider_combinator', - 'generic_on_off', - 'inserter', - 'lamp', - 'logistic_container', - 'mining_drill', - 'programmable_speaker', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'train_stop', - 'transport_belt', - 'wall' - } - } - } - }, - controllers = { - fields = { - 'character', - 'cutscene', - 'editor', - 'ghost', - 'god', - 'spectator' - } - }, - deconstruction_item = { - fields = { - entity_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_selection_mode = { - fields = { - 'always', - 'never', - 'normal', - 'only' - } - } - } - }, - difficulty = { - fields = { - 'easy', - 'hard', - 'normal' - } - }, - difficulty_settings = { - fields = { - recipe_difficulty = { - fields = { - 'expensive', - 'normal' - } - }, - technology_difficulty = { - fields = { - 'expensive', - 'normal' - } - } - } - }, - direction = { - fields = { - 'east', - 'north', - 'northeast', - 'northwest', - 'south', - 'southeast', - 'southwest', - 'west' - } - }, - distraction = { - fields = { - 'by_anything', - 'by_damage', - 'by_enemy', - 'none' - } - }, - entity_status = { - fields = { - 'working', - 'no_power', - 'no_fuel', - 'no_recipe', - 'no_input_fluid', - 'no_research_in_progress', - 'no_minable_resources', - 'low_input_fluid', - 'low_power', - 'disabled_by_control_behavior', - 'disabled_by_script', - 'fluid_ingredient_shortage', - 'fluid_production_overload', - 'item_ingredient_shortage', - 'item_production_overload', - 'marked_for_deconstruction', - 'missing_required_fluid', - 'missing_science_packs', - 'waiting_for_source_items', - 'waiting_for_space_in_destination', - } - }, - render_mode = { - fields = { - 'game', - 'chart', - 'chart_zoomed_in' - } - }, - events = { - fields = { - 'on_ai_command_completed', - 'on_area_cloned', - 'on_biter_base_built', - 'on_built_entity', - 'on_cancelled_deconstruction', - 'on_cancelled_upgrade', - 'on_character_corpse_expired', - 'on_chart_tag_added', - 'on_chart_tag_modified', - 'on_chart_tag_removed', - 'on_chunk_charted', - 'on_chunk_deleted', - 'on_chunk_generated', - 'on_combat_robot_expired', - 'on_console_chat', - 'on_console_command', - 'on_cutscene_waypoint_reached', - 'on_difficulty_settings_changed', - 'on_entity_cloned', - 'on_entity_damaged', - 'on_entity_died', - 'on_entity_renamed', - 'on_entity_settings_pasted', - 'on_entity_spawned', - 'on_force_created', - 'on_forces_merged', - 'on_forces_merging', - 'on_game_created_from_scenario', - 'on_gui_checked_state_changed', - 'on_gui_click', - 'on_gui_closed', - 'on_gui_confirmed', - 'on_gui_elem_changed', - 'on_gui_location_changed', - 'on_gui_opened', - 'on_gui_selected_tab_changed', - 'on_gui_selection_state_changed', - 'on_gui_switch_state_changed', - 'on_gui_text_changed', - 'on_gui_value_changed', - 'on_land_mine_armed', - 'on_lua_shortcut', - 'on_marked_for_deconstruction', - 'on_marked_for_upgrade', - 'on_market_item_purchased', - 'on_mod_item_opened', - 'on_picked_up_item', - 'on_player_alt_selected_area', - 'on_player_ammo_inventory_changed', - 'on_player_armor_inventory_changed', - 'on_player_banned', - 'on_player_built_tile', - 'on_player_cancelled_crafting', - 'on_player_changed_force', - 'on_player_changed_position', - 'on_player_changed_surface', - 'on_player_cheat_mode_disabled', - 'on_player_cheat_mode_enabled', - 'on_player_configured_blueprint', - 'on_player_crafted_item', - 'on_player_created', - 'on_player_cursor_stack_changed', - 'on_player_deconstructed_area', - 'on_player_demoted', - 'on_player_died', - 'on_player_display_resolution_changed', - 'on_player_display_scale_changed', - 'on_player_driving_changed_state', - 'on_player_dropped_item', - 'on_player_fast_transferred', - 'on_player_gun_inventory_changed', - 'on_player_joined_game', - 'on_player_kicked', - 'on_player_left_game', - 'on_player_main_inventory_changed', - 'on_player_mined_entity', - 'on_player_mined_item', - 'on_player_mined_tile', - 'on_player_muted', - 'on_player_pipette', - 'on_player_placed_equipment', - 'on_player_promoted', - 'on_player_removed', - 'on_player_removed_equipment', - 'on_player_repaired_entity', - 'on_player_respawned', - 'on_player_rotated_entity', - 'on_player_selected_area', - 'on_player_setup_blueprint', - 'on_player_toggled_alt_mode', - 'on_player_toggled_map_editor', - 'on_player_tool_inventory_changed', - 'on_player_trash_inventory_changed', - 'on_player_unbanned', - 'on_player_unmuted', - 'on_player_used_capsule', - 'on_post_entity_died', - 'on_pre_chunk_deleted', - 'on_pre_entity_settings_pasted', - 'on_pre_ghost_deconstructed', - 'on_pre_player_crafted_item', - 'on_pre_player_died', - 'on_pre_player_left_game', - 'on_pre_player_mined_item', - 'on_pre_player_removed', - 'on_pre_robot_exploded_cliff', - 'on_pre_surface_cleared', - 'on_pre_surface_deleted', - 'on_put_item', - 'on_research_finished', - 'on_research_started', - 'on_resource_depleted', - 'on_robot_built_entity', - 'on_robot_built_tile', - 'on_robot_exploded_cliff', - 'on_robot_mined', - 'on_robot_mined_entity', - 'on_robot_mined_tile', - 'on_robot_pre_mined', - 'on_rocket_launch_ordered', - 'on_rocket_launched', - 'on_runtime_mod_setting_changed', - 'on_script_path_request_finished', - 'on_sector_scanned', - 'on_selected_entity_changed', - 'on_surface_cleared', - 'on_surface_created', - 'on_surface_deleted', - 'on_surface_imported', - 'on_surface_renamed', - 'on_technology_effects_reset', - 'on_tick', - 'on_train_changed_state', - 'on_train_created', - 'on_train_schedule_changed', - 'on_trigger_created_entity', - 'on_trigger_fired_artillery', - 'on_unit_added_to_group', - 'on_unit_group_created', - 'on_unit_removed_from_group', - 'script_raised_built', - 'script_raised_destroy', - 'script_raised_revive' - } - }, - flow_precision_index = { - fields = { - 'fifty_hours', - 'one_hour', - 'one_minute', - 'one_second', - 'one_thousand_hours', - 'ten_hours', - 'ten_minutes', - 'two_hundred_fifty_hours' - } - }, - group_state = { - fields = { - 'attacking_distraction', - 'attacking_target', - 'finished', - 'gathering', - 'moving' - } - }, - gui_type = { - fields = { - 'achievement', - 'blueprint_library', - 'bonus', - 'controller', - 'custom', - 'entity', - 'equipment', - 'item', - 'kills', - 'logistic', - 'none', - 'other_player', - 'permissions', - 'player_management', - 'production', - 'research', - 'server_management', - 'trains', - 'tutorials' - } - }, - input_action = { - fields = { - 'activate_copy', - 'activate_cut', - 'activate_paste', - 'add_permission_group', - 'add_train_station', - 'admin_action', - 'alt_select_area', - 'alt_select_blueprint_entities', - 'alternative_copy', - 'begin_mining', - 'begin_mining_terrain', - 'build_item', - 'build_rail', - 'build_terrain', - 'cancel_craft', - 'cancel_deconstruct', - 'cancel_new_blueprint', - 'cancel_research', - 'cancel_upgrade', - 'change_active_item_group_for_crafting', - 'change_active_item_group_for_filters', - 'change_active_quick_bar', - 'change_arithmetic_combinator_parameters', - 'change_blueprint_book_record_label', - 'change_decider_combinator_parameters', - 'change_item_label', - 'change_multiplayer_config', - 'change_picking_state', - 'change_programmable_speaker_alert_parameters', - 'change_programmable_speaker_circuit_parameters', - 'change_programmable_speaker_parameters', - 'change_riding_state', - 'change_shooting_state', - 'change_single_blueprint_record_label', - 'change_train_stop_station', - 'change_train_wait_condition', - 'change_train_wait_condition_data', - 'clean_cursor_stack', - 'clear_selected_blueprint', - 'clear_selected_deconstruction_item', - 'clear_selected_upgrade_item', - 'connect_rolling_stock', - 'copy', - 'copy_entity_settings', - 'craft', - 'create_blueprint_like', - 'cursor_split', - 'cursor_transfer', - 'custom_input', - 'cycle_blueprint_book_backwards', - 'cycle_blueprint_book_forwards', - 'deconstruct', - 'delete_blueprint_library', - 'delete_blueprint_record', - 'delete_custom_tag', - 'delete_permission_group', - 'destroy_opened_item', - 'disconnect_rolling_stock', - 'drag_train_schedule', - 'drag_train_wait_condition', - 'drop_blueprint_record', - 'drop_item', - 'drop_to_blueprint_book', - 'edit_custom_tag', - 'edit_permission_group', - 'export_blueprint', - 'fast_entity_split', - 'fast_entity_transfer', - 'go_to_train_station', - 'grab_blueprint_record', - 'gui_checked_state_changed', - 'gui_click', - 'gui_confirmed', - 'gui_elem_changed', - 'gui_location_changed', - 'gui_selected_tab_changed', - 'gui_selection_state_changed', - 'gui_switch_state_changed', - 'gui_text_changed', - 'gui_value_changed', - 'import_blueprint', - 'import_blueprint_string', - 'import_permissions_string', - 'inventory_split', - 'inventory_transfer', - 'launch_rocket', - 'map_editor_action', - 'market_offer', - 'mod_settings_changed', - 'open_achievements_gui', - 'open_blueprint_library_gui', - 'open_blueprint_record', - 'open_bonus_gui', - 'open_character_gui', - 'open_equipment', - 'open_gui', - 'open_item', - 'open_kills_gui', - 'open_logistic_gui', - 'open_mod_item', - 'open_production_gui', - 'open_technology_gui', - 'open_train_gui', - 'open_train_station_gui', - 'open_trains_gui', - 'open_tutorials_gui', - 'paste_entity_settings', - 'place_equipment', - 'quick_bar_pick_slot', - 'quick_bar_set_selected_page', - 'quick_bar_set_slot', - 'remove_cables', - 'remove_train_station', - 'reset_assembling_machine', - 'rotate_entity', - 'select_area', - 'select_blueprint_entities', - 'select_entity_slot', - 'select_item', - 'select_mapper_slot', - 'select_next_valid_gun', - 'select_tile_slot', - 'set_auto_launch_rocket', - 'set_autosort_inventory', - 'set_behavior_mode', - 'set_car_weapons_control', - 'set_circuit_condition', - 'set_circuit_mode_of_operation', - 'set_deconstruction_item_tile_selection_mode', - 'set_deconstruction_item_trees_and_rocks_only', - 'set_entity_color', - 'set_entity_energy_property', - 'set_filter', - 'set_heat_interface_mode', - 'set_heat_interface_temperature', - 'set_infinity_container_filter_item', - 'set_infinity_container_remove_unfiltered_items', - 'set_infinity_pipe_filter', - 'set_inserter_max_stack_size', - 'set_inventory_bar', - 'set_logistic_filter_item', - 'set_logistic_filter_signal', - 'set_logistic_trash_filter_item', - 'set_request_from_buffers', - 'set_research_finished_stops_game', - 'set_signal', - 'set_single_blueprint_record_icon', - 'set_splitter_priority', - 'set_train_stopped', - 'setup_assembling_machine', - 'setup_blueprint', - 'setup_single_blueprint_record', - 'smart_pipette', - 'stack_split', - 'stack_transfer', - 'start_repair', - 'start_research', - 'start_walking', - 'switch_connect_to_logistic_network', - 'switch_constant_combinator_state', - 'switch_inserter_filter_mode_state', - 'switch_power_switch_state', - 'switch_to_rename_stop_gui', - 'take_equipment', - 'toggle_deconstruction_item_entity_filter_mode', - 'toggle_deconstruction_item_tile_filter_mode', - 'toggle_driving', - 'toggle_enable_vehicle_logistics_while_moving', - 'toggle_equipment_movement_bonus', - 'toggle_map_editor', - 'toggle_personal_roboport', - 'toggle_show_entity_info', - 'undo', - 'upgrade', - 'upgrade_opened_blueprint', - 'use_artillery_remote', - 'use_item', - 'wire_dragging', - 'write_to_console' - } - }, - inventory = { - fields = { - 'artillery_turret_ammo', - 'artillery_wagon_ammo', - 'assembling_machine_input', - 'assembling_machine_modules', - 'assembling_machine_output', - 'beacon_modules', - 'burnt_result', - 'car_ammo', - 'car_trunk', - 'cargo_wagon', - 'character_corpse', - 'chest', - 'editor_main', - 'editor_guns', - 'editor_ammo', - 'editor_armor', - 'fuel', - 'furnace_modules', - 'furnace_result', - 'furnace_source', - 'god_main', - 'item_main', - 'lab_input', - 'lab_modules', - 'mining_drill_modules', - 'character_ammo', - 'character_armor', - 'character_guns', - 'character_main', - 'character_trash', - 'character_vehicle', - 'roboport_material', - 'roboport_robot', - 'robot_cargo', - 'robot_repair', - 'rocket', - 'rocket_silo_result', - 'rocket_silo_rocket', - 'turret_ammo' - } - }, - logistic_member_index = { - fields = { - 'character_provider', - 'character_requester', - 'character_storage', - 'generic_on_off_behavior', - 'logistic_container', - 'vehicle_storage' - } - }, - logistic_mode = { - fields = { - 'active_provider', - 'buffer', - 'none', - 'passive_provider', - 'requester', - 'storage' - } - }, - mouse_button_type = { - fields = { - 'left', - 'middle', - 'none', - 'right' - } - }, - rail_connection_direction = { - fields = { - 'left', - 'none', - 'right', - 'straight' - } - }, - rail_direction = { - fields = { - 'back', - 'front' - } - }, - riding = { - fields = { - acceleration = { - fields = { - 'accelerating', - 'braking', - 'nothing', - 'reversing' - } - }, - direction = { - fields = { - 'left', - 'right', - 'straight' - } - } - } - }, - shooting = { - fields = { - 'not_shooting', - 'shooting_enemies', - 'shooting_selected' - } - }, - signal_state = { - fields = { - 'closed', - 'open', - 'reserved', - 'reserved_by_circuit_network' - } - }, - train_state = { - fields = { - 'arrive_signal', - 'arrive_station', - 'manual_control', - 'manual_control_stop', - 'no_path', - 'no_schedule', - 'on_the_path', - 'path_lost', - 'wait_signal', - 'wait_station' - } - }, - transport_line = { - fields = { - 'left_line', - 'left_split_line', - 'left_underground_line', - 'right_line', - 'right_split_line', - 'right_underground_line', - 'secondary_left_line', - 'secondary_left_split_line', - 'secondary_right_line', - 'secondary_right_split_line' - } - }, - wire_connection_id = { - fields = { - 'electric_pole', - 'power_switch_left', - 'power_switch_right' - } - }, - wire_type = { - fields = { - 'copper', - 'green', - 'red' - } - }, - -- Defines additional modules - color = { - other_fields = true - }, - anticolor = { - other_fields = true - }, - lightcolor = { - other_fields = true - }, - time = { - fields = { - 'second', - 'minute', - 'hour', - 'day', - 'week', - 'month', - 'year' - } - } - } - } - } -}--)) - -stds.love_extra = { - read_globals = { - love = { - fields = { - arg = { - fields = { - 'parseGameArguments', 'parseOption', 'getLow', 'optionIndices', 'options' - } - } - } - } - }, - globals = { - --'coroutine', 'io', 'socket', 'dofile', 'loadfile', - love = { - fields = { - 'handlers' - } - } - } -} - ---[[ Options - "ignore", "std", "globals", "unused_args", "self", "compat", "global", "unused", "redefined", - "unused_secondaries", "allow_defined", "allow_defined_top", "module", - "read_globals", "new_globals", "new_read_globals", "enable", "only", "not_globals", - "max_line_length", "max_code_line_length", "max_string_line_length", "max_comment_line_length", - "max_cyclomatic_complexity" ---]] - ---[[ Warnings list - -- 011 A syntax error. - -- 021 An invalid inline option. - -- 022 An unpaired inline push directive. - -- 023 An unpaired inline pop directive. - -- 111 Setting an undefined global variable. - -- 112 Mutating an undefined global variable. - -- 113 Accessing an undefined global variable. - -- 121 Setting a read-only global variable. - -- 122 Setting a read-only field of a global variable. - -- 131 Unused implicitly defined global variable. - -- 142 Setting an undefined field of a global variable. - -- 143 Accessing an undefined field of a global variable. - -- 211 Unused local variable. - -- 212 Unused argument. - -- 213 Unused loop variable. - -- 221 Local variable is accessed but never set. - -- 231 Local variable is set but never accessed. - -- 232 An argument is set but never accessed. - -- 233 Loop variable is set but never accessed. - -- 241 Local variable is mutated but never accessed. - -- 311 Value assigned to a local variable is unused. - -- 312 Value of an argument is unused. - -- 313 Value of a loop variable is unused. - -- 314 Value of a field in a table literal is unused. - -- 321 Accessing uninitialized local variable. - -- 331 Value assigned to a local variable is mutated but never accessed. - -- 341 Mutating uninitialized local variable. - -- 411 Redefining a local variable. - -- 412 Redefining an argument. - -- 413 Redefining a loop variable. - -- 421 Shadowing a local variable. - -- 422 Shadowing an argument. - -- 423 Shadowing a loop variable. - -- 431 Shadowing an upvalue. - -- 432 Shadowing an upvalue argument. - -- 433 Shadowing an upvalue loop variable. - -- 511 Unreachable code. - -- 512 Loop can be executed at most once. - -- 521 Unused label. - -- 531 Left-hand side of an assignment is too short. - -- 532 Left-hand side of an assignment is too long. - -- 541 An empty do end block. - -- 542 An empty if branch. - -- 551 An empty statement. - -- 611 A line consists of nothing but whitespace. - -- 612 A line contains trailing whitespace. - -- 613 Trailing whitespace in a string. - -- 614 Trailing whitespace in a comment. - -- 621 Inconsistent indentation (SPACE followed by TAB). - -- 631 Line is too long. ---]] \ No newline at end of file diff --git a/OLD/PHI-XC/changelog.txt b/OLD/PHI-XC/changelog.txt deleted file mode 100644 index 928565b..0000000 --- a/OLD/PHI-XC/changelog.txt +++ /dev/null @@ -1,6 +0,0 @@ ---------------------------------------------------------------------------------------------------- -Version: 1.0.0 -Date: 2023-04-19 - -Added: - - Clock \ No newline at end of file diff --git a/OLD/PHI-XC/control.lua b/OLD/PHI-XC/control.lua deleted file mode 100644 index c717156..0000000 --- a/OLD/PHI-XC/control.lua +++ /dev/null @@ -1,21 +0,0 @@ -local function clock_display(sec) - local s = math.floor(sec) % 60 - local m = math.floor(sec / 60) % 60 - - if sec > 3599 then - local h = math.floor(sec / 3600) - return string.format('%d:%02d:%02d', h, m, s) - else - return string.format('%d:%02d', m, s) - end -end - -script.on_nth_tick(60, function(event) - for _, player in pairs(game.connected_players) do - if player.gui.top.phi_clock == nil then - player.gui.top.add{type='button', name='phi_clock'} - end - - player.gui.top.phi_clock.caption = clock_display(math.floor(event.tick / 60)) - end -end) diff --git a/OLD/PHI-XC/info.json b/OLD/PHI-XC/info.json deleted file mode 100644 index 10a53dc..0000000 --- a/OLD/PHI-XC/info.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "PHI-XC", - "version": "1.0.0", - "factorio_version": "1.1", - "date": "2023-04-19", - "title": "Phidias Clock", - "author": "PHIDIAS0303", - "contributers": "", - "homepage": "", - "description": "In game playtime", - "dependencies": [ - "base >= 1.1.0" - ] -} \ No newline at end of file diff --git a/OLD/PHI-XC/thumbnail.png b/OLD/PHI-XC/thumbnail.png deleted file mode 100644 index ea60207..0000000 Binary files a/OLD/PHI-XC/thumbnail.png and /dev/null differ diff --git a/OLD/PHI-XW/.editorconfig b/OLD/PHI-XW/.editorconfig deleted file mode 100644 index 73c5516..0000000 --- a/OLD/PHI-XW/.editorconfig +++ /dev/null @@ -1,8 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 4 -charset = utf-8 -trim_trailing_whitespace = false -insert_final_newline = false \ No newline at end of file diff --git a/OLD/PHI-XW/.luacheckrc b/OLD/PHI-XW/.luacheckrc deleted file mode 100644 index 0da1ad4..0000000 --- a/OLD/PHI-XW/.luacheckrc +++ /dev/null @@ -1,1597 +0,0 @@ -------------------------------------------------------------------------------- ---[LICENSE]-- -------------------------------------------------------------------------------- --- .luacheckrc --- This file is free and unencumbered software released into the public domain. --- --- Anyone is free to copy, modify, publish, use, compile, sell, or --- distribute this file, either in source code form or as a compiled --- binary, for any purpose, commercial or non-commercial, and by any --- means. --- --- In jurisdictions that recognize copyright laws, the author or authors --- of this file dedicate any and all copyright interest in the --- software to the public domain. We make this dedication for the benefit --- of the public at large and to the detriment of our heirs and --- successors. We intend this dedication to be an overt act of --- relinquishment in perpetuity of all present and future rights to this --- software under copyright law. --- --- THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, --- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR --- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, --- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR --- OTHER DEALINGS IN THE SOFTWARE. --- --- For more information, please refer to --- ]] - --- Current Factorio Version 0.17.0, luacheck version 0.23.0 - -------------------------------------------------------------------------------- ---[Set Defaults]-- -------------------------------------------------------------------------------- -local LINE_LENGTH = false -- It is 2017 limits on length are a waste -local IGNORE = {'21./%w+_$', '21./^_%w+$', '213/[ijk]', '213/index', '213/key'} -local NOT_GLOBALS = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'} -- These globals are not available to the factorio API - -local STD_CONTROL = 'lua52c+factorio+factorio_control+stdlib+factorio_defines' -local STD_DATA = 'lua52c+factorio+factorio_data+stdlib+stdlib_data+factorio_defines' -local STD_LOVE = 'luajit+love+love_extra+stdlib+stdlib_data' - --- In a perfect world these would be STD_DATA and STD_CONTROL (mostly) -local STD_BASE_DATA = 'lua52c+factorio+factorio_data+factorio_defines+factorio_base_data' -local STD_BASE_CONTROL = 'lua52c+factorio+factorio_control+factorio_defines+factorio_base_control' - -------------------------------------------------------------------------------- ---[Assume Factorio Control stage as default]-- -------------------------------------------------------------------------------- -std = STD_CONTROL -max_line_length = LINE_LENGTH - -not_globals = NOT_GLOBALS -ignore = IGNORE -quiet = 1 -- pass -q option -max_cyclomatic_complexity = 75 -codes = true - ---List of files and directories to exclude -exclude_files = { - --Ignore special folders - '**/.*/*', --Ignore if path starts with . - '**/stdlib/vendor/', - '**/*WIP/', - - --Ignore development mods - '**/combat-tester/', - '**/test-maker/', - '**/trailer/', - - --Ignore love Includes - '**/love/includes/' -} - -------------------------------------------------------------------------------- ---[Mod Prototypes]-- -------------------------------------------------------------------------------- ---Set default prototype files -files['**/data.lua'].std = STD_DATA -files['**/data-updates.lua'].std = STD_DATA -files['**/data-final-fixes.lua'].std = STD_DATA -files['**/settings.lua'].std = STD_DATA -files['**/settings-updates.lua'].std = STD_DATA -files['**/settings-final-fixes.lua'].std = STD_DATA -files['**/prototypes/'].std = STD_DATA -files['**/settings/'].std = STD_DATA -files['**/love/'] = {std = STD_LOVE, globals = {'coroutine', 'io', 'socket', 'dofile', 'loadfile'}} - -------------------------------------------------------------------------------- ---[Base]-- -------------------------------------------------------------------------------- ---Find and replace ignores *.cfg, migrations, *.txt, control.lua, *.json, trailer, scenarios, campaigns, *.glsl - -local base_scenarios = { - std = STD_BASE_CONTROL .. '+factorio_base_scenarios+factorio_base_story', - --ignore = {'212/event', '111', '112', '113', '211', '212', '213', '311', '411', '412', '421', '422', '423', '431', '432', '512'} - ignore = {'...'} -} -files['**/base/scenarios/'] = base_scenarios -files['**/base/tutorials/'] = base_scenarios -files['**/base/campaigns/'] = base_scenarios -files['**/wip-scenario/'] = base_scenarios - -files['**/base/migrations/'] = {std = STD_BASE_CONTROL} - -files['**/core/lualib/'] = {std = STD_BASE_CONTROL} -files['**/core/lualib/util.lua'] = {globals = {'util', 'table'}, ignore = {'432/object'}} -files['**/core/lualib/silo-script.lua'] = {globals = {'silo_script'}, ignore = {'4../player'}} -files['**/core/lualib/production-score.lua'] = {globals = {'production_score', 'get_price_recursive'}, ignore = {'4../player'}} -files['**/core/lualib/story*'] = {std = '+factorio_base_story', ignore = {'42./k', '42./filter'}} -files['**/core/lualib/mod-gui.lua'] = {globals = {'mod_gui'}} -files['**/core/lualib/camera.lua'] = {globals = {'camera'}} -files['**/core/lualib/builder.lua'] = {globals = {'Builder', 'builder', 'action', 'down', 'right'}} - -files['**/core/lualib/bonus-gui-ordering/'] = {std = STD_BASE_DATA} -files['**/core/lualib/dataloader.lua'] = {globals = {'data'}} -files['**/core/lualib/circuit-connector-*'] = {std = STD_BASE_DATA..'+factorio_circuit_connector_generated'} -files['**/core/lualib/bonus-gui-ordering.lua'] = {globals = {'bonus_gui_ordering'}} - -files['**/base/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/'] = {std = STD_BASE_DATA} -files['**/core/prototypes/noise-programs.lua'] = {ignore = {'212/x', '212/y', '212/tile', '212/map'}} - ---(( stdlib ))-- -local stdlib_control = { - std = 'lua52c+factorio+factorio_control+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - -local stdlib_data = { - std = 'lua52c+factorio+factorio_data+stdlib+factorio_defines', - max_line_length = LINE_LENGTH -} - --- Assume control stage for stdlib -files['**/stdlib/'] = stdlib_control - --- Assume generic content for stdlib utils -files['**/stdlib/utils/**'].std = 'lua52c+stdlib' - --- STDLIB data files -files['**/stdlib/data/'] = stdlib_data - --- STDLIB Busted Spec -files['**/spec/**'] = { - globals = {'serpent', 'log', 'SLOG', 'RESET'}, - std = 'lua52c+busted+factorio_defines+factorio_control+stdlib' -} --)) - ---(( Factorio ))-- -stds.factorio = { - --Set the read only variables - read_globals = { - -- @log@: Gives writing access to Factorio's logger instance. - "log", - -- @serpent@: Lua serializer and pretty printer. (https://github.com/pkulchenko/serpent) - "serpent", - -- @table_size@: Returns the number of elements inside an LUA table - "table_size", - util = { - fields = { - "by_pixel", "distance", "findfirstentity", "positiontostr", "formattime", "moveposition", "oppositedirection", - "ismoduleavailable", "multiplystripes", "format_number", "increment", "color", "conditional_return", - "add_shift", "merge", "premul_color", "encode", "decode", "insert_safe", - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, - }, - table = { - fields = { - "compare", "deepcopy" - }, - }, - }, -} - -stds.factorio_control = { - read_globals = { - - -- @commands@: - commands = { - fields = { - "add_command", "commands", "game_commands", "remove_command" - }, - }, - - -- @settings@: - settings = { - fields = { - "get_player_settings", - startup = {read_only = false, other_fields = true}, - global = {read_only = false, other_fields = true}, - player = {read_only = false, other_fields = true}, - }, - }, - - -- @script@: Provides an interface for registering event handlers. - -- (http://lua-api.factorio.com/latest/LuaBootstrap.html) - script = { - fields = { - "on_event", "on_nth_tick", "on_configuration_changed", "on_init", "on_load", "generate_event_name", - "raise_event", "get_event_handler", "mod_name", "get_event_order" - }, - other_fields = false, - }, - - -- @remote@: Allows inter-mod communication by providing a repository of interfaces that is shared by all mods. - -- (http://lua-api.factorio.com/latest/LuaRemote.html) - remote = { - fields = { - interfaces = {read_only = false, other_fields = true}, - "add_interface", "remove_interface", "call" - }, - read_only = true, - other_fields = false, - }, - - rcon = { - fields = {'print'} - }, - - rendering = { - other_fields = false, - read_only = true, - fields = { - 'draw_animation', - 'draw_line', - 'draw_text', - 'draw_circle', - 'draw_rectangle', - 'draw_arc', - 'draw_polygon', - 'draw_sprite', - 'draw_light', - 'destroy', - 'is_font_valid', - 'is_valid', - 'get_all_ids', - 'clear', - 'get_type', - 'get_surface', - 'get_time_to_live', - 'set_time_to_live', - 'get_forces', - 'set_forces', - 'get_players', - 'set_players', - 'get_color', - 'set_color', - 'get_width', - 'set_width', - 'get_from', - 'set_from', - 'get_to', - 'set_to', - 'get_gap_amount', - 'set_gap_amount', - 'get_gap_length', - 'set_gap_length', - 'get_target', - 'set_target', - 'get_orientation', - 'set_orientation', - 'get_scale', - 'set_scale', - 'get_text', - 'set_text', - 'get_font', - 'set_font', - 'get_alignment', - 'set_alignment', - 'get_scale_with_zoom', - 'set_scale_with_zoom', - 'get_filled', - 'set_filled', - 'get_radius', - 'set_radius', - 'get_left_top', - 'set_left_top', - 'get_right_bottom', - 'set_right_bottom', - 'get_max_radius', - 'set_max_radius', - 'get_min_radius', - 'set_min_radius', - 'get_start_angle', - 'set_start_angle', - 'get_angle', - 'set_angle', - 'get_vertices', - 'set_vertices', - 'get_sprite', - 'set_sprite', - 'get_x_scale', - 'set_x_scale', - 'get_y_scale', - 'set_y_scale', - 'get_render_layer', - 'set_render_layer', - 'get_orientation_target', - 'set_orientation_target', - 'get_oriented_offset', - 'set_oriented_offset', - 'get_intensity', - 'set_intensity', - 'get_minimum_darkness', - 'set_minimum_darkness' - } - }, - - -- @game@: Main object through which most of the API is accessed. - -- It is, however, not available inside handlers registered with @script.on_load@. - -- (http://lua-api.factorio.com/latest/LuaGameScript.html) - game ={ - other_fields = false, - read_only = false, - fields = { - "auto_save", - "ban_player", - "check_consistency", - "check_prototype_translations", - "count_pipe_groups", - "create_force", - "create_profiler", - "create_random_generator", - "get_surface", - "create_surface", - "delete_surface", - "desync_players", - "direction_to_string", - "disable_replay", - "disable_tips_and_tricks", - "draw_resource_selection", - "force_crc", - "get_active_entities_count", - "get_entity_by_tag", - "get_map_exchange_string", - "get_player", - "help", - "is_demo", - "is_multiplayer", - "is_valid_sound_path", - "json_to_table", - "kick_player", - "merge_forces", - "mute_player", - "play_sound", - "print", - "print_stack_size", - "purge_player", - "regenerate_entity", - "reload_mods", - "reload_script", - "remove_offline_players", - "remove_path", - "save_atlas", - "server_save", - "set_game_state", - "show_message_dialog", - "table_to_json", - "take_screenshot", - "take_technology_screenshot", - "unban_player", - "unmute_player", - "write_file", - "get_filtered_entity_prototypes", - "get_filtered_item_prototypes", - "get_filtered_equipment_prototypes", - "get_filtered_mod_setting_prototypes", - "get_filtered_achievement_prototypes", - - active_mods = {read_only = true, other_fields = true}, - ammo_category_prototypes = {read_only = true, other_fields = true}, - autoplace_control_prototypes = {read_only = true, other_fields = true}, - backer_names = {read_only = true, other_fields = true}, - connected_players = {read_only = true, other_fields = true}, - custom_input_prototypes = {read_only = true, other_fields = true}, - damage_prototypes = {read_only = true, other_fields = true}, - decorative_prototypes = {read_only = true, other_fields = true}, - default_map_gen_settings = {read_only = true, other_fields = true}, - difficulty = {read_only = true, other_fields = true}, - difficulty_settings = {read_only = true, other_fields = true}, - enemy_has_vision_on_land_mines = {read_only = false, other_fields = false}, - entity_prototypes = {read_only = true, other_fields = true}, - equipment_grid_prototypes = {read_only = true, other_fields = true}, - equipment_prototypes = {read_only = true, other_fields = true}, - finished = {read_only = true, other_fields = true}, - fluid_prototypes = {read_only = true, other_fields = true}, - forces = {read_only = true, other_fields = true}, - item_prototypes = {read_only = true, other_fields = true}, - map_settings = {read_only = true, other_fields = true}, - mod_setting_prototypes = {read_only = true, other_fields = true}, - noise_layer_prototypes = {read_only = true, other_fields = true}, - permissions = {read_only = true, other_fields = true}, - player = {read_only = true, other_fields = true}, - players = {read_only = true, other_fields = true}, - recipe_prototypes = {read_only = true, other_fields = true}, - speed = {read_only = false, other_fields = false}, - styles = {read_only = true, other_fields = true}, - surfaces = {read_only = true, other_fields = true}, - technology_prototypes = {read_only = true, other_fields = true}, - tick = {read_only = true, other_fields = true}, - tick_paused = {read_only = false, other_fields = false}, - ticks_played = {read_only = true, other_fields = true}, - ticks_to_run = {read_only = false, other_fields = false}, - tile_prototypes = {read_only = true, other_fields = true}, - virtual_signal_prototypes = {read_only = true, other_fields = true}, - pollution_statistics = {read_only = true, other_fields = true} - }, - }, - }, - - globals = { - -- @global@: The global dictionary, useful for storing data persistent across a save-load cycle. - -- Writing access is given to the mod-id field (for mod-wise saved data). - -- (http://lua-api.factorio.com/latest/Global.html) - "global", - - -- @MOD@: Keep it organized, use this variable for anything that "NEEDS" to be global for some reason. - "MOD" - }, -} - -stds.factorio_data = { - - read_globals = { - data = { - fields = { - raw = { - other_fields = true, - read_only = false - }, - "extend", "is_demo" - }, - }, - - settings = { - fields = { - "startup", "global", "player", - }, - }, - - --Popular mods - angelsmods = { - other_fields = true - }, - - bobmods = { - other_fields = true - }, - - mods = { - other_fields = true - } - } -} --)) - ---(( Factorio Globals are bad mkay ))-- -stds.factorio_base_control = { - read_globals = {"silo_script", "mod_gui", "camera"} -} - -stds.factorio_base_scenarios = { - globals = { - "check_automate_science_packs_advice", "check_research_hints", "check_supplies", "manage_attacks", "all_dead", - "on_win", "difficulty_number", "init_attack_data", "handle_attacks", "count_items_in_container", "progress", "scanned", - "check_light", "check_machine_gun", "level", "story_table", - - "tightspot_prices", "tightspot_make_offer", "tightspot_init", "tightspot_get_required_balance", - "tightspot_init_level", "tightspot_init_spending_frame", "tightspot_init_progress_frame", "tightspot_update_progress", "tightspot_update_spending", - "tightspot_get_missing_to_win", "tightspot_sell_back", "tightspot_start_level", "tightspot_show_level_description", "tightspot_update_speed_label", - "map_ignore", "tightspot_check_level", "land_price", - - "transport_belt_madness_init", "transport_belt_madness_init_level", "transport_belt_madness_create_chests", "transport_belt_madness_fill_chests", - "transport_belt_madness_start_level", "map_ignore", "map_clear", "map_load", "map_save", "transport_belt_madness_show_level_description", - "transport_belt_madness_check_level", "transport_belt_madness_next_level", "transport_belt_madness_clear_level", "transport_belt_madness_contains_next_level", - - "restricted", "check_built_items", "result", "disable_combat_technologies", "apply_character_modifiers", "apply_combat_modifiers", "apply_balance", - "load_config", "starting_area_constant", "create_next_surface", "end_round", "prepare_next_round", "silo_died","choose_joining_gui", - "destroy_joining_guis", "create_random_join_gui", "create_auto_assign_gui", "create_pick_join_gui", "create_config_gui", "make_config_table", "default", - "make_team_gui", "make_team_gui_config", "add_team_button_press", "trash_team_button_press", "remove_team_from_team_table", "add_team_to_team_table", - "set_teams_from_gui", "on_team_button_press", "make_color_dropdown", "create_balance_option", "create_disable_frame", "disable_frame", "parse_disabled_items", - "set_balance_settings", "config_confirm", "parse_config_from_gui", "get_color", "roll_starting_area", "delete_roll_surfaces", "auto_assign", - "destroy_config_for_all", "prepare_map", "set_evolution_factor", "update_players_on_team_count", "random_join", "init_player_gui", - "destroy_player_gui", "objective_button_press", "admin_button_press", "admin_frame_button_press", "diplomacy_button_press", "update_diplomacy_frame", - "diplomacy_frame_button_press", "team_changed_diplomacy", "diplomacy_check_press", "get_stance", "give_inventory", "setup_teams", "disable_items_for_all", - "set_random_team", "set_diplomacy", "create_spawn_positions", "set_spawn_position", "set_team_together_spawns", "chart_starting_area_for_force_spawns", - "check_starting_area_chunks_are_generated", "check_player_color", "check_round_start", "clear_starting_area_enemies", "check_no_rush_end", "check_no_rush_players", - "finish_setup", "chart_area_for_force", "setup_start_area_copy", "update_copy_progress", "update_progress_bar", "copy_paste_starting_area_tiles", - "copy_paste_starting_area_entities", "create_silo_for_force", "setup_research", "on_chunk_generated", "get_distance_to_nearest_spawn", - "create_wall_for_force", "fpn", "give_items", "create_item_frame", "create_technologies_frame", "create_cheat_frame", "create_day_frame", - "time_modifier", "points_per_second_start", "points_per_second_level_subtract", "levels", "update_info", "get_time_left", "update_time_left", - "on_joined", "make_frame", "update_frame", "update_table", "calculate_task_item_multiplayer", "setup_config", "select_from_probability_table", - "select_inventory", "select_equipment", "select_challange_type", "save_round_statistics", "start_challenge", "create_teams", "set_areas", - "decide_player_team", "set_teams", "refresh_leaderboard", "set_player", "generate_technology_list", "generate_research_task","setup_unlocks", - "check_technology_progress", "generate_production_task", "generate_shopping_list_task", "set_gui_flow_table", "create_visibility_button", - "check_item_lists", "update_task_gui", "check_end_of_round", "end_round_gui_update", "try_to_check_victory", "update_gui", "check_start_round", - "check_start_set_areas", "check_start_setting_entities", "check_set_areas", "check_clear_areas", "check_chests", "check_chests_shopping_list", - "check_chests_production", "check_input_chests", "fill_input_chests", "check_victory", "shopping_task_finished", "calculate_force_points", - "update_research_task_table", "update_production_task_table", "update_shopping_list_task_table", "create_joined_game_gui", "pre_ending_round", - "player_ending_prompt", "update_end_timer", "update_begin_timer", "team_finished", "save_points_list", "give_force_players_points", - "update_winners_list", "set_spectator", "set_character", "give_starting_inventory", "give_equipment", "shuffle_table", "format_time", - "spairs", "fill_leaderboard", "create_grid", "simple_entities", "save_map_data", "clear_map", "create_tiles", "recreate_entities", - "map_sets", "give_points", "init_forces", "init_globals", "init_unit_settings", "check_next_wave", "next_wave", "calculate_wave_power", - "wave_end", "make_next_spawn_tick", "check_spawn_units", "get_wave_units", "spawn_units", "randomize_ore", "set_command", "command_straglers", - "unit_config", "make_next_wave_tick", "time_to_next_wave", "time_to_wave_end", "rocket_died", "unit_died", "get_bounty_price", "setup_waypoints", - "insert_items", "give_starting_equipment", "give_spawn_equipment", "next_round_button_visible", "gui_init", "create_wave_frame", "create_money_frame", - "create_upgrade_gui", "update_upgrade_listing", "upgrade_research", "get_upgrades", "get_money", "update_connected_players", "update_round_number", - "set_research", "set_recipes", "check_deconstruction", "check_blueprint_placement", "loop_entities", "experiment_items", - "setup", "story_gui_click", "clear_surface", "add_run_trains_button", "puzzle_condition", "basic_signals", - "loop_trains", "Y_offset", "ghosts_1", "ghosts_2", "required_path", "through_wall_path", "count", "check_built_real_rail", - "current_ghosts_count", "other", "rails", "set_rails", "straight_section", "late_entities", "entities", "stop", - "get_spawn_coordinate", - - --tutorials - "intermission", "create_entities_on_tick", "on_player_created", "required_count", "non_player_entities", "clear_rails", - "chest", "damage", "furnace", "init_prototypes", "build_infi_table", "junk", "update_player_tags", "time_left", "team_production", - "create_task_frame", "create_visibilty_buttons", "update_leaderboard", "in_in_area" - } -} - -stds.factorio_base_data = { - globals = { - --Style - "make_cursor_box", "make_full_cursor_box", - "default_container_padding", "default_orange_color", "default_light_orange_color", "warning_red_color", - "achievement_green_color", "achievement_tan_color", "orangebuttongraphcialset", "bluebuttongraphcialset", - "bonus_gui_ordering", "trivial_smoke", "technology_slot_base_width", "technology_slot_base_height", "default_frame_font_vertical_compensation", - - --Belts - "transport_belt_connector_frame_sprites", "transport_belt_circuit_wire_connection_point", "transport_belt_circuit_wire_max_distance", - "transport_belt_circuit_connector_sprites", "ending_patch_prototype", "basic_belt_horizontal", "basic_belt_vertical", - "basic_belt_ending_top", "basic_belt_ending_bottom", "basic_belt_ending_side", "basic_belt_starting_top", "basic_belt_starting_bottom", - "basic_belt_starting_side", "fast_belt_horizontal", "fast_belt_vertical", "fast_belt_ending_top", "fast_belt_ending_bottom", - "fast_belt_ending_side", "fast_belt_starting_top", "fast_belt_starting_bottom", "fast_belt_starting_side", "express_belt_horizontal", - "express_belt_vertical", "express_belt_ending_top", "express_belt_ending_bottom", "express_belt_ending_side", "express_belt_starting_top", - "express_belt_starting_bottom", "express_belt_starting_side", - - --Circuit Connectors - "circuit_connector_definitions", "default_circuit_wire_max_distance", "inserter_circuit_wire_max_distance", - "universal_connector_template", "belt_connector_template", "belt_frame_connector_template", "inserter_connector_template", - - --Inserter Circuit Connectors - "inserter_circuit_wire_max_distance", "inserter_default_stack_control_input_signal", - - --Sounds/beams - "make_heavy_gunshot_sounds", "make_light_gunshot_sounds", "make_laser_sounds", - - --Gun/Laser - "gun_turret_extension", "gun_turret_extension_shadow", "gun_turret_extension_mask", "gun_turret_attack", - "laser_turret_extension", "laser_turret_extension_shadow", "laser_turret_extension_mask", - - --Pipes - "pipecoverspictures", "pipepictures", "assembler2pipepictures", "assembler3pipepictures", "make_heat_pipe_pictures", - - --Combinators - "generate_arithmetic_combinator", "generate_decider_combinator", "generate_constant_combinator", - - --Rail - "destroyed_rail_pictures", "rail_pictures", "rail_pictures_internal", "standard_train_wheels", "drive_over_tie", - "rolling_stock_back_light", "rolling_stock_stand_by_light", - - --Enemies - "make_enemy_autoplace", "make_enemy_spawner_autoplace", "make_enemy_worm_autoplace", - "make_spitter_attack_animation", "make_spitter_run_animation", "make_spitter_dying_animation", - "make_spitter_attack_parameters", "make_spitter_roars", "make_spitter_dying_sounds", - "make_spawner_idle_animation", "make_spawner_die_animation", - "make_biter_run_animation", "make_biter_attack_animation", "make_biter_die_animation", - "make_biter_roars", "make_biter_dying_sounds", "make_biter_calls", - "make_worm_roars", "make_worm_dying_sounds", "make_worm_folded_animation", "make_worm_preparing_animation", - "make_worm_prepared_animation", "make_worm_attack_animation", "make_worm_die_animation", - - --Other - "tile_variations_template", "make_water_autoplace_settings", - "make_unit_melee_ammo_type", "make_trivial_smoke", "make_4way_animation_from_spritesheet", "flying_robot_sounds", - "productivitymodulelimitation", "crash_trigger", "capsule_smoke", "make_beam", "playeranimations", - "make_blood_tint", "make_shadow_tint", - - --tiles - "water_transition_template", "make_water_transition_template", "water_autoplace_settings", "water_tile_type_names", - "patch_for_inner_corner_of_transition_between_transition", - } -} - -stds.factorio_base_story = { - globals = { - "story_init_helpers", "story_update_table", "story_init", "story_update", "story_on_tick", "story_add_update", - "story_remove_update", "story_jump_to", "story_elapsed", "story_elapsed_check", "story_show_message_dialog", - "set_goal", "player_set_goal", "on_player_joined", "flash_goal", "set_info", "player_set_info", "export_entities", - "list", "recreate_entities", "entity_to_connect", "limit_camera", "find_gui_recursive", "enable_entity_export", - "add_button", "on_gui_click", "set_continue_button_style", "add_message_log", "story_add_message_log", - "player_add_message_log", "message_log_frame", "message_log_scrollpane", "message_log_close_button", - "message_log_table", "toggle_message_log_button", "toggle_objective_button", "message_log_init", - "add_gui_recursive", "add_toggle_message_log_button", "add_toggle_objective_button", "mod_gui", - "flash_message_log_button", "flash_message_log_on_tick", "story_gui_click", "story_points_by_name", "story_branches", - "player", "surface", "deconstruct_on_tick", "recreate_entities_on_tick", "flying_congrats", "story_table" - } -} - -stds.factorio_circuit_connector_generated = { - globals = { - 'default_circuit_wire_max_distance', 'circuit_connector_definitions', 'universal_connector_template', - 'belt_connector_template', 'belt_frame_connector_template', 'inserter_connector_template', 'inserter_connector_template', - 'inserter_circuit_wire_max_distance', 'inserter_default_stack_control_input_signal', 'transport_belt_connector_frame_sprites', - 'transport_belt_circuit_wire_max_distance', - } -} --)) - ---(( STDLIB ))-- -stds.stdlib = { - read_globals = { - }, - globals = { - "STDLIB", - "prequire", "rawtostring", "traceback", "inspect", "serpent", "inline_if", "install", "log", - "concat", - "GAME", "AREA", "POSITION", "TILE", "SURFACE", "CHUNK", "COLOR", "ENTITY", "INVENTORY", - "RESOURCE", "CONFIG", "LOGGER", "QUEUE", "EVENT", "GUI", "PLAYER", "FORCE", - "MATH", "STRING", "TABLE", - } -} - -stds.stdlib_control = { -} - -stds.stdlib_data = { - globals = { - 'DATA', 'RECIPE', 'ITEM', 'FLUID', 'ENTITY', 'TECHNOLOGY', 'CATEGORY' - } -} --)) - ---(( FACTORIO DEFINES ))-- -stds.factorio_defines = { - read_globals = { - defines = { - fields = { - alert_type = { - fields = { - 'custom', - 'entity_destroyed', - 'entity_under_attack', - 'no_material_for_construction', - 'no_storage', - 'not_enough_construction_robots', - 'not_enough_repair_packs', - 'train_out_of_fuel', - 'turret_fire', - 'fluid_mixing' - } - }, - behavior_result = { - fields = { - 'deleted', - 'fail', - 'in_progress', - 'success' - } - }, - build_check_type = { - fields = { - 'ghost_place', - 'ghost_revive', - 'manual', - 'script' - } - }, - chain_signal_state = { - fields = { - 'all_open', - 'none', - 'none_open', - 'partially_open' - } - }, - chunk_generated_status = { - fields = { - 'basic_tiles', - 'corrected_tiles', - 'custom_tiles', - 'entities', - 'nothing', - 'tiles' - } - }, - circuit_condition_index = { - fields = { - 'arithmetic_combinator', - 'constant_combinator', - 'decider_combinator', - 'inserter_circuit', - 'inserter_logistic', - 'lamp', - 'offshore_pump', - 'pump' - } - }, - circuit_connector_id = { - fields = { - 'accumulator', - 'combinator_input', - 'combinator_output', - 'constant_combinator', - 'container', - 'electric_pole', - 'inserter', - 'lamp', - 'offshore_pump', - 'programmable_speaker', - 'pump', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'wall' - } - }, - command = { - fields = { - 'attack', - 'attack_area', - 'build_base', - 'compound', - 'flee', - 'go_to_location', - 'group', - 'stop', - 'wander' - } - }, - compound_command = { - fields = { - 'logical_and', - 'logical_or', - 'return_last' - } - }, - control_behavior = { - fields = { - inserter = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'none', - 'read_hand_contents', - 'set_filters', - 'set_stack_size' - } - }, - hand_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - lamp = { - fields = { - circuit_mode_of_operation = { - fields = { - 'use_colors' - } - } - } - }, - logistic_container = { - fields = { - circuit_mode_of_operation = { - fields = { - 'send_contents', - 'set_requests' - } - } - } - }, - mining_drill = { - fields = { - resource_read_mode = { - fields = { - 'entire_patch', - 'this_miner' - } - } - } - }, - roboport = { - fields = { - circuit_mode_of_operation = { - fields = { - 'read_logistics', - 'read_robot_stats' - } - } - } - }, - train_stop = { - fields = { - circuit_mode_of_operation = { - fields = { - 'enable_disable', - 'read_from_train', - 'read_stopped_train', - 'send_to_train' - } - } - } - }, - transport_belt = { - fields = { - content_read_mode = { - fields = { - 'hold', - 'pulse' - } - } - } - }, - type = { - fields = { - 'accumulator', - 'arithmetic_combinator', - 'constant_combinator', - 'container', - 'decider_combinator', - 'generic_on_off', - 'inserter', - 'lamp', - 'logistic_container', - 'mining_drill', - 'programmable_speaker', - 'rail_chain_signal', - 'rail_signal', - 'roboport', - 'storage_tank', - 'train_stop', - 'transport_belt', - 'wall' - } - } - } - }, - controllers = { - fields = { - 'character', - 'cutscene', - 'editor', - 'ghost', - 'god', - 'spectator' - } - }, - deconstruction_item = { - fields = { - entity_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_filter_mode = { - fields = { - 'blacklist', - 'whitelist' - } - }, - tile_selection_mode = { - fields = { - 'always', - 'never', - 'normal', - 'only' - } - } - } - }, - difficulty = { - fields = { - 'easy', - 'hard', - 'normal' - } - }, - difficulty_settings = { - fields = { - recipe_difficulty = { - fields = { - 'expensive', - 'normal' - } - }, - technology_difficulty = { - fields = { - 'expensive', - 'normal' - } - } - } - }, - direction = { - fields = { - 'east', - 'north', - 'northeast', - 'northwest', - 'south', - 'southeast', - 'southwest', - 'west' - } - }, - distraction = { - fields = { - 'by_anything', - 'by_damage', - 'by_enemy', - 'none' - } - }, - entity_status = { - fields = { - 'working', - 'no_power', - 'no_fuel', - 'no_recipe', - 'no_input_fluid', - 'no_research_in_progress', - 'no_minable_resources', - 'low_input_fluid', - 'low_power', - 'disabled_by_control_behavior', - 'disabled_by_script', - 'fluid_ingredient_shortage', - 'fluid_production_overload', - 'item_ingredient_shortage', - 'item_production_overload', - 'marked_for_deconstruction', - 'missing_required_fluid', - 'missing_science_packs', - 'waiting_for_source_items', - 'waiting_for_space_in_destination', - } - }, - render_mode = { - fields = { - 'game', - 'chart', - 'chart_zoomed_in' - } - }, - events = { - fields = { - 'on_ai_command_completed', - 'on_area_cloned', - 'on_biter_base_built', - 'on_built_entity', - 'on_cancelled_deconstruction', - 'on_cancelled_upgrade', - 'on_character_corpse_expired', - 'on_chart_tag_added', - 'on_chart_tag_modified', - 'on_chart_tag_removed', - 'on_chunk_charted', - 'on_chunk_deleted', - 'on_chunk_generated', - 'on_combat_robot_expired', - 'on_console_chat', - 'on_console_command', - 'on_cutscene_waypoint_reached', - 'on_difficulty_settings_changed', - 'on_entity_cloned', - 'on_entity_damaged', - 'on_entity_died', - 'on_entity_renamed', - 'on_entity_settings_pasted', - 'on_entity_spawned', - 'on_force_created', - 'on_forces_merged', - 'on_forces_merging', - 'on_game_created_from_scenario', - 'on_gui_checked_state_changed', - 'on_gui_click', - 'on_gui_closed', - 'on_gui_confirmed', - 'on_gui_elem_changed', - 'on_gui_location_changed', - 'on_gui_opened', - 'on_gui_selected_tab_changed', - 'on_gui_selection_state_changed', - 'on_gui_switch_state_changed', - 'on_gui_text_changed', - 'on_gui_value_changed', - 'on_land_mine_armed', - 'on_lua_shortcut', - 'on_marked_for_deconstruction', - 'on_marked_for_upgrade', - 'on_market_item_purchased', - 'on_mod_item_opened', - 'on_picked_up_item', - 'on_player_alt_selected_area', - 'on_player_ammo_inventory_changed', - 'on_player_armor_inventory_changed', - 'on_player_banned', - 'on_player_built_tile', - 'on_player_cancelled_crafting', - 'on_player_changed_force', - 'on_player_changed_position', - 'on_player_changed_surface', - 'on_player_cheat_mode_disabled', - 'on_player_cheat_mode_enabled', - 'on_player_configured_blueprint', - 'on_player_crafted_item', - 'on_player_created', - 'on_player_cursor_stack_changed', - 'on_player_deconstructed_area', - 'on_player_demoted', - 'on_player_died', - 'on_player_display_resolution_changed', - 'on_player_display_scale_changed', - 'on_player_driving_changed_state', - 'on_player_dropped_item', - 'on_player_fast_transferred', - 'on_player_gun_inventory_changed', - 'on_player_joined_game', - 'on_player_kicked', - 'on_player_left_game', - 'on_player_main_inventory_changed', - 'on_player_mined_entity', - 'on_player_mined_item', - 'on_player_mined_tile', - 'on_player_muted', - 'on_player_pipette', - 'on_player_placed_equipment', - 'on_player_promoted', - 'on_player_removed', - 'on_player_removed_equipment', - 'on_player_repaired_entity', - 'on_player_respawned', - 'on_player_rotated_entity', - 'on_player_selected_area', - 'on_player_setup_blueprint', - 'on_player_toggled_alt_mode', - 'on_player_toggled_map_editor', - 'on_player_tool_inventory_changed', - 'on_player_trash_inventory_changed', - 'on_player_unbanned', - 'on_player_unmuted', - 'on_player_used_capsule', - 'on_post_entity_died', - 'on_pre_chunk_deleted', - 'on_pre_entity_settings_pasted', - 'on_pre_ghost_deconstructed', - 'on_pre_player_crafted_item', - 'on_pre_player_died', - 'on_pre_player_left_game', - 'on_pre_player_mined_item', - 'on_pre_player_removed', - 'on_pre_robot_exploded_cliff', - 'on_pre_surface_cleared', - 'on_pre_surface_deleted', - 'on_put_item', - 'on_research_finished', - 'on_research_started', - 'on_resource_depleted', - 'on_robot_built_entity', - 'on_robot_built_tile', - 'on_robot_exploded_cliff', - 'on_robot_mined', - 'on_robot_mined_entity', - 'on_robot_mined_tile', - 'on_robot_pre_mined', - 'on_rocket_launch_ordered', - 'on_rocket_launched', - 'on_runtime_mod_setting_changed', - 'on_script_path_request_finished', - 'on_sector_scanned', - 'on_selected_entity_changed', - 'on_surface_cleared', - 'on_surface_created', - 'on_surface_deleted', - 'on_surface_imported', - 'on_surface_renamed', - 'on_technology_effects_reset', - 'on_tick', - 'on_train_changed_state', - 'on_train_created', - 'on_train_schedule_changed', - 'on_trigger_created_entity', - 'on_trigger_fired_artillery', - 'on_unit_added_to_group', - 'on_unit_group_created', - 'on_unit_removed_from_group', - 'script_raised_built', - 'script_raised_destroy', - 'script_raised_revive' - } - }, - flow_precision_index = { - fields = { - 'fifty_hours', - 'one_hour', - 'one_minute', - 'one_second', - 'one_thousand_hours', - 'ten_hours', - 'ten_minutes', - 'two_hundred_fifty_hours' - } - }, - group_state = { - fields = { - 'attacking_distraction', - 'attacking_target', - 'finished', - 'gathering', - 'moving' - } - }, - gui_type = { - fields = { - 'achievement', - 'blueprint_library', - 'bonus', - 'controller', - 'custom', - 'entity', - 'equipment', - 'item', - 'kills', - 'logistic', - 'none', - 'other_player', - 'permissions', - 'player_management', - 'production', - 'research', - 'server_management', - 'trains', - 'tutorials' - } - }, - input_action = { - fields = { - 'activate_copy', - 'activate_cut', - 'activate_paste', - 'add_permission_group', - 'add_train_station', - 'admin_action', - 'alt_select_area', - 'alt_select_blueprint_entities', - 'alternative_copy', - 'begin_mining', - 'begin_mining_terrain', - 'build_item', - 'build_rail', - 'build_terrain', - 'cancel_craft', - 'cancel_deconstruct', - 'cancel_new_blueprint', - 'cancel_research', - 'cancel_upgrade', - 'change_active_item_group_for_crafting', - 'change_active_item_group_for_filters', - 'change_active_quick_bar', - 'change_arithmetic_combinator_parameters', - 'change_blueprint_book_record_label', - 'change_decider_combinator_parameters', - 'change_item_label', - 'change_multiplayer_config', - 'change_picking_state', - 'change_programmable_speaker_alert_parameters', - 'change_programmable_speaker_circuit_parameters', - 'change_programmable_speaker_parameters', - 'change_riding_state', - 'change_shooting_state', - 'change_single_blueprint_record_label', - 'change_train_stop_station', - 'change_train_wait_condition', - 'change_train_wait_condition_data', - 'clean_cursor_stack', - 'clear_selected_blueprint', - 'clear_selected_deconstruction_item', - 'clear_selected_upgrade_item', - 'connect_rolling_stock', - 'copy', - 'copy_entity_settings', - 'craft', - 'create_blueprint_like', - 'cursor_split', - 'cursor_transfer', - 'custom_input', - 'cycle_blueprint_book_backwards', - 'cycle_blueprint_book_forwards', - 'deconstruct', - 'delete_blueprint_library', - 'delete_blueprint_record', - 'delete_custom_tag', - 'delete_permission_group', - 'destroy_opened_item', - 'disconnect_rolling_stock', - 'drag_train_schedule', - 'drag_train_wait_condition', - 'drop_blueprint_record', - 'drop_item', - 'drop_to_blueprint_book', - 'edit_custom_tag', - 'edit_permission_group', - 'export_blueprint', - 'fast_entity_split', - 'fast_entity_transfer', - 'go_to_train_station', - 'grab_blueprint_record', - 'gui_checked_state_changed', - 'gui_click', - 'gui_confirmed', - 'gui_elem_changed', - 'gui_location_changed', - 'gui_selected_tab_changed', - 'gui_selection_state_changed', - 'gui_switch_state_changed', - 'gui_text_changed', - 'gui_value_changed', - 'import_blueprint', - 'import_blueprint_string', - 'import_permissions_string', - 'inventory_split', - 'inventory_transfer', - 'launch_rocket', - 'map_editor_action', - 'market_offer', - 'mod_settings_changed', - 'open_achievements_gui', - 'open_blueprint_library_gui', - 'open_blueprint_record', - 'open_bonus_gui', - 'open_character_gui', - 'open_equipment', - 'open_gui', - 'open_item', - 'open_kills_gui', - 'open_logistic_gui', - 'open_mod_item', - 'open_production_gui', - 'open_technology_gui', - 'open_train_gui', - 'open_train_station_gui', - 'open_trains_gui', - 'open_tutorials_gui', - 'paste_entity_settings', - 'place_equipment', - 'quick_bar_pick_slot', - 'quick_bar_set_selected_page', - 'quick_bar_set_slot', - 'remove_cables', - 'remove_train_station', - 'reset_assembling_machine', - 'rotate_entity', - 'select_area', - 'select_blueprint_entities', - 'select_entity_slot', - 'select_item', - 'select_mapper_slot', - 'select_next_valid_gun', - 'select_tile_slot', - 'set_auto_launch_rocket', - 'set_autosort_inventory', - 'set_behavior_mode', - 'set_car_weapons_control', - 'set_circuit_condition', - 'set_circuit_mode_of_operation', - 'set_deconstruction_item_tile_selection_mode', - 'set_deconstruction_item_trees_and_rocks_only', - 'set_entity_color', - 'set_entity_energy_property', - 'set_filter', - 'set_heat_interface_mode', - 'set_heat_interface_temperature', - 'set_infinity_container_filter_item', - 'set_infinity_container_remove_unfiltered_items', - 'set_infinity_pipe_filter', - 'set_inserter_max_stack_size', - 'set_inventory_bar', - 'set_logistic_filter_item', - 'set_logistic_filter_signal', - 'set_logistic_trash_filter_item', - 'set_request_from_buffers', - 'set_research_finished_stops_game', - 'set_signal', - 'set_single_blueprint_record_icon', - 'set_splitter_priority', - 'set_train_stopped', - 'setup_assembling_machine', - 'setup_blueprint', - 'setup_single_blueprint_record', - 'smart_pipette', - 'stack_split', - 'stack_transfer', - 'start_repair', - 'start_research', - 'start_walking', - 'switch_connect_to_logistic_network', - 'switch_constant_combinator_state', - 'switch_inserter_filter_mode_state', - 'switch_power_switch_state', - 'switch_to_rename_stop_gui', - 'take_equipment', - 'toggle_deconstruction_item_entity_filter_mode', - 'toggle_deconstruction_item_tile_filter_mode', - 'toggle_driving', - 'toggle_enable_vehicle_logistics_while_moving', - 'toggle_equipment_movement_bonus', - 'toggle_map_editor', - 'toggle_personal_roboport', - 'toggle_show_entity_info', - 'undo', - 'upgrade', - 'upgrade_opened_blueprint', - 'use_artillery_remote', - 'use_item', - 'wire_dragging', - 'write_to_console' - } - }, - inventory = { - fields = { - 'artillery_turret_ammo', - 'artillery_wagon_ammo', - 'assembling_machine_input', - 'assembling_machine_modules', - 'assembling_machine_output', - 'beacon_modules', - 'burnt_result', - 'car_ammo', - 'car_trunk', - 'cargo_wagon', - 'character_corpse', - 'chest', - 'editor_main', - 'editor_guns', - 'editor_ammo', - 'editor_armor', - 'fuel', - 'furnace_modules', - 'furnace_result', - 'furnace_source', - 'god_main', - 'item_main', - 'lab_input', - 'lab_modules', - 'mining_drill_modules', - 'character_ammo', - 'character_armor', - 'character_guns', - 'character_main', - 'character_trash', - 'character_vehicle', - 'roboport_material', - 'roboport_robot', - 'robot_cargo', - 'robot_repair', - 'rocket', - 'rocket_silo_result', - 'rocket_silo_rocket', - 'turret_ammo' - } - }, - logistic_member_index = { - fields = { - 'character_provider', - 'character_requester', - 'character_storage', - 'generic_on_off_behavior', - 'logistic_container', - 'vehicle_storage' - } - }, - logistic_mode = { - fields = { - 'active_provider', - 'buffer', - 'none', - 'passive_provider', - 'requester', - 'storage' - } - }, - mouse_button_type = { - fields = { - 'left', - 'middle', - 'none', - 'right' - } - }, - rail_connection_direction = { - fields = { - 'left', - 'none', - 'right', - 'straight' - } - }, - rail_direction = { - fields = { - 'back', - 'front' - } - }, - riding = { - fields = { - acceleration = { - fields = { - 'accelerating', - 'braking', - 'nothing', - 'reversing' - } - }, - direction = { - fields = { - 'left', - 'right', - 'straight' - } - } - } - }, - shooting = { - fields = { - 'not_shooting', - 'shooting_enemies', - 'shooting_selected' - } - }, - signal_state = { - fields = { - 'closed', - 'open', - 'reserved', - 'reserved_by_circuit_network' - } - }, - train_state = { - fields = { - 'arrive_signal', - 'arrive_station', - 'manual_control', - 'manual_control_stop', - 'no_path', - 'no_schedule', - 'on_the_path', - 'path_lost', - 'wait_signal', - 'wait_station' - } - }, - transport_line = { - fields = { - 'left_line', - 'left_split_line', - 'left_underground_line', - 'right_line', - 'right_split_line', - 'right_underground_line', - 'secondary_left_line', - 'secondary_left_split_line', - 'secondary_right_line', - 'secondary_right_split_line' - } - }, - wire_connection_id = { - fields = { - 'electric_pole', - 'power_switch_left', - 'power_switch_right' - } - }, - wire_type = { - fields = { - 'copper', - 'green', - 'red' - } - }, - -- Defines additional modules - color = { - other_fields = true - }, - anticolor = { - other_fields = true - }, - lightcolor = { - other_fields = true - }, - time = { - fields = { - 'second', - 'minute', - 'hour', - 'day', - 'week', - 'month', - 'year' - } - } - } - } - } -}--)) - -stds.love_extra = { - read_globals = { - love = { - fields = { - arg = { - fields = { - 'parseGameArguments', 'parseOption', 'getLow', 'optionIndices', 'options' - } - } - } - } - }, - globals = { - --'coroutine', 'io', 'socket', 'dofile', 'loadfile', - love = { - fields = { - 'handlers' - } - } - } -} - ---[[ Options - "ignore", "std", "globals", "unused_args", "self", "compat", "global", "unused", "redefined", - "unused_secondaries", "allow_defined", "allow_defined_top", "module", - "read_globals", "new_globals", "new_read_globals", "enable", "only", "not_globals", - "max_line_length", "max_code_line_length", "max_string_line_length", "max_comment_line_length", - "max_cyclomatic_complexity" ---]] - ---[[ Warnings list - -- 011 A syntax error. - -- 021 An invalid inline option. - -- 022 An unpaired inline push directive. - -- 023 An unpaired inline pop directive. - -- 111 Setting an undefined global variable. - -- 112 Mutating an undefined global variable. - -- 113 Accessing an undefined global variable. - -- 121 Setting a read-only global variable. - -- 122 Setting a read-only field of a global variable. - -- 131 Unused implicitly defined global variable. - -- 142 Setting an undefined field of a global variable. - -- 143 Accessing an undefined field of a global variable. - -- 211 Unused local variable. - -- 212 Unused argument. - -- 213 Unused loop variable. - -- 221 Local variable is accessed but never set. - -- 231 Local variable is set but never accessed. - -- 232 An argument is set but never accessed. - -- 233 Loop variable is set but never accessed. - -- 241 Local variable is mutated but never accessed. - -- 311 Value assigned to a local variable is unused. - -- 312 Value of an argument is unused. - -- 313 Value of a loop variable is unused. - -- 314 Value of a field in a table literal is unused. - -- 321 Accessing uninitialized local variable. - -- 331 Value assigned to a local variable is mutated but never accessed. - -- 341 Mutating uninitialized local variable. - -- 411 Redefining a local variable. - -- 412 Redefining an argument. - -- 413 Redefining a loop variable. - -- 421 Shadowing a local variable. - -- 422 Shadowing an argument. - -- 423 Shadowing a loop variable. - -- 431 Shadowing an upvalue. - -- 432 Shadowing an upvalue argument. - -- 433 Shadowing an upvalue loop variable. - -- 511 Unreachable code. - -- 512 Loop can be executed at most once. - -- 521 Unused label. - -- 531 Left-hand side of an assignment is too short. - -- 532 Left-hand side of an assignment is too long. - -- 541 An empty do end block. - -- 542 An empty if branch. - -- 551 An empty statement. - -- 611 A line consists of nothing but whitespace. - -- 612 A line contains trailing whitespace. - -- 613 Trailing whitespace in a string. - -- 614 Trailing whitespace in a comment. - -- 621 Inconsistent indentation (SPACE followed by TAB). - -- 631 Line is too long. ---]] \ No newline at end of file diff --git a/OLD/PHI-XW/changelog.txt b/OLD/PHI-XW/changelog.txt deleted file mode 100644 index 3fc58ff..0000000 --- a/OLD/PHI-XW/changelog.txt +++ /dev/null @@ -1,13 +0,0 @@ ---------------------------------------------------------------------------------------------------- -Version: 1.0.4 -Date: 2023-03-17 - -Added: - - Angel Seafloor pump - ---------------------------------------------------------------------------------------------------- -Version: 1.0.0 -Date: 2023-03-17 - -Added: - - Base Items \ No newline at end of file diff --git a/OLD/PHI-XW/data.lua b/OLD/PHI-XW/data.lua deleted file mode 100644 index 8f46bdc..0000000 --- a/OLD/PHI-XW/data.lua +++ /dev/null @@ -1,20 +0,0 @@ -data.raw['offshore-pump']['offshore-pump'].pumping_speed = settings.startup['PHI-XW-WATER'].value * 20 -data.raw['offshore-pump']['offshore-pump'].fluid_box.height = 4 -data.raw['offshore-pump']['offshore-pump'].fluid_box.level = 5 -data.raw['offshore-pump']['offshore-pump'].flags = {'placeable-neutral', 'player-creation'} -data.raw['offshore-pump']['offshore-pump'].adjacent_tile_collision_box = {{-0.5, -0.25}, {0.5, 0.25}} -data.raw['offshore-pump']['offshore-pump'].adjacent_tile_collision_test = {'ground-tile', 'water-tile', 'object-layer'} -data.raw['offshore-pump']['offshore-pump'].adjacent_tile_collision_mask = nil -data.raw['offshore-pump']['offshore-pump'].placeable_position_visualization = nil - -if mods['angelsrefining'] then - data.raw['offshore-pump']['seafloor-pump'].pumping_speed = settings.startup['PHI-XW-WATER'].value * 20 - data.raw['offshore-pump']['seafloor-pump'].fluid_box.height = 4 - data.raw['offshore-pump']['offshore-pump'].fluid_box.level = 5 - data.raw['offshore-pump']['seafloor-pump'].flags = {'placeable-neutral', 'player-creation', 'filter-directions'} - data.raw['offshore-pump']['seafloor-pump'].adjacent_tile_collision_box = {{-2, -3}, {2, -2}} - data.raw['offshore-pump']['seafloor-pump'].adjacent_tile_collision_test = {'ground-tile', 'water-tile', 'object-layer'} - data.raw['offshore-pump']['seafloor-pump'].adjacent_tile_collision_mask = nil - data.raw['offshore-pump']['seafloor-pump'].placeable_position_visualization = nil - data.raw['offshore-pump']['seafloor-pump'].max_health = 400 -end diff --git a/OLD/PHI-XW/info.json b/OLD/PHI-XW/info.json deleted file mode 100644 index a613de6..0000000 --- a/OLD/PHI-XW/info.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "PHI-XW", - "version": "1.1.0", - "factorio_version": "1.1", - "date": "2023-09-19", - "title": "Phidias Water Pump", - "author": "PHIDIAS0303", - "contributers": "", - "homepage": "", - "description": "Offshore water pump no longer require near water.", - "dependencies": [ - "base >= 1.1.0", - "? angelsrefining >= 0.12.0" - ] -} \ No newline at end of file diff --git a/OLD/PHI-XW/locale/en/locale.cfg b/OLD/PHI-XW/locale/en/locale.cfg deleted file mode 100644 index 19cfc9b..0000000 --- a/OLD/PHI-XW/locale/en/locale.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[mod-setting-name] -PHI-XW-WATER=Water diff --git a/OLD/PHI-XW/locale/ja/locale.cfg b/OLD/PHI-XW/locale/ja/locale.cfg deleted file mode 100644 index 97a8616..0000000 --- a/OLD/PHI-XW/locale/ja/locale.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[mod-setting-name] -PHI-XW-WATER=水 \ No newline at end of file diff --git a/OLD/PHI-XW/locale/zh-CN/locale.cfg b/OLD/PHI-XW/locale/zh-CN/locale.cfg deleted file mode 100644 index 97a8616..0000000 --- a/OLD/PHI-XW/locale/zh-CN/locale.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[mod-setting-name] -PHI-XW-WATER=水 \ No newline at end of file diff --git a/OLD/PHI-XW/locale/zh-TW/locale.cfg b/OLD/PHI-XW/locale/zh-TW/locale.cfg deleted file mode 100644 index 97a8616..0000000 --- a/OLD/PHI-XW/locale/zh-TW/locale.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[mod-setting-name] -PHI-XW-WATER=水 \ No newline at end of file diff --git a/OLD/PHI-XW/settings.lua b/OLD/PHI-XW/settings.lua deleted file mode 100644 index 9756eab..0000000 --- a/OLD/PHI-XW/settings.lua +++ /dev/null @@ -1,8 +0,0 @@ -data:extend({{ - type = 'int-setting', - name = 'PHI-XW-WATER', - setting_type = 'startup', - default_value = 5, - allowed_values = {1, 2, 3, 4, 5}, - order = 'A1' - }}) \ No newline at end of file diff --git a/OLD/PHI-XW/thumbnail.png b/OLD/PHI-XW/thumbnail.png deleted file mode 100644 index ea60207..0000000 Binary files a/OLD/PHI-XW/thumbnail.png and /dev/null differ diff --git a/OLD/accumulator-e.png b/OLD/accumulator-e.png deleted file mode 100644 index da02fde..0000000 Binary files a/OLD/accumulator-e.png and /dev/null differ diff --git a/OLD/accumulator-eh.png b/OLD/accumulator-eh.png deleted file mode 100644 index bc13e90..0000000 Binary files a/OLD/accumulator-eh.png and /dev/null differ diff --git a/OLD/accumulator-i.png b/OLD/accumulator-i.png deleted file mode 100644 index 720fe8a..0000000 Binary files a/OLD/accumulator-i.png and /dev/null differ diff --git a/OLD/solar-panel-e.png b/OLD/solar-panel-e.png deleted file mode 100644 index 532ec4e..0000000 Binary files a/OLD/solar-panel-e.png and /dev/null differ diff --git a/OLD/solar-panel-eh.png b/OLD/solar-panel-eh.png deleted file mode 100644 index 2990613..0000000 Binary files a/OLD/solar-panel-eh.png and /dev/null differ diff --git a/OLD/solar-panel-i.png b/OLD/solar-panel-i.png deleted file mode 100644 index 99eb51a..0000000 Binary files a/OLD/solar-panel-i.png and /dev/null differ