Search found 5 matches

by savi
Tue May 24, 2016 3:25 pm
Forum: Modding help
Topic: Get connected pipes (fluidboxes)?
Replies: 2
Views: 945

Re: Get connected pipes (fluidboxes)?

I guess it's not the fact that no one wants to share the awesome solution with me but more the fact that it's not possible right now?
by savi
Sun May 22, 2016 9:32 pm
Forum: Modding help
Topic: Get connected pipes (fluidboxes)?
Replies: 2
Views: 945

Get connected pipes (fluidboxes)?

Hey,

I have a entity with a fluidbox and access it with fluidbox[1], but I want to access the fluidbox attached to it, how can I do that?

Image

Thanks in advance

Savi
by savi
Sun May 22, 2016 11:35 am
Forum: Modding help
Topic: Change Generator Behaviour
Replies: 4
Views: 1497

Re: Change Generator Behaviour

But all the information which are visible for a generator, like "performance" and "available performance" would not be shown on the storage tank based entity?

//Edit
I looked again into the game and tested it. It seems that it is like I said.. The normal values for a generator are not shown ...
by savi
Sat May 21, 2016 10:51 pm
Forum: Modding help
Topic: Change Generator Behaviour
Replies: 4
Views: 1497

Re: Change Generator Behaviour

Thanks for the fast reply, I guess I found what you meant:


function check_generators()
if global.petroleum_generator ~= nil then
for k,gen in pairs(global.petroleum_generator) do
--if k % 10 == game.tick % 10 then
if gen.valid then
if gen.fluidbox[1] ~= nil then
local pot = gen.fluidbox[1 ...
by savi
Sat May 21, 2016 9:14 pm
Forum: Modding help
Topic: Change Generator Behaviour
Replies: 4
Views: 1497

Change Generator Behaviour

Hey,

i'm new to programming with lua, especially combined with factorio, but I have a good knowledge about programming in general. Currently I don't really understand the way of adding custom behaviours to buildings right now.

For example, changing the behaviour of a copy of the Steam Engine to ...

Go to advanced search