[2.1.13] [Modding] Technologies cannot be re-ordered with subgroup/order

Bugs that are actually features.
User avatar
snouz
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Sun Jan 03, 2021 6:01 pm
Contact:

[2.1.13] [Modding] Technologies cannot be re-ordered with subgroup/order

Post by snouz »

Hi,

I found that technologies should support "subgroup" and "order" for ordering, according to the api docs, but I tested it and it doesn't re-order the tech at all, even between 2 techs with the same science pack types.
08-06-2026, 13-35-56.png
08-06-2026, 13-35-56.png (240.47 KiB) Viewed 303 times
08-06-2026, 13-36-13.png
08-06-2026, 13-36-13.png (225.63 KiB) Viewed 303 times

Code: Select all

{
    type = "item-group",
    name = "moshine-tech",
    icon = "__core__/graphics/icons/category/unsorted.png",
    icon_size = 128,
    order = "zz"
  },
  {
    type = "item-subgroup",
    name = "moshine-tech-with-datacells",
    group = "moshine-tech",
    order = "e"
  },
Planet Moshine, GUI Unifier + 17 mods, contributed graphically and otherwise to 70+ mods
Rseding91
Factorio Staff
Factorio Staff
Posts: 17490
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.13] [Modding] Technologies cannot be re-ordered with subgroup/order

Post by Rseding91 »

Thanks for the report however this is not a bug and works how described. Your technologies have different costs - one takes 100 science packs and one takes 80. The one that takes 80 comes first because it takes less packs.

Technologies are ordered:

research-state < non-infinite < science-pack-cost < order-string < name
If you want to get ahold of me I'm almost always on Discord.
User avatar
snouz
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Sun Jan 03, 2021 6:01 pm
Contact:

Re: [2.1.13] [Modding] Technologies cannot be re-ordered with subgroup/order

Post by snouz »

Rseding91 wrote: Thu Aug 06, 2026 12:18 pm Thanks for the report however this is not a bug and works how described. Your technologies have different costs - one takes 100 science packs and one takes 80. The one that takes 80 comes first because it takes less packs.

Technologies are ordered:

research-state < non-infinite < science-pack-cost < order-string < name
Thanks for the response

The inclusion of subgroup and order (even on the type ancestor) suggest that these would overwrite this natural order, like they would for items, and it's what I was trying to do. Would that be an acceptable API interface request?
In any other case, I think the API docs should maybe reflect the hardcoded nature of the ordering (subgroup/order should be "overwritten" or a description should be written)
Planet Moshine, GUI Unifier + 17 mods, contributed graphically and otherwise to 70+ mods
Rseding91
Factorio Staff
Factorio Staff
Posts: 17490
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.13] [Modding] Technologies cannot be re-ordered with subgroup/order

Post by Rseding91 »

There are multiple places and ways things get ordered and as far as I know nothing in the documentation says the order that's used by this specific GUI.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”