Search found 2 matches

by jdarko
Fri Jan 11, 2019 10:58 pm
Forum: Mods
Topic: [MOD 0.12.x] Lua Combinator 0.0.1
Replies: 27
Views: 33998

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Simple 7 segment display using lamps to visualize numbers (in this case a simple counter)

JEMhndm3Fo.gif


if state.interval == nil or state.interval >= 2 then
local mainentity = output.entity
local disp = {}
disp[0] = {segments = {"A","B","C","D","E","F"} }
disp[1] = {segments = {"B","C ...
by jdarko
Fri Jan 11, 2019 10:40 pm
Forum: Mods
Topic: [MOD 0.12.x] Lua Combinator 0.0.1
Replies: 27
Views: 33998

Re: [MOD 0.12.x] Lua Combinator 0.0.1

Hi,

the latest version of factorio doesn't support the set_circuit_condition method on entities. So the output command crashs.

To fix that put the modified "output.lua" file into the mod zip and overwrite it:


require("new_class")
output = {}

local output_mt = new_class(output)

function output ...

Go to advanced search