Traffic rules

Bald ist es soweit: Unsere nächste Leitstellenfahrt findet statt. Weitere Informationen findet ihr hier.

  • The basis of road traffic is traffic rules. They determine how individuals behave in all road traffic situations. In OMSI, they are defined during the development of a map.

    1. Preparation

    In order to set traffic rules on maps, you need to use the OMSI map editor.

    For more on the OMSI editor, consult the entry "start parameters".


    To set traffic rules, open the tab "Traffic Rules" on the right side of the editor. You then will be able to see paths in the map editor window.


    If traffic rules have been assigned to a path section, they will appear in a different colour.


    You can now set traffic rules for each AI group. To do so, select the AI group for which you want to set the traffic rules.

    2. Set traffic rules

    There are 13 different options for traffic rules in OMSI. The following chapters will give more detailled information on each option.


    To assign a traffic rule on a road section, select the respective traffic rule. In a second step, click on the paths on whose the traffic rule should be applied. It is not possible to set multiple rules by one mouse-click. To apply the traffic rules, firstly select an AI group. You can only select the groups which have been created in the file unsched_vehgroups.txt, which is located in the map folder.

    2.1. Speed Limits

    As a result of this traffic rule, the paths will turn yellow (if they are not set to the defined speed by the textbox) or red (if they are set to the defined speed by the textbox).


    This option sets the maximum speed allowed on the selected path. If no speed is set, the AI vehicles will go as fast as they can. However, the AI already adapt their speed by the traffic conditions (e.g. in narrow curves or if other vehicles are in front of them), so that the speed usually doesn't exceed 60 km/h [37 mph] in cities. If you want to change the speed limit for a path, use the textbox which states 30 at every start of the editor.

    red = 50 km/h (current speed), yellow= 30 km/h

    2.2. Overtaking Prohibited

    This option prevents AI vehicles from changing paths on roads with more than one patch (e.g. on motorways, main roads in big cities,...).


    On the red paths, AI does not change lanes.

    2.3. No Unscheduled Traffic

    If this option is assigned to a path, no AI traffic will be circulating on this path. However, be aware that you should be careful when assigning this option to the paths.


    If a scenery looks like in the given example, AI vehicles are still able to drive on the path:

    =


    Since the paths on the intersection have no traffic rules, the AI vehicles don't know that there are blocked paths after the intersection. As a result, they will circulate - as the only option - on the blocked paths.


    To prevent this, the correct way would be like this:

    =


    In front of the intersection, in front of every new path, the AI checks its destination and if they are allowed to use paths or not.

    Theoretically, in the given example, AI could use the paths 1) straight ahead or 2) turn right and use the path into the dead end. Since the AI is not allowed to use the dead end, it will continue straight ahead. In the situation above, the AI doesn't have another option.

    Before the intersection, before every new path, the AI “thinks”: Where do I go? Where am I not allowed to drive?

    2.4. Unscheduled Traffic Density

    This option will turn the paths lightblue to dark blue:


    This chapter is about traffic conditions, regulating the density of traffic (see also: Traffic density and Timed Traffic). The following options are available: Depending on the selected option, more or fewer cars will spawn.

    1. Extreme Low
    2. V. Low (very low)
    3. Low
    4. Normal
    5. High

    2.5. Higher Priority & Lower Priority

    This option turns the paths red (paths of the currently selected option) or yellow (paths of other options).


    These options options set the priority rules. If none are set, the AI will act after the basic principe of "right of way".


    An example of the intersection where the vehicles from the junction have no right of way:


    The priority is set like that:

    1. Higher Priority
    2. <no colour> - middle priority (standard)
    3. Lower Priority

    As "higher priority" is now selected on the right of the editor, the "higher priority" paths now appear in red; "lower priority" paths appear in yellow. If you now select "Lower Priority", the colours would be reversed.


    2.6. Cars, Trucks, Buses (without schedule) & Cabs prohibited

    With this option, the paths turn red or remain colourless.


    This option bans the above stated AI vehicles on the selected paths. There is also an option to deactivate selected vehicle groups. If you have an AI group with trucks only, you can select this AI group in the list above the traffic rules and deactivate the paths afterwards.

    For more on this, consult the Wiki entry AI traffic.

    3. Undo traffic rules

    If you want to undo the assignment of a traffic rule on a path section, press SHIFT + LMB on the respective path. The option you want to undo needs to be selected beforehand.

    4. Additional information

    If you want to select multiple little paths and apply the same rule on them, select them by holding down LMB and hover with the cursor over them. All paths which have been selected, will be set to these traffic rules. It works the same way if you want to remove the traffic rules (see chapter 3 above).

Teilen

CC BY-SA 4.0

Sämtliche Inhalte unseres OMSI-Wiki sind unter Creative Commons Namensnennung & Weitergabe unter gleichen Bedingungen (CC BY-SA 4.0) lizensiert.