VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
VR-Forces Sim Engine Examples

Table of Contents

VR-Forces comes with a number of code examples.

These examples can be useful as starting points for extending the VR-Forces sim engine. See also VR-Forces GUI and Other Examples.

Plug-in Examples

Plug-in examples are dynamically linked libraries that are loaded using the GUI menu "Settings->Plugins" dialog.

Add Sim Engine Command Line Arguments via a Plug-in (addBackendCommandLine)Adds new command-line arguments to the back-end command line.
Add Comm Model (addCommModel)Add a new communication model to control how radio messages are sent between entities.
Add Database Event (addDatabaseEvent)Adds a new database event type that can be logged out to an external database.
Add Conditional (addConditionalSim)Add a new conditional expression to plan language. Related to front-end example Add Conditional.
Add Event (addEvent)Add a new system event, providing a thread-safe way to communicate such events between the sim and the network threads.
Add FOM Class (addFomClassSim)Adds support for a new FOM class which can be mapped to a RPR FOM entity. Related to front-end example Add FOM Class.
Add Lua Function (addLuaFunction)Add a new bound function to be available in Lua scripts
Add Script Variable (addScriptVariableSim)Add a new scripted task variable used for scripted task, sets and recactive tasks. Related to front-end example Add Script Variable.
Add a new sensor propagator (addSensorPropagator)Add a new sensor signature propagator for modifying a target signature along the line from target to sensor.
Add a new sensor signature modifier (addSensorSignatureModifier)Add a new sensor signature modifier for changing the signature of a target.
Add Set (addSetSim)Add a new set data request command. Related to front-end example Add Set.
Add Simulation Command (addSimCommandSim)Add a new simulation command. Related to front-end example Add Simulation Command.
Add Sim Component (Controller and Process State Repository) (addSimComponent)Add a new component and PSR (process state repository) for saving/restoring component's state
Add State Component (addStateComponentSim)Add a new state component showing how to add new state data and how to access it
Add State Property (addStatePropertySim)Adds new state properties which are published to the network. Related to front-end example Add State Property.
Add Task (addTaskSim)Add a new task.
Add Task Interaction (addTaskInteraction)Add a new event translator to create a new task event.
Importing/Exporting Scenarios from Different File Formats (csvScenarioImporterExporterSim)Add a new scenario import/export format for use with VR-Forces.
Database Connection (databaseConnection)Connect to a MySQL server for database output.
Decide to Give Up (decideToGiveUpTask)Give up a task based on user-defined criteria
Display AggregateLevel State Data (displayStateData)Displays state data in response to a console command tailored for a particular object. This is a HLA 1516 Evolved example only.
Encumbered Flight (addSetEncumbranceSim)Add a new set data request command to change the cargo weight of rotary wing aircraft.. Related to front-end example Encumbered Flight GUI.
State Repository Extension (extendStateRepository)Extend existing state repository classes through composition instead of subclassing
Event Manager TCP Connection (eventManagerTCPSim)Show how to send VR-Forces data interactions over TCP rather than the UDP connection. Related to front-end example Event Manager TCP GUI
Interface Content (interfaceContentSim)Send an interface content message. Related to front-end example Interface Content.
Joystick Controller (joystick)Creates a new joystick enabled controller that shows how to add and configure a joystick enabled controller.
Meta Data Script Encrypt/Decrypt (metaDataEncryptDecrypt)Example of how to encrypt meta data language scripts.
Modify Sim Component (modifySimComponent)Modifies an actuator to apply different functionality to existing code
Modify Weather Model (modifyWeatherModel)Modifies the weather state provider used by the environmental state manager to provide weather information to the simulation.
Object Manager Extension (objectManager)Subclass and install your own version of the object manager
Radar Warning (radarWarnRx)Add the ability to detect and react to a threat to an aircraft. Related to Simulation Object Editor example Radar Warn.
Scenario Metrics (scenarioMetrics)Demonstrates how to export specific metrics to a text file. Also shows how to set up backend callbacks to collect those metrics.
Settings Manager Extension (settingsManagerSim)Demonstrates how to install your own settings manager
Simple Plan (simplePlan)Demonstrates how to construct and assign a simple plan to a pre-existing entity to execute.
TDL Message Extension (tdlMessageSim)Add a VRF TDL message to show which entity an object is tracking. Related to front-end example TDL Message.

Standalone Examples

Standalone examples are self-contained executables.

Simple CGF (simpleCGF)Simple application that loads a terrain, creates an entity, and gives the entity a task to perform

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)