Upgrading Older Scenarios

LOFT-Sim reads only the current file formats. A scenario written for an older version can still carry keys, sections, tags or spellings that have since been retired. This page lists each of them with what replaces it, file by file; the other pages of this section describe only what is valid today.

What happens to a retired form depends on the file:

  • In simulation_config.xml, demand_config.xml and operation_strategy.xml, and for the retired smoothing attributes and the <vehicle_types> section of additional.xml, it stops the file from loading. Most messages name the replacement.
  • In the airspace network, most retired tags load with one warning per element, and their values are ignored. A few retired network forms are errors instead; Airspace Network says which.
  • A few older forms still work, some with a warning, and a few are ignored without any message. Each is noted where it applies.

Find What Needs Changing

loft-sim validate -c path/to/config/simulation_config.xml

loft-sim validate reports retired forms in the simulation configuration, the demand file and the operation strategy. It reads neither the network nor the additional files: a retired smoothing attribute or a <vehicle_types> section is reported when a run starts, and network warnings are printed while the network loads. For an older network, start with the migration tool’s dry run (see Migrate an Older Network).

A rejected configuration is reported in one line; set the LOFT_DEBUG environment variable to 1 to see the full traceback (see Errors).

Simulation Configuration

Flat Keys and Operation Sections

Older configurations wrote settings as flat top-level keys. They are rejected as retired keys, with a message such as:

Retired simulation configuration key(s): network_file. Use the canonical nested configuration schema.

Each setting now lives in a section. For example, network_file is input.network_file, time_step is time.step, and drone_speed is vehicle.cruise_speed. loft-sim dump-effective-config prints every current key with its default. The retired flat keys are:

network_file  demand_file  additional_file  gui  random_seed  time_step
total_duration  drone_speed  vehicle_type  waiting_speed_threshold
climb_rate_threshold  safe_headway_dist  stop_distance  stop_line_offset
queue_capture_distance  protected_exit_distance  protected_zone_timeout
node_occupancy_time  queue_gap  estimation_update_rate  guidance_update_rate
dynamics_update_rate  env_mean_wind_x  env_mean_wind_y  env_vicinity_radius
uncertainty_enabled  nav_pos_error_std  nav_vel_error_std  nav_alt_error_std
ctrl_speed_noise_std  ctrl_vertical_speed_noise_std  comm_latency_mean
comm_latency_std  comm_packet_loss_prob  comm_update_rate  vis_cat

Operation layers do not belong in this file. Old strategic_planning, tactical or contingency sections in simulation_config.xml are rejected; move their content to the optional operation_strategy.xml input (see Operation Strategy). The old section name last_resort is rejected with a hint to rename it to contingency in the operation strategy.

A section written in the attribute-row form (<time begin="0" total_duration="3600"/>) is rejected, and the message spells out the option elements that replace it (<time><begin value="0"/>...</time>).

Vehicle Parameters Moved to <vType>

The 28 per-vehicle performance.* and dynamics.* keys that simulation_config.xml used to accept are retired. They never took effect: every vehicle type’s profile defines each of them and the models read the profile, so a value set here was loaded and then ignored. A configuration that still sets one fails to load, and loft-sim validate fails, with a message that names the key and shows the <vType> row that replaces it. performance.min_ground_speed becomes the <vType> attribute min_airspeed; every other key keeps its name.

Section Retired keys
performance mass, payload, battery_capacity, max_speed_factor, min_ground_speed, max_accel, max_decel, max_vertical_accel, speed_response_time_constant, vertical_speed_response_time_constant, hover_power, quadratic_speed_power_coeff, cubic_speed_power_coeff, climb_power_coeff, turn_power_coeff
dynamics inertia_xx, inertia_yy, inertia_zz, reference_area, drag_coefficient_x, drag_coefficient_y, drag_coefficient_z, max_control_accel, attitude_time_constant, attitude_damping_ratio, max_roll, max_pitch, max_body_rate

Set them per vehicle type in demand_config.xml instead. A row that names a built-in type lists only the fields that change:

<vTypes>
  <vType vehicle_type="hybrid" max_accel="3"/>
</vTypes>

See Vehicle types. The scenario-global keys that remain in these sections (performance.max_climb_rate, max_descent_rate, max_turn_rate, dynamics.update_rate and gravity) are described under Physical and Environment Blocks.

Other Retired Keys

