1,744
edits
Changes
Jump to navigation
Jump to search
Supported trailers are now defined at one place: ''in '''traffic_vehicle''' by defining the whole trailer chain'' (previously it was combination of per vehicle/trailer type + per Parked vehicle/trailer)Related attributes in attribute '''traffic_trailerallowed_trailer''', '''traffic_vehicle_type''' and '''traffic_trailer_type''' are is now obsoletealso interpreted as a trailer chain definition. Partial backward compatibility is provided (more complex trailer configurations may not be created correctly using old attributes)
Parked <code>trailer_chains[]: "semi_trailer"</code> - the vehicle/will have one trailer attribute of type '''allowed_trailersemi_trailer''' is now also interpreted as a trailer chain definition.
{{Note<code>trailer_chains[]: "traffic_trailer.first | traffic_trailer.middle 2-4 |Attribute '''allowed_trailer_count'traffic_trailer.last"</code> - trailer chain with specific elements, 'traffic_trailer.middle' is now obsolete, since the trailer count is determined from trailer chain automaticallycan occur 2-4 times.}}
→Traffic data
== Traffic data ==
=== Trailer chains Parked vehicles/trailers ===
{{Note|Support for wildcards has been removed to avoid the unnecessary complexity.}}{{Tip|If you have used (now obsolete) attribute Attribute '''allowed_tractorallowed_trailer_count'''is now obsolete, since the similar functionality can be achieved by setting '''spawn_ratio: 0.0''' for trailers which have been using it. This way, they won't be chosen for any vehicle unless explicitly set in '''trailer_chains'''.}} Each trailer chain element can be specified either by trailer type name (a random trailer model of that type will be spawned)or directly by traffic trailer unit name. Optionally, for each element, the minimum and maximum count of occurrence can be specified. Elements and counts are separated by '|'. '''Examples:''' <code>trailer_chains[]: "semi_trailer"</code> - the vehicle will have one trailer of type '''semi_trailer''' <code>trailer_chains[]: "traffic_trailer.first | traffic_trailer.middle 2-4 | traffic_trailer.last"</code> - is determined from trailer chain with specific elements, 'traffic_trailer.middle' can occur 2-4 timesautomatically.}}
=== Spawn density rules ===
</pre>
=== Parked vehicles/trailers Trailer chains === Supported trailers are now defined at one place: ''in '''traffic_vehicle''' by defining the whole trailer chain'' (previously it was combination of per vehicle/trailer type + per vehicle/trailer)Related attributes in '''traffic_trailer''', '''traffic_vehicle_type''' and '''traffic_trailer_type''' are now obsolete. Partial backward compatibility is provided (more complex trailer configurations may not be created correctly using old attributes) {{Note|Support for wildcards has been removed to avoid the unnecessary complexity.}}{{Tip|If you have used (now obsolete) attribute '''allowed_tractor''', the similar functionality can be achieved by setting '''spawn_ratio: 0.0''' for trailers which have been using it. This way, they won't be chosen for any vehicle unless explicitly set in '''trailer_chains'''.}} Each trailer chain element can be specified either by trailer type name (a random trailer model of that type will be spawned)or directly by traffic trailer unit name. Optionally, for each element, the minimum and maximum count of occurrence can be specified. Elements and counts are separated by '|'. '''Examples:'''
=== Trailer type and storage renaming ===