Page 1 of 1

[0.18.10] Rich text train station names are not searchable

Posted: Sat Mar 14, 2020 9:18 am
by Demosthenex
1. Create a train station with a rich text name
2. Place a train, create a schedule to goto the new station
3. Press Control-F to search the station list, the rich text name isn't included in the textual search (ie: searching iron won't show rich text iron plates)

Re: [0.18.10] Rich text train station names are not searchable

Posted: Sun Mar 15, 2020 7:32 pm
by Rseding91
Thanks for the report, however yes they are.
Capture.PNG
Capture.PNG (33.65 KiB) Viewed 1537 times

Re: [0.18.10] Rich text train station names are not searchable

Posted: Sun Mar 15, 2020 8:24 pm
by Demosthenex
Interesting! To be fair, I'm doing Pyanodon's and setup my test for Formaldehyde not a vanilla recipe. I'll go doublecheck.

Re: [0.18.10] Rich text train station names are not searchable

Posted: Sun Mar 15, 2020 9:03 pm
by Demosthenex
Ok, further investigation looks interesting. I was able to make and search for names using items and recipes including modded and unmodded. I tried Sulfuric acid recipe, item for iron plates, etc and it worked.

Then I tried Py's Formaldehyde recipe again, and it doesn't find it in search. I did the shift-click method to put the name on the console to copy, and pasted it into a station. Then searching doesn't show it. Maybe it's a modded issue only, but I'm not sure what the difference was.

Re: [0.18.10] Rich text train station names are not searchable

Posted: Mon Mar 16, 2020 3:23 pm
by Rseding91
Probably because the recipe doesn't actually include the name "iron" in it? At no point did you say you typed it manually: [recipe-name=iron-plate]

It only searches that as text. If the recipe is something like: [recipe-name=Fe] searching for "iron" isn't going to match anything in that.

Re: [0.18.10] Rich text train station names are not searchable

Posted: Mon Mar 16, 2020 5:47 pm
by Demosthenex
Got it. My example where it failed (Formaldehyde) was called Methanal internally. Clearly this isn't a problem, thanks for checking.

pyhightech_1.5.4/locale/en/locale.cfg:methanal=Formaldehyde