Retired key Replacement
input.operating_policy_file input.operation_strategy_file. Convert the file itself as described under Operation Strategy
estimation.position_filter_gain, speed_filter_gain, heading_filter_gain estimation.position_filter_time_constant, speed_filter_time_constant, heading_filter_time_constant, in seconds. A per-sample gain made the filter’s response depend on estimation.update_rate; the message gives the conversion tau = -1 / (rate * ln(1 - gain))
vehicle.type vehicle.vehicle_type
uncertainty.enabled Nothing: sensing is always modelled. To study a noiseless channel, set the relevant standard deviations to 0.0 (uncertainty.nav.*, uncertainty.control.*, uncertainty.comm.packet_loss_prob and the latency_* keys); each one reads independently
vehicle.waiting_speed_threshold_mps, separation.vertiport_control_radius_m, guidance.takeoff_landing_speed_factor, guidance.vertiport_interface_speed_mps Remove them; they are rejected as retired keys
guidance.priority_corridor_speed_mps, arterial_corridor_speed_mps, access_corridor_speed_mps, vertiport_interface_override_speed_mps nominal_speed on each corridor. These per-label nominal speeds no longer exist and are rejected as unknown keys. A corridor without nominal_speed has exactly one fallback, vehicle.cruise_speed
vehicle.profile_file <vType> rows in demand_config.xml. There is no separate vehicle-profile file: the input and the <vehicle_profiles> XML/JSON format it expected are gone, and a configuration that still names them fails strict validation
input.infrastructure_support_file CNS sites in the layer named by input.infrastructure_file (see CNS Infrastructure). The JSON sidecar input was removed, and a configuration that still names it fails strict validation

The Removed legacy Block

<legacy> used to hold nine boolean reproduction pins. Each restored a measured defect so that the published case study kept reproducing the numbers it was printed with, while the defect stayed corrected everywhere else.

They are gone. This simulator has only the corrected behaviour, so there is nothing left for a pin to select, and a configuration carrying a <legacy> element is rejected with a message naming the branch that still has them:

Retired simulation configuration key(s): legacy. Use the canonical nested
configuration schema. The <legacy> reproduction pins are removed: this
simulator has only the corrected behaviour, so no configuration can select the
old one. To reproduce the numbers published in the paper, check out the branch
'archive/paper-reproduction', which is frozen with the pins in place.

What each pin restored, and where the corrected behaviour now lives:

Removed key Restored Corrected in
forward_only_corridor_tangent Corridor tangent from a forward-only 1 m lookahead, which has zero extent at the corridor end and falls back to a due-East direction loft/core/corridor_frame.py
stale_corridor_frame_estimate A held state estimate that keeps the previous corridor’s along-track frame until the estimator’s next refresh loft/core/agent.py
tactic_dt_is_dynamics_substep The tactic layer receiving the dynamics sub-step as its dt while the command it returns is held for the whole control period loft/core/agent.py
half_window_curvature Planned curvature computed as angle / (2 * window), half the true value, so corridors plan at twice the turn-feasible speed loft/mission/speed_profile.py
fixed_node_turn_radius One global 15 m node turn radius for every vehicle type instead of the profile’s own v / omega loft/mission/speed_profile.py
binary_node_turn_cap The node turn cap as a binary cliff at 15 deg instead of a cap continuous in the turn angle loft/mission/speed_profile.py
float_exact_rate_gates Estimation/control/comm rate gates compared float-exactly against an accumulated clock, halving every cadence whose period equals the macro step loft/core/cadence.py
bounds_anchored_projection The simulation frame anchored to the <bounds> display extent instead of the network’s node extent loft/core/projection.py
per_sample_filter_gains Estimator blend weights applied per sample, so the filter’s response followed estimation.update_rate loft/estimation/estimator.py

The smoothing attribute legacy_samples_per_segment in additional.xml is a different pin, and it still exists; see Removed Smoothing Attributes.

Output Spellings

The <output> section used to declare every output as one generic row, <file kind="..." path="..."/>. That shape forced the union of every kind’s attributes onto one row, since XSD 1.0 cannot make an attribute conditional on another attribute’s value. Now the element name is the kind, so the generated XSD declares exactly the parameters each kind honours. Each old spelling is rejected with its replacement named:

Retired Replacement
<file kind="..." path="..."/> the per-kind element, with file="..."
<summary .../> <summary_output .../>
<fcd .../> <fcd_output .../>
<tripinfo .../> <tripinfo_output .../>
<safety_metrics .../> <safety_metrics_output .../>
path="..." file="..."
a kind="..." attribute on an output row nothing: drop it, the element name is the kind

