I am going to complain about train behavior (Yes, I know. I'm not the first and will not be the last to complain about it) and I have some questions.
According to the wiki (https://wiki.factorio.com/index.php?tit ... th_finding) every path is assigned a penalty or cost depending on the length of the path. First a question:
1. Is a single curved piece considered to be of 1 length (being equal with a straight rail piece in path finding)? Or 4 because it costs 4 straights to build 1 curve?
The wiki also says that it penalizes occupied blocks based on the length of the block and its distance from the starting point.
2. Is the length counted as number of rail-pieces or actual tiles? And what about curves?
3. Is the starting point the place where the train originally came from or his current position?
4. Is the distance counted up to the signal with which the occupied block starts? Or somewhere's in the middle? The wiki talks about 'the block distance' from the starting point. This does not mean the number of blocks between the start and the occupied block right?
5. And does the rail-piece right next to this signal count for the distance or for the length of the block? What about the ending signal's rail-piece?
Regarding question 4. If 'block distance' does not mean number of blocks then the formula for the penalty would become penalty = 2 * length / distance_in_tiles. But this is typically a very small number, lower than 1. How can this ever have a noticeable effect on the total penalty of a blocked path?
Now the complaining. The wiki seems to be telling just half the story. I did some experimenting and found out that the distance between starting point and occupied block doesn't matter at all. The only noticeable effect seems to come from the number of occupied blocks along a certain path, not their distance to the start or their length.
This is clearly not desired behavior:
In this img there are wagons on both paths and there is a wagon at the exit near the trainstop that blocks both paths.
It shows that the distance (between occupied blocks and start point) has little effect on the penalty.
Also, you can flip the path the train chooses by adding additional signals alongside the wagons on either of the paths. The effect this has is that you are subdividing up the existing occupied blocks into smaller ones without increasing the number of occupied rail-pieces. What I see happening is, the more occupied blocks a path has (when keeping number of occupied rail-pieces the same) the less likely a train is to choose it. Only when the number of occupied blocks is the same for both paths the train will take the shorter path. Otherwise it just takes the path with the least occupied blocks regardless of path length.
5 Questions about train pathfinding + complaints
Post all other topics which do not belong to any other category.
Return to “General discussion”
Jump to
- General
- ↳ Releases
- ↳ News
- ↳ General discussion
- ↳ Multiplayer
- ↳ Find Servers / Tools / Guides
- ↳ Show your Creations
- ↳ Videos
- ↳ Combinator Creations
- ↳ Mechanical Throughput Magic (circuit-free)
- ↳ Railway Setups
- ↳ Energy Production
- ↳ Medium/Big/Gigantic Sized Structures
- ↳ Fan Art
- ↳ Gameplay Help
- ↳ Spread the Word
- ↳ Off topic
- ↳ This Forum
- ↳ Celebration Party
- Support
- ↳ Gameplay Help
- ↳ Discover Factorio Wiki
- ↳ Discover Others Creations
- ↳ Discover Mods
- ↳ Discover Tools Around Factorio
- ↳ Technical Help
- ↳ Bug Reports
- ↳ Resolved for the next release
- ↳ Fixed for 2.0
- ↳ Assigned
- ↳ Not a bug
- ↳ Pending
- ↳ 1 / 0 magic
- ↳ Duplicates
- ↳ Minor issues
- ↳ Desyncs with mods
- ↳ Won't fix.
- ↳ Resolved Problems and Bugs
- Factorio Direction
- ↳ Ideas and Suggestions
- ↳ Outdated/Not implemented
- ↳ Frequently Suggested / Link Collections
- ↳ Implemented Suggestions
- ↳ Implemented in 2.0
- ↳ Development Proposals
- ↳ Balancing
- Contributions
- ↳ Mods
- ↳ Download mods
- ↳ Mod portal Discussion
- ↳ Mods
- ↳ Mod Packs / Libs / Special Interest
- ↳ 5dim's mod
- ↳ Angels Mods
- ↳ Atomic Power
- ↳ Bob's mods
- ↳ DyWorld
- ↳ F.A.R.L
- ↳ Fentus Challenge & Tool Mods
- ↳ Logistic Train Network
- ↳ MoMods
- ↳ Reika's Mods
- ↳ Resource Spawner Overhaul
- ↳ Yuoki Industries
- ↳ PyMods
- ↳ Questions, reviews and ratings
- ↳ Modding Discussions
- ↳ Modding discussion
- ↳ Modding help
- ↳ Ideas and Requests For Mods
- ↳ Modding interface requests
- ↳ Implemented mod requests
- ↳ Implemented for 2.0
- ↳ Already exists
- ↳ Won't implement
- ↳ Documentation Improvement Requests
- ↳ Resolved Requests
- ↳ Development tools
- ↳ Tools
- ↳ Mod and installation managers
- ↳ Cheatsheets / Calculators / Viewers
- ↳ Development tools
- ↳ Special interest mods and libraries
- ↳ Modding Development
- ↳ Multiplayer / Dedicated Server
- ↳ Multiplayer Board
- ↳ Archive
- ↳ Maps and Scenarios
- ↳ Translations
- ↳ Texture Packs
- ↳ Fan Art
- ↳ Wiki Talk
- ↳ To be sorted
- ↳ Campaign / Scenario suggestions