[0.15.34] Train stops with space in name are invisible

This subforum contains all the issues which we already resolved.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

[0.15.34] Train stops with space in name are invisible

Post by daniel34 »

In a train system, rename a train stop to "as df" and another one to "asdf". In the train selection dialog only the "asdf" one will be visible.

However the "asdf" train only stops at train stops that are actually named "asdf", it won't stop at train stops named "as df". It is impossible to make a train go to the "as df" stop because it is not listed, unless it has been set up to do so before the "asdf" stop was built (or renamed).

Here's an example:
bug_station_names.zip
(2.37 MiB) Downloaded 167 times
The stop at the top is named "asdf" and the bottom one "as df". It is impossible to make the train go to the bottom stop, because it is not listed when you try to add that stop.
quick links: log file | graphical issues | wiki
User avatar
Jon8RFC
Filter Inserter
Filter Inserter
Posts: 554
Joined: Tue May 10, 2016 3:39 pm
Contact:

Re: [0.15.34] Train stops with space in name are invisible

Post by Jon8RFC »

I tested on my own save and notice the same circumstance, but the opposite problem. Maybe it's because I named them in a different sequence. The one named "asdf", without a space, is the one invisible and unusable for me. The one named "as df", with a space, is the one I could add to my train's list of stops and which it successfully went to.
Image
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.15.34] Train stops with space in name are invisible

Post by kovarex »

Hello, thanks for the report.
It is indeed a bug in our "smart string comparison function", which, instead of skipping trailing spaces skips all spaces.
Fixed for 0.16
User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2638
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: [0.15.34] Train stops with space in name are invisible

Post by steinio »

kovarex wrote:Hello, thanks for the report.
It is indeed a bug in our "smart string comparison function", which, instead of skipping trailing spaces skips all spaces.
Fixed for 0.16
lol

Has C++ no vanilla string functions including trim?
Image

Transport Belt Repair Man

View unread Posts
Rseding91
Factorio Staff
Factorio Staff
Posts: 14343
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.34] Train stops with space in name are invisible

Post by Rseding91 »

steinio wrote:
kovarex wrote:Hello, thanks for the report.
It is indeed a bug in our "smart string comparison function", which, instead of skipping trailing spaces skips all spaces.
Fixed for 0.16
lol

Has C++ no vanilla string functions including trim?
c++ doesn't have https://www.npmjs.com/package/string-natural-compare
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”