Segmented Unit entity relationship

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Gweneph
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

Segmented Unit entity relationship

Post by Gweneph »

I'd like segmented units and their segments to be easily related to each other.

right now as a work around you can find entities filtered and then use unit_number to relate them since it seems like they are consecutive starting from the head. But this seems brittle, which is worrisome. It's also probably less performant than just having some api relationship like segments/segmented_unit.
StrangePan
Factorio Staff
Factorio Staff
Posts: 217
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: Segmented Unit entity relationship

Post by StrangePan »

A proper API for segmented units is in development, and a simple technique for correlating segments and segmented units together is included.
berggen
Inserter
Inserter
Posts: 20
Joined: Tue Sep 01, 2020 7:12 pm
Contact:

Re: Segmented Unit entity relationship

Post by berggen »

StrangePan wrote: Sun May 04, 2025 3:37 pm A proper API for segmented units is in development, and a simple technique for correlating segments and segmented units together is included.
I'm hoping that also comes with ability to read/modify their territory?
StrangePan
Factorio Staff
Factorio Staff
Posts: 217
Joined: Fri Dec 07, 2018 3:41 pm
Contact:

Re: Segmented Unit entity relationship

Post by StrangePan »

berggen wrote: Tue May 06, 2025 3:47 pm I'm hoping that also comes with ability to read/modify their territory?
Of course!
DataCpt
Burner Inserter
Burner Inserter
Posts: 14
Joined: Mon Jan 20, 2025 11:16 pm
Contact:

Re: Segmented Unit entity relationship

Post by DataCpt »

I wasn't expect rw on their territory, that opens up a lot of possibilities!

Could I ask that the behaviour I erroneously called a bug at 126979 be changed so that it's possible to always fire an even upon their removal?
eugenekay
Filter Inserter
Filter Inserter
Posts: 456
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Segmented Unit entity relationship

Post by eugenekay »

....Hype building for a way to properly implement a Demolisher Zoo by setting a custom Territory! :twisted:
Post Reply

Return to “Modding interface requests”