See Optional Outputs for the current form.

Additional Configuration

Removed Smoothing Attributes

num_points, samples_per_segment and corridor_types no longer exist on <network_smoothing> and are rejected with a message naming the replacement. They were not renamed:

  • num_points was an absolute output-point count. Because it did not scale with corridor length, bspline abandoned everything past the budget and jumped straight to the corridor end, and nurbs silently downsampled. On a 3.1 km, 120-waypoint corridor the B-spline output had a 1.6 km gap in it. Use resolution, the target output spacing in metres.
  • samples_per_segment was a per-segment count, so the output spacing depended on how densely the corridor happened to be drawn. Use resolution.
  • corridor_types keyed a geometry decision on the retired corridor_type label, and a label must drive no behaviour. Use way_types.

Historical method aliases such as B_Spline or B-Spline are rejected as unsupported methods; the method names are catmull_rom, bspline, nurbs and chaikin.

legacy_samples_per_segment is not retired. It is a reproduction pin that still exists, for catmull_rom only: it reproduces the removed per-segment sample count and skips arc-length resampling. Unlike the removed <legacy> block, it is listed with the current attributes under Network Smoothing.

Vehicle Types Moved to the Demand File

A <vehicle_types> section in an additional file is rejected with a message that points to <vTypes> in demand_config.xml. A vehicle-type definition and the flows that reference it used to sit in two documents with different lifetimes (a scenario may legitimately not load an additional file at all), so the type moved to the file that names it. See Vehicle types.

CNS Sites in additional.xml

Older projects kept minimal site nodes in the network and the site parameters in <communication_sites>, <navigation_sites> and <surveillance_sites> sections of additional.xml. That layout is retired. The simulator does not read those sections, and because additional.xml does not check section names, it ignores them without a message: a scenario in that layout runs with no CNS sites. Re-create the sites in an infrastructure layer (see CNS Infrastructure).

Demand Configuration

Retired flow fields are rejected with a rename hint naming the replacement. Values are the semantic node and route IDs from the network file.

Retired flow field Replacement
origin_object_id origin
destination_object_id destination
route_object_id, route_id route
route_ids routes

route_id belongs on the route relation in the network. A flow references a route as route="r0", because an attribute that references another object is named after that object’s type.

Retired sections are rejected with a pointer to <flows>:

Retired section Replacement
<od_demand> with <od_pair> rows <flows> with <flow origin="..." destination="..."/> rows
<route_demand> with <route> rows <flows> with <flow route="..."/> rows
<traffic> <flow> rows. There is no aggregate fallback: a scenario with no flows runs empty
<demand_defaults> Each flow’s own attributes; the per-flow defaults are fixed. Define a vehicle type and reference it from the rows that need it

A value written as child-element text anywhere in the document is rejected with the attribute-style spelling of the same element.

A <vType> attribute that is not a profile field is an error naming the attribute. It used to be ignored in silence, which meant a typo in a parameter name produced a type that looked configured and was not.

Operation Strategy

Old operating_policy.xml files must be converted once:

Old Current (schema 2.0)
<operating_policy> <operation_strategy>
<strategy_id> child element strategy_id attribute on <operation_strategy>
input.operating_policy_file input.operation_strategy_file
<strategic><mode> model attribute: <strategic model="...">
capacity_per_hour default_capacity_per_hour
Strategic/contingency values beside the model Move them into <parameters>
Tactical module values directly below <tactical> Move them into <defaults>
preflight_4d 4d_volume
poisson strategic mode Configure the arrival process in the demand file; omit <strategic>
external_policy / external_aci Remove; ACI requires no XML selection
Retired shared-ID field object_id in element_overrides element_id attribute on the <element> row (value is the element’s semantic node_id or corridor_id)

A file whose root is still <operating_policy> is rejected with the root it expects, an old model name such as preflight_4d is rejected as not a registered strategic model, and an object_id field in an element override is rejected with a hint to rename it to element_id.

Three strategic parameters are retired; each is rejected with a message that says what replaces it:

Retired parameter Replacement
metering_interval burst_window (capacity_limited_departure). It was never a cadence: it is the token bucket’s window and initial fill
dcb_bucket Nothing. Capacity is counted over a rolling window, dcb_capacity_window; dcb_horizon sets how far ahead releases are searched
dcb_backpressure_horizon Nothing. Every element on a request’s path is checked, however far along it sits

