Compare commits

...

2 Commits

Author SHA1 Message Date
github-actions
218ffa4fbb v1.0.0 Build 16 2025-05-04 00:34:59 +00:00
Jacob Schmidt
dc72f88327 feat(db): Force save on mission end
All checks were successful
Build / Build (push) Successful in 29s
This commit introduces a mission event handler that forces a database save with backup when the mission ends.

Key changes:

*   **`XEH_preInit_server.sqf`:** Added an "Ended" mission event handler that calls the `ArmaDragonflyClient` extension with the "savedb" command and logs an info message. This ensures that the database is saved when the mission ends, providing a backup in case of unexpected server shutdowns.
2025-05-03 19:34:43 -05:00
2 changed files with 7 additions and 2 deletions

View File

@ -1 +1,6 @@
#include "script_component.hpp"
#include "script_component.hpp"
addMissionEventHandler ["Ended", {
"ArmaDragonflyClient" callExtension ["savedb", []];
INFO("Mission ended - forced save with backup");
}];

View File

@ -1,4 +1,4 @@
#define MAJOR 1
#define MINOR 0
#define PATCH 0
#define BUILD 15
#define BUILD 16