Adoxa's "Territory" and "Zone" plugins
-
I can confirm that horizontal trade lanes work just fine. We’re using them in Broken Bonds.
As to the to subject at hand. We’ve been using the Territory plugin for a while, and the update is very much welcome. As always, adoxa, awesome stuff!
-
In my mod the Galileo System is not independent but devided as shown in the image (the blue circles are dark matter clouds, and the red line is the interterritorial border).
So when you enter from the Shikoku gate you’re in Kusari, and when you enter from the Colorado gate you’re in Liberty.
If this is the case, in any system (even if it’s crossed by multiple interterritorial borders), would it be possible to expand the territory plugin, or somehow different, to show a message when you enter another territory within the system?
-
Have you tried to add named zones which are named, for example “Galileo-System, Kusari” etc.?
-
I don’t think Zone is quite suited to this, but that’s more how it would work - entering the system would have the normal message, then it would show the territory. I think it could be specified something like:
[System] ; I hope a simple 2d-style border is enough. border = x1,z1, x2,z2[, ...] ; line segments of the border territory = Name ; actual name of this territory pos = x, z ; indicate which side of the border it's on territory_id = id ; id of another territory pos = x, z ; optional for the last ; a three-way split would duplicate each common path ; x1,z1 ; | ; x2,z2 ; / \ ; x3,z3 x4,z4 border = x1,z1, x2,z2, x3,z3 border = x1,z1, x2,z2, x4,z4 border = x3,z3, x2,z2, x4,z4 ```However, I still don't know if I actually want to do it…
-
adoxa wrote:
I don’t think Zone is quite suited to this, but that’s more how it would work - entering the system would have the normal message, then it would show the territory. I think it could be specified something like:
[System] ; I hope a simple 2d-style border is enough. border = x1,z1, x2,z2[, ...] ; line segments of the border territory = Name ; actual name of this territory pos = x, z ; indicate which side of the border it's on territory_id = id ; id of another territory pos = x, z ; optional for the last ; a three-way split would duplicate each common path ; x1,z1 ; | ; x2,z2 ; / \ ; x3,z3 x4,z4 border = x1,z1, x2,z2, x3,z3 border = x1,z1, x2,z2, x4,z4 border = x3,z3, x2,z2, x4,z4
However, I still don’t know if I actually want to do it…
About this, it may get buggy when the border lines overlap, see the image below (I apologize for not seeing this earlier). The game crashes or a third (nameless) territory would be created instead.
@adoxa
Anyhow, thanks for showing some detailed results regarding the code to specify the borders. Hope it doesn’t have bothered you too much? -
-
When you have two zones of the same name overlapping, you’ll still get the entered/left messages, like this
Entered Zone A
followed by
Entered Zone Afollowed by
Left Zone Afollowed by
Left Zone AThis is kinda annoying when you want to make a zone of particular shape (like a triangle, for example). Strangely though, zones with exactly the same size and shape do not trigger an entered message.
BTW does anyone know how to use the ‘MESH’ zone shape?
-
It works thanks again adoxa!