Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
807906d
Apollo Server: Chronos persistence through Minotaur's game API
jonpas Nov 11, 2026
1ee617e
Apollo: rename callServer to callServerExt, use Minotaur's Apollo API…
jonpas Nov 11, 2026
2476a7d
Apollo: live or development website by debug mode
jonpas Nov 11, 2026
b615bb8
Armory: Kits (prepared on the website), taken from the locker in one go
jonpas Nov 14, 2026
de8357a
Bodybags: "Return to owner" at base sends the bag to the website, whe…
jonpas Nov 17, 2026
e2b94af
Apollo: the killer and the bodybag's returner aren't sent (nothing us…
jonpas Nov 17, 2026
e0218ca
Extensions: Rust edition 2024 (rust-version 1.88, what the dependenci…
jonpas Nov 17, 2026
fd6e25f
Update GitHub Workflow actions to latest versions (v7)
jonpas Nov 17, 2026
d738e86
Apollo: persistent variables (insignia, earplugs, the gunbag's weapon…
jonpas Nov 17, 2026
f14b9cc
Apollo: fixes from checking the persistent variables against the wiki…
jonpas Nov 17, 2026
a9fb458
Apollo: zeroing for every muzzle; ACE's zero reference kept across mi…
jonpas Nov 18, 2026
b49c994
Apollo: website addresses from APOLLO_URL / APOLLO_DEBUG_URL, setting…
jonpas Nov 18, 2026
a5349d6
Apollo: development website unless the server is the live one; versio…
jonpas Nov 19, 2026
0e1ba2a
Apollo: no separate test (debug) lockers and saves; no more jni / Apo…
jonpas Nov 19, 2026
fa36f32
Fix HEMTT 1.23 warnings and help notes
jonpas Nov 20, 2026
372a164
Apollo: integration test no longer asks for the removed server endpoint
jonpas Nov 20, 2026
921f1e5
Apollo: native-tls instead of rustls (aws-lc), apollo-client reports …
jonpas Nov 22, 2026
5558973
Apollo: drop the gunbag weight workaround, fixed in ACE3
jonpas Nov 23, 2026
f82c388
Apollo: stash partly used magazines with their rounds; Armory: no Lau…
jonpas Nov 23, 2026
69dfb78
Armory - Hide launchers button differently
jonpas Nov 23, 2026
5474e7b
Apollo Rework: structured vehicle save, persistence in one place, sta…
jonpas Nov 20, 2026
39ffd86
Apollo Rework: document persistent vehicles and where the checks befo…
jonpas Nov 20, 2026
1c72271
Apollo Rework: the rework's game tests are section 7 now
jonpas Nov 23, 2026
4b3857d
Apollo Rework: vehicles and the Armory's box made from Minotaur's dat…
jonpas Nov 23, 2026
f0c387e
Apollo: README documents the addon only
jonpas Nov 23, 2026
2fdf81c
Apollo: deaths registered when killed; settings for each vehicle pers…
jonpas Nov 23, 2026
06079f2
Armory: Stash All; Apollo: what players place saved automatically
jonpas Nov 23, 2026
936cb69
Apollo: reconnect keeps the team colour, not the group; bodybag and s…
jonpas Nov 23, 2026
ee86128
Armory - Apply the Launcher button settings, keep it hidden
jonpas Nov 23, 2026
6e2574f
Merge branch 'master' into new-website-minotaur
jonpas Nov 23, 2026
3fe999e
Bump build to 114
jonpas Nov 23, 2026
76a012f
Apollo - Save pylons without their objects
jonpas Nov 23, 2026
6062939
Apollo - Load grad trenches tilted first at ground level, send loadou…
jonpas Nov 24, 2026
85d7a2c
Armory - Buttons, titles and labels as LCD14 text instead of pictures
jonpas Nov 24, 2026
8df56b7
Armory - Trial: the Rifles button's frame drawn by the game (ST_FRAME)
jonpas Nov 24, 2026
d79aa29
Armory - Strings with LLSTRING; titles from a table
jonpas Nov 24, 2026
46d21b0
Armory - Taller button text, frame placed on the picture's lines, sta…
jonpas Nov 24, 2026
a740e9c
Armory - Every button's frame drawn by the game, camera as an icon; r…
jonpas Nov 24, 2026
4131e8a
Armory - Buttons and title on the pad's grid, wider buttons; errors a…
jonpas Nov 24, 2026
9b25b8d
Armory - Drop the taking kit and stashing hints, Export confirms on t…
jonpas Nov 24, 2026
0e1fb35
Armory - Empty Chronos locker in single player
jonpas Nov 24, 2026
6ebd348
Armory - No blinking background on the focused button (Export blinked…
jonpas Nov 24, 2026
20bf2f9
Armory - Main menu in pairs: Rifles/Pistols, Wearables/Backpacks, Amm…
jonpas Nov 24, 2026
2d098ba
Armory - TAKE a kit's item on its own from the Kits screen
jonpas Nov 24, 2026
7d0af24
Armory - Amount dropdown in the pad's style (framed, on the grid, LCD…
jonpas Nov 24, 2026
5e36b36
Armory - Stash All's comment: leftovers are a message on the pad
jonpas Nov 24, 2026
100a209
Update Armory Background image, replace LCD14 font
Mike-MF Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/arma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Validate SQF
run: python3 tools/sqf_validator.py
- name: Validate Config
Expand All @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Lint (sqflint)
uses: arma-actions/sqflint@master
continue-on-error: true # No failure due to many false-positives
Expand All @@ -32,14 +32,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Setup HEMTT
uses: arma-actions/hemtt@v1
- name: Run HEMTT build
run: chmod +x hemtt/hemtt && hemtt/hemtt build
- name: Rename build folder
run: mv .hemttout/build .hemttout/@theseus_mods
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: TheseusMods_${{ github.sha }}-nobin
path: .hemttout/@*
Expand Down
23 changes: 14 additions & 9 deletions .github/workflows/extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,32 @@ jobs:
include:
- toolchain: stable-x86_64-unknown-linux-gnu
os: ubuntu-latest
from: libapollo_client.so
prefix: lib
ext: .so
to: _x64.so
- toolchain: stable-x86_64-pc-windows-msvc
os: windows-latest
from: apollo_client.dll
prefix: ""
ext: .dll
to: _x64.dll
- toolchain: stable-i686-pc-windows-msvc
os: windows-latest
from: apollo_client.dll
to: .dll
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the source code
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Install Rust Toolchain
run: rustup toolchain install ${{ matrix.toolchain }}
- name: Test
run: cd extensions && cargo +${{ matrix.toolchain }} test
- name: Build
run: cd extensions && cargo +${{ matrix.toolchain }} build --release
- name: Move
run: mkdir release && cp extensions/target/release/${{ matrix.from }} release/tac_apollo_client${{ matrix.to }}
- uses: actions/upload-artifact@v4
shell: bash
run: |
mkdir release
for name in apollo_client apollo_server; do
cp extensions/target/release/${{ matrix.prefix }}${name}${{ matrix.ext }} release/tac_${name}${{ matrix.to }}
done
- uses: actions/upload-artifact@v7
with:
name: extensions-${{ matrix.toolchain }}-${{ github.sha }}
path: release
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Install Python packages
run: |
pip3 install wheel
Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,22 @@ _Replace `hemtt` with `hemtt.exe` on Windows._
### Extensions

**Requirements:**
- Rust (>= 1.59)
- Rust (>= 1.88, edition 2024)
- 64-bit only (`_x64`): Arma 3 no longer runs 32-bit, so there are no x86 builds
- Linux: OpenSSL development files (`libssl-dev`, `pkg-config`) to build; OpenSSL 3 (`libssl3`) where the `.so` is loaded. Windows uses its own TLS (schannel)

Extensions builds must be invoked manually or via CI:
- Run `$ cargo build [--release]` in `extensions` directory
- Run `$ cargo test` in `extensions` directory

Both live in the mod folder (`tac_apollo_*_x64.dll` / `.so`); only servers load `tac_apollo_server`. They use the development website unless the server is the live one, as does testing without a server.

- `tac_apollo_client`: loaded by players' games, reads players' loadouts, lockers, items and trainings from Minotaur's Apollo API (`/apollo/v1/client`) on the website the server uses.
- Log: `logs/tac_apollo_client.log`.
- `tac_apollo_server`: loaded by game servers, saves and loads players, vehicles and lockers through Minotaur's Apollo API (`/apollo/v1/server`).
- Log: `logs/tac_apollo_server.log`.
- End-to-end test against a running Minotaur: see `extensions/apollo-server/tests/minotaur.rs`.
- Settings, as environment variables (game servers run in Docker):
- `APOLLO_SERVER_TOKEN` (required on servers): from that website's admin (Chronos · Apollo › Game servers).
- `APOLLO_SERVER_LIVE=true` on the live server only: it and its players use the live website.
- `APOLLO_LIVE_URL` / `APOLLO_DEV_URL`, only if the live / development website isn't the usual one (`https://www.theseus-aegis.com` / `https://srv.theseus-aegis.com/minotaur`), e.g. `APOLLO_DEV_URL=http://localhost:8000` for a local Minotaur. Both extensions read them; players don't need to set anything.
22 changes: 22 additions & 0 deletions addons/apollo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

Adds Apollo in-game persistence system (part of Chronos).

## Persistent vehicles

- **Saving:** every 60 s the server saves each persistent vehicle (`fnc_vehicleSaveServer`): one SQF array of `[key, value]` pairs (`fnc_vehicleSingletonSave`), sent with apollo-server's `storeVehicle`. Minotaur keeps it (`apollo/vehicles.py`).
- **Loading:** Minotaur sends the same pairs back as data, in pieces (`getVehicle`), and `fnc_vehicleSingletonLoad` makes the vehicle from them (`fnc_setCargo` for inventories). Minotaur sends no SQF code: a new saved property needs its save here, its field in Minotaur, and its load here.
- **Saved:** position and tilt, damage and hit points, fuel, lock, customization, cargo (backpacks, uniforms and vests with their contents, magazines with their rounds, weapons with their attachments), turret magazines, pylons, ACE cargo, ACE fuel (finite) and ACE ammo (the "limited" supply's count, or the "only specific magazines" supply's magazines), grad_trenches progress.
- **Settings** (TAC Apollo › Vehicles, all on by default): a mission can turn off objects that aren't vehicles (trenches, sandbags, fortifications, crates), static weapons (with ACE CSW tripods), turret ammo, pylons, ACE cargo, and ACE fuel and ammo supply. Each is then neither saved nor loaded (a vehicle keeps what it's made with).
- **Persistent:** vehicles loaded from Chronos, objects added with Zeus "Add object to Chronos", and what players place, a second later (`fnc_registerPlaced`, if its setting is on): static weapons (ACE CSW `deployWeaponSucceeded`, vanilla `WeaponAssembled`), trenches (`ace_trenches_placed`), ACE fortify objects (`acex_fortify_objectPlaced`), and, with no event for them, ACE sandbags and tripods (server class init handlers). Objects that exist before the vehicles are loaded (the mission's) aren't. All go through `fnc_registerVehicle`.
- **Removal:** a persistent vehicle is removed from Chronos a second after it's deleted (packed up, deleted in Zeus, a wreck cleaned up; a `Deleted` handler from `fnc_registerVehicle`, `removeVehicle`). A mission ending runs no more timers, so it removes nothing. Any that went without the handler are removed at the next save round. A vehicle loaded as ACE cargo is saved inside its carrier only.
- **Round-trip test** (test servers only): from the debug console, `[cursorObject] remoteExec ["tac_apollo_fnc_testVehicleRoundTrip", 2]` saves the vehicle, deletes it, loads it back with the same functions as a restart, and reports the differences (RPT and chat).

## Deaths

A player's death is registered when they're killed (`fnc_handleKilled`, `playerDied`), with the loadout and variables at that moment and the death's key (its bodybag's ID). The respawn only reloads the player (`fnc_handleRespawn`, `playerRespawned`); if the killed event didn't register the death, the server registers it then. A player who leaves while dead isn't saved, and their corpse stays for its bodybag.

## Locker (Armory)

The Armory's stash and take go through `fnc_lockerAction` (and kits through `fnc_lockerTakeKit`). Minotaur replies with data only: nothing for a stash (the box is changed here once it accepted), `[class, count, rounds]` entries for what to add to the box when taking (`fnc_lockerQueue`). `fnc_boxCargo` adds or removes by the item's type.

**Stash All** (the Armory's Stash screen): one server event; `fnc_lockerStashAll` empties backpacks, vests and uniforms into the box, then stashes each class with `fnc_lockerAction` (weapons first, then what they leave behind with the rest), as a single stash works it out (`tac_armory_fnc_getStashVariant`). What the locker refuses stays in the box; `lockerStashAllDone` tells the player.

The mod, apollo-server and Minotaur must be updated together: the save format, the data replies and `removeVehicle` are new (apollo-server stays 1.0.0 until the end of development).

### Authors

- [Jonpas](https://github.com/jonpas)
21 changes: 20 additions & 1 deletion addons/apollo/XEH_PREP.hpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
PREP(bodybagReturn);
PREP(boxCargo);
PREP(callExt);
PREP(callServerExt);
PREP(endMissionError);
PREP(getCargo);
PREP(getLoadout);
PREP(getPlayerInfo);
PREP(getRadios);
PREP(getScopeDials);
PREP(getVariables);
PREP(handleDisconnect);
PREP(handleKilled);
PREP(handleRespawn);
PREP(invokeJavaMethod);
PREP(lockerAction);
PREP(lockerQueue);
PREP(lockerStashAll);
PREP(lockerTakeKit);
PREP(playerLoadClient);
PREP(playerSaveClient);
PREP(playerSingletonSave);
PREP(registerPlaced);
PREP(registerVehicle);
PREP(runtimeApply);
PREP(runtimeSave);
PREP(setCargo);
PREP(setRadios);
PREP(setScopeAdjustment);
PREP(setVariables);
PREP(testVehicleRoundTrip);
PREP(vehicleLoad);
PREP(vehicleSaveServer);
PREP(vehicleSingletonLoad);
Expand Down
18 changes: 18 additions & 0 deletions addons/apollo/XEH_postInitClient.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@
// Exit on Headless
if (!hasInterface) exitWith {};

// Static weapons the player deploys (ACE CSW or vanilla assembly) are made persistent by the server,
// a second later so it has the new object
if (GVAR(enabled)) then {
["ace_csw_deployWeaponSucceeded", {
params ["_weapon"];
[{[QGVAR(staticWeaponDeployed), _this] call CBA_fnc_serverEvent}, [_weapon], 1] call CBA_fnc_waitAndExecute;
}] call CBA_fnc_addEventHandler;

["CAManBase", "WeaponAssembled", {
params ["_unit", "_weapon"];
if (!local _unit || {!(_weapon isKindOf "StaticWeapon")}) exitWith {};
[{[QGVAR(staticWeaponDeployed), _this] call CBA_fnc_serverEvent}, [_weapon], 1] call CBA_fnc_waitAndExecute;
}] call CBA_fnc_addClassEventHandler;
};

[QGVAR(initialized), {
// Check ApolloClient presenece and version
private _apolloClientReturn = "tac_apollo_client" callExtension ["version", []]; // ["1.0.0", 0, 0]
Expand All @@ -20,6 +35,9 @@ if (!hasInterface) exitWith {};
["Your connection has been terminated - Unknown error with Chronos!"] call FUNC(endMissionError);
}] call CBA_fnc_addEventHandler;

// Back as before a disconnect (mission only, FUNC(runtimeSave))
[QGVAR(runtimeApply), FUNC(runtimeApply)] call CBA_fnc_addEventHandler;

// Load player after Respawn EH
[QGVAR(reinitializePlayer), {
params ["_player", "_registeredDeath"];
Expand Down
86 changes: 67 additions & 19 deletions addons/apollo/XEH_postInitServer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,21 @@

if (!GVAR(enabled)) exitWith { TRACE_1("Apollo Disabled",GVAR(enabled)) };

// Check JNI presence
private _jniReturn = "jni" callExtension ["version", []]; // ["1.0.0", 0, 0]
_jniReturn params ["_jniVersion"];
if (_jniVersion != REQUIRED_JNI_VERSION) exitWith {
ERROR_2("Failed to initialize - Wrong JNI extension version (active: %1 - required: %2)!",_jniVersion,REQUIRED_JNI_VERSION);
// Check Apollo Server presence
private _serverReturn = "tac_apollo_server" callExtension ["version", []]; // ["1.0.0", 0, 0]
_serverReturn params ["_serverVersion"];
if (_serverVersion != REQUIRED_APOLLOSERVER_VERSION) exitWith {
ERROR_2("Failed to initialize - Wrong Apollo Server extension version (active: %1 - required: %2)!",_serverVersion,REQUIRED_APOLLOSERVER_VERSION);
};

// Set server type (debug or live) globally
private _serverType = ["getServerType"] call FUNC(invokeJavaMethod);
if (_serverType == "error") exitWith {
ERROR_1("Failed to initialize - Invalid server type (%1)!",_serverType);
};
GVAR(isDebug) = [false, true] select (_serverType isEqualTo "debug");
publicVariable QGVAR(isDebug);
// Website the server uses (live or development), players use the same
GVAR(liveApi) = ("tac_apollo_server" callExtension ["getApi", []]) select 0 == "live";
publicVariable QGVAR(liveApi);

// Reset server if map/mission changed from last saved
private _resetError = false;
if (GVAR(allowServerReset)) then {
private _reset = ["resetServer", GVAR(enabledPlayers), GVAR(enabledVehicles), serverName, worldName, missionName] call FUNC(invokeJavaMethod);
private _reset = ["resetServer", GVAR(enabledPlayers), GVAR(enabledVehicles), serverName, worldName, missionName] call FUNC(callServerExt);
if (_reset == "error") exitWith {_resetError = true; };
if (_reset == "none") exitWith { INFO_3("Server reset not performed (server: %1, map: %2, mission: %3)",serverName,worldName,missionName); };
INFO_3("Server reset successfully (server: %1, map: %2, mission: %3)",serverName,worldName,missionName);
Expand All @@ -29,20 +25,69 @@ if (_resetError) exitWith { ERROR_3("Server failed to reset after map change! (s

if (GVAR(enabledVehicles)) then {
call FUNC(vehicleLoad);

// What players place is persistent, each with its setting (FUNC(registerPlaced)); removed from
// Chronos when it's deleted (packed up, dug out)
[QGVAR(staticWeaponDeployed), {
params ["_weapon"];
[_weapon, GVAR(vehiclesStaticWeapons)] call FUNC(registerPlaced);
}] call CBA_fnc_addEventHandler;
["ace_trenches_placed", {
params ["", "_trench"];
[_trench, GVAR(vehiclesObjects)] call FUNC(registerPlaced);
}] call CBA_fnc_addEventHandler;
["acex_fortify_objectPlaced", {
params ["", "", "_object"];
[_object, GVAR(vehiclesObjects)] call FUNC(registerPlaced);
}] call CBA_fnc_addEventHandler;
// No event for these: their objects as they're made from now on (placement previews are local, or
// another class); a CSW tripod goes with static weapons
{
[_x, "init", {
params ["_object"];
[_object, [GVAR(vehiclesObjects), GVAR(vehiclesStaticWeapons)] select (_object isKindOf "ace_csw_baseTripod")] call FUNC(registerPlaced);
}, true, ["ACE_SandbagObject_NoGeo"]] call CBA_fnc_addClassEventHandler;
} forEach ["ACE_SandbagObject", "ACE_TripodObject", "ace_csw_baseTripod"];
};

if (GVAR(enabledPlayers)) then {
// Save player
[QGVAR(savePlayer), {
params ["_player", "_name", "_type"];
[_player, getPlayerUID _player, _name, _type] call FUNC(playerSingletonSave);
params ["_player", "_name", "_type", ["_variables", nil], ["_radios", nil], ["_dials", []]];
private _uid = getPlayerUID _player;
// What only the player's machine knows, for this and the disconnect save
if (!isNil "_variables") then {
_player setVariable [QGVAR(clientState), [_variables, _radios, _dials]];
};
[_player, _uid, _name, _type] call FUNC(playerSingletonSave);

// Reconnected: back as they were when they left (mission only)
if (_type == "validate") then {
private _runtime = GVAR(playerRuntimeData) deleteAt _uid;
if (isNil "_runtime") exitWith {};
_runtime params ["_team", "_vehicle", "_seat", "_medical", "_runtimeRadios", ["_runtimeDials", []]];
[QGVAR(runtimeApply), [_player, _team, _vehicle, _seat, _medical, _runtimeRadios, _runtimeDials], _player] call CBA_fnc_targetEvent;
};
}] call CBA_fnc_addEventHandler;

// Player died
// Player killed: the death registered at once (FUNC(handleKilled)), the reply kept for the respawn
[QGVAR(playerDied), {
params ["_player", "_killerUID"];
params ["_player", "_uid", ["_deathKey", ""], ["_deathLoadout", []], ["_deathVariables", []]];
TRACE_1("Player Died",_this);
private _registeredDeath = ["playerDied", getPlayerUID _player, _killerUID] call FUNC(invokeJavaMethod);
GVAR(playerRuntimeData) deleteAt _uid; // a respawn starts fresh
GVAR(deathsRegistered) set [_uid, ["playerDied", _uid, _deathKey, _deathLoadout, _deathVariables] call FUNC(callServerExt)];
}] call CBA_fnc_addEventHandler;

// Player respawned: reloaded (basic gear); a death the killed event didn't register is registered now
[QGVAR(playerRespawned), {
params ["_player", "_corpse"];
TRACE_1("Player Respawned",_this);
private _uid = getPlayerUID _player;
private _registeredDeath = GVAR(deathsRegistered) deleteAt _uid;
if (isNil "_registeredDeath") then {
GVAR(playerRuntimeData) deleteAt _uid;
_registeredDeath = ["playerDied", _uid, _corpse getVariable [QGVAR(deathKey), ""], _corpse getVariable [QGVAR(deathLoadout), []], _corpse getVariable [QGVAR(deathVariables), []]] call FUNC(callServerExt);
};
[QGVAR(reinitializePlayer), [_player, _registeredDeath], _player] call CBA_fnc_targetEvent;
}] call CBA_fnc_addEventHandler;

Expand All @@ -54,5 +99,8 @@ if (GVAR(enabledPlayers)) then {
};

[QGVAR(lockerAction), FUNC(lockerAction)] call CBA_fnc_addEventHandler;
[QGVAR(lockerTakeKit), FUNC(lockerTakeKit)] call CBA_fnc_addEventHandler;
[QGVAR(lockerStashAll), FUNC(lockerStashAll)] call CBA_fnc_addEventHandler;
[QGVAR(bodybagReturn), FUNC(bodybagReturn)] call CBA_fnc_addEventHandler;

INFO_3("Server loaded successfully (Players: %1 - Vehicles: %2 - Debug: %3)",GVAR(enabledPlayers),GVAR(enabledVehicles),GVAR(isDebug));
INFO_3("Server loaded successfully (Players: %1 - Vehicles: %2 - Live API: %3)",GVAR(enabledPlayers),GVAR(enabledVehicles),GVAR(liveApi));
6 changes: 4 additions & 2 deletions addons/apollo/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ PREP_RECOMPILE_END;

if (isServer) then {
GVAR(vehiclesLoaded) = false;
GVAR(vehiclesList) = [];
GVAR(vehicles) = createHashMap; // vehicle ID -> object, the persistent ones (FUNC(registerVehicle))
GVAR(playerRuntimeData) = createHashMap; // UID -> state kept for the mission (FUNC(runtimeSave))
GVAR(deathsRegistered) = createHashMap; // UID -> playerDied's reply, from the death until the respawn
};

GVAR(isDebug) = false;
GVAR(liveApi) = false; // the live website only when the server uses it, otherwise the development one

ADDON = true;
Loading