BlockMen wrote:Martin_Devil wrote:TenPlus1 wrote:Martin_Devil: what doesn't work ?
2015-10-11 23:58:14: ERROR[main]: ServerError: Lua: Runtime error from mod '' in callback ScriptApiPlayer::on_joinplayer(): ...mes\Minetest_game\mods\craftingpack\crafting\init.lua:78: attempt to index field 'textures' (a nil value)
2015-10-11 23:58:14: ERROR[main]: stack traceback:
2015-10-11 23:58:14: ERROR[main]: ...mes\Minetest_game\mods\craftingpack\crafting\init.lua:78: in function 'set_inventory'
2015-10-11 23:58:14: ERROR[main]: ...mes\Minetest_game\mods\craftingpack\crafting\init.lua:157: in function <...mes\Minetest_game\mods\craftingpack\crafting\init.lua:152>
Seems like its not compatible with armor mod anymore. So either use an older version of armor mod, or don't use armor with this mod, or don't use this mod or wait until someone fixes. I cant promise you to do soon, sry.
I did make some some updates to 3d_armor not so long ago that fixed the incompatibility and tested it quite thoroughly, however, I am not sure that is the problem here.
I suspect what is happening is that the 3d_armor mod is present but the crafting mod is being loaded before it, therefore armor.textures will show that error when indexed.
Note that line 78 of crafting/init.lua might not behave as you expect in this situation. It really should be nested.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
if show_armor and armor.textures[player_name] and armor.textures[player_name].preview then
Of course the easy fix would be for crafting to soft-depend on 3d_armor.
@Martin_Devil, you can check out my theory by simply adding 3d_armor? to the crafting mod's depends.txt