Thanks again.
Just for letting you know ;), same error when burning is done.
Spoiler
2018-06-30 23:16:00: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'ironage' in callback node_on_timer(): ...t_backport/minetest/bin/../mods/ironage/charcoalpile.lua:87: bad argument #2 to 'set_int' (number expected, got nil)
2018-06-30 23:16:00: ERROR[Main]: stack traceback:
2018-06-30 23:16:00: ERROR[Main]: [C]: in function 'set_int'
2018-06-30 23:16:00: ERROR[Main]: ...t_backport/minetest/bin/../mods/ironage/charcoalpile.lua:87: in function 'stop_smoke'
2018-06-30 23:16:00: ERROR[Main]: ...t_backport/minetest/bin/../mods/ironage/charcoalpile.lua:107: in function 'convert_to_coal'
2018-06-30 23:16:00: ERROR[Main]: ...t_backport/minetest/bin/../mods/ironage/charcoalpile.lua:137: in function <...t_backport/minetest/bin/../mods/ironage/charcoalpile.lua:120>
Guess the change will also need to be made to coalburner.lua:161 then.
Some further questions:
Is the following supposed to happen?
a) from the total of 26 wooden blocks I only got 8 charcoal
b) the lighter inside stayed lit
c) I was able to "refill" the pile and the smoke started again, even while there was one block of dirt missing
From how I understand your charcoalpile.lua I'd expect it to only start producing charcoal when the pile is built correctly, then after some time convert all the wood to coal and leave dirt_with_ash at the bottom dirt level.
Another thing, if I understand this
Spoiler
local function start_smoke(pos)
local meta = minetest.get_meta(pos)
pos = {x=pos.x, y=pos.y+3.6, z=pos.z}
local id = meta:get_int("smoke")
local above = minetest.get_node(pos).name
if id ~= 0 then
minetest.delete_particlespawner(id)
meta:set_int("smoke", 0)
end
if above == "air" then
id = minetest.add_particlespawner({
amount = 4, time = 0, collisiondetection = true,
minpos = {x=pos.x-0.25, y=pos.y+0.1, z=pos.z-0.25},
maxpos = {x=pos.x+0.25, y=pos.y+5, z=pos.z+0.25},
minvel = {x=-0.2, y=0.3, z=-0.2}, maxvel = {x=0.2, y=1, z=0.2},
minacc = {x=0,y=0,z=0}, maxacc = {x=0,y=0.5,z=0},
minexptime = 1, maxexptime = 3,
minsize = 6, maxsize = 12,
texture = "ironage_smoke.png",
})
meta:set_int("smoke", id)
end
end
correctly, there will only be smoke when I leave some air above the pile. If so, how am I supposed to know when it is done producing coal?
And another (another) thing...
I started to smelt steel and the game crashed with this error message:
Spoiler
2018-07-01 00:09:23: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'nodeinfo' in callback environment_Step(): .../minetest_backport/minetest/bin/../builtin/game/item.lua:22: attempt to call method 'gsub' (a nil value)
2018-07-01 00:09:23: ERROR[Main]: stack traceback:
2018-07-01 00:09:23: ERROR[Main]: .../minetest_backport/minetest/bin/../builtin/game/item.lua:22: in function 'fillImage'
2018-07-01 00:09:23: ERROR[Main]: ...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:444: in function <...minetest_backport/minetest/bin/../mods/nodeinfo/init.lua:277>
2018-07-01 00:09:23: ERROR[Main]: ...etest_backport/minetest/bin/../builtin/game/register.lua:420: in function <...etest_backport/minetest/bin/../builtin/game/register.lua:400>
Crash apparently resulted from having both ironage and nodeinfo (
viewtopic.php?f=9&t=18016&hilit=nodeinfo) installed. Will post the error message in the respective thread, too.