Rail Logistics Daemon (RLD)


UPS-first train logistics for megabases: tag stops as providers, requesters, and depots, set thresholds, and RLD dispatches trains for you. Event-driven with no per-tick polling, native chain deliveries, item quality and fluid support, multiple networks, a live dashboard, and one-command in-place LTN migration. Factorio 2.0: stable 1.0.x. Factorio 2.1: 2.0.x BETA — feedback welcome!

Content
10 days ago
2.0 - 2.1
293
Trains

b Request stack threshold

11 days ago

Hi,

Here's my requester station configuration:
- Limit trains = 1
- Enable Requester = Checked
- Request Stack Threshold = 80
- Requester Cargo = 160 stacks

My provider station:
- Limit trains = 1
- Enable Provider = Checked
- Provide Stack Threshold = 80

My trains have 2 wagons, each with a capacity of 40 stacks.

My goal is to ensure that each requester station always has at least one full trainload of cargo available. When the available stock drops below that amount, a train is dispatched. I also want trains to always be fully loaded, with no partial deliveries. So far, everything works as expected.

However, for one particular delivery, I don't want to wait for a full train. Instead, I want to dispatch a train as soon as 10 stacks are available.

To achieve this, I changed the provider station's Provide Stack Threshold from 80 to 10. I can see that the provider is now offering the cargo as expected.

The problem is that the requester doesn't seem to request that amount. It looks like the Request Stack Threshold is limiting the requested amount and forcing it to match the configured threshold.

My understanding is that Request Stack Threshold should only determine when a train is dispatched, not limit the amount of cargo that can be requested or delivered.

Am I misunderstanding how these settings are supposed to work, or is this a limitation/bug?

11 days ago

With no stack threshold set it uses the “default stack threshold in the mod settings. So unset may actually = 80 under the hood. So make sure you set a request stack threshold of 10. Let me know if this still is an issue. I’ll mock it up myself shortly.

11 days ago

This is working as expected.

Scenario 1:
Provider = 10 stacks threshold
Requester A = 10 stacks threshold
Requester B = 80 stacks threshold
Provider Inventory = 500 stacks

Result should = both requesters complete

Scenario 2:
Provider = 10 stacks threshold
Requester A = 10 stacks threshold
Requester B = 80 stacks threshold
Provider Inventory = 60 stacks

Result should = only Requester A is fulfilled.

If you do not set the request threshold on a request is till take the default stack

Maybe I can make an update that when the stack size is unset the guide will display the default as grayed out

11 days ago

I did confirm, the unchecked request threshold already shows the defaults in the text box in a grayed out state because it is accepting the defaults. Set the request threshold to have it transport 10 stacks if that is what you want

11 days ago

In both scenarios, you're changing the Request Stack Threshold to 10. That's not what I want to achieve.

I want to keep the original requester logic unchanged. I don't want to dispatch a train whenever the stock drops below 10 stacks. I still want the requester to wait until it needs a full trainload (80 stacks).

The only thing I want to change is the provider's behaviour: instead of requiring 80 stacks before offering cargo, I want it to offer cargo as soon as 10 stacks are available.

In other words:
- Requester: dispatch a train when at least 80 stacks are needed.
- Provider: make cargo available when at least 10 stacks are in stock.
- Train: carry whatever is available, even if it's only 10 stacks, for this particular delivery.

I'm trying to change the provider's threshold without changing the requester's threshold or triggering partial deliveries for other stations.

I think we're talking about two different things here.

11 days ago

The delivery system works by matching requester to provider.

If provider is offering an amount (say 11 stacks) and the requester can request its threshold amount (10 stacks) it will match and send a train. This is evaluated every few seconds

The requester station determines when to request a train when the inventory minimum - request threshold has been triggered.

The logic “carry whatever is available, even if it's only 10 stacks”, I’m not sure how to build this into the base without affecting the core daemon scheduler matching logic.

I would propose, remove the train limit or create your own circuit logic. You can add your own circuit logic to the RLD combinator to change the output values. You could build this logic yourself without it being in the mod.

11 days ago

Thanks for your time and help.

New response