Friday Facts #361 - Train stop limit, Tips and tricks

Regular reports on Factorio development.
lonjil
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Oct 09, 2020 12:46 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by lonjil »

IronCartographer wrote: ↑Fri Oct 09, 2020 1:33 pm
lonjil wrote: ↑Fri Oct 09, 2020 12:55 pm One thing I think might synergise with the train stop limit, is giving trains the option to have a "fallback station", somewhere they only path to if all other stations are disabled or full. I've seen quite a few people talk about having depots where trains stay if they aren't needed, but this seems a little annoying to me, as it means the depot stop needs to be part of the train's regular schedule, so the train will make superfluous trips. With the fallback station idea, that wouldn't be the case.
This might be reasonably possible if trains would check the conditions for their destination stop and skip it in their schedule if their waiting conditions were already met (at the time of destination selection), BUT still go to that train stop if there were no other options available to them. I suspect that rides a fine line between a feature and hack though, so it may not be amenable to being implemented to the devs' satisfaction.
Even better: if trains don't go to stations that already have their conditions met, just add a condition that depends on the other stops, like "Leave if the number of available stations is X or more".
User avatar
kizrak
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Thu Jul 19, 2018 1:27 am
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by kizrak »

🧑
meganothing
Filter Inserter
Filter Inserter
Posts: 276
Joined: Thu Sep 15, 2016 3:04 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by meganothing »

Nice comeback of the late FFF.

As feedback for tips and tricks: As a rule I would say anything having to do with GUI is tips-worthy. Any laws of nature that are different in game than in reality might also be tips-worthy. Anything about the machines and their workings in the game is not tips-worthy. Is this too naive a view?
SWSe
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Tue May 27, 2014 3:08 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by SWSe »

Great to see some new FFF!

I was initially worried the new Tips & Tricks screen might overwhelm new players, making them decide they don't really want to read this intimidating "homework" before playing, rendering the long list much less effective. Good call to keep them as simple as necessary in the beginning then.

Also, I'm not sure whether the new unlock popups may become annoying if they interrupt the game regularly. It has always worked very well for mini tutorials though, so I'm sure it won't be much of a problem, with the hints also usually being short.
Looking forward!
Last edited by SWSe on Fri Oct 09, 2020 6:04 pm, edited 1 time in total.
IronCartographer
Filter Inserter
Filter Inserter
Posts: 464
Joined: Tue Jun 28, 2016 2:07 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by IronCartographer »

planetfall wrote: ↑Fri Oct 09, 2020 3:05 pm
Nidan wrote: ↑Fri Oct 09, 2020 2:58 pm You can use z to drop a single module into a machine, no need to open the UI.
Huh, I didn't know that. Should maybe be a tip, then.
Retne wrote: ↑Fri Oct 09, 2020 4:19 pm I also didn't know about Z dropping modules into assemblers. Cool. Yeah, bonus tip right there :)
This was a surprise module-specific TIL for me and gets my vote to include in a Tips&Tricks page for the Z/F button. :P

(Random suggestion for the reader: Change enter/exit vehicle to the F key, try Shift-F for picking up from the ground.)

Retne wrote: ↑Fri Oct 09, 2020 4:19 pm Random, but I'm reminded to ask if temp stops could have a new default condition when it just waits forever, or takes the last condition at the time it reached the stop as the default or an explicit option somewhere.
You'll be wanting this mod: https://mods.factorio.com/mod/QoL-TempStations
redis
Inserter
Inserter
Posts: 44
Joined: Sat Aug 31, 2019 4:03 am
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by redis »

Before the train limit feature, the problem of stations imbalance could be solved by placing several rail signals before the station and enabling red depending on the level on that station. This impacted train pathing algorithm and trains would pick a station with fewer or no red signals on the way.

Great to see developers see there was balancing problem with such stations and give a tool to manage this. Now you do not need to put in rail signals hack, but instead adjust the train limit based on circuitry. Thanks!
warlordship
Inserter
Inserter
Posts: 39
Joined: Mon May 08, 2017 8:13 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by warlordship »

I liked reading about the tips/tricks/tutorials section (not that I need them at this point). But I wanted to suggest that maybe you SHOULD include a in-game wiki of sorts. Like, maybe a few relevant bits of info about each item. Some things I think would be helpful would be:

