yes i'm pulling in data from _api shouldnt i?
Signal = _api.game.virtual_signal_prototypes[RequestedItem]
Item = _api.game.item_prototypes[RequestedItem]
Fluid = _api.game.fluid_prototypes[RequestedItem]
if Item ~= nil then
Img = "img=item." .. RequestedItem --game.print("item : [" .. Img .. "]")
ItemRequestStackSize = Item.stack_size
RequestedItem = "#" .. RequestedItem
end
if Fluid ~= nil then
Img = "img=fluid/" .. RequestedItem --game.print("fluid : [" .. Img .. "]")
RequestedItem = "=" .. RequestedItem
end
if (Signal ~= nil) and (Item == nil) and (Fluid == nil)then
Img = "img=virtual-signal/" .. RequestedItem --game.print("signal : [" .. Img .. "]")
RequestedItem = "@" .. RequestedItem
end
(i'm new to lua -10h in atm- but i'l be damn that i'll learn it before going back to infinte combinators to get something done)
small question :p
i also try to find the position of the combinator because i want to scan its surroundings. any suggestion on how i can easely find the mlc position?