A file that still writes values as element text (<strategy_id>demo</strategy_id>, <model>4d_volume</model>, <parameters><planning_horizon>600</planning_horizon></parameters>) loads with the same values for now, but prints one warning per file, and schema/operation_strategy.xsd rejects it. Move every value into an attribute, as in the Complete V2 Example.

Airspace Network

Retired and Legacy Tags

These tags load with one warning per element, and their values are never used. The migration tool renames, moves or drops each of them.

Tag Element Use instead
corridor_type way way_type. The label drove nothing; its one former meaning, vertiport_interface, is way_type=vertiport_terminal, which the migration tool writes before dropping the tag
direction way Nothing: the node order is the direction. The tag’s only legal value was forward
priority_corridor way Nothing: corridors are uniform. The flag scoped the per-episode separation-violation safety counters to the corridors carrying it; those counters are now network-wide
resource_type node, way Nothing: a corridor resource is always the canonical corridor resource, and a node resource derives from its node_type
service_class, priority_level way Nothing: these labels had no runtime meaning
name route relation Nothing: the display name was never read
object_id node, way, relation The per-kind ID, node_id, corridor_id or route_id; the warning names the one to use
pad_counts node pad_count
nominal_speed_mps way nominal_speed
geofencing_buffer_m way geofencing_buffer
vehicle_class way vehicle_access
altitude, corridor_altitude way altitude on every node of the corridor: altitude lives on nodes
follow_path_altitude, insert_endpoint_vertical_legs, legacy_endpoint_interface any Nothing: the simulator never inserts vertical legs or infers geometry. The migration tool writes out the 3D path these flags implied
Operation rules: control_rule, min_headway, queue_gap, reservation_buffer, sequencing_rule, priority_rule, node_occupancy_time, node_window, protected_exit_distance, protected_zone_timeout, queue_capture_distance (also with a _m or _s suffix) node, way <element_overrides> in operation_strategy.xml; the migration tool moves each value to an override for that element

A few other retired tags produce no warning, because the loader never reads them: airspace (a way belongs to the network when it carries way_type or corridor_id) and the CNS-level tags listed under CNS Infrastructure.

In LOFT-Edit, Validation > Validate reports the legacy spellings and object_id (LOFT-V-H35), the retired tags (LOFT-V-H36), the geometry flags and way-level altitude tags (LOFT-V-H39), and airspace=yes on a way without way_type or corridor_id (LOFT-V-H10); see Validation Rules.

Retired Forms That Stop the Load

Form Use instead
A route relation with type=route type=air_route. type=route is OpenStreetMap’s public relation type for real-world transport routes, and JOSM reported the old spelling on every route relation. The old object_type=route alias is gone too
node_type merge or merging_point node_type=intersection
node_type diverge or diverging node_type=diverging_point
An ID derived from a raw OSM id, such as node:-12, osm_way_-9_0 or a bare integer A stable semantic ID; the migration tool generates one
A two-dimensional network whose corridor nodes carry no altitude An explicit altitude on every corridor node

Each of these errors names scripts/migrate_legacy_network.py.

The older default scenario names its network file airspace_network_enriched.osm, while LOFT-Edit writes airspace_network.osm; the configuration names the file, so both load. LOFT-Edit projects need no Enrich step any more; see An Old Enriched Layer Is Open.

Migrate an Older Network

scripts/migrate_legacy_network.py converts an older network once. Without --write it is a dry run that reports what would change; with --write it writes the explicit 3D network and moves supported local rules, such as a corridor’s min_headway, into the operation strategy’s <element_overrides>:

python scripts/migrate_legacy_network.py path/to/network.osm
python scripts/migrate_legacy_network.py path/to/network.osm --write --output path/to/migrated.osm --operation-strategy-output path/to/operation_strategy.xml

The tool:

  • adds missing node altitudes and the vertical geometry the old geometry flags implied (--default-altitude-m and --vertiport-altitude-m set the altitudes it cannot infer);
  • moves operation-rule tags into the operation strategy’s <element_overrides> (--operation-strategy-output; an existing file is merged, not replaced);
  • renames the legacy spellings, the old node types and the object_id tag, drops the retired tags, and writes way_type where the old corridor_type label only implied it;
  • replaces raw-derived IDs with generated semantic IDs and splits corridors at topology boundaries, the same canonicalization the loader and LOFT-Edit’s Auto-Split Corridors perform;
  • rewrites the node and route references in a demand file named with --demand-config, and points a simulation configuration named with --simulation-config at the operation-strategy file.

