Page 1 of 1

Town zoning not working or am i doing something wrong?

Posted: 12 Jan 2022 18:12
by temporal8
Hi, I'm still working on my townset and after configuring the different zones I see that it doesn't work, is the code wrong? (JGRPP 0.43)

The image shows the city center, however....

Red circle: availability_mask:[bitmask(TOWNZONE_OUTSKIRT, TOWNZONE_OUTER_SUBURB), ALL_CLIMATES | bitmask(ABOVE_SNOWLINE)];
Blue circle: availability_mask: [bitmask(TOWNZONE_INNER_SUBURB), bitmask(CLIMATE_TEMPERATE, CLIMATE_ARCTIC, ABOVE_SNOWLINE, CLIMATE_TROPICAL)];
Yelow circle: availability_mask: [bitmask(TOWNZONE_OUTER_SUBURB, TOWNZONE_OUTSKIRT), bitmask(CLIMATE_TEMPERATE, CLIMATE_ARCTIC, ABOVE_SNOWLINE, CLIMATE_TROPICAL)];

Image




Assuming the zones don't work in the editor ... other example: A Skycraper far from center... this time not in the editor, it´s ingame.... availability_mask:[bitmask(TOWNZONE_CENTRE), ALL_CLIMATES | bitmask(ABOVE_SNOWLINE)];

Image

Re: Town zoning not working or am i doing something wrong?

Posted: 12 Jan 2022 19:46
by Wahazar
I suggest to check if custom town zones are enabled or disabled (in settings).

Re: Town zoning not working or am i doing something wrong?

Posted: 12 Jan 2022 21:13
by temporal8
McZapkie wrote: 12 Jan 2022 19:46 I suggest to check if custom town zones are enabled or disabled (in settings).
Forget to clarify, yes, it is disabled.

I tested in Openttd 1.10.1 as well.

Re: Town zoning not working or am i doing something wrong?

Posted: 13 Jan 2022 21:35
by Wahazar
Try citymania client to check townzones.

Re: Town zoning not working or am i doing something wrong?

Posted: 14 Jan 2022 05:42
by PikkaBird
I don't think you're doing anything wrong. The final town zone when the town has finished expanding is not necessarily the same as the town zone when the building was placed.
McZapkie wrote: 13 Jan 2022 21:35 Try citymania client to check townzones.
As long as newgrf_developer_tools are turned on, you can inspect the building from the Land Area Information window and see the town zone of the house, along with all other vars.
Unnamed, 1940-08-03.png
Unnamed, 1940-08-03.png (285.13 KiB) Viewed 3560 times

Re: Town zoning not working or am i doing something wrong?

Posted: 14 Jan 2022 13:46
by Eddi
also, choosing which building gets placed works slightly different in each case:
  • initial town placement
  • natural town growth during gameplay
  • using "fund new buildings" during gameplay
  • pressing the "grow town" button in scenario editor