Sort icons by their position in the crafting menu

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
Sachertorte
Burner Inserter
Burner Inserter
Posts: 9
Joined: Wed Sep 06, 2017 2:53 pm
Contact:

Sort icons by their position in the crafting menu

Post by Sachertorte »

I've been using icons to name my rail stops. I was hoping that this would cause the rail stops to be 'alphabetised' by that icon's position in the crafting menu, leading to an intuitive ordering - for example, the science stops would all be listed next to each other and in order.

However, that's not what happens - the ordering appears to the layman (me) to be effectively random (see image).

It would be nice to have the sort order for icons be by their position in the entity selection menu.
trains.png
trains.png (109.09 KiB) Viewed 212 times

User avatar
NotRexButCaesar
Filter Inserter
Filter Inserter
Posts: 894
Joined: Sun Feb 16, 2020 12:47 am
Contact:

Re: Sort icons by their position in the crafting menu

Post by NotRexButCaesar »

Sachertorte wrote:
Thu Apr 08, 2021 6:50 pm
the ordering appears to the layman (me) to be effectively random (see image).
Those icons are really hidden text. If you copy paste into a text editor you will see something like [item=automation-science-pack]. https://wiki.factorio.com/Rich_text
The text is then sorted alphabetically:
  • plastic-bar
  • production-science-pack
  • productivity-module
  • rail
  • steel-plate
  • stone-brick
  • stone
  • sulphur (get it right devs :twisted:)
  • transport-belt
Sarcasm and insults are generally neither helpful nor appreciated.
You never know what type of day someone else is having.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 11968
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Sort icons by their position in the crafting menu

Post by ssilk »

This is very hard to be fixed, because the internal name will not change anymore, but the displayed name is translated.

The sorting routine must do the same as the display-routine: scan over the name, pick out the icons, lookup the translation for this icon, and replace it with the icon. Then it can start to sort. For some long lists will influence the performance hard.
NotRexButCaesar wrote:
Thu Apr 08, 2021 6:56 pm
[*] sulphur (get it right devs :twisted:)
Both writings are correct English.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
jodokus31
Smart Inserter
Smart Inserter
Posts: 1092
Joined: Sun Feb 26, 2017 4:13 pm
Contact:

Re: Sort icons by their position in the crafting menu

Post by jodokus31 »

ssilk wrote:
Fri Apr 09, 2021 5:25 am
NotRexButCaesar wrote:
Thu Apr 08, 2021 6:56 pm
[*] sulphur (get it right devs :twisted:)
Both writings are correct English.
"sulphur" seems to be british and "sulfur" american
If You find typos, my mobile is an uncontrollable beast

GrumpyJoe
Filter Inserter
Filter Inserter
Posts: 395
Joined: Fri Apr 06, 2018 7:10 pm
Contact:

Re: Sort icons by their position in the crafting menu

Post by GrumpyJoe »

Alumin(i)um
chchch :twisted:

Sachertorte
Burner Inserter
Burner Inserter
Posts: 9
Joined: Wed Sep 06, 2017 2:53 pm
Contact:

Re: Sort icons by their position in the crafting menu

Post by Sachertorte »

ssilk wrote:
Fri Apr 09, 2021 5:25 am
This is very hard to be fixed, because the internal name will not change anymore, but the displayed name is translated.

The sorting routine must do the same as the display-routine: scan over the name, pick out the icons, lookup the translation for this icon, and replace it with the icon. Then it can start to sort. For some long lists will influence the performance hard.
If the code to create a stone wall icon, for example, is [item=stone-wall] in English regardless of client language (I assume "stone-wall" is the 'internal name'), surely alphabetising this syntax by position in the crafting menu would replace looking up that item's name in the client language? It might be a heavier operation but if that's correct then it's at least not additive.
jodokus31 wrote:
Fri Apr 09, 2021 7:49 am
ssilk wrote:
Fri Apr 09, 2021 5:25 am
NotRexButCaesar wrote:
Thu Apr 08, 2021 6:56 pm
[*] sulphur (get it right devs :twisted:)
Both writings are correct English.
"sulphur" seems to be british and "sulfur" american
I'm British and I have a Master's degree in chemistry - sulfur is the 'correct' spelling and it brings me unending pain

User avatar
NotRexButCaesar
Filter Inserter
Filter Inserter
Posts: 894
Joined: Sun Feb 16, 2020 12:47 am
Contact:

Re: Sort icons by their position in the crafting menu

Post by NotRexButCaesar »

ssilk wrote:
Fri Apr 09, 2021 5:25 am
NotRexButCaesar wrote:
Thu Apr 08, 2021 6:56 pm
[*] sulphur (get it right devs :twisted:)
Both writings are correct English.
I know, it was sarcasm.
Sarcasm and insults are generally neither helpful nor appreciated.
You never know what type of day someone else is having.

Post Reply

Return to “Ideas and Suggestions”