1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00
RedMew/control.lua
2018-11-24 14:15:14 +00:00

82 lines
2.2 KiB
Lua

-- Libraries. Removing these will likely lead to game crashes
require 'config'
require 'utils.utils'
require 'utils.list_utils'
require 'utils.math'
require 'map_gen.shared.perlin_noise'
require 'map_layout'
-- Specific to RedMew hosts, can be disabled safely if not hosting on RedMew servers
require 'features.bot'
Server = require 'server'
ServerCommands = require 'server_commands'
-- Library modules which, if missing, will cause other feature modules to fail
require 'features.base_data'
--require 'features.follow' -- Nothing currently uses anything inside follow
require 'features.player_create'
require 'features.user_groups'
-- Feature modules, each can be disabled
require 'features.autodeconstruct'
require 'features.chat_triggers'
require 'features.corpse_util'
require 'features.donator_messages'
require 'features.train_saviour'
require 'features.fish_market'
require 'features.free_item_logging'
--require 'features.infinite_storage_chest'
require 'features.nuke_control'
require 'features.player_colors'
require 'features.reactor_meltdown'
require 'features.train_station_names'
require 'features.walkabout'
-- Contains various commands for users and admins alike
require 'features.custom_commands'
-- GUIs the order determines the order they appear from left to right.
-- These can be safely disabled. Some map presets will add GUI modules themselves.
require 'features.gui.info'
require 'features.gui.player_list'
require 'features.gui.poll'
require 'features.gui.tag_group'
require 'features.gui.tasklist'
require 'features.gui.blueprint_helper'
require 'features.gui.paint'
require 'features.gui.score'
require 'features.gui.popup'
Server.on_data_set_changed(
'Test',
function(data)
game.print(serpent.block(data))
end
)
Server.on_data_set_changed(
'Test 2',
function(data)
game.print(serpent.block(data))
end
)
Server.on_data_set_changed(
'Test,2',
function(data)
game.print(serpent.block(data))
end
)
local Event = require('utils.event')
Event.add(
Server.events.on_server_started,
function(tbl)
game.print('on_server_started')
print('on_server_started')
game.print(serpent.block(tbl))
print(serpent.block(tbl))
end
)