-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata-final-fixes.lua
More file actions
40 lines (33 loc) · 1.11 KB
/
Copy pathdata-final-fixes.lua
File metadata and controls
40 lines (33 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
log = regroup.logging.makelog("data-final-fixes")
--double check active mods to save performance...
if type(dimoresenable) == "nil" and type(inventorychanges) == "nil" then
--5dim seems to be offline...
regroup.config.active_mods["5dim"] = nil
log("5dim force disabled")
end
if not data.raw.item["circuit-floor"] then
--more_floors seems to be offline
regroup.config.active_mods["more_floors"] = nil
log("More_Floors force disabled")
end
local mapping = {
["items"] = "item",
["recipes"] = "recipe",
["tools"] = "mining-tool",
["guns"] = "gun",
["modules"] = "module",
["ammos"] = "ammo",
["armors"] = "armor",
["capsules"] = "capsule",
}
--create shortcuts
table.each(mapping, function(v,k)
regroup.group[k] = regroup.group.createSelector(v)
end)
regroup.modloader.loadmods(regroup.config.active_mods, regroup.config.mod_order)
if regroup.config.DEBUG_MODE then
--log("[NAMES] => %s", go.dumpvar(data.raw, 3, 1))
--log("[GROUPS] => %s", go.dumpvar(data.raw["item-group"], 2, 0))
--log("[S_GROUPS] => %s", go.dumpvar(data.raw["item-subgroup"], 3, 0))
--log("[ITEMS] => %s", go.dumpvar(data.raw.item, 2, 0))
end