Add Point Fix / "Region regenerate" command
Closed this issue · 2 comments
Goosius1 commented
- With current code sometimes there are locations which are important to a server, which get cut in two by province borders.
- For example on an Earth map the city of Rome might be cut in two, which might cause some fragile players to have complete melt downs.
- Since the pharmaceutical supply of copium is generally running low these days, this feature offers a way forward. And also because even mentally well players do sometimes like to roleplay real historical cities.
- The feature is a "region regenerate" command
- e.g. `/tpra region regenerate 100, 10 -2323,4454'
- The function will find the topmost region at that point
- It will use that region file except for
- First all the provinces which are mostly in the given square radius (100) will be wiped.
- Then one province will be created at the given point, and starting at the given size(10)
- Then the remainder of the province homeblocks will be created
- Then the job will proceed as normal.
- All affected provinces then need 2 things
- The prices need to be recalculated
- Land validation needs to be done on them.
Goosius1 commented
This feature does a lot of the things that the "protection regions" ticket does. So if completed, it would reduce the priority of that other ticket.
Goosius1 commented
- On reflection, I don't think this is really the optimal solution because:
- Server owners would likely seek to do it after they had launched
- But that wouldn't really be usable due to the resources requirement, without extensive changes.
- Also bad things could happen to the shapes on the edges of the regions
- Instead, it may be easier and more usable to require server to specify the "protected locations" in each region file before region generation (and their players could even send in the locations they wanted protected, thus getting them involved too even before launch). Then we simply place the first homeblocks there, thus protecting the locations. This is tracked in #63