The International Simutrans Forum

 

Author Topic: Introducing regions  (Read 3803 times)

0 Members and 1 Guest are viewing this topic.

Offline passengerpigeon

  • *
  • Posts: 94
  • Languages: EN, ES, FR
Re: [Patch] Ignore regions
« Reply #35 on: June 25, 2021, 05:24:33 PM »
I created a "ignore regions" option which is similar to the ignore climatic setting.

You can test it in the following branch:
https://github.com/Ranran-the-JuicyPork/simutrans-extended/tree/ignore-regions
However, this branch is a fork of the branch I include from my standard as it was a hassle to conflict and test.
Please check after the incorporationg from the standard is completed or at the same time.

Although I can't compile from source, what seemed to work for me in the default build was changing the savegame version from 120.7 to 120.4 (in a clone of my main save). Now I've got some Cambria and Kernow on the map. Will this impact the stability of the save in other ways?

Edit: OK, turns out the regions HAD appeared in my save all along without changing the version. It was just a few isolated bits of land that weren't Albion, so I didn't notice, and they didn't have the right climate for a coal mine to be built.
« Last Edit: June 25, 2021, 06:08:50 PM by passengerpigeon »

Online jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20807
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Introducing regions
« Reply #36 on: June 26, 2021, 12:50:22 PM »
I created a "ignore regions" option which is similar to the ignore climatic setting.

You can test it in the following branch:
https://github.com/Ranran-the-JuicyPork/simutrans-extended/tree/ignore-regions
However, this branch is a fork of the branch I include from my standard as it was a hassle to conflict and test.
Please check after the incorporationg from the standard is completed or at the same time.

An interesting option! I will have a look at that after the deployment of the merge from standard work and we have had a chance to assess whether that is working well.

Offline Ranran

  • Devotee
  • *
  • Posts: 1549
  • Languages: ja
Re: Introducing regions
« Reply #37 on: July 07, 2021, 09:43:06 AM »


I came up with displaying region names on the minimap. But unfortunately it wasn't as successful as it seemed, exposing problems in the region.


First of all, the reason why I think that the region name display function failed is that it is difficult to know which region the city is included in, as you can see from the comparison of the city list. The region name is displayed in the center of the region.
For example, Bovchester belongs to Albion, not Kernew.

This works fine with new maps. But in older maps, the region feature destroys it by overwriting the map's industrial structure, as is sometimes reported.


I think this is caused by three issues:
(1) The process of setting the region for the old map is incorrect.
For example, demo save is an old save, but a region is assigned when loading. However, many of the coordinates that indicate the range of each region are outside the map. Therefore some regions do not appear in demo.sve. As a result, the region required for a particular industry chain may not exist in the map.
This means that the old map is incompatible with the new system, which causes industrial stagnation and is sometimes reported as a bug.


(2) The range may be very narrow like the Kernew region in the above example.
If the region is all inside the ocean, it is synonymous with non-existence...


(3) There is no processing to make up for the above two errors. For instance, Exceptionally allow the construction of industry even if no suitable area is found.
(Automatically instead of manual operation like the patch submitted above.)
« Last Edit: July 07, 2021, 09:54:02 AM by Ranran »

Offline wlindley

  • Devotee
  • *
  • Posts: 1071
    • Hacking for fun and profit since 1977
  • Languages: EN, DE
Re: Introducing regions
« Reply #38 on: July 07, 2021, 12:21:43 PM »
Ranran -- Very nice! Could regions in that minimap be colour-coded, similar to route colours in the "Networks" view?

Offline Ronin1996

  • *
  • Posts: 284
  • Languages: EN, some ES, learning JP
Re: Introducing regions
« Reply #39 on: July 08, 2021, 01:40:40 PM »
It would certainly make the pakset a whole lot easier to know where the regions are on a map instead of searching for them manually clicking the landscape.