How to change the new DefaultGameConfig for population generation (the lines code have some changes)
How can i change the range of age of student and the % of each gender
This is now controlled by the files in the "PopulationData" folder. A rough rundown of the new system was given in
You must be registered to see the links
.
Basically, the files in the "PopulationData/Groups" folder define groups of people. For example a family with two children. It defines what source template is used to generate the person and then assigns relationships between persons of a group.
The source templates are defined in "PopulationData/Sources". All groups in the base game will only refer to "StudentAny" as source, so it's enough to alter that file to change the gender ratio of students.
The parents of the group use either "AdultMaleFuta" or "AdultFemaleFuta", so you can also change the weight in those files if you want to increase or decrease the percentage of parent futas.
There are also single adults who use "AdultAny". Same with single students (orphans) who use "StudentAny".
The sources may delegate to other sources, but eventually they will end up at a source that delegates to a template from "PopulationData/Parameters". This is where things like stat ranges, age ranges, name source files, etc. are defined for the respective templates.
Last but not least, the scenario config file under "Config/DefaultGameConfig.xml" specifies how likely each group from "PopulationData/Groups" is to be used during population generation, so different configs may create different sociodemographic structures.