0.13 Smart supply-train loader + other solutions

Smart setups of railway stations, intelligent routing, solutions to complex train-routing problems.
Please provide - only if it makes sense of course - a blueprint of your creation.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2915
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: 0.13 Smart supply-train loader + system parts

Post by Optera »

All those builds inspired me to try it myself with these requirements
- wagon has no filter, is used to transport ore in and supplies out
- loading exactly x of random selectable items
- wagon is presumed to have been completely emptied prior

So far i got the counting, reset , loading and unloading of excess working. I'm a bit at a loss right now how to make the belts feed back just the right amount of items.
I'll also need to make it unload all items to avoid filling an already half full wagon.
factorio 2016-07-10 09-12-46-89.png
factorio 2016-07-10 09-12-46-89.png (1.04 MiB) Viewed 4800 times
Blueprint

MindChanger
Fast Inserter
Fast Inserter
Posts: 110
Joined: Tue Jul 05, 2016 6:53 am
Contact:

Re: 0.13 Smart supply-train loader + other solutions

Post by MindChanger »

Unloading lasts some time, it is needed to put in specific amount of item types, so I guess it got some use cases ;)

Code: Select all

H4sIAAAAAAAA/9VX/W7bIBB/lcp/TnZVu0m6qGNSnqOaEIWLfZoNHsZZIyvvPiBfTmonsdtJW/+xKNzB7+MOItRdrjjL7yhpQBo0CBVpGskKIEFlNMM0M5H9
5EFYqsrOK0maNxJNwjWJkk0oUAP3/7WDG+KScXEP48JG7nYZHOM/I5QVaAP6DF18P3WhD/fTdvAk5EoarXL6ChlbodKk4ah5jYYWSgBVS6pK0Myvfgz3cxqY
oBmTgrp4K09FjK7hMO+n/CKXhcQbt4/cbmpVfAni4AdpNAirqBd3TVGQ+OmQwI027u8IDiCPeAaV6UTmgB0W280sGdJEXBWvKJlR53Q83EzHEnPLprNehalk
OWnMurR7rFCbmll5dufzk9EicFBracgkmU/ms6dkPg1RCnjzeDppSDWAHECEU3l7qh6x2+CG6Bv/bX1nbVjJCaxcpVgZ5FuJI2ZTrSAqtVqh6MZ3ovgNrETH
sJbks/+GoeumTjzA+BRgMsDTaKDYGxq1klEKTEe/M1t6B1/HI+z8ONTBu6KOP9KtPlurDlyu97aG85vtreFXbb89sJO2s5lGkxXgY3uEj99T1WXrYybHg8Ad
vCXqytBbmhswnnkfbI1ojxse6Q6+BKGqTVkPyXW7hd4VRvgSJD1r5/3dUwB3/eQilcn1AtqlGcnj4pTEqR0UJdPuNCT4NozGFei1yVCmPme5pr5K6VKrgqK0
abzVe3i+egGH1+6mthLvssUn5THvTjcdL9auoyfXesTH1GLyQHAFLsUAjY+yfh8k6+Iz1JyddqfZcG3b8V8v19yZcy7uPOJSexx/qXUzbMnqvNKGmm/S9cT6
mOH2R9s1iPjfaQ/nF9zVer7YHs7bdFe27cthEyL3B7vwXvG/lTYtJZ81mFrLO/oMUvwB9erra04OAAA=
Demo, slightly working showing idea behind this. It can be fastest way, but will be quite big and can load not enough items for full stack (minimum is stack size - mass inserter for amount above inserter's stack limit)

I got bored with train supplier, so I created "Magazine Delivery v1". In first post explained if anyone wants to try it.

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

Re: 0.13 Smart supply-train loader + other solutions

Post by Optera »

Tweaking the belt feedback to no avail i dropped the perfect count part and simply load until remaining items are less than normal inserter's stacks. Currently I use it to ship supplies to outposts in ore trains so it really doesnt matter much if i get 94 repair kits instead of 100.
+ it's as fast as possible (up to 12 filter stack inserter if removing the unload failsafe and normal filter inserter)
+ works on wagons without filter
+ will work with any number of items
- not counting perfectly
- requires current stack limit -1 to be set as signal S and T on constant combinator

Edit:
unintended feature:
using negative amounts in the constant combinator makes it unload that amount from the wagon
2016-07-11-08-03-43-0806487.png
2016-07-11-08-03-43-0806487.png (1.7 MiB) Viewed 4745 times
Blueprint
Last edited by Optera on Mon Jul 11, 2016 8:06 am, edited 1 time in total.

MindChanger
Fast Inserter
Fast Inserter
Posts: 110
Joined: Tue Jul 05, 2016 6:53 am
Contact:

Re: 0.13 Smart supply-train loader + other solutions

Post by MindChanger »

Will see it in game, by description looks promising.

It got stuck when train had 1 filter (cooper plate) and had already 50 copper in train before loading.

MindChanger
Fast Inserter
Fast Inserter
Posts: 110
Joined: Tue Jul 05, 2016 6:53 am
Contact:

Re: 0.13 Smart supply-train loader + other solutions

Post by MindChanger »

Okay, created the fastest solution possible (but got some cons). It needs enough items to get full desired amount.

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

Re: 0.13 Smart supply-train loader + other solutions

Post by Optera »

Using my Sensor mod made the smart loader almost trivial.

left vanilla loader, right loader using sensor getting wagon inventory
Same speed from completely empty wagon, but also works fine with half filled wagons.
2016-07-14-17-35-12-3272826.png
2016-07-14-17-35-12-3272826.png (1.73 MiB) Viewed 4683 times
Sensor Mod: https://mods.factorio.com/mods/Optera/I ... y%20Sensor
Blueprint
Last edited by Optera on Sat Aug 06, 2016 8:58 am, edited 1 time in total.

MindChanger
Fast Inserter
Fast Inserter
Posts: 110
Joined: Tue Jul 05, 2016 6:53 am
Contact:

Re: 0.13 Smart supply-train loader + other solutions

Post by MindChanger »

Have you tried putting different technologies, item amount and different item types (more than 5)?

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

Re: 0.13 Smart supply-train loader + other solutions

Post by Optera »

MindChanger wrote:Have you tried putting different technologies, item amount and different item types (more than 5)?
Both versions will work with any tech level (if you set stack size as signals S and T correctly ) and as much different items as the requester chests can hold.
It will only break on user error, like ordering it to load more items in a wagon than it can hold.

cid0rz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Sun Jul 31, 2016 5:52 pm
Contact:

Re: 0.13 Smart supply-train loader + other solutions

Post by cid0rz »

Hello all, I did something related to this but not exactly on the same topic. it is a percentual train loader / unloader. It works the following way:
  • train has a wagon that is a memory. in the picttures and blueprints is the first wagon. This wagon cannot be used for other purpose initially, of course everything can be tuned. The idea is you can have multiple programs on the same wagon and via the filter inserter that "reads" this program you can chose what each station do
  • when the train arrives the station reads contents of the first wagon,
  • the contents consists on a Blueprint or a Decosntruction planner depending on if you want to load or unload the train. Then a quantity of the item(s) you want to load/unload. this quantity is the percentage of the train that should be loaded/unloaded with this resource. The percentages used must be multiples of 10. The dimensions of the train must be known in advance and set up in the station constant combinator as signal Black with 40 units per full wagon.
  • after 500 ticks (can be modified) the memory of the load/unload side will be written and the operation will start.
  • When the operation is 10 items from completion (this can be modified and used as a potential margin of error in the loading of the train due to problems or lack of material), the program will return to the memory (first wagon) and a signal of departure is sent to the station.
  • When the train has signal of completion+xseconds of inactivity (just in case these 10 items have some problem arriving or leaving it leaves the station
  • When the signal of the exit of the station changes to red as the train leaves all the memories are reset
Please note that the station can be simplified to be only for loading or only for unloading but in this case is general. Also I chose to have a mis of iteems in the wagons but this can be modified if needed to load in a station only one of the wagons for example. I've just tried some basic cases so there may be some bugs waiting for us somewhere xD

here an image of it, I'm sure it can be rearranged prettier but I'm tired xD
percerntualfiller.jpg
percerntualfiller.jpg (438.91 KiB) Viewed 4505 times
The constant combinator must hold the stack sizes of the items you want to move and the black signal.

Here is the blueprint of all the setup with testing facilitie included. Youll need to send a train with some instruction on the first wagon. On this testing setup only red belts and stack insterters areproperly configure and working so Blueprint+10red belts should allow you to look how it works and try other things.Then conditions for the train shoudl be signal D=1 AND 30 seconds of inactivity 8this should be reduced in operation). The requesters will ask some material so it should work.

Code: Select all

H4sIAAAAAAAA/91dX3OjOBL/Klt+vLP3kAQY157v6T7B1LxtXbmITRLqMPgAT20qle9+YMBBQhLdkux4Zl4yCeqW+HWr1X8kcSh+y4p9nP22277Xb6dku3jKzsmpTPN6
sTzEdbx9T/I6rdOk2r6/5/GxaXFMDun5uEqyZF+X6X51KrJksTwVVdOsyLfvf21XlP4eLN+2K+L/Hnx8LOGELcGFsGHwsdwXed60bR42vf+5IIv/bN/L5NCM5DKot116
2JKm3ejXtffR/oN36fUdkvFIk79OZVJVq7qM8+pUlPXqKclqntAfES4PadkNdEtRTAI5E9+ICVUxmUdhbYoCoS5gI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OzU/FCC4nkfsmO9V1ZSOPcNndVHf5IAqyQwrvUKpjXc/U
G3cN/bYpXDCeE3A9+Lt2l+4OsI5fbv5yFiP9mVE92BtKZgmMEKF24kvIFGD+8hPLF2XTF0VYIvGgvwkP5QuAsiOdYYqseIQyHriMc387nR0P3wEPpucBDSuUDOBfklyL
FyoAzO9E8/UdUVxH7j7QaAWPhxv1dYc0Otdop0kzPIAOpA1ScvFiOCA1Uf15IHh+0+aFmf6F4elNK8nPmBD4NVdWLBwY1MiehXR5mbKQ77bsbsPZWNSGHcxjMqOWiG/f
2PFwoJnEgWr247CaZL3XMfmEjwkT8dNPVx5l8VS0pOIC33ZMcJYpuvZkon7iZ9xNVMeOB3XGA//dp0HWVsWTgYmyejK9611wUVtqhhQf/ezUiBBfq+xf0yrJMTCxO2hN
P5kYEeJP2PfDtrurNnDBJHTBhLlg4rtgQlwwoQ6YeC4G4oKJi5dxgaoL8brQMxcK72LmRQ54uDAjxIWSbVwMZKSpJm7DtPePZbq/pPl1X1+Rd/CB+WbM8KWYj2UWN9Tb
xSkp923lob5s32piwz/KpD6X+W+7P5L88H8H0DNxZYsAAA==
If you need any adaptation or explanation I'll do my best.

Cheers!

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

Re: 0.13 Smart supply-train loader + other solutions

Post by Optera »

My base finally got to the size where even modded bots need forever to deliver supplies, so it was time to give the OPs Magazine Delivery a try.
After a bit tinkering I found a much simpler and versatile variant to it.
Note: Ignore the filtered inserter's read hand setting in the image, it's a left over from tinkering I removed from the bp.
Image
Blueprint

Post Reply

Return to “Railway Setups”