- Add optional dependency to 3d_armor, because you use this mod
- Make dependency on default optional (I see no reason why this is a mandatory dependency)
mtmodder148 wrote:@Napiophelios, this happened to me until I wrote a patch for it here: https://github.com/BlockMen/hud/pull/13
Blockmen says it's unconfirmed.
overwrite("ethereal:orange", 2)
12:54:11: WARNING: Undeclared global variable "show_hunger" accessed at ...minetest-0.4.12/bin/../games/spiffy/mods/hud/builtin.lua:83
12:54:43: WARNING: Undeclared global variable "HUD_ENABLE_HUNGER" accessed at ...minetest-0.4.12/bin/../games/spiffy/mods/hud/builtin.lua:22
BlockMen wrote:Well, i guess if there is no easy/fast fix for that i should switch back to override the items on_use, since this bug breaks (sometimes) the whole system :\
--- Do whatever it is I want to do when eating food, after calling all other
-- on_item_eat() handlers.
--
-- @param otherReturn
-- The value returned by the other (normal) on_item_eat() handlers. Can be
-- taken into account and/or changed in my function.
--
local function myEater(hp_change, replace_with_item, itemstack, user, pointed_thing, otherReturn)
-- Whatever
end;
local oldEaters = minetest.registered_on_item_eats;
local function runOldEaters(...)
for _, e in ipairs(oldEaters) do
local val = e(...);
if val then
return val;
end;
end;
return nil;
end;
local function alwaysEat(...)
return myEater(..., runOldEaters(...));
end;
minetest.registered_on_item_eats = { alwaysEat };
minetest.register_on_item_eat = function(handler) table.insert(oldEaters, handler); end;
ERROR[main]: ServerError: E:\Programme\minetest\bin\..\builtin\game\item.lua:20: attempt to call method 'gsub' (a nil value)
ERROR[main]: stack traceback:
ERROR[main]: E:\Programme\minetest\bin\..\builtin\game\item.lua:20: in function 'inventorycube'
ERROR[main]: E:\Programme\minetest\bin\..\mods\hud/itemwheel.lua:59: in function 'update_wheel'
ERROR[main]: E:\Programme\minetest\bin\..\mods\hud/itemwheel.lua:189: in function <E:\Programme\minetest\bin\..\mods\hud/itemwheel.lua:184>
ERROR[main]: E:\Programme\minetest\bin\..\builtin\game\register.lua:341: in function <E:\Programme\minetest\bin\..\builtin\game\register.lua:329>
Krock wrote:A 'yay!' for that new HUD, thank you!
Sadly, there's no way to see the other items in the hotbar.
-snip-
overwrite("farming:beans", 1)
21:26:02: ERROR[main]: ServerError: ~/.minetest/mods/hud_hunger/hud/api.lua:91: attempt to call method 'hud_change' (a nil value)
21:26:02: ERROR[main]: stack traceback:
21:26:02: ERROR[main]: ~/.minetest/mods/hud_hunger/hud/api.lua:93: in function 'change_item'
21:26:02: ERROR[main]: ~/.minetest/mods/hud_hunger/hunger/functions.lua:57: in function 'update_hunger'
21:26:02: ERROR[main]: ~/.minetest/mods/hud_hunger/hunger/functions.lua:95: in function 'callback'
21:26:02: ERROR[main]: /usr/share/games/minetest/builtin/game/item.lua:467: in function </usr/share/games/minetest/builtin/game/item.lua:405>
21:26:02: ERROR[main]: (tail call): ?
21:26:02: ERROR[main]: /home/mark/.minetest/mods/pipeworks/wielder.lua:325: in function 'act'
21:26:02: ERROR[main]: ~/.minetest/mods/pipeworks/wielder.lua:109: in function 'wielder_on'
21:26:02: ERROR[main]: ~/.minetest/mods/pipeworks/wielder.lua:145: in function 'action_on'
21:26:02: ERROR[main]: ~/.minetest/mods/mesecons/mesecons/internal.lua:189: in function '?'
21:26:02: ERROR[main]: ~/.minetest/mods/mesecons/mesecons/actionqueue.lua:90: in function 'execute'
21:26:02: ERROR[main]: ~/.minetest/mods/mesecons/mesecons/actionqueue.lua:84: in function '?'
21:26:02: ERROR[main]: /usr/share/games/minetest/builtin/game/register.lua:341: in function </usr/share/games/minetest/builtin/game/register.lua:329>
21:47:59: ERROR[main]: ServerError: ~/.minetest/mods/hud_hunger/hunger/functions.lua:68: attempt to index field '?' (a nil value)
21:47:59: ERROR[main]: stack traceback:
21:47:59: ERROR[main]: ~/.minetest/mods/hud_hunger/hunger/functions.lua:71: in function 'callback'
21:47:59: ERROR[main]: /usr/share/games/minetest/builtin/game/item.lua:299: in function </usr/share/games/minetest/builtin/game/item.lua:191>
21:47:59: ERROR[main]: (tail call): ?
21:47:59: ERROR[main]: (tail call): ?
21:47:59: ERROR[main]: ~/.minetest/mods/pipeworks/wielder.lua:379: in function 'act'
21:47:59: ERROR[main]: ~/.minetest/mods/pipeworks/wielder.lua:109: in function 'wielder_on'
21:47:59: ERROR[main]: ~/.minetest/mods/pipeworks/wielder.lua:145: in function 'action_on'
21:47:59: ERROR[main]: ~/.minetest/mods/mesecons/mesecons/internal.lua:189: in function '?'
21:47:59: ERROR[main]: ~/.minetest/mods/mesecons/mesecons/actionqueue.lua:90: in function 'execute'
21:47:59: ERROR[main]: ~/.minetest/mods/mesecons/mesecons/actionqueue.lua:84: in function '?'
21:47:59: ERROR[main]: /usr/share/games/minetest/builtin/game/register.lua:341: in function </usr/share/games/minetest/builtin/game/register.lua:329>
Users browsing this forum: No registered users and 49 guests