Changes

Jump to navigation Jump to search

Games/ATS/Modding guides/1.29

3,106 bytes added, 07:41, 10 November 2017
no edit summary
= Changes =
 
== New Nagiation and Data ==
 
New navigation algorithm uses detailed info from traffic lanes so it can take lane counts, direction and other things into consideration. Be careful to have correct navigation data in map.
 
It has some few value to compute weight of prefab roads, or other path segments, much like values for time evaluation of them. All are attributes of '''''map_data''''' unit (map_data.sii).
 
General values used by navigation:
* navigation_maximum_speed (25.0) - Maximum reasonable speed used for navigation computations (in m/s). Necessary due to scaling for best precision.
* navigation_prefer_small_wide_road_penalty (10.0) - Penalty applied to roads with more than one lane in a direction when using prefer_small_roads routing mode. Multiplicative.
* navigation_special_prefab_additive_penalty (1500.0) - Penalty in meters applied to paths going over special prefabs (e.g. gas stations) outside cities. Additive.
* navigation_special_prefab_additive_penalty_city (10000.0) - Penalty in meters applied to paths going over special prefabs (e.g. gas stations) in cities. Additive.
* navigation_gps_avoid_additive_penalty (20000.0) - Penalty in meters applied to paths going over items marked as "GPS Avoid". Additive.
 
Weights used for path finding:
* navigation_narrow_road_max_speed_usage (0.8) - Portion of maximal speed to use on narrow roads.
* navigation_road_max_speed_usage (0.9) - Portion of maximal speed to use on normal roads.
* navigation_city_or_slowtime_speed_penalty (0.25) - Penalty applied to speed when driving through city or slow time area. Multiplicative.
* navigation_semaphore_wait_duration (90.0) - Time cost of going through semaphore in game-time seconds.
* navigation_stop_wait_duration (60.0) - Time cost of going through stop sign in game-time seconds.
* navigation_turn_own_side_duration (15.0) - Time cost of turning to the own side (e.g. right in USA/continental, left in UK). Additive.
* navigation_turn_oposite_side_duration (45.0) - Time cost of turning to the oposite side (e.g. left in USA/continental, right in UK). Additive.
 
Weights used for time evaluation:
* navigation_time_narrow_road_max_speed_usage (0.8) - Portion of maximal speed to use on narrow roads - time calculation.
* navigation_time_road_max_speed_usage (0.9) - Portion of maximal speed to use on normal roads - time calculation.
* navigation_time_city_or_slowtime_speed_penalty (0.85) - Penalty applied to speed when driving through city or slow time area - time calculation. Multiplicative.
* navigation_time_semaphore_wait_duration (60.0) - Time cost of going through semaphore in game-time seconds - time calculation.
* navigation_time_stop_wait_duration (30.0f) - Time cost of going through stop sign in game-time seconds - time calculation.
* navigation_time_turn_own_side_duration (10.0f) - Time cost of turning to the own side (e.g. right in USA/continental, left in UK) - time calculation. Additive.
* navigation_time_turn_oposite_side_duration (30.0) - Time cost of turning to the oposite side (e.g. left in USA/continental, right in UK) - time calculation. Additive.
 
== Flares Data ==
507
edits

Navigation menu