@expcluster/legacy 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/dist/browser/package.json +40 -0
- package/dist/browser/tsconfig.browser.tsbuildinfo +1 -0
- package/dist/browser/web/index.d.ts +1 -0
- package/dist/browser/web/index.d.ts.map +1 -0
- package/dist/browser/web/index.js +2 -0
- package/dist/browser/web/index.js.map +1 -0
- package/dist/node/index.d.ts +3 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +10 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/instance.d.ts +4 -0
- package/dist/node/instance.d.ts.map +1 -0
- package/dist/node/instance.js +8 -0
- package/dist/node/instance.js.map +1 -0
- package/dist/node/tsconfig.node.tsbuildinfo +1 -0
- package/dist/web/manifest.json +7 -0
- package/dist/web/static/exp_legacy.9b6538559ed5e689539c.js +355 -0
- package/dist/web/static/index_ts.8f9d451c8d3f7f293da6.js +22 -0
- package/dist/web/static/main.94e1b48804112ca8bdfc.js +118 -0
- package/dist/web/static/package_json.a83729efdb0697b12396.js +22 -0
- package/dist/web/static/web_index_tsx.e5a01ac0e4b0a6f6517f.js +21 -0
- package/index.ts +8 -0
- package/instance.ts +7 -0
- package/module/config/_file_loader.lua +29 -0
- package/module/config/advanced_start.lua +112 -0
- package/module/config/afk_kick.lua +14 -0
- package/module/config/bonus.lua +105 -0
- package/module/config/chat_reply.lua +136 -0
- package/module/config/compilatron.lua +25 -0
- package/module/config/death_logger.lua +15 -0
- package/module/config/deconlog.lua +11 -0
- package/module/config/discord_alerts.lua +25 -0
- package/module/config/expcore/permission_groups.lua +143 -0
- package/module/config/graftorio.lua +7 -0
- package/module/config/gui/autofill.lua +129 -0
- package/module/config/gui/player_list_actions.lua +201 -0
- package/module/config/gui/rockets.lua +47 -0
- package/module/config/gui/science.lua +21 -0
- package/module/config/gui/tasks.lua +13 -0
- package/module/config/gui/warps.lua +52 -0
- package/module/config/inventory_clear.lua +9 -0
- package/module/config/join_messages.lua +8 -0
- package/module/config/lawnmower.lua +6 -0
- package/module/config/logging.lua +30 -0
- package/module/config/miner.lua +8 -0
- package/module/config/module.lua +86 -0
- package/module/config/nukeprotect.lua +30 -0
- package/module/config/pollution_grading.lua +9 -0
- package/module/config/popup_messages.lua +10 -0
- package/module/config/preset_player_colours.lua +33 -0
- package/module/config/preset_player_quickbar.lua +6 -0
- package/module/config/protection.lua +17 -0
- package/module/config/repair.lua +8 -0
- package/module/config/research.lua +179 -0
- package/module/config/scorched_earth.lua +116 -0
- package/module/config/spawn_area.lua +255 -0
- package/module/config/station_auto_name.lua +11 -0
- package/module/config/statistics.lua +46 -0
- package/module/config/vlayer.lua +180 -0
- package/module/config/warnings.lua +38 -0
- package/module/control.lua +46 -0
- package/module/expcore/datastore.lua +884 -0
- package/module/expcore/external.lua +146 -0
- package/module/expcore/permission_groups.lua +355 -0
- package/module/expcore/player_data.lua +152 -0
- package/module/locale/en/addons.cfg +31 -0
- package/module/locale/en/data.cfg +114 -0
- package/module/locale/en/expcore.cfg +16 -0
- package/module/locale/en/gui.cfg +114 -0
- package/module/locale/zh-CN/addons.cfg +31 -0
- package/module/locale/zh-CN/data.cfg +114 -0
- package/module/locale/zh-CN/expcore.cfg +16 -0
- package/module/locale/zh-CN/gui.cfg +122 -0
- package/module/locale/zh-TW/addons.cfg +31 -0
- package/module/locale/zh-TW/data.cfg +114 -0
- package/module/locale/zh-TW/expcore.cfg +16 -0
- package/module/locale/zh-TW/gui.cfg +122 -0
- package/module/module.json +14 -0
- package/module/module_exports.lua +3 -0
- package/module/modules/control/jail.lua +119 -0
- package/module/modules/control/protection.lua +204 -0
- package/module/modules/control/reports.lua +225 -0
- package/module/modules/control/spectate.lua +173 -0
- package/module/modules/control/vlayer.lua +807 -0
- package/module/modules/control/warnings.lua +331 -0
- package/module/modules/control/warps.lua +488 -0
- package/module/modules/data/alt-view.lua +26 -0
- package/module/modules/data/greetings.lua +45 -0
- package/module/modules/data/language.lua +21 -0
- package/module/modules/data/player-colours.lua +63 -0
- package/module/modules/data/quickbar.lua +72 -0
- package/module/modules/data/statistics.lua +181 -0
- package/module/modules/data/tag.lua +82 -0
- package/module/modules/data/toolbar.lua +31 -0
- package/module/modules/graftorio/forcestats.lua +196 -0
- package/module/modules/graftorio/general.lua +63 -0
- package/module/modules/graftorio/require.lua +28 -0
- package/module/modules/graftorio/statics.lua +36 -0
- package/module/modules/gui/vlayer.lua +547 -0
- package/module/modules/gui/warp-list.lua +909 -0
- package/module/utils/event.lua +86 -0
- package/package.json +38 -0
- package/tsconfig.browser.json +4 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +5 -0
- package/web/index.tsx +0 -0
- package/webpack.config.js +29 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
--- Please go to ./config if you want to change settings, each file is commented with what it does
|
|
2
|
+
-- if it is not in ./config then you should not attempt to change it unless you know what you are doing
|
|
3
|
+
-- all files which are loaded (including the config files) are present in ./config/file_loader.lua
|
|
4
|
+
-- this file is the landing point for all scenarios please DO NOT edit directly, further comments are to aid development
|
|
5
|
+
|
|
6
|
+
log("[START] -----| Explosive Gaming Scenario Loader |-----")
|
|
7
|
+
log("[INFO] Setting up lua environment")
|
|
8
|
+
|
|
9
|
+
-- Please go to config/file_loader.lua to edit the files that are loaded
|
|
10
|
+
log("[INFO] Reading loader config")
|
|
11
|
+
local files = require("modules.exp_legacy.config._file_loader")
|
|
12
|
+
|
|
13
|
+
-- Error handler for loading files
|
|
14
|
+
local errors = {}
|
|
15
|
+
local error_count = 0
|
|
16
|
+
local error_format = "[ERROR] %s :: %s"
|
|
17
|
+
local currently_loading = nil
|
|
18
|
+
local function error_handler(err)
|
|
19
|
+
error_count = error_count + 1
|
|
20
|
+
if err:find("module " .. currently_loading .. " not found;", nil, true) then
|
|
21
|
+
log("[ERROR] File not found: " .. currently_loading)
|
|
22
|
+
errors[error_count] = error_format:format(currently_loading, err)
|
|
23
|
+
else
|
|
24
|
+
log("[ERROR] Failed to load: " .. currently_loading)
|
|
25
|
+
errors[error_count] = debug.traceback(error_format:format(currently_loading, err))
|
|
26
|
+
end
|
|
27
|
+
return err
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
-- Loads all files from the config and logs that they are loaded
|
|
31
|
+
local total_file_count = string.format("%3d", #files)
|
|
32
|
+
for index, path in pairs(files) do
|
|
33
|
+
currently_loading = path
|
|
34
|
+
log(string.format("[INFO] Loading file %3d/%s (%s)", index, total_file_count, path))
|
|
35
|
+
xpcall(require, error_handler, "modules.exp_legacy." .. path)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
-- Logs all errors again to make it make it easy to find
|
|
39
|
+
log("[INFO] All files loaded with " .. error_count .. " errors:")
|
|
40
|
+
for _, error in ipairs(errors) do log(error) end
|
|
41
|
+
|
|
42
|
+
log("[END] -----| Explosive Gaming Scenario Loader |-----")
|
|
43
|
+
|
|
44
|
+
--- Register all event handlers via event handler
|
|
45
|
+
local Event = require("modules/exp_legacy/utils/event")
|
|
46
|
+
return Event.real_handlers
|