Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Installing LTN
- First of all you need to install the mod LTN. In main menu, open modifications, type LTN in search, install mod and libraries. Game will restart to accept changes.
- Shortly about how LTN works
- If you plaiying without LTN, most of your train routes will look like loading station>depositing station. With LTN, 3rd station is appearing, called depot. Trains will wait here untill they recieve a supply request.
- How it working: in request station you set resource amount for station to request, in provider station you set thresold for station to become active provider. If provider station have enough resource to become active, and request station can satisfy itself with resource amount in provider, request will be formed and send to free train in depot. Train will go to provider to take resource, then it come to request station to deposit. All 3 stations should be in one network.
- Stations
- Mod adds LTN station. You need to use it instead of common station. By default it can both send resources and provide them. Parameters in station are setting with logic signals. For setting parameters you need to use combinators, mostly it will be constant combinator. Connect it with input port (lamp under the station), and set the parameters you need. For example you need to count resource amount in station to make a request. You need to connect all resource storages with same cable and connect it with input. Also you can use signals from output (combinator under the station). Every signal station is received will come to output port. For example, you can set output with filtering manipulators, choose “apply filter”, then when request will come to station, manipulators will only deposit/load only requested resource.
- Depot
- Trains stay in depot in waiting mode untill they receive request. In train you need to set depot, and make it automatic. In doesnt work in manual mode. If you made all correct, lamp under the station will become blue. In case of train did not deposited everything, place manipulator to deposit in depot. In fluid wagons liquids destroying automatically. Depot stations should be at least much as trains amount. 10 trains, 10 depots. 25 trains, 25 depots. Adding a train, adding a depot. For station to become depot, you need to use stop is depot parameter. To change priority of depot, use depot priority.
- Provider
- Station, that making resource supply to request stations. For station to become provider, use provide threshold. It is the minimal amount of resource station should have in storage to become active. By default it set by 1000. Threshold parameters are applying to ALL resources you loading to station, if you loading multiple resources, be careful, because amount of resource in stack is different for resouces. Threshold also can be used for stacks of resource, for this use provide stack threshold. Also if you loading multiple resources, use locked slots per wagon to prevent resource mixing. Provider priority sets priority to this station due to other providers, supplying this resource.
- Request
- Station, making requests. By default station both supplying and providing resources. You need to block providing from this station, use provider threshold >than storage amount in station, or just set some big value, like some millions. Resource you requesting setting with negative value, be careful. If you need 5000 copper plates, set -5000 copper plates. 100000 raw oil, set -100000 raw oil. Liquids requests sending only in trains with fluids wagons. Request threshold is optional parameter, by default set as 1000. Can be set in resource amount or stacks of resource. You can block warnings from request station by using disable warnings. Not recommended untill you not experienced in LTN mod using.
- LTN Settings
- Network id. If you need to everything working correct, station, depot and request must be in one network. LTN uses 32bytes of information, max amount of networks is 32. Network with id “1” will be general.
- But if you need to get supply from stations in 5 and 7 networks, you need to sum their id`s 5+7=12 id for supplying from both.
- Provide/request priority .The more is value of parameter, more priority in station. You can set negative value to lower the priority.
- Limit trains sets max limit of trains for this station.
- Min/max train length sets minimal/maximal length for trains for this station. Max train length supported by LTN is 1 locomotive+31 wagons.
- Threshold. Most complicated LTN moment for most of people. For provider station provide threshold sets minimal amount of resource to station to become active. For example, it set by 10000. Station will accept requests from LTN only when it will have >=10000 of resource.
- Request threshold can be set in resource or stacks value. If station will miss amount of resurce set in request thresold, it will make new request.
- As you remember requests set in negative value, but rearranging the terms doesnt change the sum, so we can move minus to threshold. For example:
- Request= 25000
- Request threshold =20000
- Formula we will use:
- Request - threshold = remainder. If resource will be <= of remainder, new request will be done.
- 25000-20000=5000 is the minimal amount of resource, <=5000 will trigger new request.
- But not always will be ideal amount of resource made in new request, if station have big consumption of resource from its storages, requested value may be different. If with same settings on the moment of request creating in storage will be 4629 of resource, station will request
- 25000-4629=20371 of resource. Visualized example on fluids:
- https://www.youtube.com/watch?v=6rC_N1MOd24
- I explained only the main parameters of LTN to start using it, if you need more detailed guide search in youtube or use official mod page:
- https://forums.factorio.com/viewtopic.php?f=214&t=51072
Add Comment
Please, Sign In to add comment