Page 1 of 1

multiple assembling machines

Posted: Mon Feb 19, 2018 4:34 pm
by hreintke
Hi,

I am learning how overlapping entities connect to each other.

Can create two overlapping inserters using code below twice:

Code: Select all

/c game.player.surface.create_entity{name="fast-inserter",force = game.player.force, position={game.player.selected.position.x+1,game.player.selected.position.y+1}}
Then they both work simultaneous.

When creating overlapping assembling-machine-2 in the same way

- create first
- provide recipte
- create second
- provide different recipe

Only the first one is active (provided material for construction by the inserter)

Can see that both machines are configured in alt-view. Both symbols are displayed.
Stacked_ASM.JPG
Stacked_ASM.JPG (40.97 KiB) Viewed 1075 times
How would I get both ASM's working at the same time ?

Re: multiple assembling machines

Posted: Mon Feb 19, 2018 6:14 pm
by DaveMcW

Re: multiple assembling machines

Posted: Mon Feb 19, 2018 7:34 pm
by hreintke
Thanks,

Can read that property and indeed points to the entity.
But is readonly, and in create_entity function there is no possibility to set it.

Any idea whether there is a way to update ?