--write needs --output or --in-place, and it does not overwrite an existing output without --force. If the dry-run report lists UNMAPPED tags (old tags with no equivalent in the current format, such as access_rule or contingency_rule), review them first: --write then refuses to write (exit code 2) until you add --accept-unmapped-strategy-tags, which keeps those tags as comments in the operation-strategy file. It also refuses when it finds operation-rule tags but has no operation-strategy file to write them to. python scripts/migrate_legacy_network.py --help lists every option.

CNS Infrastructure

CNS sites live in their own layer, network/infrastructure.osm, named by input.infrastructure_file: one node per site, carrying its position and every device parameter (see CNS Infrastructure File). Three older forms are retired:

  • the two-file layout of minimal site nodes in the network plus site sections in additional.xml (see CNS Sites in additional.xml);
  • the point-level infrastructure_support_points.json sidecar, which the simulator does not read;
  • the input.infrastructure_support_file input, which is rejected.

A CNS node left in an old network file is harmless: no airspace way references it, so it stays inert. LOFT-Edit does not convert a project written in the old layout: re-create its sites with Presets > LOFT-Edit Objects > Infrastructure, as described in CNS Infrastructure, and remove the retired site sections and keys.

These keys are retired:

Retired key Use instead
airspace, object_type on a site node Nothing; remove them
infrastructure_type, support_dimension, support_level on a site node Nothing: the node_type (comm_site, nav_site, surv_site) classifies the site. The plugin’s normalizer removes them
surveillance_model surv_model
Unit-suffixed site keys such as coverage_radius_m, transmit_power_dbm or base_latency_s The same key without the suffix; SI base units are implicit
comm_level, nav_level, surv_level, surveillance_level on any node or way Nothing: the simulator never reads them, because CNS support is derived from the infrastructure layer at run time

JOSM’s own validator reports most of these; see Rules Only the JOSM Validator Checks.

LOFT-Edit

  • The launchers’ interpreter variable is LOFT_EDIT_PYTHON. The previous name, LOFT_AIRSPACE_PYTHON, is still accepted with a deprecation notice (see Installation).
  • loft-edit write-sim-config, the command behind Write Simulation Config, still accepts the historical --mode spellings poisson, external_policy and external_aci for older scripts; all three write exactly what none writes.
  • In a demand flow, route_id is the retired spelling of route; see A Flow Uses route_id.

ACI Scripts

Two older forms of the ACI still work, and the scripts in example/tutorials/aci/ use them: import aci, a module at the repository root that works only in a source checkout, and the command-list call aci.start(["loft", "-c", ..., "--nogui"]). New code should write from loft import aci and aci.start(config_file=..., gui=False); see Session Lifecycle.

Documentation Addresses

Pages of this site that moved keep a redirect at their old address, so old bookmarks and the help buttons of LOFT-Edit releases already installed still land on the right page. A #section part is kept when the section still exists on the new page; otherwise the redirect opens the section the page moved to.

Old address Now
/airspace-editor/network-authoring/ Airspace Objects
/airspace-editor/network-authoring/objects/ Airspace Objects
/airspace-editor/network-authoring/routes-and-smoothing/ Create Routes
/airspace-editor/network-editing/ Airspace Objects
/airspace-editor/network-editing/routes-and-smoothing/ Create Routes
/airspace-editor/validation/ Validation
/airspace-editor/cns-infrastructure-structure/ CNS Infrastructure
/airspace-editor/user-guide/, /airspace-editor/reference/ LOFT-Edit
/airspace-editor/configuration/ Project Structure
/airspace-editor/tutorials/ Example Projects
/simulation/aci-runtime-control/ ACI Reference
/simulation/traffic-model/architecture/ Architecture
/configuration/vehicle-profile-config/ Additional Configuration

Reproducing the Paper’s Numbers

The simulator has been corrected in nine places since the numbers in the LOFT-Sim paper were produced (see The Removed legacy Block), so the current version does not reproduce them. example/scenarios/case_study/ keeps the paper’s network, demand and operation strategy, and experiments/ keeps its pipeline, but both run the corrected simulator. To reproduce the published numbers, check out the branch archive/paper-reproduction, which is frozen at the last commit that carried the nine reproduction pins. The paper’s batch benchmark is described under Paper Benchmark.