[0.15.34] Train stops with space in name are invisible

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

[0.15.34] Train stops with space in name are invisible

Post by daniel34 » Sat Aug 26, 2017 6:06 pm

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 32 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.

User avatar
Jon8RFC
Filter Inserter
Filter Inserter
Posts: 365
Joined: Tue May 10, 2016 3:39 pm
Contact:

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

Post by Jon8RFC » Sun Aug 27, 2017 7:58 am

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: 7387
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post by kovarex » Mon Aug 28, 2017 3:03 pm

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: 2201
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

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

Post by steinio » Mon Aug 28, 2017 3:54 pm

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
My little mods: Link | My favourite mods: Bob's Mods | Angel's Mods | Yuoki Railway Core | EvoGUI | Logistic Train Network
Factorio Cheat Sheet by Denis Zholob

View unread Posts

Rseding91
Factorio Staff
Factorio Staff
Posts: 9478
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 » Tue Aug 29, 2017 7:42 am

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”

Who is online

Users browsing this forum: No registered users