Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding more than six districts (regions) - possible?
#2
(08-22-2022, 09:14 PM)JC_Denton Wrote: I've been doing some more modding, figuring out how to change more things, and I recently figured out how to change district names.  I came up with a nice list:


However, only the first six show up in game.  I'm guessing that means there's a hard-coded limit?

You are correct. There is a hard-coded limit, as it's designed to work one for each continent.

Quote:I'm also reminded of the sub-districts feature bounty (https://www.ventdev.com/forums/showthread.php?tid=3871), and while it would be cool to be able to break things down more in reports (Asia -> Middle East -> Jordan, for instance), I'm wondering if being able to have more districts would solve half the annoyance with a tenth of the effort?  E.g. in the traditional world map, splitting Asia into two or three top-level districts would both help with the autopopulation shipping costs (#95) and allowing popularity to be set a bit more granularly (#90).

Discussion of bounties should remain on the bounty pages. That's one of the perks of contributing.

But in short, the sub-regions bounty removes the hard-coded limits to the districting system, thus allowing for more premade districts defined in the xml files. Case in point, you already described sub-regions in your example, "splitting Asia into two or three top-level districts." If you're splitting a continent into three, you're making sub-regions of that greater region...

So you pretty much just described sub-regions and how they'll be implemented in the game.

Quote:I'm also not really sure if it's a bug or a missing feature that there seems to be a limit of 6 regions.  Not a big problem for me, I had a list of six regions before having the idea to just add more in the XML, but maybe an alternative way to go about that bounty.

Continents were hard-coded into the game. They were moved to XML at some point in the last 6 years so translators could translate them. I did not originally design the game for translating, nor was it designed to add more than 6 continents. As a side effect of that, I started allowing people to change the names of them for regional maps.

The sub-region system simply allows for more districts in the game. Instead just a predefined Asia group (id=5), we'll have a predefined Middle East (id=7), South East Asia (id=8), and North Asia (id=9), and all of those will still be a part of the current Asia group (id=5). This will likely be done by adding a sub-region variable to the city.xml file. In game, it'll work like any other district. Work wise, it's practically the same amount of effort as adding additional regions to the system, except now we'll be able to support 2 regions per city listing... And then of course, we'll have a few more reports generated based off sub-regions.
"great writers are indecent people, they live unfairly, saving the best part for paper.
good human beings save the world, so that bastards like me can keep creating art, become immortal.
if you read this after I am dead it means I made it." ― Charles Bukowski
Reply


Messages In This Thread
RE: Adding more than six districts (regions) - possible? - by Eric.B - 08-23-2022, 12:22 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)