1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-08 00:39:30 +02:00
ComfyFactorio/control.lua

81 lines
2.3 KiB
Lua
Raw Normal View History

2019-03-10 00:18:52 +02:00
require 'utils.data_stages'
_LIFECYCLE = _STAGE.control -- Control stage
_DEBUG = false
_DUMP_ENV = false
2019-02-20 12:43:29 +02:00
server_commands = require 'utils.server'
require "utils.server_commands"
2018-09-19 06:51:25 +02:00
require "utils.utils"
2019-02-26 21:05:31 +02:00
require "utils.corpse_util" --disable for hunger games
2018-12-18 10:42:37 +02:00
require "chatbot"
2019-02-14 16:44:12 +02:00
require "commands"
2018-09-19 06:51:25 +02:00
require "session_tracker"
require "antigrief"
2018-11-18 15:18:43 +02:00
require "antigrief_admin_panel"
2018-09-19 06:51:25 +02:00
require "group"
require "player_list"
2019-02-26 22:00:00 +02:00
require "poll"
2019-02-26 21:05:31 +02:00
require "score"
2018-09-29 19:01:13 +02:00
---- enable modules here ----
2019-03-16 10:14:41 +02:00
--require "tools.cheat_mode"
2019-03-13 18:09:06 +02:00
--require "modules.hunger"
--require "modules.area_unlocked_on_rotated_entity"
--require "modules.fish_respawner"
--require "modules.rocket_launch_always_yields_science"
--require "modules.launch_fish_to_win"
--require "modules.satellite_score"
--require "modules.restrictive_fluid_mining"
--require "modules.fluids_are_explosive"
--require "modules.explosives_are_explosive"
--require "modules.explosive_biters"
--require "modules.railgun_enhancer"
--require "modules.dynamic_landfill"
--require "modules.players_trample_paths"
--require "modules.hunger_games"
--require "modules.explosive_player_respawn"
--require "modules.burden"
2019-03-13 19:30:19 +02:00
--require "modules.team_teleport"
-----------------------------
2018-09-19 06:51:25 +02:00
2018-09-29 11:39:36 +02:00
---- enable maps here ----
2019-03-25 01:01:06 +02:00
--require "maps.biter_battles_v2.biter_battles_v2"
--require "maps.biter_battles.biter_battles"
2019-03-08 18:22:06 +02:00
--require "maps.cave_miner"
2019-03-19 00:53:27 +02:00
--require "maps.labyrinth"
2019-03-23 03:02:30 +02:00
--require "maps.junkyard"
2019-01-15 03:32:05 +02:00
--require "maps.spooky_forest"
2019-01-04 10:06:26 +02:00
--require "maps.nightfall"
2019-03-28 09:21:08 +02:00
require "maps.lost"
2019-03-13 03:38:38 +02:00
--require "maps.atoll"
2019-03-11 23:38:34 +02:00
--require "maps.choppy"
2018-12-31 02:55:18 +02:00
--require "maps.tank_battles"
2019-03-18 06:51:32 +02:00
--require "maps.spiral_troopers"
2019-03-07 15:12:55 +02:00
--require "maps.fish_defender"
2019-02-28 19:53:33 +02:00
--require "maps.mountain_fortress"
--require "maps.stoneblock"
2019-02-26 19:42:36 +02:00
--require "maps.deep_jungle"
2018-11-16 09:13:08 +02:00
--require "maps.crossing"
--require "maps.anarchy"
2018-12-31 02:55:18 +02:00
--require "maps.spaghettorio"
--require "maps.lost_desert"
2019-02-05 09:42:45 +02:00
--require "maps.empty_map"
--require "maps.custom_start"
2018-09-19 06:51:25 +02:00
-----------------------------
2019-02-14 16:44:12 +02:00
local event = require 'utils.event'
2018-09-19 06:51:25 +02:00
2019-03-10 00:18:52 +02:00
if _DUMP_ENV then
require 'utils.dump_env'
end
if _DEBUG then
require 'utils.debug.command'
end
2018-12-18 10:42:37 +02:00
local function on_player_created(event)
2018-09-19 06:51:25 +02:00
local player = game.players[event.player_index]
player.gui.top.style = 'slot_table_spacing_horizontal_flow'
player.gui.left.style = 'slot_table_spacing_vertical_flow'
end
2019-03-16 21:25:21 +02:00
event.add(defines.events.on_player_created, on_player_created)