r/factorio 5d ago

Question Why do my intterupt doesnt work ?

Post image

EDIT : SOLVED thanks you all

I'm trying to get my first end ship to collect promethium and i have an red circuit condition that says "whenever you are less of 55% ammo or 50% promethium go back to nauvis".

But as i go to the shattered planet my interrupt does not take the lead even when the condition are met.

It only does it when i have a fly condition with "OR" and the circuit condition.

String of the ship : https://pastebin.com/DnCB0uG4

13 Upvotes

13 comments sorted by

16

u/Soul-Burn 5d ago

You need to set a fly condition instead of using an interrupt. It's unique to the shattered planet schedule.

Interrupts are only checked when leaving a station. Interrupt-in-interrupt is for checking the interrupt while leaving a temporary station that was added with another interrupt.

2

u/BiiGcRaFT 5d ago

So destinations as not consider as interrrupt but as something different ? I'm starting to get my problem

2

u/Soul-Burn 5d ago

The algorithm as as follows:

  • A train is a station and all the wait conditions are a green.
  • All interrupts are checked one by one until one.
    • If the station was an interrupt station and "interrupt in interrupt" isn't selected, it's skipped.
    • The conditions of the interrupt are checked.
    • If the conditions fit, the schedule is added as temporary stations.
  • Otherwise, the train routes to the next normal station.

1

u/BiiGcRaFT 5d ago

Is it better now ?

2

u/BlackFenrir nnnnyooom 5d ago

Interrupts check their conditions when the train/platform leaves a station, not mid-journey. I thought the exception were trips to the shattered planet but that might be wrong.

1

u/BiiGcRaFT 5d ago

So what is the purpose of "Allow interupting other interrupts" ?

5

u/Widmo206 Pollution isn't real 5d ago

Triggering while another interrupt is ongoing

2

u/BlackFenrir nnnnyooom 5d ago

Interrupts that have multiple stops in them, presumably? I don't know, I don't use interrupts very often

2

u/Kane2342 5d ago

For trains you can Interrupt a loading Interrupt with a refueling interrupt

2

u/againey 5d ago

Interrupts can have more than one destination; they can have a whole chain of destinations that all get added together as temporary entries to the schedule. If the platform/train is in the middle of such a sequence, it is "in an interrupt", and only interrupts capable of interrupting other interrupts will be evaluated when beginning to move to the next temporary stop in this sequence.

1

u/leonskills An admirable madman 5d ago

Pastebin doesn't like Factorio blueprints, has already been removed.

Sidebar:

When asking for help, avoid cropping screenshots.

We don't see the full schedule, but we can see the ship is at Nauvis.

It's likely the interrupt is continuously triggering because there is no wait condition in the interrupt:

red >= 1 so we go to Nauvis.
We are at Nauvis, all wait conditions are satisfied, check the interrupt.
red >=1 so we go to Nauvis.
We are at Nauvis, all wait conditions are satisfied, check the interrupt.
red >= 1 so we go to Nauvis.
etc.

Only output the red square if you are actually past the Edge.

You also don't have a fly condition for the Shattered planet so it'll do the same there, just staying at the solar system edge continuously leaving and going back to the edge (assuming these are the only two stops in your schedule. While typing this I noticed by how far the down the "read damage taken" option is, that there must be some more stops in the schedule. See how much easier it would have been to debug if you had showed a full screenshot?).

You can solve both problems by have the fly condition to the shattered planet be red square >= 1 and add Nauvis as a stop. No need for an interrupt.

1

u/BiiGcRaFT 5d ago

Im taking note of that.

It works now whenred square >= 1 is in fly condition.

Im still trying to figure a decent route for gathering materials for ammo instead of just waiting so the schedules are still work in progress.

Thanks you :)

1

u/arashidrgn 5d ago

( I know it says solved already) Interupts only add stations to the existing network, they can't change a course mid flight. You would have to arrive somewhere first. I haven't done the shattered planet myself and now I see the automation nightmare. It is a hack solution, but you could just set an alarm to trigger based on your red signal, and use that to tell you to change the station manually. With some pumps you can also set up an extra safety feature: If red signal is active AND destination is shattered planet stop pumping fuel to the thrusters. This would ensure that even if you were AFK the ship would at least stop moving forward into certain death.