orders ?

Place to get help with not working mods / modding interface.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

orders ?

Post by binbinhfr »

Hi,

I really have problems to understand how this "order" feature works...

example :

Code: Select all

  {
    type = "mining-tool",
    name = "steel-axe",
    icon = "__base__/graphics/icons/steel-axe.png",
    flags = {"goes-to-main-inventory"},
    (...)
    subgroup = "tool",
    order = "a[mining]-b[steel-axe]",
    flags = {"goes-to-main-inventory"},
    (...)
  }
can someone explain me this order example, and what result is expected ?

thanks.
My mods on the Factorio Mod Portal :geek:
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: orders ?

Post by DaveMcW »

The text in brackets [] is ignored. So it really means:

["mining-tool"].order = "a-b"
["repair-pack"].order = "b-a"

So in the tool subgroup, mining-tool comes before repair-pack.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: orders ?

Post by binbinhfr »

but what does a and b means or stand for ?

And what does mean "a-a" ? or "a-k" ? or "b-b-a" ? you find these orders sometimes...

And if the brakets are useless, what is their meaning ??? because you always see them appearing...
My mods on the Factorio Mod Portal :geek:
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: orders ?

Post by DaveMcW »

It is simple alphabetical order.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: orders ?

Post by binbinhfr »

b-b-a is simple alphabet order ? well I must admit I still not understand.
My mods on the Factorio Mod Portal :geek:
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: orders ?

Post by DaveMcW »

Put the following strings in a spreadsheet:

a-b
a-a
b-b-a
b-c
b-b

Sort the column. The result is the final order.
Post Reply

Return to “Modding help”