2021-12-09 03:02:34 +01:00
|
|
|
print[[
|
|
|
|
|
|
|
|
Powered by
|
|
|
|
|
|
|
|
██╗██████╗
|
|
|
|
██║╚════██╗
|
|
|
|
██║ █████╔╝
|
|
|
|
██║ ╚═══██╗
|
|
|
|
██║██████╔╝
|
|
|
|
╚═╝╚═════╝
|
|
|
|
]]
|
|
|
|
|
2021-11-22 17:37:28 +01:00
|
|
|
local modpath = core.get_modpath"i3"
|
2021-12-06 14:44:40 +01:00
|
|
|
local http = core.request_http_api()
|
2022-01-08 16:40:10 +01:00
|
|
|
local storage = core.get_mod_storage()
|
2022-06-23 01:14:45 +02:00
|
|
|
local _loadfile = dofile(modpath .. "/src/preprocessor.lua")
|
2021-10-19 05:54:51 +02:00
|
|
|
|
|
|
|
local function lf(path)
|
2021-12-06 14:44:40 +01:00
|
|
|
return assert(_loadfile(modpath .. path))
|
2021-10-19 05:54:51 +02:00
|
|
|
end
|
|
|
|
|
2021-10-19 03:24:32 +02:00
|
|
|
i3 = {
|
2022-09-25 17:42:14 +02:00
|
|
|
version = 1121,
|
2022-01-08 16:40:10 +01:00
|
|
|
data = core.deserialize(storage:get_string"data") or {},
|
|
|
|
|
2021-12-13 00:20:26 +01:00
|
|
|
settings = {
|
2022-01-02 15:06:14 +01:00
|
|
|
debug_mode = false,
|
2021-12-13 00:20:26 +01:00
|
|
|
max_favs = 6,
|
2022-01-16 18:16:56 +01:00
|
|
|
max_waypoints = 30,
|
2022-08-01 03:57:32 +02:00
|
|
|
min_fs_version = 6,
|
2021-12-13 00:20:26 +01:00
|
|
|
item_btn_size = 1.1,
|
|
|
|
drop_bag_on_die = true,
|
2022-08-28 14:18:05 +02:00
|
|
|
wielditem_fade_after = 3,
|
2021-12-13 00:20:26 +01:00
|
|
|
save_interval = 600, -- Player data save interval (in seconds)
|
|
|
|
|
|
|
|
hud_speed = 1,
|
|
|
|
hud_timer_max = 1.5,
|
|
|
|
|
2022-09-25 15:37:32 +02:00
|
|
|
damage_enabled = core.settings:get_bool"enable_damage",
|
2021-12-13 00:20:26 +01:00
|
|
|
progressive_mode = core.settings:get_bool"i3_progressive_mode",
|
|
|
|
},
|
2021-11-26 03:32:04 +01:00
|
|
|
|
2021-12-13 00:20:26 +01:00
|
|
|
categories = {
|
2021-10-19 03:24:32 +02:00
|
|
|
"bag",
|
|
|
|
"armor",
|
|
|
|
"skins",
|
|
|
|
"awards",
|
|
|
|
"waypoints",
|
|
|
|
},
|
|
|
|
|
2021-12-13 00:20:26 +01:00
|
|
|
saves = { -- Metadata to save
|
2021-11-24 00:51:58 +01:00
|
|
|
bag = true,
|
2021-10-31 22:11:41 +01:00
|
|
|
home = true,
|
2022-09-25 17:11:07 +02:00
|
|
|
sort = true,
|
2022-09-25 15:37:32 +02:00
|
|
|
collapse = true,
|
2022-08-07 00:42:52 +02:00
|
|
|
font_size = true,
|
2022-08-15 20:15:43 +02:00
|
|
|
hide_tabs = true,
|
2021-10-19 03:24:32 +02:00
|
|
|
waypoints = true,
|
|
|
|
inv_items = true,
|
2022-09-25 17:11:07 +02:00
|
|
|
auto_sorting = true,
|
|
|
|
inv_compress = true,
|
2021-10-19 03:24:32 +02:00
|
|
|
known_recipes = true,
|
2022-08-28 14:18:05 +02:00
|
|
|
wielditem_hud = true,
|
2022-09-25 17:11:07 +02:00
|
|
|
ignore_hotbar = true,
|
|
|
|
reverse_sorting = true,
|
2022-08-28 13:31:01 +02:00
|
|
|
legacy_inventory = true,
|
2021-10-19 03:24:32 +02:00
|
|
|
},
|
|
|
|
|
2022-09-25 17:11:07 +02:00
|
|
|
default_data = {
|
|
|
|
sort = 1,
|
|
|
|
font_size = 0,
|
2022-09-25 15:37:32 +02:00
|
|
|
collapse = true,
|
|
|
|
inv_compress = true,
|
|
|
|
},
|
|
|
|
|
2021-10-19 05:54:51 +02:00
|
|
|
files = {
|
2021-11-28 23:55:11 +01:00
|
|
|
api = lf"/src/api.lua",
|
|
|
|
bags = lf"/src/bags.lua",
|
|
|
|
caches = lf"/src/caches.lua",
|
|
|
|
callbacks = lf"/src/callbacks.lua",
|
|
|
|
common = lf"/src/common.lua",
|
2022-06-23 14:32:59 +02:00
|
|
|
compress = lf"/src/compression.lua",
|
2021-11-28 23:55:11 +01:00
|
|
|
detached = lf"/src/detached_inv.lua",
|
2022-01-08 17:05:29 +01:00
|
|
|
fields = lf"/src/fields.lua",
|
2021-11-28 23:55:11 +01:00
|
|
|
groups = lf"/src/groups.lua",
|
|
|
|
gui = lf"/src/gui.lua",
|
|
|
|
hud = lf"/src/hud.lua",
|
|
|
|
model_alias = lf"/src/model_aliases.lua",
|
|
|
|
progressive = lf"/src/progressive.lua",
|
|
|
|
styles = lf"/src/styles.lua",
|
2021-10-24 23:31:01 +02:00
|
|
|
},
|
2021-01-16 03:30:12 +01:00
|
|
|
|
2021-12-13 00:20:26 +01:00
|
|
|
-- Caches
|
|
|
|
init_items = {},
|
|
|
|
fuel_cache = {},
|
|
|
|
usages_cache = {},
|
|
|
|
recipes_cache = {},
|
|
|
|
|
|
|
|
tabs = {},
|
|
|
|
cubes = {},
|
2022-06-18 19:47:23 +02:00
|
|
|
groups = {},
|
2021-12-13 00:20:26 +01:00
|
|
|
plants = {},
|
|
|
|
modules = {},
|
|
|
|
craft_types = {},
|
|
|
|
|
|
|
|
recipe_filters = {},
|
|
|
|
search_filters = {},
|
|
|
|
sorting_methods = {},
|
2021-10-24 23:31:01 +02:00
|
|
|
}
|
2021-01-16 01:46:26 +01:00
|
|
|
|
2021-10-25 07:09:21 +02:00
|
|
|
i3.files.common()
|
2021-12-06 14:44:40 +01:00
|
|
|
i3.files.api(http)
|
2021-10-25 20:31:20 +02:00
|
|
|
i3.files.compress()
|
|
|
|
i3.files.groups()
|
2022-01-08 16:40:10 +01:00
|
|
|
i3.files.callbacks(http, storage)
|
2020-12-30 23:21:05 +01:00
|
|
|
|
2021-12-13 00:20:26 +01:00
|
|
|
if i3.settings.progressive_mode then
|
2021-10-19 05:54:51 +02:00
|
|
|
i3.files.progressive()
|
2021-01-22 00:42:48 +01:00
|
|
|
end
|
2020-12-30 23:21:05 +01:00
|
|
|
|
2022-01-02 14:30:03 +01:00
|
|
|
if i3.settings.debug_mode then
|
|
|
|
lf("/tests/test_tabs.lua")()
|
|
|
|
lf("/tests/test_operators.lua")()
|
|
|
|
lf("/tests/test_compression.lua")()
|
|
|
|
lf("/tests/test_custom_recipes.lua")()
|
|
|
|
end
|