-Boiler/Heat Exchanger generation rate per second
-Engine/turbine consumption rate per second
-Mine ore generation rate (base). Maybe a bit in there about ore hardness (is Uranium still "harder" than the rest of the ores to mine?)
-A tip about production speed of different assemblers.
-A tip about how pollution generated by a machine (for machines that generate pollution) is based on the power consumed, so efficiency modules will reduce pollution generated by the machine AS WELL as reducing pollution generated from boilers due to reduced power demand.
-A tip on each power producer (or on an overall power producer tip) that informs people the priority for what system generates what power first (solar before boiler).
-We still get a lot of questions in the steam forums on why their accumulators don't seem to be working when placed. I think it's not quite clear to new people that accumulators only pitch in if the power demand is more than the combined total of all possible power sources. Emphasize that it is usually used as a complement to solar power, but it still has odd interactions with alternate power sources.
-I know that some of the good of this game is the ability to let people build how they want, but the perfect ratio of 1 boiler to 2 engines is so good, that it's probably a good idea to suggest in tips an ideal shape for boiler>engine layouts. Another common forum question relates to people not producing enough power, and their screenshots show them combining the output of a line of boilers and sending that output to a line of engines. I'm not quite sure when it would be a good time to have players dip their toe into the depth that is pipe throughput limits, but I think basic power production is not the time to bring up how combining outputs (boilers, refineries, etc) to send to a series of inputs (engines, chemical plants, etc) is an alternative liquid handling...

By the way, you comment on how you never see accumulator questions. As I said before, it comes up on the steam forums fairly often. I'd wager that most new players start out there. Making a Factorio forum account is a pretty big hurdle for players (myself included) for what - to them - is just some random game. So we try to support them as much as we can, and only send over to here the more severe cases, like true bug reports, or serious crash issues. If you don't frequent the steam forums, keep in mind that the factorio forums are not going to be representative of the true population of the game.
Cyclonut
Burner Inserter
Burner Inserter
Posts: 18
Joined: Fri Feb 22, 2019 9:25 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by Cyclonut »

If you are looking for ideas for tips and tricks, please cover the logistics network and the S/R relays... Thanks for continuing with FFFs.
User avatar
5thHorseman
Smart Inserter
Smart Inserter
Posts: 1193
Joined: Fri Jun 10, 2016 11:21 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by 5thHorseman »

So much love for train stop limits!
User avatar
Serenity_Twilight
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Oct 09, 2020 12:16 am
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by Serenity_Twilight »

I was just spending hours yesterday testing out different circuit configurations in attempt to solve the matter of dispatching only as many trains as necessary and making sure that no two trains go to the same location.

