Add Troubleshooting to README

This commit is contained in:
Jean-Patrick Guerrero 2021-10-19 05:15:49 +02:00
parent 8cd04deff4
commit 43b20b317e
3 changed files with 11 additions and 6 deletions

View File

@ -4,7 +4,7 @@
#### **`i3`** is a next-generation inventory for Minetest.
This inventory offers a slick, modern UI made with the latest technologies of the Minetest engine.
This mod features a modern, powerful inventory menu with a good user experience.
**`i3`** provides a rich [**API**](https://github.com/minetest-mods/i3/blob/master/API.md) for mod developers who want to extend it.
This mod requires **Minetest 5.4+**
@ -37,11 +37,16 @@ To use this mod in the best conditions:
- Use a HiDPI widescreen display
- Use the default Freetype font style
#### Troubleshooting
If the inventory's font size is too big on certain setups (namely Windows 10/11 or 144 DPI display), you should lower the
value of the setting `display_density_factor` in your `minetest.conf`. Note that the change is applied after restart.
#### Notes
`i3` uses a larger inventory than the usual inventories in Minetest games.
Thus, most chests will be unadapted to this inventory size.
The `i3` inventory is 9 slots wide by default (without backpack), such as in Minecraft.
The `i3` inventory is 9 slots wide by default (without backpack), such as Minecraft.
Report any bug on the [**Bug Tracker**](https://github.com/minetest-mods/i3/issues).

View File

@ -20,8 +20,8 @@ local min, max, floor, ceil = math.min, math.max, math.floor, math.ceil
local clr, ESC, check_privs, translate =
core.colorize, core.formspec_escape, core.check_player_privs, core.get_translated_string
local model_aliases = loadfile(modpath .. "/etc/model_aliases.lua")()
local PNG, styles, fs_elements = loadfile(modpath .. "/etc/styles.lua")()
local model_aliases = dofile(modpath .. "/etc/model_aliases.lua")
local PNG, styles, fs_elements = dofile(modpath .. "/etc/styles.lua")
local _, _, is_group, extract_groups, item_has_groups =
unpack(dofile(modpath .. "/etc/common.lua").progressive)

View File

@ -49,8 +49,8 @@ i3.S = core.get_translator "i3"
local S, slz, dslz = i3.S, core.serialize, core.deserialize
i3.data = dslz(storage:get_string "data") or {}
i3.compress_groups, i3.compressed = loadfile(modpath .. "/etc/compress.lua")()
i3.group_stereotypes, i3.group_names = loadfile(modpath .. "/etc/groups.lua")()
i3.compress_groups, i3.compressed = dofile(modpath .. "/etc/compress.lua")
i3.group_stereotypes, i3.group_names = dofile(modpath .. "/etc/groups.lua")
local is_str, show_item, reset_compression = unpack(dofile(modpath .. "/etc/common.lua").init)
local groups_to_items, _, compressible, true_str, is_fav = unpack(dofile(modpath .. "/etc/common.lua").gui)