Need help designing an auto trader
Posted: Sun May 20, 2018 4:56 pm
I'm trying to design a railway station that can allow trade between two players. When the train stops one side unloads raw materials and the other side inserts the item being used as currency (in this case research packs). I've been trying to use combinators to turn inserters on and off but I always seem to get to a stage here unloading the last chest in the sequence causes the entire system to fail.
I've used a number of different combinations of arithmetic, constant and decider combinators; I've used various connection styles such as connecting everything to everything or only the required inserters to the chests they need to read; and I've tried various methods from simply reading chest contents to tracking a constant in increasing the incriment by 1 at each stage before resetting it at the end; but I just can't seem to crack it. The footprint needs to be as small as possible also.
The reason I'm trying to load directly from and to the train is to allow multiple players to simply send their trains to the same resource selling station though if you're having problems coming up with something that doesn't have a huge footprint and have ideas for another design I'd be interested in seeing it.
Another thing I'm going to be looking into is making the station easily programable perhaps by having a master chest for the sale item and buy item which putting the quantity you want of each determines how many is needed to meet the conditions for loading/unloading all other chests but haven't got that far yet.
I've used a number of different combinations of arithmetic, constant and decider combinators; I've used various connection styles such as connecting everything to everything or only the required inserters to the chests they need to read; and I've tried various methods from simply reading chest contents to tracking a constant in increasing the incriment by 1 at each stage before resetting it at the end; but I just can't seem to crack it. The footprint needs to be as small as possible also.
The reason I'm trying to load directly from and to the train is to allow multiple players to simply send their trains to the same resource selling station though if you're having problems coming up with something that doesn't have a huge footprint and have ideas for another design I'd be interested in seeing it.
Another thing I'm going to be looking into is making the station easily programable perhaps by having a master chest for the sale item and buy item which putting the quantity you want of each determines how many is needed to meet the conditions for loading/unloading all other chests but haven't got that far yet.