(For those not interested in my findings in how to do something that ultimately won't be necessary once train stop limits are included in the game, skip to the end.)

1 Request = 1 Dispatch

This requirement is simple, at least in the case of only having a single dispatcher. If the requesting station(s) can contact the dispatcher via circuit network, then then station can pulse a 1 of type requested resource for 1 tick. The dispatch station captures this tick, then, using some bitwise logic along with a primitive if-else-if statement, will dispatch a single train, assuming at least 1 is currently available.

The system is robust enough to handle situations in which two or more stations request a train on the same, as well as if one or more stations request a train when none are available. The input from the circuit network is captured and locally maintained until explicitly subtracted, which only occurs when a train is actually dispatched. Now that I think about it, a maintained value in that count could be wired to an alarm to signal when there are not enough trains to meet demand.

It's possible to have this work between multiple dispatch stations, but ultimately there MUST be no more than a single if-else-if statement to maintain the fact that 1 request results in 1 dispatch, meaning that the second dispatcher cannot even consider sending trains unless the first dispatcher has none, which prevents the potential benefits of dispatcher-requestor locality and pollutes the rail system's global circuit network channel.

Trains do not fight for destinations

As far as I can see, there was no good way to achieve this under current limitations. Even if you disable the requestor upon arrival of the dispatched train, if two requestors request a train around the same time, then one is likely to follow the other, and only head for the other station once the first train arrives at its destination.

I found a thread with an interesting idea that, in short, mandated that each receiver of a particular resource had 1 additional "seeker station" per train that could be dispatched to it. The dispatcher would then return the ID of the train dispatched, which the requestor would use to enable one of its seeker stations to ensure the train came to that specific location (assuming that all trains of a type have the seeker station in their schedule between dispatch and reception).

This was, as far I as could tell, the only real solution that worked, but it comes with 1 major problem: Your dispatcher and requestors become highly coupled, which defeats much of the purpose of the model in the first place.

The construction of a requestor station requires 1 additional seeker station per train that can be dispatched, along with all of the circuitry to faciliate enabling it. The addition of any trains to the dispatcher requires an update to all requestors of that particular resource. And, as train IDs are totally unique, if a train must be replaced for whatever reason, this also requires an update to all requestors of that particular resource.

On the topic of train stop limits

I very, very, VERY much appreciate this change. Having the functionality built-in to stations will remove the dependency for massive inter-station circuit networks and bulky combinators (at least for this purpose, I don't personally use the circuit network for much, but I imagine many live and die by it). No longer will this limitation of the low-coupling, modular, request-and-dispatch train network keep me awake at night!

Oh, and the Tips GUI looks really neat, too. I don't have a whole lot to say on it other than it's clear that A LOT of time and thought was expended on shaking off its old limitations and increasing it relevance and helpfulness.
ironchefpython
Inserter
Inserter
Posts: 26
Joined: Thu May 08, 2014 4:21 am
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by ironchefpython »

Rergarding mods and tips:

For modding, please consider a way to make it brain-dead simple to author and translate tips. I would love to see a solution where tips are authored in a text format, with factorio-specific extensions. The tips could be text files in the locale directory, making it trivial to add a new tip page via a mod.

Some things I'd love to see in tips
Basic Factorio icons:

Code: Select all

[item=copper-ore]
[recipe=logistic-robot]
blueprint support (shows a preview, and when clicked picks up the blueprint with the cursor)

Code: Select all

[blueprint=0eNp9j8EOgjAQRP9lzoUIUtD+ijEGcMVN6ELaYiSEf7fgxZPH2ey8mVnQ9BONjiXALOB2EA9zWeC5k7rfbmEeCQYcyEJBarup2nuyTc/SJbZunyyUHLEqsNzpDZOtVwWSwIHpy9vFfJPJNuTiw3+Swjj4aB5kaxCBuU61wgyjy1THHEct77UG7hNHj2hzM7bUvaf5maXwIud3VH7Kiqo4V2WVHUpdrusHO2xUBQ==]
links to other tip pages

Code: Select all

[tip]tip-in-same-mod[/tip]
[tip]other-mod/other-tip[/tip]
preformatted text for sample console commands (can be clicked to copy the command to the console or clipboard)

Code: Select all

[code]/c game.player.print(1234*5678) [\code]
dynamic values that specify a lua value or function

Code: Select all

[value=game.forces["enemy"].evolution_factor]
[call=game.player.get_goal_description()]
[element=my.mod.LuaGuiElement]
images and such

Code: Select all

[img=filename.png]

also, please make the tip tree collapsible, as some mods could have an enormous number of tips.
Last edited by ironchefpython on Fri Oct 09, 2020 8:32 pm, edited 2 times in total.
Solinya
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Sun Mar 17, 2019 10:39 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by Solinya »

kovarex wrote: ↑Fri Oct 09, 2020 11:05 am
KatherineOfSky wrote: ↑Fri Oct 09, 2020 8:18 am The Tips looks great, though I feel VERY STRONGLY that you do not hide tips from the user. If anything, add a little dot or animated icon next to the pertinent ones, or ones most recently related to progress in the game. However, I ask you most sincerely not to hide information from the player.
Please give people the information they are thirsting for, right out of the gate!
The players can use a command, explained in the first tip, to unlock all the tips, but I think that it works better with the unlocking.
I remember talking to a guy who bought the game, and he played through all of the tutorials before building anything in a game, even when they were not suggested yet, that was painful to hear. It really doesn't make any sense to see a tutorial about train,signals, fast entity transfer and such, when you didn't even build your first miner. This was one of the pushes for me to really make them visible only when it is relevant in the game.

We are putting special effort into making sure that the unlocking is done in a proper moment. For example, why would you need to see a tutorial about drag-building poles before building a few for the first time? Or tutorial about signals before signals are even researched? It would just confuse the new user and overwhelm him with information.
What about either grayed out names for the 'locked tips' or even a "locked" placeholder so the player knows how many tutorials there are that they haven't seen yet? Otherwise I think I'd have the same concern. If the table of contents is sparse, I'd quickly forget about it because it looks like I've done everything I can with that window.

Also, will there be a 1.0.1 for all the queued up bugfixes or is the plan to wait until 1.1.0 to ensure nothing accidentally breaks mod compatibility with the official launch release?
User avatar
Impatient
Filter Inserter
Filter Inserter
Posts: 883
Joined: Sun Mar 20, 2016 2:51 am
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by Impatient »

Please add a 2nd number to the trains limit. That 2nd number shows the sum of all the limits of all the train stations with that name.

eg 2 iron mines "Iron mine" with limit 2
Then in the train station GUI it would show: "[x] Enable trains limit [2]/4"

Why? To see at a glance, if the limits are able to acommodate all the trains, which have that train station name in their shedule. This would nicely combine with this viewtopic.php?f=6&t=90219 .

If there is at least one station which has no limit set, then a station's GUI would show "unlimited".
eg "[x] Enable trains limit [2]/unlimited"
Last edited by Impatient on Fri Oct 09, 2020 10:48 pm, edited 1 time in total.
User avatar
Lubricus
Filter Inserter
Filter Inserter
Posts: 298
Joined: Sun Jun 04, 2017 12:13 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by Lubricus »

lonjil wrote: ↑Fri Oct 09, 2020 12:55 pm One thing I think might synergise with the train stop limit, is giving trains the option to have a "fallback station", somewhere they only path to if all other stations are disabled or full. I've seen quite a few people talk about having depots where trains stay if they aren't needed, but this seems a little annoying to me, as it means the depot stop needs to be part of the train's regular schedule, so the train will make superfluous trips. With the fallback station idea, that wouldn't be the case.
You already can do that so there is no need for any new functions. Set an cargo wagon or something at the fallback station so it's always red.
User avatar
Lubricus
Filter Inserter
Filter Inserter
Posts: 298
Joined: Sun Jun 04, 2017 12:13 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by Lubricus »

redis wrote: ↑Fri Oct 09, 2020 5:31 pm Before the train limit feature, the problem of stations imbalance could be solved by placing several rail signals before the station and enabling red depending on the level on that station. This impacted train pathing algorithm and trains would pick a station with fewer or no red signals on the way.

Great to see developers see there was balancing problem with such stations and give a tool to manage this. Now you do not need to put in rail signals hack, but instead adjust the train limit based on circuitry. Thanks!
It helped but didn't fully solve the problem. Still all the trains that was ready to go would path to the same station.
argbla
Inserter
Inserter
Posts: 29
Joined: Wed Aug 30, 2017 6:31 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by argbla »

barnaclebob wrote: ↑Fri Oct 09, 2020 3:44 pm i have spent sooooooo many hours trying to make this train thing happen with just flipping stations on and off and it never worked. SOOOOO EXCITED.
Me too man, me too.
lonjil
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Oct 09, 2020 12:46 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by lonjil »

Lubricus wrote: ↑Fri Oct 09, 2020 8:38 pm
lonjil wrote: ↑Fri Oct 09, 2020 12:55 pm One thing I think might synergise with the train stop limit, is giving trains the option to have a "fallback station", somewhere they only path to if all other stations are disabled or full. I've seen quite a few people talk about having depots where trains stay if they aren't needed, but this seems a little annoying to me, as it means the depot stop needs to be part of the train's regular schedule, so the train will make superfluous trips. With the fallback station idea, that wouldn't be the case.
You already can do that so there is no need for any new functions. Set an cargo wagon or something at the fallback station so it's always red.
Ah, you mean by giving the depot the same station name as another station that the train stops at, and then putting a couple of red signals in front? Something like that didn't occur to me, as I was thinking along the lines of fallback stations that could have any train stop at it.
User avatar
Unknow0059
Fast Inserter
Fast Inserter
Posts: 101
Joined: Tue Aug 08, 2017 7:37 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by Unknow0059 »

What you're seeing is a GIF (technically an .mp4) on a webpage, but we are not putting GIFs in the game. What the GIF shows, is the Tips and Tricks GUI live rendering a real simulation of the entities inside the GUI. This marvel of technology is a divine gift from the very top (kovarex).
This is nothing short of genius.
I also really love the mini-documentation that is the new Tips and Tricks on steroids.
What kind of tips would you have found useful when playing the game?
About this. It would be useful to know to which degree the in-game stats can be trusted. I mean, it's not precise to the single unit (the smallest value it displays is 23.8 even if you've just produced one single item), so how can I trust that when it says I've produced 1k coal, I've actually produced that amount?
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by eradicator »

Unknow0059 wrote: ↑Fri Oct 09, 2020 10:49 pm I mean, it's not precise to the single unit (the smallest value it displays is 23.8 even if you've just produced one single item), so how can I trust that when it says I've produced 1k coal, I've actually produced that amount?
Either you're looking at the wrong screen or you're misinterpreting or you've found an actual bug. It certainly shows "1" just fine for me. Factorio is one of the few games where i feel comfortable assuming the data is always 100% accurate.
Attachments
allprod.png
allprod.png (177.24 KiB) Viewed 7560 times
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: ζ—₯本θͺž, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Pinga
Inserter
Inserter
Posts: 42
Joined: Fri Oct 27, 2017 3:59 pm
Contact:

Re: Friday Facts #361 - Train stop limit, Tips and tricks

Post by Pinga »

Amazing, now we can finally set a supply / demand train network, without the nightmare of manually balancing everything.

Now, if only we could centralize train refueling. Maybe optional station conditions (go there if fuel count < X). What about GLOBAL train conditions, something that you set once and apply to all trains? I don't know, I'm allowed to dream.

Overall, train limit is a very welcome feature.
Post Reply

Return to β€œNews”