Why is the order different from the order string?

Place to get help with not working mods / modding interface.
Pi-C
Smart Inserter
Smart Inserter
Posts: 1757
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Why is the order different from the order string?

Post by Pi-C »

I've some problems regarding order strings for technologies. Everything is in the correct order in vanilla (ammo, fuel, repair):
vanilla.png
vanilla.png (84.75 KiB) Viewed 669 times
For some reason, the tech for repair sensors is placed between ammo and fuel when Nullius is used:
nullius.png
nullius.png (86.41 KiB) Viewed 669 times
The order strings of corresponding techs are the same. Why is the order in which the techs are displayed different?
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Rseding91
Factorio Staff
Factorio Staff
Posts: 15901
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Why is the order different from the order string?

Post by Rseding91 »

As far as I understand the order technologies are show in the graph has nothing to do with the order strings. They are placed into the graph by prerequisite and dependency, and then it tries to minimize line crossings.

So my guess is: the technology has different prerequisites or dependencies with the mod and so it gets moved to reduce line crossings.

Or, I could be completely wrong. What I do know is order isn't used anywhere in laying out technologies in the graph except that they are arranged in some initial order before they enter the graph logic.
If you want to get ahold of me I'm almost always on Discord.
Pi-C
Smart Inserter
Smart Inserter
Posts: 1757
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Why is the order different from the order string?

Post by Pi-C »

Rseding91 wrote: Sun Jan 08, 2023 3:54 pm So my guess is: the technology has different prerequisites or dependencies with the mod and so it gets moved to reduce line crossings.
That would make sense because Nullius has a completely different tech tree. Thanks for the info, I think I can ignore this issue now. :-)
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Post Reply

Return to “Modding help”