Page 1 of 1

[2.0.12] Demolisher API (territories & spawning?)

Posted: Wed Oct 30, 2024 5:42 pm
by Oarc
Hello,

I tried to search and didn't see another request yet. But at some point, it would be nice to get access to Demolisher territories for modding purposes.

- Ability to tell what territories are on the map, if a chunk or map position is within a territory, if the territory is claimed or not.
- Maybe runtime ability to remove and create or reset territories?

Thanks!

Re: [2.0.12] Demolisher API (territories & spawning?)

Posted: Thu Oct 31, 2024 2:25 am
by ahicks
We have to rethink how we do combat so we won't need this for a long time, but in order to expose demolishers to our players reasonably we will need to either get it via this or developing some lua-side approximated algorithm.

Re: [2.0.12] Demolisher API (territories & spawning?)

Posted: Thu Nov 14, 2024 1:35 pm
by zanven
i would also like a way to spawn demolishers with quality.

When you try to create entity by type with a quality property and its a demolisher it doesnt work and is an invalid luaEntity object while it does work with buildings / biter nests etc.

if i want to replace a demolisher with a new one, will the territory have a few ticks grace before unlocking so i can "delete then create replacement" ?

Will the spawning of units call for territories instead be a totally new interface so you spawn entities to a territory and the territory controls placement. i.e create_territory_unit(name,territory,force,quality)