|
||||
|
![]() |
#1 |
Minors (Double A)
Join Date: Mar 2015
Posts: 101
|
How does Ethnicity percent work/does it do anything
I'm working on creating some nations that I want to have a nice mix of diversity in the names coming out of them. However, it appears that when OOTP creates players from these nations, it ONLY looks at the ETID in the nation header, and not at the ethnicity percent below it.
As a test, I created a nation like this: <NATION id="263" name="Sagittaron" pop="1700000000" etid="2" capid="95470" gender="0" bbqual="2" abbr="SAG" dem="Sagittaronese" time_zone="0" observes_dst="0"> <ETHN_PCTS> <ETHN_PCTS etid="2" pct="50" /> <ETHN_PCTS etid="0" pct="50" /> </ETHN_PCTS> So the header ethnicity is Japanese, but the percents are 50/50 Japanese and American. In theory, shouldn't this create 50% Japanese named/ethnic players and 50% American named/ethnic players, or am I completely misunderstanding what those lines are supposed to do? Because when I generated the players (after-reloading all the databases and everything), it only generated players with Japanese names from that country. And when I go into the Nation Editor, it only shows Japaneese as 100%, with no way that I can figure out to add another ethnicity. |
![]() |
![]() |
![]() |
#2 |
Minors (Double A)
Join Date: Mar 2015
Posts: 101
|
So for anyone wondering, I figured it out. It turns out the tags changed sometime between 2020 and 2022 for the ethnicity percentages.
In previous versions, this would have been correct, as it is how my transferred save's world xml file looks: <ETHN_PCTS> <ETHN_PCTS etid="2" pct="50" /> <ETHN_PCTS etid="0" pct="50" /> </ETHN_PCTS> However, in this year's world xml file, it looks like the inline tags, dropped the S: <ETHN_PCTS> <ETHN_PCT etid="2" pct="50" /> <ETHN_PCT etid="0" pct="50" /> </ETHN_PCTS> I did that, and it worked perfectly. I now see both ethnicities listed on the editor screen as 50/50, and by eyeballing it, it looks like generated players follow that ratio as well. This was probably a problem that is unique to me as I had done all the worldbuilding work on a previous version and wanted to save myself some time by copying and pasting, but hey, just in case anyone else runs into that problem, there you go. |
![]() |
![]() |
![]() |
Bookmarks |
|
|