![]() |
VR-Forces Developer's Guide
|
The API Migration Guide describes changes between VR-Forces 5.2 and 5.3 that are most likely to affect existing plug-ins or remote-control applications.
A change is documented here when it could cause a compile error, link error, runtime behaviour change, or configuration load failure for a toolkit developer upgrading from 5.2.
Addendums to this guide may be posted to the MAK Knowledge Base after release.
Changes that affect scenarios or simulation model sets are documented in the separate VR-Forces Migration Guide.
This page covers the changes that affect the greatest number of upgrading applications. A complete account of every public API change, organized by library, is available under Library Reference.
All headers implementing the VR-Forces internal Tactical Data Link (TDL) subsystem have been removed. This subsystem was unused in practice and its removal reduces overhead and eliminates confusion with external TDL integrations.
The following headers have been deleted:
vrfmsgs/vrfTDLMessage.hvrfmsgs/vrfTDLMessageFactory.hvrfmsgs/defaultVrfTDLMessageFactory.hvrfmsgs/vrfTDLPPLIMessage.hvrfmsgs/vrfTDLStatusMessage.hvrfmsgs/vrfTDLContactMessage.hvrfmsgs/vrfTDLRemoveMessage.hvrfmsgs/tdlMessageTypes.hvrfMsgTransport/vrfTDLMessageInterface.hvrfmodel/tdlMessageGeneratorController.hvrfmodel/vrfTDLMessageGeneratorController.hvrfmodel/tdlPPLIMessageGeneratorController.hvrfmodel/tdlStatusMessageGeneratorController.hvrfmodel/tdlContactMessageGeneratorController.hvrfobjparam/tdlMessageGeneratorControllerDescriptor.hvrfobjparam/tdlPPLIMessageGeneratorControllerDescriptor.hvrfobjparam/tdlContactMessageGeneratorControllerDescriptor.hvrfobjcore/tdlMessageGeneratorControllerPSR.hvrfobjcore/tdlPPLIMessageGeneratorControllerPSR.hvrfobjcore/tdlContactMessageGeneratorControllerPSR.hvrfGuiNetworkCommon/vrfTDLMessageProcessor.hvrfGuiNetworkCommon/tdlMessageProcessor.hThe following component descriptor type constants have been removed from vrfobjparam/simComponentDescriptorTypes.h:
DtTDLMessageGeneratorControllerDescriptorTypeDtTDLPPLIMessageGeneratorControllerDescriptorTypeDtTDLContactMessageGeneratorControllerDescriptorTypeThe message type constant DtVrfTDLMessageType has been removed from vrfmsgs/messageTypes.h.
Remove all references to these identifiers. No replacement is provided; VR-Forces no longer includes a built-in TDL capability.
The examples/tdlMessage example directory, containing tdlMessageSim and tdlMessageGui, has also been deleted.
All references to the random number seed have been removed from the API. The deleted header vrfmsgs/ifSetRandomNumberSeed.h and any associated accessors on DtScenario and DtSimManager are no longer present.
The random number seed has had no practical effect on simulation behaviour since VR-Forces 5.0. Code that sets or reads it can be removed without functional impact.
The class DtIfSetRunDuration has been renamed to DtIfSetRunUntilTime, and its header has been renamed accordingly:
| Removed (5.2) | Replacement (5.3) |
|---|---|
vrfmsgs/ifSetRunDuration.h | vrfmsgs/ifSetRunUntilTime.h |
DtIfSetRunDuration | DtIfSetRunUntilTime |
DtSetRunDurationMessageType | DtSetRunUntilTimeMessageType |
DtRunDurationControlType | DtRunUntilTimeControlType |
Two accessor methods on DtIfControl (declared in vrfmsgs/ifControl.h) have been renamed:
The DtIfControl::scenarioRunId() return type has also changed from int to const DtUUID&, and setScenarioRunId() now takes a const DtUUID&. Update call sites that compare or store the run ID as an integer.
The network representation for the Sensor Field of View has changed. This affects both the HLA FOM class structure as well the DIS PDU kind and layout. Refer to the MAK ONE Interoperability Guide for more information on the new formats.
The following public headers have been removed from vrfGuiCore: emitterModesRequestor.h, spotReportDataHandler.h, spotReportDataProcessor.h, and aggregateRollUpManager.h. Remote-control clients that used the former emitter-modes requestor should include and use vrfcontrol/remoteControlEmitterModesRequestor.h. Spot-report handling is now provided by vrfcontrol/spotReportDataHandler.h; GUI plugins should use the existing vrfGuiCore/vrfSpotReportDataHandler.h specialization where appropriate. The aggregate roll-up manager has been replaced by vrfGuiCore/guiAggregateRollUpManager.h.
Update include paths and type references to their replacement APIs. Code that directly used DtVrfWorldMagneticModel must also be removed or replaced with the applicable magnetic-model service because vrfobjcore/vrfWorldMagneticModel.h has been deleted and no direct replacement type is provided.
This reorganization is broader than the four removed headers. Spot report handling, resource monitoring, model set management, scripted task management, and current task tracking are now provided by vrfcontrol classes so that headless remote-control applications can use them, and the corresponding vrfGuiCore classes were either re-parented onto those new base classes or deleted. A vrfGuiCore class that was re-parented typically lost its message-handling methods and its data members to the base class. See vrfcontrol Library API Changes for the new classes and vrfGuiCore Library API Changes for the per-class consequences.
The two weapon base interfaces, DtWeaponInfoInterface (vrfobjcore/weaponInfoInterface.h) and DtBaseWeaponComponentInterface (vrfobjcore/baseWeaponComponentInterface.h), have changed in ways that break existing subclasses. Plug-ins that derive from either interface must be updated.
The TargetApplicability enumeration formerly nested inside DtWeaponInfoInterface is now the namespace-scope enumeration DtTargetApplicability, declared in the new header vrfobjcore/targetApplicability.h. Moving it to namespace scope lets lightweight parameter types such as DtTargetPriorityEntry and DtAmmunitionPrioritiesListEntry reference the enumeration without including the full weapon-info interface. DtWeaponInfoInterface::TargetApplicability remains as a type alias, and the nested enumerator names remain as static constexpr constants, so existing call sites continue to compile.
DtWeaponInfoInterface::createFireTask() gained a required hit zone function argument, and a three-argument overload that accepts a preferred munition type was added. Override the two-argument form; the three-argument form forwards to it by default.
The pure virtual methods DtWeaponInfoInterface::targetAmmunition() and DtWeaponInfoInterface::priority() have been removed. Munition suitability is now answered by DtGenericWeaponInfo::bestMunitionForTarget() (vrfmodel/genericWeaponInfo.h), which runs the full engage/acquire/face evaluation chain and returns the munition to use. Weapon controllers supply the underlying query by overriding bestMunitionForTargetNoSideEffects(). Weapon ordering is no longer expressed as a single integer priority; use the applicability tier recorded on DtTargetPriorityEntry and DtAmmunitionPrioritiesListEntry instead.
DtWeaponInfoInterface::withinTargetRegion() is deprecated. It predates the engagement evaluation chain and cannot account for ballistic reachability, line of sight, facing, or contention with other weapons. New code must call bestMunitionForTarget() or canEngageTarget().
DtBaseWeaponComponentInterface removed the accessor pairs priority()/setPriority() and treatSelectedAsTasked()/setTreatSelectedAsTasked(), together with the serialized parameters that backed them. Remove the corresponding fields, including priority, from custom weapon system definitions. The interface adds the status bit DT_CANNOT_ARTICULATE_TO_TARGET, raised when a gun is at a hard articulation limit, and the accessors statusReason()/setStatusReason() which carry a human-readable explanation for a status bit. Status reasons are not checkpointed and are reset each tick.
The target priority parameter types gained an optional applicability field. Absent fields default to DtTargetApplicability_Ideal, so existing simulation model sets load unchanged.
Object creation and placement no longer take a bool clampToGround flag. They take bool useAltitudeAboveTerrain together with a double altitudeAboveTerrain value, which allows an object to be placed at a fixed height above the terrain rather than directly on it.
The replacement parameters were substituted in place within the existing parameter lists rather than appended, so a call site that previously passed a boolean will frequently still compile while silently shifting the meaning of every argument that follows. This is the most dangerous change in the release for existing code. Review each affected call site individually rather than relying on the compiler to find them.
The affected types are spread across the simulation engine, the message layer, and the front end. See vrfcontrol Library API Changes for DtVrfRemoteController, vrfmsgs Library API Changes for DtIfCreateVrfObject and DtLocalObjectCreateInformation, vrfobjcore Library API Changes for DtLocalObjectManager and DtLocalEntitySetControllerPSR, vrfmodel Library API Changes for DtLocalEntitySetController, vrfplan Library API Changes for DtCreateObjectCommand, vrftasks Library API Changes for DtSetLocationRequest, and vrfGuiCore Library API Changes for the entity and environmental creation data classes.
The aiming and tracking model that was specific to sensors has been generalized so that any steerable onboard system can use it. Search lights and laser lights are the first non-sensor users (see Search Light and Laser Light Systems).
The enumeration DtSensorTrackingMode, formerly declared in sensorFieldOfViewEnums.h, has been replaced by DtAimableSystemTrackingMode in aimableSystemEnums.h. Manual control directions moved with it as DtAimableSystemManualControlDirection. Update both the include and the type name.
DtSetAimSensorRequest (vrftasks/setAimSensorRequest.h) was generalized at the same time:
DtSensorGimbalControllerPSR is now derived from the new DtAimableSystemControllerPSR, declared in vrfobjcore/aimableSystemControllerPSR.h. Plug-ins that derive from the gimbal controller PSR must account for the inserted base class. See vrfobjcore Library API Changes, vrfmodel Library API Changes, and vrftasks Library API Changes for the full list of affected declarations.
Interfaces that previously exchanged makVrv::DtUniqueID or makVrv::DtElementID now use DtUUID. This removes a dependency on vrvCore from several VR-Forces headers and gives the product a single identifier type. The scenario run ID moved to DtUUID as part of the same work; see Scenario Run ID Updated to UUID.
The change reaches the spot report state component and its observer queries, the local weather manager, the external data visual manager, the simple typed dictionary, and the object information page items. Code that stored one of the former identifier types in a container or a member must change the declared type; there is no implicit conversion. Refer to vrfStateData Library API Changes and vrfGuiCore Library API Changes for the affected signatures.
Periodic checkpointing has been replaced by explicit scenario checkpoint and snapshot operations. The remote message family that drives the new model is described under Remote Checkpoint Management API. The change also renamed a number of classes whose names referred to checkpoints but which in fact operate on scenarios or snapshots:
| Removed (5.2) | Replacement (5.3) |
|---|---|
DtDeleteCheckpointsDialog | DtDeleteScenariosDialog |
DtDeleteCheckpointsDialogInterface | DtDeleteScenariosDialogInterface |
DtDeleteCheckpointsDialogLogic | DtDeleteScenariosDialogLogic |
DtAvailableCheckpointsWidget | DtAvailableSnapshotsWidget |
DtSetScenarioRunDurationDialog | DtSetScenarioRunUntilDialog |
DtPeriodicSnapshotSettings::enabled() and setEnabled() are now snapshotsEnabled() and setSnapshotsEnabled(), and the constructor takes additional checkpoint arguments. The periodic checkpointing accessors on DtCheckpointSettingsWidgetInterface were replaced by a scenario checkpoint interval expressed in seconds as a double rather than a frequency expressed as an int. See vrfutil Library API Changes, vrfGuiCommonQt Library API Changes, vrfGuiCoreQt Library API Changes, and vrfGuiSettingsWidgets Library API Changes for details.
VR-Forces 5.3 adds a set of interface messages that allow remote-control clients to manage scenario checkpoints without direct file system access.
The following message classes are new in vrfmsgs/:
DtIfCheckpointOperation** (ifCheckpointOperation.h) performs a checkpoint operation on the receiving back-end. The Operation enum selects among saving a new checkpoint at the current simulation time, deleting an existing checkpoint, querying the checkpoint count, setting checkpoint metadata, and querying the identity of the current run.DtIfRequestCheckpointFiles** (ifRequestCheckpointFiles.h) requests the list of checkpoint files available on a back-end for a given scenario and optional run ID.DtIfCheckpointFilesResponse** (ifCheckpointFilesResponse.h) carries the back-end response to a DtIfRequestCheckpointFiles request.DtIfLoadScenarioCheckpoint** (ifLoadScenarioCheckpoint.h) instructs a back-end to load the scenario fragment whose simulation time is closest to a specified value. An optional DtUUID run ID may be supplied; when omitted the latest run on the back-end is used.The corresponding message type constants added to vrfmsgs/messageTypes.h are: DtRequestCheckpointFilesType, DtCheckpointFilesResponseType, DtLoadScenarioCheckpointMessageType, DtCheckpointOperationMessageType, and DtIfTakeOwnershipOfResponseMessageType.
A new event class, makVrfEvents::DtTransferAcknowledgeEvent, has been added in vrfMsgTransport/transferAcknowledgeEvent.h. The event is raised in response to an ownership transfer transaction and reports whether the transfer was accepted or rejected by the receiving federation member.
A new simulation component, DtRotaryWingFlyIntoController, is available for rotary-wing entities. It transitions an aircraft from level flight into direct three-dimensional flight toward a target by applying a configurable elevation angle threshold that governs when the transition occurs. The controller is declared in vrfmodel/rotaryWingFlyIntoController.h.
The corresponding parameter descriptor, DtRotaryWingFlyIntoControllerDescriptor, is declared in vrfobjparam/rotaryWingFlyIntoControllerDescriptor.h. The descriptor type string constant DtRotaryWingFlyIntoControllerDescriptorType has been added to vrfobjparam/simComponentDescriptorTypes.h. A matching GUI task dialog is provided in vrfGuiTaskSetQt/flyIntoTaskDialog.h.
VR-Forces 5.3 introduces a structured hit zone system. Hit zones are named, axis-aligned bounding regions on an entity, each associated with a specific onboard system. When a munition strikes a hit zone, the associated system can be selectively damaged. The internal DtRwDamageZone type has been renamed to DtRwHitZone as part of this work and is now a public type declared in vrfutil/rwHitZone.h.
New public headers supporting hit zones are:
vrfutil/hitZoneId.h — DtHitZoneId, a lightweight identifier for a hit zone.vrfutil/rwHitZone.h — DtRwHitZone, the serializable hit zone configuration.vrfutil/rwHitZoneList.h — DtRwHitZoneList, a serializable ordered collection of DtRwHitZone entries.vrfobjparam/hitZoneParameterData.h — DtHitZoneParameterData, component parameter data describing the hit zones for a system.vrfobjparam/rwHitZoneDamageParameters.h — DtRwHitZoneDamageParameters, serializable damage parameters associated with a hit zone.vrfobjcore/hitZonesSimObjectFacade.h — DtHitZonesSimObjectFacadeInterface, facade interface for reading or writing hit zone state on a simulated object.vrfobjcore/hitZonesLocalObjectFacade.h — DtHitZonesLocalObjectFacade, facade for accessing hit zone functionality on a DtLocalObject.vrfobjcore/hitZoneDamageParamsManager.h — DtHitZoneDamageParamsManager, manages hit zone damage parameters at runtime.vrfcore/hitZoneDamageParamsManagerInterface.h — abstract interface for the hit zone damage parameters manager.Hit zone damage state is read and written on a local object through the facade:
VR-Forces now includes DtNameReservationManager (declared in vrlinkNetworkInterface/nameReservationManager.h) to centralise HLA object name generation and reservation. The manager is configured via appData/settings/vrfSim/nameReservationConfig.mtl, which allows the naming scheme for each published object type to be customised.
If your plugin previously overrode DtLocalObjectManager to control HLA object instance names (as shown in the objectManager example), that override may no longer be necessary. Refer to nameReservationConfig.mtl for supported naming format tokens.
The associated header vrfutil/rwNameReservationConfig.h provides the serializable configuration type DtRwNameReservationConfig.
Lua script developers can create modules scoped to a specific simulation model set by placing Lua files in the scripts/modules/ subdirectory of that SMS. Scripts in the same SMS load these modules using a standard require statement. For a usage example, see data/simulationModelSets/AggregateLevelBase/scripts/attack.lua.
The scenario run ID, previously a random integer, is now a DtUUID stored as a string in SQL database output. This affects DtIfControl::scenarioRunId() and DtIfControl::setScenarioRunId() (see Run Duration API Renamed for signatures), as well as any database client code that reads the run ID column. The updated databaseClient examples demonstrate the new query patterns.
VR-Forces 5.3 adds simulation components for independently steerable search lights and laser lights on entities. Both systems follow the same descriptor-based component architecture used elsewhere in VR-Forces.
The search light system provides the following new components:
vrfmodel/searchLightActuator.h — DtSearchLightActuator models a steerable search light. The descriptor type constant is DtSearchLightActuatorDescriptorType (vrfobjparam/searchLightActuatorDescriptor.h).vrfmodel/searchLightController.h — DtSearchLightController implements task-driven aiming control. The descriptor type constant is DtSearchLightControllerDescriptorType (vrfobjparam/searchLightControllerDescriptor.h).vrfmodel/vrfSearchLight.h — DtVrfSearchLight manages the VR-Link search-light publisher and populates all DIS fields associated with a search light.The laser light system provides an analogous set:
vrfmodel/laserLightActuator.h — DtLaserLightActuator with descriptor type DtLaserLightActuatorDescriptorType (vrfobjparam/laserLightActuatorDescriptor.h).vrfmodel/laserLightController.h — DtLaserLightController with descriptor type DtLaserLightControllerDescriptorType (vrfobjparam/laserLightControllerDescriptor.h).vrfmodel/vrfLaserLight.h — DtVrfLaserLight manages the VR-Link laser-light publisher.HLA network publishing and subscription are provided by vrlinkNetworkInterface/searchLightLocalNetInterface.h, vrlinkNetworkInterface/searchLightRemoteNetInterface.h, vrlinkNetworkInterface/laserLightLocalNetInterface.h, and vrlinkNetworkInterface/laserLightRemoteNetInterface.h.
GUI task-set dialogs for use in GUI plugins are vrfGuiTaskSetQt/setAimSearchLightDialog.h and vrfGuiTaskSetQt/setAimLaserLightDialog.h.
VR-Forces adds public task and component interfaces for entity sounds and navigation signal flags. DtPlaySoundController and DtSignalFlagsSetController are declared in vrfmodel/playSoundController.h and vrfmodel/signalFlagsSetController.h. Use DtPlaySoundTask (vrftasks/playSoundTask.h) to request a sound and DtSetSignalFlagsRequest (vrftasks/setSignalFlagsRequest.h) to set signal flags. Sound events are published through DtSoundEvent in vrfMsgTransport/soundEvent.h; remote clients can query the supported sounds using the sound-list administration messages in vrftasks/.
The new DtIfCreateGlobalWeather interface message, declared in vrfmsgs/ifCreateGlobalWeather.h, requests creation of the global weather entity. It has no payload and uses DtCreateGlobalWeatherMessageType.
In VR-Forces 5.2, the DtLocalObject::addStateProperty() methods could be used to add new internal state properties. These have been renamed DtLocalObject::addInternalStateProperty() to be more explicit about these working only for internal state properties. External state properties cannot be added at run-time, they must be defined in your SMS.
VR-Forces 5.3 reports variable binding problems encountered while loading entity and system definition files. The new header vrfobjparam/entityValidation.h declares DtEntityValidationCollector, which accumulates two categories of issue: variable bindings that were supplied but never consumed, and variables that were shadowed by a binding at a deeper nesting level. Each issue is reported as a DtVariable carrying the variable name and a DtSysdefContext chain that identifies the file, systems list, and descriptor entry in which the variable was found. The root context node represents the .entity file itself.
A collector is optional and is threaded through the loading code by the parameter classes. The following methods accept a trailing DtEntityValidationCollector* argument that defaults to nullptr, so existing call sites compile unchanged:
DtComponentSystemDefinition, DtComponentSystemDescriptor, and DtComponentSystemDescriptorList expose matching setCollector() and collector() accessors.
DtVrfXmlUtils::getTagByAttribute() gained a trailing bool traverseElements parameter that defaults to true, preserving the 5.2 behaviour. Pass false to restrict the search to direct children of the supplied node so that parameters owned by nested componentSystem blocks are not mistaken for entity-level tags of the same name.
The abstract interface DtSubordinateResolver, declared in vrfcontrol/subordinateResolver.h, answers whether one entity is a subordinate of another at any depth in the organizational hierarchy. DtSpotReportByForceAndUuidPerspective uses it to expand the UUIDs registered through addAcceptableUuidWithSubordinates() when deciding whether to accept a report. Install an implementation with setSubordinateResolver().
The perspective stores the resolver as a non-owning pointer, so the resolver must outlive it.
DtLauncherConfig, declared in vrfLauncherQt/launcherConfig.h, reads optional launcher tool settings from launcherConfig.json in the settings directory. The class currently exposes the configured VR-Link configuration file editor through vrLinkConfigFileEditor() and reports parse failures through parseError(). The file is optional; when absent the launcher uses its built-in defaults.
The appData/settings/vrfSim/nameReservationConfig.mtl configuration file has been added to control HLA name reservation behaviour (see HLA Name Reservation Manager).
The object class definition file objectClassDefinitions/DtTDLNetworkMessageHandler.ocdx has been deleted as part of the TDL removal (see VR-Forces TDL Support Removed). The system definitions that configured the TDL message generators have been deleted with it: tdl-air-message-generator.sysdef, tdl-ground-message-generator.sysdef, tdl-subsurface-message-generator.sysdef, and tdl-surface-message-generator.sysdef in the EntityLevel model set, and their -aggregate counterparts in AggregateLevelBase. The developer_toolkit_examples/tdlMessage simulation model set has also been deleted. Remove references to these system definitions from custom entity files before loading them in 5.3.
The base model set adds hitZoneDamageParams.mtl, which supplies the default hit zone damage parameters consumed by DtHitZoneDamageParamsManager (see Hit Zone System), and the scripts/set_sidc.xml task definition.
The EntityLevel model set adds scripts for direct movement, drone loitering, and automatic countermeasure launch. It also adds the chaff-counter-measures-launcher.sysdef, flares-counter-measures-launcher.sysdef, and ship-horn-hailer.sysdef system definitions. Use these supplied scripts and system definitions when adopting the corresponding capabilities; they do not require changes to existing plug-ins. The search-light.sysdef and laser-light.sysdef system definitions configure the new light systems described in Search Light and Laser Light Systems, and drone-default.sysdef supplies a damage model for drones.
Fixed-wing formation flight content has moved out of EntityLevel into the new EntityLevelAirUnits model set, which is declared by EntityLevelAirUnits.sms. The scripts flight_fly_to_point, fly_heading, form_up, react_to_formation_change, set_maneuver_parameters, and set_ordered_air_formation, along with the fixed-wing section formations, are no longer present in EntityLevel. Scenarios and plug-ins that relied on them must load EntityLevelAirUnits as well.
The browser client and Swagger API definitions for the new web server are installed under data/webServer (see migration_web_server). The VR-Forces Launcher reads optional settings from launcherConfig.json (see Launcher Tool Configuration).
The examples/tdlMessage directory, containing the tdlMessageSim and tdlMessageGui example projects, has been deleted as part of the removal of VR-Forces TDL support (see VR-Forces TDL Support Removed).
The displayStateData example has been deleted. The database-client scripts have been reorganized into individual subdirectories beneath examples/databaseClients/, each with its own CMake target. Update external build or automation scripts that referenced the former top-level Python script paths. The new examples/taskFromConsole project demonstrates issuing tasks from a console plug-in.
The sections above describe the changes that affect the greatest number of upgrading applications. A complete, library-by-library account of every public API change is provided on the pages listed below. Each page opens with the breaking changes in that library, followed by the additions, and lists only those headers whose public or protected interface actually changed.
Start with the libraries you link against directly. A plug-in that extends the simulation engine should read vrfutil Library API Changes, vrfcore Library API Changes, vrfobjparam Library API Changes, vrfobjcore Library API Changes, vrfStateData Library API Changes, and vrfmodel Library API Changes. A remote-control application should read vrfcontrol Library API Changes, vrfmsgs Library API Changes, and vrftasks Library API Changes. A front-end plug-in should read the front-end application pages.
The following libraries contain public headers that differ between 5.2 and 5.3, but none of the differences affect the API. They have no detail page.
| Library | Nature of the change |
|---|---|
legionNetworkInterface | A default member initializer and a comment correction in vrfSimOptions.h. |
makRadioNet | One protected data member added to DtRadioNetInterface. |
precompiledHeaders | Windows-only system includes wrapped in #ifdef _WIN32 for Linux portability. |
terrainReasoning | No content change. |
vrfHla1516e | An inline implementation change inside create(); no declaration changed. |
vrfHla4 | An inline implementation change inside create(); no declaration changed. |
[Home]