2019-03-10 00:18:52 +02:00
|
|
|
require 'utils.data_stages'
|
|
|
|
_LIFECYCLE = _STAGE.control -- Control stage
|
|
|
|
_DEBUG = false
|
|
|
|
_DUMP_ENV = false
|
|
|
|
|
2019-10-29 20:46:54 +02:00
|
|
|
require 'utils.server'
|
2019-02-20 12:43:29 +02:00
|
|
|
require "utils.server_commands"
|
2018-09-19 06:51:25 +02:00
|
|
|
require "utils.utils"
|
2019-08-09 18:01:07 +02:00
|
|
|
require "utils.table"
|
2019-07-28 12:21:57 +02:00
|
|
|
require "utils.color_data"
|
2019-07-06 16:38:03 +02:00
|
|
|
require "utils.session_data"
|
2018-12-18 10:42:37 +02:00
|
|
|
require "chatbot"
|
2019-02-14 16:44:12 +02:00
|
|
|
require "commands"
|
2019-10-20 12:52:19 +02:00
|
|
|
require "antigrief"
|
2019-10-31 11:13:47 +02:00
|
|
|
require "modules.corpse_markers"
|
|
|
|
require "modules.floaty_chat"
|
|
|
|
require "modules.autohotbar"
|
2019-10-20 11:48:14 +02:00
|
|
|
|
|
|
|
require "comfy_panel.main"
|
|
|
|
require "comfy_panel.player_list"
|
2019-10-31 11:13:47 +02:00
|
|
|
require "comfy_panel.admin"
|
2019-10-20 11:48:14 +02:00
|
|
|
require "comfy_panel.group"
|
2019-10-20 18:51:48 +02:00
|
|
|
require "comfy_panel.poll"
|
2019-10-31 11:13:47 +02:00
|
|
|
require "comfy_panel.score"
|
|
|
|
require "comfy_panel.config"
|
2019-10-20 11:48:14 +02:00
|
|
|
|
2019-11-20 20:26:34 +02:00
|
|
|
require "modules.autostash"
|
2018-09-29 19:01:13 +02:00
|
|
|
|
2018-12-27 19:38:13 +02:00
|
|
|
---- enable modules here ----
|
2019-08-06 03:04:35 +02:00
|
|
|
--require "modules.the_floor_is_lava"
|
2019-09-21 11:47:09 +02:00
|
|
|
--require "modules.biters_landfill_on_death"
|
2019-05-17 20:33:53 +02:00
|
|
|
--require "modules.autodecon_when_depleted"
|
|
|
|
--require "modules.biter_noms_you"
|
|
|
|
--require "modules.biters_avoid_damage"
|
|
|
|
--require "modules.biters_double_damage"
|
|
|
|
--require "modules.burden"
|
|
|
|
--require "modules.comfylatron"
|
2019-07-24 19:23:18 +02:00
|
|
|
--require "modules.spaghett_challenge"
|
2019-05-17 20:33:53 +02:00
|
|
|
--require "modules.dangerous_goods"
|
|
|
|
--require "modules.dynamic_landfill"
|
|
|
|
--require "modules.explosive_biters"
|
|
|
|
--require "modules.explosive_player_respawn"
|
|
|
|
--require "modules.explosives_are_explosive"
|
2019-03-13 18:09:06 +02:00
|
|
|
--require "modules.fish_respawner"
|
|
|
|
--require "modules.fluids_are_explosive"
|
2019-05-17 20:33:53 +02:00
|
|
|
--require "modules.hunger"
|
2019-03-13 18:09:06 +02:00
|
|
|
--require "modules.hunger_games"
|
2019-05-17 20:33:53 +02:00
|
|
|
--require "modules.players_trample_paths"
|
|
|
|
--require "modules.railgun_enhancer"
|
|
|
|
--require "modules.restrictive_fluid_mining"
|
|
|
|
--require "modules.satellite_score"
|
2019-04-29 22:56:55 +02:00
|
|
|
--require "modules.show_health"
|
2019-05-17 20:33:53 +02:00
|
|
|
--require "modules.splice_double"
|
2019-12-28 15:56:04 +02:00
|
|
|
--require "modules.ores_are_mixed"
|
2019-06-07 11:18:08 +02:00
|
|
|
--require "modules.team_teleport" --(REQUIRES "on_tick_schedule" !)
|
|
|
|
--require "modules.surrounded_by_worms"
|
|
|
|
--require "modules.more_attacks"
|
|
|
|
--require "modules.evolution_extended"
|
2019-10-02 21:13:14 +02:00
|
|
|
--require "modules.no_blueprint_library"
|
2019-10-11 21:52:32 +02:00
|
|
|
--require "modules.explosives"
|
2019-10-13 08:28:08 +02:00
|
|
|
--require "modules.biter_pets"
|
2019-12-19 19:26:02 +02:00
|
|
|
--require "modules.no_solar"
|
2020-01-19 11:31:16 +02:00
|
|
|
--require "modules.biter_reanimator"
|
2019-10-20 11:48:14 +02:00
|
|
|
--require "modules.wave_defense.main"
|
2019-11-17 20:17:15 +02:00
|
|
|
--require "modules.fjei.main"
|
2018-12-27 19:38:13 +02:00
|
|
|
-----------------------------
|
2018-09-19 06:51:25 +02:00
|
|
|
|
2020-01-01 15:05:49 +02:00
|
|
|
---- enable maps here ---- (maps higher up in the list may be more actually playable)
|
2019-09-21 11:47:09 +02:00
|
|
|
--require "maps.fish_defender.main"
|
2019-11-20 20:26:34 +02:00
|
|
|
--require "maps.biter_battles_v2.main"
|
2019-12-19 19:26:02 +02:00
|
|
|
--require "maps.mountain_fortress_v2.main"
|
2019-09-25 00:26:01 +02:00
|
|
|
--require "maps.island_troopers.main"
|
2019-11-07 16:38:11 +02:00
|
|
|
--require "maps.biter_hatchery.main"
|
2019-11-17 20:17:15 +02:00
|
|
|
--require "maps.junkyard_pvp.main"
|
2019-11-10 00:53:27 +02:00
|
|
|
--require "maps.scrapyard.main"
|
2019-08-01 22:16:37 +02:00
|
|
|
--require "maps.tank_conquest.tank_conquest"
|
2019-07-08 16:56:19 +02:00
|
|
|
--require "maps.territorial_control"
|
2019-06-24 13:29:30 +02:00
|
|
|
--require "maps.cave_choppy.cave_miner"
|
2019-05-17 20:33:53 +02:00
|
|
|
--require "maps.wave_of_death.WoD"
|
2020-01-19 11:31:16 +02:00
|
|
|
--require "maps.planet_prison"
|
2019-06-07 11:18:08 +02:00
|
|
|
--require "maps.stone_maze.main"
|
2019-12-19 19:26:02 +02:00
|
|
|
--require "maps.choppy"
|
2019-08-16 23:19:19 +02:00
|
|
|
--require "maps.overgrowth"
|
2019-10-02 21:13:14 +02:00
|
|
|
--require "maps.quarters"
|
2019-09-21 11:47:09 +02:00
|
|
|
--require "maps.tetris.main"
|
2019-08-12 14:34:16 +02:00
|
|
|
--require "maps.maze_challenge"
|
2019-10-03 22:20:12 +02:00
|
|
|
--require "maps.cave_miner"
|
2019-08-09 18:01:07 +02:00
|
|
|
--require "maps.rocky_waste"
|
2019-03-19 00:53:27 +02:00
|
|
|
--require "maps.labyrinth"
|
2019-03-23 03:02:30 +02:00
|
|
|
--require "maps.junkyard"
|
2020-01-01 15:05:49 +02:00
|
|
|
--require "maps.hedge_maze"
|
2019-01-15 03:32:05 +02:00
|
|
|
--require "maps.spooky_forest"
|
2019-06-07 11:18:08 +02:00
|
|
|
--require "maps.mixed_railworld"
|
2020-01-01 15:05:49 +02:00
|
|
|
--require "maps.biter_battles.biter_battles"
|
|
|
|
--require "maps.fish_defender_v1.fish_defender"
|
|
|
|
--require "maps.mountain_fortress"
|
2019-01-04 10:06:26 +02:00
|
|
|
--require "maps.nightfall"
|
2019-03-31 10:22:20 +02:00
|
|
|
--require "maps.lost"
|
2019-04-13 19:12:46 +02:00
|
|
|
--require "maps.rivers"
|
2019-03-13 03:38:38 +02:00
|
|
|
--require "maps.atoll"
|
2019-05-17 20:33:53 +02:00
|
|
|
--require "maps.cratewood_forest"
|
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-10-07 09:48:17 +02:00
|
|
|
--require "maps.refactor-io"
|
2020-01-01 15:05:49 +02:00
|
|
|
--require "maps.lost_desert"
|
2019-02-20 20:37:35 +02:00
|
|
|
--require "maps.stoneblock"
|
2020-01-01 19:25:14 +02:00
|
|
|
--require "maps.wave_defense"
|
2018-11-16 09:13:08 +02:00
|
|
|
--require "maps.crossing"
|
2019-01-13 03:53:35 +02:00
|
|
|
--require "maps.anarchy"
|
2018-12-31 02:55:18 +02:00
|
|
|
--require "maps.spaghettorio"
|
2019-06-07 11:18:08 +02:00
|
|
|
--require "maps.blue_beach"
|
2020-01-01 15:05:49 +02:00
|
|
|
--require "maps.deep_jungle"
|
|
|
|
--require "maps.rainbow_road"
|
2019-05-17 20:33:53 +02:00
|
|
|
--require "maps.cube"
|
2019-08-26 02:00:00 +02:00
|
|
|
--require "maps.forest_circle"
|
2018-09-19 06:51:25 +02:00
|
|
|
-----------------------------
|
|
|
|
|
2019-08-16 23:19:19 +02:00
|
|
|
---- more modules here ----
|
2019-12-30 18:55:11 +02:00
|
|
|
--require "modules.towny.main"
|
2019-10-20 11:48:14 +02:00
|
|
|
--require "modules.rpg"
|
2019-08-16 23:19:19 +02:00
|
|
|
--require "modules.trees_grow"
|
|
|
|
--require "modules.trees_randomly_die"
|
2020-01-01 15:05:49 +02:00
|
|
|
|
|
|
|
--require "terrain_layouts.scrap_01"
|
|
|
|
--require "terrain_layouts.caves"
|
2019-12-19 19:26:02 +02:00
|
|
|
--require "terrain_layouts.cone_to_east"
|
|
|
|
--require "terrain_layouts.biters_and_resources_east"
|
2019-08-16 23:19:19 +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
|
|
|
|
|
2019-07-24 19:42:27 +02:00
|
|
|
local function on_player_created(event)
|
|
|
|
local player = game.players[event.player_index]
|
2018-09-19 06:51:25 +02:00
|
|
|
player.gui.top.style = 'slot_table_spacing_horizontal_flow'
|
|
|
|
player.gui.left.style = 'slot_table_spacing_vertical_flow'
|
|
|
|
end
|
|
|
|
|
2019-04-13 19:12:46 +02:00
|
|
|
local function on_init()
|
|
|
|
game.forces.player.research_queue_enabled = true
|
|
|
|
end
|
|
|
|
|
2019-07-27 12:25:00 +02:00
|
|
|
local loaded = _G.package.loaded
|
|
|
|
function require(path)
|
|
|
|
return loaded[path] or error('Can only require files at runtime that have been required in the control stage.', 2)
|
|
|
|
end
|
|
|
|
|
2019-10-20 11:48:14 +02:00
|
|
|
local event = require 'utils.event'
|
2019-04-13 19:12:46 +02:00
|
|
|
event.on_init(on_init)
|
2019-04-29 22:56:55 +02:00
|
|
|
event.add(defines.events.on_player_created, on_player_created)
|