Technology graph visualization

Place to get help with not working mods / modding interface.
RedRafe
Inserter
Inserter
Posts: 34
Joined: Thu Nov 11, 2021 12:21 pm
Contact:

Technology graph visualization

Post by RedRafe »

Hello,

I have a question about how techs are rendered in the thechnology tree UI.

From what I've gathered from the other topics (viewtopic.php?p=589068&hilit=technology+order#p589068), this is roughly how techs are sorted:

- ordering by the required science packs (most expensive pack used)
- (if the same then) ordering by the technology-unit-cost (it completely ignores the time costs)
- (if the same then) ordering by the technology-order
- (if the same then) ordering by the technology-name

However, in this proof of concept mod, 2 techs are sorted in an order I cannot predict/modify via mod:
tech-tree-order.png
tech-tree-order.png (704.97 KiB) Viewed 43 times
I would have expected "electric-weapons-damage-2" & "military-5" to be inverted in the graph (should have EWD-2 on the left of M-5), as they also are ordered correctly on the left side list..

The two techs are basically declared as:

Code: Select all

{
  {
      name = 'military-5',
      order = 'b-b-a',
      unit = { cost = 500, ingredients = { RGMBYW} },
  },
  {
      name = 'electric-weapons-damage-2',
      order = 'b-a-a',
      unit = { cost = 500, ingredients = { RGMBYW } },
  }
}
I'm leaving a copy of the src mod to test this (requires SA + this mod) if somebody can test this behavior and cast a light on how the tech tree is displayed, even if the answer is a simple "the tech graph follows different rules to organize techs" and there's simply nothing to be done to obtain the result.

Thanks
Attachments
factorio-1.5_0.1.0.zip
(58.81 KiB) Downloaded 15 times
Post Reply

Return to “Modding help”