City Bus Manager

City Bus Manager

评价数不足
Customize schools [School Bus & Student Transportation DLC]
由 [PeDePe] Niklas 制作
This guide will show you how you can customize schools and the school hours for a region, country or even a specific school.
   
奖励
收藏
已收藏
取消收藏
Overview
You can customize school settings and school hours of regions, countries or specific schools. Therefore you can find all config files in ".../steamapps/common/CBM/CBM_Data/Maps/Schools". All config files are json files and can be edited easily.

If you change the settings, you have to restart the game. The changes will also affect existing savegames.
General
In the "general.json" you can configure the following settings:

{
"schoolsPerTile": 0.75,
"unlockAllSchools": false,
"filterSchoolsAtMapBorder": true,
"maxSchoolsPerSchoolGroup": 4
}

Explanation of the parameters:

- Schools per tile: For every tile in the savegame, this number of schools should be unlocked at the beginning. So with the default value, you would start with 3 unlocked schools, if you have 4 tiles.
- Unlock all schools: All schools should be unlocked immediately. This overrides the Schools per tile setting.
- Filter schools at map border: Normally, schools at the map border are disabled, because the area, where some students would be living, isn't unlocked yet. You can change this, if you would like to have schools at the border of the map.
- Max schools per school group: Schools that are nearby are grouped. If a school group has too many schools, it will be disabled to avoid too complicated timetables and routes.
School hours
The school hours are loaded in this order:

1. Check if there are school hours for this specific school.
2. If not, check if there are school hours for the country of the savegame.
3. If not, take school hours from the region of the savegame.

Regions and Countries

In CBM, the world is split into regions and countries. There are two config files for them:

1. "region-schools.json" contains all school hours for a specific region.
2. "country-schools.json" contains all school hours for a specific country.

You can find the names of them in the Maps folder. There is a folder for every region. Inside the folder, there are many .csv files, these are the names of the countries. It is important, that you write the name exactly like in the folder name or file name (without .csv). The name is case insensitive.

The json file has the following content per region or country:

{
"name": "central-europe",
"startToleranceMinutes": 20,
"endToleranceMinutes": 20,
"startTimes": [
{ "time": "07:30", "percentage": 70 },
{ "time": "08:15", "percentage": 30 }
],
"endTimes": [
{ "time": "12:45", "percentage": 40 },
{ "time": "15:15", "percentage": 40 },
{ "time": "16:00", "percentage": 20 }
]
}

Explanation of the parameters:

- Name: Name of the region / country
- Start / End Tolerance Minutes: For every start / end time, a specific school can randomly start / end this many minutes before or after the specified time.
- Start / End Times time: The time at which school usually starts / ends. They are clamped between 03:00 and 22:00. Between 23:00 and 03:00 there mustn't be a school start or end.
- Start / End Times percentage: The percentage of students who have to arrive / leave at that time.

Hints:
- If there are more than 2 start or end times, not all schools will have all start and end times, but a few of them will be selected randomly.

Explanation of this example:

In Central Europe the schools can start between 07:10 and 07:50 for the first lesson where about 70% of the students will arrive. 30% of the students will arrive at the second lesson which will start between 07:55 and 08:35, depending on the specific school.
40% of the students will leave between 12:25 and 13:05. The others have school in the afternoon, so 40% will stay until 14:55 to 15:35 and 20% until 15:40 and 16:20.


Specific School
You can also add the school hours for a specific school. You can find the config file in "custom-schools.json".


{
"schools": [
{
"name": "Gymnasium Trossingen",
"numberOfStudents": 300,
"startTimes": [
{ "time": "07:30", "percentage": 80 },
{ "time": "08:20", "percentage": 20 }
],
"endTimes": [
{ "time": "11:45", "percentage": 25 },
{ "time": "12:35", "percentage": 30 },
{ "time": "15:35", "percentage": 25 },
{ "time": "17:25", "percentage": 20 }
]
}
]
}

Explanation of the parameters:

- Name: Name of the school. The name must match exactly with the name ingame.
- Number of students: The number of students who will take the bus to school. There is an upper limit of 500.
- Start / End Times time: The time at which school starts / ends. They are clamped between 03:00 and 22:00. Between 23:00 and 03:00 there mustn't be a school start or end.
- Start / End Times percentage: The percentage of students who have to arrive / leave at that time.
Remove school
If there is a school on the map which doesn't exist or you don't want to have ingame, you can remove it. There is a "schools-blacklist.txt" config file. In every line you can write a word, that should be ignored. So if a school name contains one of the words in the blacklist, it won't be shown ingame.