|
VR-Engage
2.3
|
This guide covers only VR-Engage-specific migration issues. Also review the VR-Forces and VR-Vantage migration guides for relevant changes to those underlying products. The sections below document API and configuration changes between VR-Engage 2.2 and VR-Engage 2.3 that affect toolkit developers.
Historical API examples refer to the SVN vrEngage/tags/vrengage2-2 release snapshot. Current signatures and usage refer to the reviewed trunk checkout. Keep the source and target contexts separate; an API in a 2.2 "before" fragment is not a current-API recommendation.
Start with System Overview for the process boundaries and Breaking changes for required updates. Later sections cover new capabilities, configuration and content, and examples. Use Reference for library-specific API changes and the list of changed headers.
Existing frontend connectors no longer accept DtPlayerStationApp* in install(). Update installation calls and custom overrides to use these signatures:
| Connector | 2.2 call | 2.3 call |
|---|---|---|
DtSimEventConnector | install(app, connection) | install(connection) |
DtFriendlyUnitsConnector | install(app, connection) | install(connection) |
DtRadioConnector | install(app, connection) | install(connection) |
DtRemoteEntityConnector | install(app, connection) | install(connection) |
DtUpdateVisualsConnector | install(app, connection) | install(connection) |
DtWeaponFireConnector | install(app, connection) | install(connection) |
DtLaserDesignatorConnector | install(app, connection) | install(connection, laserDesignatorList) |
The connection argument remains a makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection*. The new laserDesignatorList argument is a makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkReflectedLaserDesignatorList*. Pass the active connection's reflected designator list explicitly. The connector no longer reads this list from application attributes.
The two-argument laser-designator method no longer overrides DtSimEventConnector::install(). Call it through DtLaserDesignatorConnector or a derived class. Calling install(connection) through the base class does not register designator monitoring callbacks.
DtSimEventConnector::myApp was removed. Read shared application state from DtAttribute::Root()["App"]. Update base-class installation calls to DtSimEventConnector::install(connection). The lifecycle also changed from tick() to tick(double dt). Update custom overrides and tick callers. See Connector installation API details for subclass and dependency examples.
DtConnectorAccessory now initializes shared simulation infrastructure before installing its base connectors. The slot_onSimConnected() method calls setupVrfInfrastructure() before installBaseConnectors(). Custom installation code must pass the remote controller and reflected lists explicitly where the connector needs them. See Connector installation dependencies for the argument list.
The accessory's createAndInstallConnector() helper supplies the connection as the first installation argument. It does not pass an application pointer. Entity-specific installation through handleInstallConnectors() also calls install(connection). Update custom connector subclasses registered with the connector factory to match this interface.
The accessory publishes the reflected entity list at App.DtReflectedEntityList before installing connectors. DtFriendlyUnitsConnector and DtWeaponFireConnector read this attribute. DtRadioConnector reads App.DtDe. Ensure these attributes contain valid pointers when using a custom installation path.
During disconnect, slot_onSimAboutToBeDisconnected() calls uninstallBaseConnectors() and clearEntityConnectors(). Keep the controller and supplied reflected lists alive until connector shutdown completes.
The attribute system now returns values instead of references. It also moves write-lock ownership from DtAttribute to DtAttributeHandle.
DtAttribute::Root() now returns DtAttributeHandle by value. The typed get(), previousValue(), and handle dereference APIs also return values.
Source: include/utilities/vreUtil/attribute.h in the 2.2 release tag and current checkout. Do not retain a reference returned by a 2.2 attribute read. Use read() when code must inspect large data without a copy.
DtAttribute::lock(unsigned int), unlock(unsigned int), and locked() are no longer public. Acquire the lock through the handle that owns it.
Call lock() and unlock() on the retained producer handle. exclusiveSet<T>() temporarily unlocks that handle, writes, then reacquires its lock. It is not an atomic exclusion mechanism for competing writers. See include/utilities/vreUtil/attributeHandle.h and attributeHandle.inl.
Use recursiveLock() and recursiveUnlock() for an attribute subtree. isLocked() reports whether the current handle owns the lock.
checkPendingCallbacksRecursive() was removed from the public API. Register callback threads with registerCallbackThread(). Call callbackDispatchTick() from each registered dispatch thread.
The unset(const std::string& name) overload has been removed. Obtain the child handle and call unset() on that handle.
The old overload is declared in the 2.2 tag's include/utilities/vreUtil/attribute.h. The current handle's operator[] supplies the child; the child node has the parameterless unset() method.
| Method | Description |
|---|---|
DtAttribute::read() | Reads a value under the attribute read lock |
DtAttribute::modifyFast() | Modifies a value when the caller can report whether it changed |
DtAttribute::modify() | Modifies a value with automatic change detection |
DtAttribute::addAlias() / removeAlias() | Adds or removes another path to the same attribute |
DtAttribute::contains() | Checks if an attribute is a descendant of this attribute |
DtAttribute::containedBy() | Checks if this attribute is a descendant of another |
DtAttribute::handleCount() | Returns the number of active handles to this attribute |
DtAttributeData::UndefinedType() | Static accessor for the "undefined" type string |
DtAttributeHandle::exclusiveSet<T>() | Sets a value on a locked attribute by temporarily unlocking |
DtAttributeHandle::recursiveLock() / recursiveUnlock() | Locks or unlocks an attribute subtree |
DtAttributeHandleType<T>::operator=(const T&) const | Const assignment operator for typed handles |
New child attributes inherit their parent's persistence setting. In 2.2, new attributes always defaulted to persistent.
The shared-object base classes were renamed. The hierarchy also gained unique-pointer managed bases.
| Removed name | Replacement |
|---|---|
DtSpObject | DtVreSharedObject |
DtSpSubClass<SELF_T, SUPER_T> | DtVreSharedBase<SELF_T, SUPER_T> |
Update custom managed classes to use the new base template.
The old template is declared in the 2.2 tag's include/utilities/vreUtil/baseClass.h; the replacement is declared in that path in the current checkout. Update the base template of an actual derived class while preserving its selected SUPER_T.
DtVreUniqueObject and DtVreUniqueBase<SELF_T, SUPER_T> provide the corresponding factory pattern for std::unique_ptr. Their owning alias is Uptr.
DtPlayerStation has a new accessor method:
This provides direct access to the ownship entity's state attribute without requiring a manual attribute store lookup. The ownship entity attribute is persistent, while other reflected entity attributes are non-persistent by default.
DtEntityControlLogic::setExtendedData() moved to the DtPlayerComponent base. Include vrePlayerStation/playerComponent.h when using the base API directly.
DtPlayerStation::roles() was renamed to roleTypes(). The returned strings identify controlled role-type keys. Replace all overrides and call sites.
Several DtPlayerStationApp methods were removed or renamed.
| 2.2 API | 2.3 replacement |
|---|---|
engageStationName() | engageStationId() |
unsigned long engageStationId() | std::string engageStationId() |
statusListener() | Read App.vreStatus.stations, or use vreManager/vreListener.h in Manager code |
chatCommandManager() | chatManager() |
pluginPath(), loadVreDll(), loadPlugins() | DtVrePluginManager |
createPlayerStation() with no arguments | Use the entity, role, and display-layout overload |
Station IDs are now the startup station-name string. They are not numeric process hashes. deferFunction() now takes its callable by value.
DtVreStatusPublisher and the Player Station DtVreStatusListener were removed. DtSessionStatusConnector now bridges network status with App.vreStatus.local and App.vreStatus.stations. The Manager listener remains in vrfExtensions/vreManager/vreListener.h.
DtFlightControlsInputLogic::initialize() and setFlightControls() now take useDroneFunctionGroup between isFixedWing and useRTD. Update overrides and calls with the new boolean. Set it to true when the function group must be "drone".
A new subsystem provides attribute-based access to data for any reflected entity on the network. The reflected entity tree is rooted at DtAttribute::Root()["Entities"]. Use DtPlayerStationApp::entityStateStore() to access this tree.
DtReflectedEntityConnector populates attributes for any entity whose parameters have registered handles and callbacks. This allows components to observe remote entity state through the attribute system rather than directly querying VR-Link objects. The public header vrePlayerStationConnector/extendedStateConnector.h has been removed; code that used it should move to reflected-entity attributes and the split connector APIs.
See Reflected Entity Attributes for more information.
Ownership transfer is now a first-class frontend subsystem. DtOwnershipTransferManager (vrePlayerStation/ownershipTransferManager.h) stores policy and allocates request IDs. It also coordinates divest operations before exit or voluntary disconnect.
DtOwnershipTransferConnector coordinates acquire and divest requests with the backend. DtPlayerStationApp::ownershipTransferManager() returns the active manager.
If a deployment joins hosted sessions and expects automatic acquisition, playerStationApp.runOwnshipOnJoinedSession must be true. The default configuration now exposes the ownership-transfer policy directly in appData/scripts/playerStation.lua:
Custom code that previously implemented its own take-ownership timing or idle-release policy should move that logic to DtOwnershipTransferConnector or a derived DtOwnershipTransferManager. Register a custom manager before DtPlayerStationApp::initialize().
The old deployable-object frontend classes have been removed from the public API: deployableObjectsSimLogic.h and deployableObjectsInputLogic.h. Their responsibilities are now split across focused components such as DtDroneControlLogic, DtDroneInputLogic, DtLauncherControlLogic, DtLauncherInputLogic, DtRemoteSensorViewLogic, DtEmbeddedEntityLogic, DtTowingControlLogic, DtDroneTaskLogic, and the shared deployableObjectsTypes.h data types.
If custom role definitions referenced the removed component types, replace them with the appropriate focused components. The default roles/devices/deployableObjects.lua now shows the intended composition pattern:
Custom C++ subclasses that previously included one of the removed headers should move to the specific replacement class that matches the behavior they extend.
Several player-station helper APIs have been split into smaller public classes. DtVreChatManager (vrePlayerStation/vreChatManager.h) now owns slash-command registration and high-level chat/window control. DtChatCommand moved into the same header.
DtVreHeaderFooterUIBase was removed. Derive QML pages from DtVreBaseUI. Use the shared DtVreHeaderFooterUI controller for header, footer, notification, and cutout state.
DtPlayerStationPersistentNotification was removed. Persistent page notifications now use the shared DtVreHeaderFooterUI instance. Timed notifications use DtPlayerStationTempNotification.
DtVrePluginManager (vrePlayerStation/vrePluginManager.h) now exposes plugin discovery, loading, post-initialization, and shutdown as a public API.
If a plugin previously included vreChatCommandsManager.h, move command registration to app.chatManager().addCommand(...). If a custom chat window integrated directly with DtVreChatWindow, use DtChatWindowInterface and DtVreChatManager::setWindow() for the public connection point. Frontend plugins can now optionally expose post-init and shutdown entry points alongside the usual init function. The current loader accepts any recognized hook and skips missing hooks in each phase; use init when registering creators:
Custom pages that embedded their own header/footer QML should be updated to cooperate with the shared DtVreHeaderFooterUI instance instead of keeping separate page-local header/footer implementations.
DtOptimizingVRPerformanceDialog and optimizingVRPerformanceDialog.h were removed. VR-Engage no longer opens the optimization-tip dialog when a user selects a VR display layout.
Remove includes, subclasses, and calls to showOptimizingVRPerformanceDialog(). There is no replacement dialog API.
The VRE Manager UI no longer uses the older table-and-dialog stack. vreTableModel.h, vreTableView.h, roleItemDelegate.h, spectatorItemDelegate.h, vreEntitySelectionDialog.h, and vreEntitySelectionFilter.h have been removed. The replacement API is a model stack centered on DtVreAssignmentTracker, DtVreEntityRoleTreeModel, DtVreStationListModel, DtVreStationSortProxyModel, DtEntityRoleTreeDelegate, DtStationItemDelegate, and DtStationListView.
Custom code that extended DtVreManagerWidget must update to the new two-panel assignment workflow. Confirmed and pending assignment state now lives in DtVreAssignmentTracker, and the public status-listener header for manager code is vrfExtensions/vreManager/vreListener.h. The callback identifier type also changed from unsigned long to const std::string&, matching station ID strings instead of numeric IDs.
Two VR-Forces extension classes were removed because the base product now supplies their behavior.
| Removed class | Replacement |
|---|---|
DtVreEmbeddedEntityInfoManager | DtEmbeddedEntityInfoManager from VR-Forces |
DtVreDiGuyIntrinsicAnimationMap | DtDiGuyIntrinsicAnimationMap from VR-Forces |
Remove custom creator registration for these VR-Engage classes. VR-Forces now finds derived embedded-entity controllers through dynamic-cast lookup.
DtVreRlActuator::calculateFuel() was also removed. Remove custom overrides.
Station identity and entity UUID fields now use typed, stable values. This changes both source APIs and encoded message content. Update all producers and consumers together.
| Message API | 2.2 | 2.3 |
|---|---|---|
| Assignment target | setId(unsigned long) / id() | setStationId(const DtString&) / stationId() |
| Assignment entity | setUUID(const DtString&) | setUUID(const DtUUID&) |
| Status station | setId() and setName() | setStationId(const DtString&) |
| Status entity | UUID string | DtUUID |
| Sensor subscriber | unsigned long | DtString |
| Controlled station | Numeric station ID | String station ID |
DtIfVreStatus also publishes ownshipSimAddress(). DtIfVreSensorDataRequest now includes sensorName().
DtSetVreControlledRequest::stationName() was removed. Use roleName() for the entity-role name. The roles() payload now contains role-type keys.
Use the startup station ID string in the new message; do not stringify a 2.2 numeric station ID.
vreMessages separates joystick function-group control from role occupancy and removes the old extended-state message stream. Update custom message senders and handlers for these changes. Message additions cover ownership transfer, deployable-object views, missile detach, cached assignments, and Vortex collisions. State-property messages also add vector values. See vreMessages Library API Changes for payload changes and usage examples.
DtVreMessageManager::init(), tick(double), and sendMessage() were removed. Update custom dispatch loops and message senders:
| 2.2 API | 2.3 API | Action |
|---|---|---|
init() | initDispatchThread(isMainThread) | Register each dispatch thread; pass true on the main thread |
tick(dt) | dispatchTick(dt) | Process queued messages on each registered dispatch thread |
sendMessage(msg) | sendMessageAsap(msg) | Dispatch to handlers on the current registered thread; queue delivery to other threads |
Call shutdownDispatchThread() before each registered thread exits. addHandler() now associates a handler with its registration thread. If that thread is not registered, the handler runs on the main dispatch thread. Unlike the old sendMessage(), sendMessageAsap() does not immediately call handlers on other threads.
DtVreMessageDelegate moved from vreMessage.h to vreMessageManager.h. Include vreMessageManager/vreMessageManager.h when using it directly. DtVreMessageHandler and DtVreMessageHandlerGroup in that header now manage handler disconnection when their owners are destroyed. Use them for custom handlers whose lifetime must match a component or another owning object.
LOG_FATAL, LOG_WARN, LOG_INFO, LOG_VERBOSE, and LOG_DEBUG now take a channel and a printf-style format string. Code that streams into a one-argument logging macro no longer compiles. Use the corresponding LOG_*_STREAM(channel) macro to keep stream syntax, or format explicitly:
Both excerpts come from libsrc/framework/vrePlayerStation/playerStationStateManager.cxx, in the 2.2 tag and current checkout respectively. Include vreUtil/logger.h. The LOG_*_STREAM(channel) macros remain available for stream-based code.
Direct calls such as DtVreInfo(channel, function) that previously returned a stream now use DtVreInfoStream(channel, function). The same Stream suffix applies to the other severity levels.
Three public utilities support the new frontend architecture.
| Class | Header | Purpose |
|---|---|---|
DtFunctionQueue | vreUtil/functionQueue.h | Runs deferred functions before or after a display-engine tick |
DtSettingsOverrideGuard | vreUtil/settingsOverrideGuard.h | Applies temporary settings and restores unchanged values |
DtLocalMessage | vreMessages/localMessage.h | Carries typed parameters inside one application process |
DtLocalMessage does not support network replication. Use a generated VR-Engage message for frontend-to-backend traffic.
New public simulation APIs add quadcopter, ownership-transfer, proximity, and Vortex support.
DtVreQuadCopterActuator and DtVreQuadCopterActuatorDescriptorDtVreHumanWeaponStateActuatorDtVreEmbeddedEntityOwnershipTransferHandlerDtTowHookProximitySensor and DtAnnotationProximitySensorDtVortexCollisionDynamicsExtensionDtVortexObjectLoadManager and DtVortexMaterialDebugHelpersDtVreRotaryWingMoveToControllerSHIFT+F4 toggles the debug window within the ImGui overlay. F4 toggles the overlay itself. The General tab now exposes more frontend data:
Application Log captures DtOutputStream output from DtFatal, DtWarn, DtInfo, DtVerbose, and DtDebug while logging is enabled. It supports severity filters, text search, copy mode, Clear, Auto-scroll, and a detached window.Player Stack lists each local player station's index, name, entity ID, and active or shutdown state.All Attributes displays the root attribute tree with a name filter and trace checkboxes for Sets, Changes, Gets, and Lookups. The Trace column is hidden until tracing is enabled.Fill out all Reflected Entity Attributes queues the local debug.rea.fillAll message. It creates attribute handles for known reflected entities; it does not request fresh backend values.Backend-driven debug options show their name, process, ID, address, and enable state. On app.network.connected, late-joining frontends send DebugMetaRegisterMessage::Action_REQUEST so backends can re-announce those options.
Toolkit code can use DtImGuiLogPrinter (vreDebugManager/debugLogPrinter.h) to render captured logs. DtRenderAttributeDebugTable() (vreDebugManager/debugHelperFunctions.h) renders an attribute subtree. DtVreDebugManager::logPrinter() returns the installed printer, and getDebugProcessesByType(menuSection, debugType) finds registered debug processes.
The logViewer table in appData/scripts/vrEngageDebug.lua controls log retention, initial capture, and initial expansion of the Application Log section:
Several vehicle movement system definition files were reorganized. Four standalone .sysdef files have been replaced by template-based .template_sysdef files.
ground-tracked-vortex.sysdefground-tracked-vortex-no-gun.sysdefground-lav-vortex-no-gun.sysdefground-hmmwv-vortex.sysdeftemplates/vortex_wMainGun.template_sysdeftemplates/vortex.template_sysdeftemplates/ground-wheels-off-road-vortex_wMainGun.template_sysdeftemplates/ground-tracked-vortex.template_sysdeftemplates/ground-tracked-vortex_wMainGun.template_sysdeftemplates/ground-wheels-off-road-vortex.template_sysdefIf your entity .entity files or SMS configurations reference any of the removed .sysdef files, update them to use the replacement template or one of the remaining concrete .sysdef files. Review the modified .sysdef files in data/simulationModelSets/VR-Engage/vrfSim/systems/movement/ for updated template references.
A non-Vortex 120mm gun system definition has been added:
systems/weapons/engage-120mm-gun-non-vortex.sysdefThis supports entities that use the 120mm main gun without Vortex physics integration.
Radio device configuration files have been modified:
data/simulationModelSets/VR-Engage/roles/devices/radio.pilot.luadata/simulationModelSets/VR-Engage/roles/devices/radio.human.luadata/simulationModelSets/VR-Engage/roles/devices/radio.vehicle.luaappData/settings/vrEngage/radios.mtlRadio channels now live in a shared components["radioLogic"].channels list, not inside each radios entry. Move channel definitions from custom radio entries into that list. Add audioChannel to each radio ("left", "center", or "right") and set its currentChannel as a zero-based index into the shared list. The defaults use -1 for no selected channel. Update custom radio menu actions from cycleDuplex to cycleAudioChannel.
The default capture settings also change from sampleRate = 11025, format = "MONO8" to sampleRate = 44100, format = "MONO16". Review private capture settings before adopting the new defaults.
DtRadioLogic::handleCycleDuplex() and currentDuplex() were removed. Use handleCycleAudioChannel() and currentAudioChannel() for the left, center, or right audio output.
VRF GUI now ships default configuration pages in appData/settings/vrfGui/default_guiConfiguration.gui, appData/settings/vrfGui/default_guiRolePlayer.gui, and appData/settings/vrfGui/default_simulationObjectGroup.gui. Deployments that override the vrfGui factory settings directory should merge these files or carry forward equivalent content, otherwise the new default pages will not be available.
The shared post-processor and render settings files were removed from the VR-Engage source data. The installer now receives these defaults from VR-Vantage. Remove packaging rules that copy:
appData/settings/shared/default_PostProcessorSettings.ppsxappData/settings/shared/default_RenderSettings.mrsxappData/settings/vrfSim/character_animations_table.mtl was removed with the corresponding VR-Forces animation-map support. Remove private references to this table.
headsUpDisplayStartupConfig.lua was replaced by focused flight-station examples:
minionOTWCustomSettings.luapilot2ScreenCustomSettings.luabossInstrumentPanelCustomSettings.luaUpdate --customSettingsFile arguments to use the script that matches the station role.
Several default VR-Engage asset filenames also changed. The sedan, ACV, and DJI Mavic defaults were renamed, and two role files were removed:
| Removed asset | Replacement or action |
|---|---|
data/simulationModelSets/VR-Engage/vrfSim/vreStandard_MidSize_Sedan.entity | data/simulationModelSets/VR-Engage/vrfSim/vreSedan Standard.entity |
data/simulationModelSets/VR-Engage/vrfSim/vreSport StandardSize Sedan.entity | data/simulationModelSets/VR-Engage/vrfSim/vreSedan Sport.entity |
data/simulationModelSets/VR-Engage/vrfSim/vreAmphibious Combat Vehicle (ACV).entity | data/simulationModelSets/VR-Engage/vrfSim/vreACV-P.entity |
data/simulationModelSets/VR-Engage/vrfSim/DJI Mavic 3 Pro.entity | data/simulationModelSets/VR-Engage/vrfSim/vreDJI Mavic 3 Pro.entity |
data/simulationModelSets/VR-Engage/roles/boxerDriver.lua | Replace references with another supported role file or maintain a project-local copy |
data/simulationModelSets/VR-Engage/roles/slingLoadOperator.lua | Replace references with another supported role file or maintain a project-local copy |
The vehicle blinker QML moved from data/UI/examples/dashboard-with-blinkers.qml to data/UI/HUDS/examples/vehicleBlinker/dashboard-with-blinkers.qml. Update custom role paths.
New role and display assets include boxerGunnerOverride.lua, roles/devices/towing.lua, and three pilot CIGI display layouts. The drone HUD also adds HUDS/drone/signalLost.qml.
The default SMS adds these entity configurations:
vreBMP-2_AFV.entityvreBTR-90 APC.entityvreT-72 MBT.entityvreRussian Soldier AK47.entityvreRQ-16A T-Hawk.entityvreMikrokopter Okto XL.entityvreDJI Phantom 4.entityvreDJI S1000.entityvreFLIR Black Hornet PRS.entityvreDJI Mavic 3 Small Munition Fiber Optic.entityvreVesper With Grenades.entityvreVesper One Way Drone.entityvreVampire Quadcopter.entityvreVampire Quadcopter With Grenades.entityvreVampire Hexacopter.entityCorresponding saved view configurations have been added under roles/savedViews/. The new quadcopter entity configurations use systems/movement/quadcopter.sysdef. Check each entity's movement settings before copying it. For example, vreDJI Mavic 3 Pro.entity also specifies a RotorLib configuration.
The humanArtPartActuator example has been removed from the release.
These pages describe toolkit API changes by library. Start with the library used by your project, then use the header summary below to locate individual changed files.
The following table groups the header files under include/ by library.