8 Commits

Author SHA1 Message Date
Michal Cieslakiewicz
60429b5818 biogasmachines: gasfurnace: Tubelib v2 adaptation, improvements, bugfix.
Code updated to make machine fully compatible with Tubelib2 framework.

    Major changes:

    * supports Tubelib2 by using NodeStates class and new metadata
    * BLOCKED state introduced when no space left in output tray
    * set to FAULT when Biogas tank is empty
    * on_punch diagnostics removed
    * processing logic updated (fuel checks reorganized, desired_state
      metadata introduced, improved state transition logic)

    Fixed:

    * proper checking for space in output tray for items with vessels

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-29 15:36:54 +01:00
Michal Cieslakiewicz
64f469f4c4 biogasmachines: remove artifact function call.
During code replication from base freezer.lua to other Biogas Machines
in on_punch() callback a unnecessary call to biogasmachines.is_pipe_with_water()
function has been overlooked and left over. This commit removes that call
for gasifier and furnaces.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-13 15:25:30 +01:00
Michal Cieslakiewicz
959a0a42fa biogasmachines: gasfurnace: delay for autoshutdown added.
Backported from Jet Furnace. When no fuel, device waits for some time
(the same value as for standby) before it shuts down automatically.
This timeout allows fuel to reach device in more complicated Tubelib
machineries.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-04 13:26:56 +01:00
Michal Cieslakiewicz
811695d78d biogasmachines: better item move protection for working tray.
Further checks for 'cur' inventory list when moving items.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-24 13:10:24 +01:00
Michal Cieslakiewicz
f289fba0ae biogasmachines: gas furnace added.
Biogas Furnace is Tubelib-compatible version of standard furnace that
uses Biogas as fuel. All default furnace cooking recipes apply.
See gasfurnace.lua for details and differences.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-24 12:57:41 +01:00
Michal Cieslakiewicz
63b877ffdc biogasmachines: gasifier: recipe and code update.
Coal block output changed to 9 Biogas units.
Timer code optimized by using local recipe variable.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-20 16:25:58 +01:00
Michal Cieslakiewicz
283805df77 biogasmachines: gasifier: Straw product decreased to 2 Biogas.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-20 16:16:30 +01:00
Michal Cieslakiewicz
d1f39d9582 biogasmachines: code update for stub machines.
Code cleanup and preparations for another Biogas Machine.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-15 17:44:35 +01:00