Page 1 of 1

Combinator Wagom

Posted: Mon Feb 10, 2020 10:00 am
by ZombieMooose
Would it be possible for a cargo wagon type entity to receive, store, and output a combinator signal? Or even a locomotive?

If so I'd like that as an option.

Alternatively what about a power armor equipment that does the same? Basically allowing you to collect a signal from a base, and take it with you to a certain place to activate some base function.

Just a wishlist.

Re: Combinator Wagom

Posted: Mon Feb 10, 2020 10:12 am
by planetmaker
ZombieMooose wrote:
Mon Feb 10, 2020 10:00 am
Would it be possible for a cargo wagon type entity to receive, store, and output a combinator signal? Or even a locomotive?

If so I'd like that as an option.

Alternatively what about a power armor equipment that does the same? Basically allowing you to collect a signal from a base, and take it with you to a certain place to activate some base function.

Just a wishlist.
Trains (but not the individual locomotives or wagons) have a unique number. You can read-out that number via station and make use of it in circuit networks in whatever way you like. Thus if you know that your service train has ID #13, and is stopped at the station, then you can tell your inserters to unload whatever from the wagons and load all trash onto it.

Another option is to trigger actions by the presence of a certain item, like fish or wood in a chest. Thus you can trigger an action by inserting a fish or wood - and things will go their programmed way. If you want that can include removing the trigger after the action has been executed.

Re: Combinator Wagom

Posted: Mon Feb 10, 2020 10:35 am
by Pi-C
ZombieMooose wrote:
Mon Feb 10, 2020 10:00 am
Would it be possible for a cargo wagon type entity to receive, store, and output a combinator signal? Or even a locomotive?
TrainsSignalSender doesn't allow setting signals for individual wagons, but you can add signals to complete trains (will be read by train stops together with the train ID if the train stops there while it's in automatic mode). For reading signals from cargo trains or entities with an inventory in general (not sure if it also applies to armors), there are two new mods: Empty Slots Reader and Train Wagon Combinators. They have been made in response to this request, which was specifically aimed at finding the number of empty inventory slots. You also can't use these mods to set arbitrary signals, so they probably are not what you're looking for (but perhaps you can adapt them for your purposes?).