In the docs it say: https://forums.factorio.com/wiki/inde ... Item#order
order Is used to order items in inventory (when sorting is enabled) and to sort recipes in crafting screen.
order = "a-b-c"
But in reality there is
order = "a[items]-b[basic-mining-drill]"
What does that in the square brackets mean? Is it a link to the item-subgroup or how does it work?
Prototype/Item/Order
Prototype/Item/Order
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Re: Prototype/Item/Order
I don't think it's actually changed any from before, though I could be wrong I'll check when I get the chance, it should still just be based on the order of the strings. All characters have a numeric code (since computers only understand 1/0s this is obvious when thought about) and that is what is compared. You can google 'ascii table' if you want to see the actual numbers.
I think the new format is just a 'better' formatting standard, but again I'll check the code when I get the chance to see if it has some special significance in the sorting.
I think the new format is just a 'better' formatting standard, but again I'll check the code when I get the chance to see if it has some special significance in the sorting.
Re: Prototype/Item/Order
Yes, it is still same, but these brackets are just new standard.
Consider this list
There is also other change, the ordering of items is determined by these priorities
Edit: see https://wiki.factorio.com/Types/Order for a better explanation.
Consider this list
- a[items]-b[basic-mining-drill]
- a[items]-c[some-other drill]
- b[x-thing]-a[tralala]
- b[x-thing]-b[some other tralala]
- a-b
- a-c
- b-a
- b-b
There is also other change, the ordering of items is determined by these priorities
- 1) Item group
- 2) Item subgroup
- 3) Item order string
- 4) Item name
Edit: see https://wiki.factorio.com/Types/Order for a better explanation.
Re: Prototype/Item/Order
Hi.
i try to make a mod for factorio but the node order make me crazy.
I do not understand how it works, if someone can explain me... I will be eternally grateful because i can't use it
For example:
I define 4 items and I order just like that:
And when I play, the items are placed just like that:
i try to make a mod for factorio but the node order make me crazy.
I do not understand how it works, if someone can explain me... I will be eternally grateful because i can't use it
For example:
I define 4 items and I order just like that:
Code: Select all
order = "a[inserter]-a[item1]",
order = "a[inserter]-b[item2]",
order = "b[fast-inserter]-a[item3]",
order = "b[fast-inserter]-b[item4]",
- Item 1
- Item 3
- Item 4
- Item 2
Re: Prototype/Item/Order
McGuten wrote:Hi.
i try to make a mod for factorio but the node order make me crazy.
I do not understand how it works, if someone can explain me... I will be eternally grateful because i can't use it
For example:
I define 4 items and I order just like that:
And when I play, the items are placed just like that:Code: Select all
order = "a[inserter]-a[item1]", order = "a[inserter]-b[item2]", order = "b[fast-inserter]-a[item3]", order = "b[fast-inserter]-b[item4]",
- Item 1
- Item 3
- Item 4
- Item 2
Please someone can help me? i don't understand how to work "Order"
Re: Prototype/Item/Order
Sort-Order is random or luck however you want to call it.i had different sortings (recipe-screen) in same mod-version and different savegames. (sortings works surely not how you think to know)
you can use the rules, and hope in future this system works better.
make your item/entity-names in correct order and try this out like
name="inserter-a1"
name="inserter-slow1"
name="inserter-fast1"
name="inserter-fast2"
name="ins-n3"
i assume that -slow pops up at last place and "ins-" at first - against other order-rules ... so better avoid disorder from the nameing itself
it's not really clear if factorio uses the entity, item or recipe-order-rules ...
things in [] are ignored ...
you can use the rules, and hope in future this system works better.
make your item/entity-names in correct order and try this out like
name="inserter-a1"
name="inserter-slow1"
name="inserter-fast1"
name="inserter-fast2"
name="ins-n3"
i assume that -slow pops up at last place and "ins-" at first - against other order-rules ... so better avoid disorder from the nameing itself
it's not really clear if factorio uses the entity, item or recipe-order-rules ...
things in [] are ignored ...