Combinator which can read entity

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
DirtyBitch
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Mar 20, 2021 5:49 pm
Contact:

Combinator which can read entity

Post by DirtyBitch »

It would be awesome to have combinator which can read neigbour entity like a SINGLE train wagon or a car or a tank and output it on wire.

DaleStan
Filter Inserter
Filter Inserter
Posts: 368
Joined: Mon Jul 09, 2018 2:40 am
Contact:

Re: Combinator which can read entity

Post by DaleStan »


User avatar
ptx0
Smart Inserter
Smart Inserter
Posts: 1507
Joined: Wed Jan 01, 2020 7:16 pm
Contact:

Re: Combinator which can read entity

Post by ptx0 »

DaleStan wrote:
Sun Mar 21, 2021 12:37 am
You're looking for https://mods.factorio.com/mods/Optera/I ... y%20Sensor
mods have to implement this in a really performance intensive manner, but the base game could implement it as a part of the entity update.

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2915
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Combinator which can read entity

Post by Optera »

ptx0 wrote:
Sun Mar 21, 2021 1:47 am
DaleStan wrote:
Sun Mar 21, 2021 12:37 am
You're looking for https://mods.factorio.com/mods/Optera/I ... y%20Sensor
mods have to implement this in a really performance intensive manner, but the base game could implement it as a part of the entity update.
Yes, polling trains (in manual mode) and cars really hurt performance. That's why IS has an option to only read automatic trains, which is a fair bit better than polling every n ticks.
Reading entire trains from train stops though is the way to go.

User avatar
ptx0
Smart Inserter
Smart Inserter
Posts: 1507
Joined: Wed Jan 01, 2020 7:16 pm
Contact:

Re: Combinator which can read entity

Post by ptx0 »

Optera wrote:
Sun Mar 21, 2021 7:45 am
Yes, polling trains (in manual mode) and cars really hurt performance. That's why IS has an option to only read automatic trains, which is a fair bit better than polling every n ticks.
Reading entire trains from train stops though is the way to go.
or use a buffer box at each wagon and measure that - it'll indicate when one is empty and the others aren't

doesn't it poll every n ticks even for automatic trains?

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2915
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Combinator which can read entity

Post by Optera »

ptx0 wrote:
Sun Mar 21, 2021 2:05 pm
doesn't it poll every n ticks even for automatic trains?
Technically yes, but it reads from a cached entity and doesn't have to run find_entities to see if the thing is still there.

Post Reply

Return to “Ideas and Suggestions”