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

A database event type defines a particular type of data to be logged to the database. Each event type will result in the creation of a new table in the database. Each event type is identified by an enumeration, DtVrfDatabaseEvent::EventType, which can be mapped to a table name.

The Database Tables Generated by VR-Forces section defines the default database tables created by VR-Forces. Plugin developers can also add their own event types resulting in new tables. It is not necessary to fully define the event and all of its parameters ahead of time, as we do here. The first time a database event is logged a table will automatically be created with matching parameters. However, doing so up front will ensure the table is created ahead of time and will force all future events of the same type to conform to the defined parameters.

Please see the example for details on how to connect VR-Forces to new types of databases or add new database events and tables.

Database Tables Generated by VR-Forces

This is the list of database tables VR-Forces generates. Each table has a name, description, and a list of its parameters.

Additionally, all tables will automatically have three parameters added if not specified:

Scenario Run

Table Name: ScenarioRun
Description: Logged whenever a scenario is created/loaded and run.
Valid For SMS: All
Parameters:

Sim Engine

Table Name: SimEngine
Description: Logged when a sim engine starts up and then updated at shutdown.
Valid For SMS: All
Parameters:

Fire

Table Name: Fire
Description: Logged whenever a munition is fired.
Valid For SMS: EntityLevel
Parameters:

Detonation

Table Name: Detonation
Description: Logged whenever a detonation occurs.
Valid For SMS: EntityLevel
Parameters:

Damage

Table Name: Damage
Description: Logged whenever an entity takes damage.
Valid For SMS: EntityLevel
Parameters:

Object

Table Name: Object
Description: Logged whenever a new sim object is created.
Valid For SMS: All
Parameters:

Resource

Table Name: Resource
Description: Logs the amount of a resources an entity currently has.
Valid For SMS: All
Parameters:

Detection

Table Name: Detection
Description: Logs information about what an entity currently knows about another object it has detected.
Valid For SMS: All
Parameters:

Engagement

Table Name: Engagement
Description: Logs information about an engagement a unit took part in. Engagements are simply records of attacks that involved the given unit over some particular period of time. When combat ends, and then later resumes, a new engagement is started. Engagements are unit specific, meaning different units may refer to an engagement with a different ID. A table entry will continue to be updated until the attack completes.
Valid For SMS: AggregateLevel
Parameters:

Engagement Attack

Table Name: Engagement Attack
Description: Logs information about a specific attack made by one unit against another, from the perspective of the attacking unit. Can be part of a larger engagement. A table entry will continue to be updated until the attack completes.
Valid For SMS: AggregateLevel
Parameters:

Engagement Defense

Table Name: Engagement Defense
Description: Logs information about a specific attack made by one unit against another, from the perspective of the defending unit. A table entry will continue to be updated until the attack completes.
Valid For SMS: AggregateLevel
Parameters:

Engagement Casualty Report

Table Name: EngagementCasualtyReport
Description: Logs information about casualties that occurred during an engagement. A table entry will continue to be updated until the engagement completes.
Valid For SMS: AggregateLevel
Parameters:

Engagement Damage Report

Table Name: EngagementDamageReport
Description: Logs information about damage that occurred during an engagement. As equipment is damaged, a table entry will be generated for each type of equipment. These entries will continue to be updated until the engagement completes.
Valid For SMS: AggregateLevel
Parameters:

ScenarioEvent

Table Name: ScenarioEvent
Description: Each time a scenario event starts or stops and event is logged.
Valid For SMS: All
Parameters:


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)