Train Scheduling Tutorial - Laurence Plays Factorio

Поделиться
HTML-код
  • Опубликовано: 28 июл 2024
  • The next part of setting up a train system is telling the trains where to go! In this video, I'll run through how to get them traveling between stations and how to make sure that they don't go to stations that aren't ready for them. Let's go!
    Thanks to Tristan and Mike for proof watching and feedback.
    If you have any questions, stick them in the comments, or come along to my stream every Monday evening and ask me to explain live!
    0:00 Intro
    0:15 Setting schedules and conditions
    2:45 Simple train system
    3:10 Many to one
    3:55 Stackers
    4:12 Train limits
    6:03 Limiting storage in stations
    8:37 Fuelling
  • ИгрыИгры

Комментарии • 26

  • @marcmessing
    @marcmessing Год назад +1

    @5:33 "clostest station" is actually a bit more complicated. Distance is calculated by an algorithm described here: wiki.factorio.com/Railway/Train_path_finding

    • @LaurencePlays
      @LaurencePlays  Год назад

      That's true! "Closest station, according to Factorio's rather complex definition of how to count distance" would be more accurate :-D Thanks for the link though.

  • @samwheller
    @samwheller Год назад +8

    You make some really great tutorials. I'm kind of angry with Google for not suggesting you sooner in my Factorio career.

    • @LaurencePlays
      @LaurencePlays  Год назад +2

      Hah, thank you! Yeah, I'm in the awkward position where lots of people really like my videos, but the channel isn't big enough (yet!) that RUclips will necessarily recommend me as the first hit. Still, I think it's heading gradually in the right direction!

    • @samwheller
      @samwheller Год назад

      What brought me to you was googling about Space Ex specifically. Maybe you could focus on that strength until the net of your capabilities latches on to the people that need them.

  • @mick_io
    @mick_io 2 месяца назад +1

    This is game changing. Thank you sm for sharing.

    • @LaurencePlays
      @LaurencePlays  2 месяца назад

      My pleasure! I'm glad it came in useful. Trains are so powerful that it's worth making sure you can use them to their full potential! Maybe check out my LTN videos if you want to take your trains even further.

  • @johnhartge2658
    @johnhartge2658 Год назад +6

    Would like to see a guide on how to set train limit based on how much of a resource is stored. 1 for 4k iron, 2 for 8k, etc

    • @LaurencePlays
      @LaurencePlays  Год назад +5

      That is quite handy - you'd hook up the station storage to an arithmetic combinator, divide by the capacity of a train (eg 4,000 in your example) and then feed that into the station as the train limit. If I get enough requests and ideas, I'll make another train related video 🙂

  • @EchoJerichoX
    @EchoJerichoX Месяц назад +1

    I have been doing trains without mods or many tutorials at all until now, with some varying success. I made my first megabase on my own, but this tutorial blew my mind. Some of this stuff is probably mundane to other 1000+ hour Factorio players, but not me! I never thought of using depots in this way, or properly doing my train schedules so i have less material sitting in buffers.
    Thank you, sir!

    • @LaurencePlays
      @LaurencePlays  Месяц назад +1

      You're welcome! There's so much stuff like that in Factorio where you can get a basic setup running easily, but don't realise the depths of the possibilities unless you really go diving into it.

    • @EchoJerichoX
      @EchoJerichoX Месяц назад +1

      @@LaurencePlays thanks for the reply and I totally agree! I do have a question since I have your attention though. I just hook up a colored wire to my stations, and then run it through all of my containers like you did, but I don't use a decider or train limits in that way. I do use train limits on all of my stations, but I set them up with wires through my containers and then directly to the station itself to tell it to turn off the entire station if my material count is over a certain amount. Does that make sense? Is there any benefit to doing it one way over the other? I guess so you could have more direct control over exactly how many trains that station is limited to, but otherwise if you're just trying to turn the station on and off, I think my way is simpler as it does not require a decider combinator.

    • @LaurencePlays
      @LaurencePlays  Месяц назад +1

      @@EchoJerichoX Your way would be fine, probably all the time. The main difference between setting a train limit of 1 and enabling/disabling the station is that if a train is going to a station and it gets disabled, the train will stop trying to go there and will go to the next entry in its schedule, whereas with the train limit change, it'll go "Well, I'm on my way, so I'm going to go there anyway".
      If your system is fine with that (which most reasonably simple systems will be), then that's fine. Also, it's unlikely to happen unless you're monkeying around with the stations in some odd way. So, in general, it doesn't matter, but it's worth being aware of the difference in how they behave.
      Oh wait, there's a second edge case as well. If a train has a station with a full train limit in its schedule, it will wait for the station to clear. If it has a station that's disabled, it will skip it. This means that if you have trains with more than 2 stations in their schedule, it could end up going very wrong if a station disables. Again, not a problem in a simple system because you'll probably only have pickup and drop stations in the schedule!

    • @EchoJerichoX
      @EchoJerichoX Месяц назад +1

      @@LaurencePlays Thanks for clearing that up, sir! I am in the middle of tinkering with my rail book and I will certainly use this knowledge. Take care, and you earned yourself a sub for sure :)

    • @LaurencePlays
      @LaurencePlays  Месяц назад +1

      @@EchoJerichoX Happy to help! It's nice to have a question where I have to think about it a little bit too. I hope you enjoy everything else on the channel!

  • @miikapasma5326
    @miikapasma5326 Год назад +2

    It's easier to connect all chests to station directly and set the condition to enable/disable on the wanted limit. You'll skip the combinator logic entirely.

    • @LaurencePlays
      @LaurencePlays  Год назад +2

      I've a feeling there's a reason I don't do it like that, but I'm struggling to remember why! I think it might be because if you have more than 2 stations in the schedule, the trains will skip a closed station, but wait for a "limited" station to open up again. So, if you went mine -> factory -> fuel then if the factory station is disabled the train would endlessly go between mine and fuel.
      The other advantage is that you can do more complicated things this way, but since I'm not doing them in this case, that's not really a good reason!

  • @ZeGeeN
    @ZeGeeN Год назад +2

    Thank you for an other great video, o-train master! Simple and easy to understand. I was hoping to make a request. Do you usually make building trains? Maybe we could make a video about that? They seam practical to have in your base. Or do you usually just link everything together in a huge roboport net?

    • @LaurencePlays
      @LaurencePlays  Год назад +2

      I usually do on Nauvis, and in hindsight I should have done in orbit as well! Maybe this time. I don't usually do anything all that clever with them, but thinking about it there are a few tricks you could pull... I do have something construction train related to make, I'll have to think about how best to do it.
      Thanks!

  • @gummiglas5571
    @gummiglas5571 Год назад +1

    That was so helpful, thanks alot!

    • @LaurencePlays
      @LaurencePlays  Год назад

      You're very welcome! Let me know if there are any other subjects you'd like me to cover.

  • @user-vf4ut8ud6t
    @user-vf4ut8ud6t Месяц назад +1

    Maaan
    when I try to add station it just gives me a search bar
    can't find anywhere what to do...
    I've been trying to found out what the hell I'm supposed to do for so long, most of the stuff in game feels natural but trains?..
    Hell nah

    • @LaurencePlays
      @LaurencePlays  Месяц назад

      I think if your station isn't connected to the line that the train is on, then it won't show it in the list. Maybe try driving the train there manually?

  • @wolfisbad8965
    @wolfisbad8965 4 месяца назад +1

    this isn't working for me and i cant figure out why
    *edit*
    there is input and output for combinator...

  • @burrdid
    @burrdid Год назад +1

    yay