https://github.com/gruppe-adler/grad-replay
Records player and AI movment and replays at the end of the mission.
https://github.com/gruppe-adler/grad-replay
arma3 library
Last synced: 3 months ago
JSON representation
Records player and AI movment and replays at the end of the mission.
- Host: GitHub
- URL: https://github.com/gruppe-adler/grad-replay
- Owner: gruppe-adler
- License: gpl-3.0
- Created: 2016-07-26T20:58:47.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-05T11:40:31.000Z (over 4 years ago)
- Last Synced: 2025-01-24T17:46:08.737Z (5 months ago)
- Topics: arma3, library
- Language: SQF
- Homepage:
- Size: 197 KB
- Stars: 8
- Watchers: 11
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/gruppe-adler/grad-replay/release)
[](https://github.com/gruppe-adler/grad-replay/license)# grad-replay
ARMA3 mission replay script (working but wip)
* Records player and AI movement and replays at end of mission.
* Meant for PvP but pimped to support AI as well
* Mission duration should be matched to replay precision (see below) - the longer the mission, the less precision is recommended. Better precision (smaller values) results in longer loading times.### Required Mods
CBA, ACE3# How to install
### 1. Download Release
### 2. extract GRAD_replay folder into [mission folder]/node_modules
### 3. Add the following to the description.ext```
#include "node_modules\@gruppe-adler\replay\ui\defines.hpp"
#include "node_modules\@gruppe-adler\replay\ui\dialog.hpp"
``````
// if CfgFunctions already exists, just put the #include part inside
class CfgFunctions {
#include "node_modules\@gruppe-adler\replay\cfgFunctions.hpp"
};
```### 4. Initialize script in init.sqf
`[] call GRAD_replay_fnc_init;`### 5. Put this where you want the replay to start (recommended: end of mission)
Must be executed on server only!
```
// stops record, sends data and starts replay
call GRAD_replay_fnc_stopRecord;// ends mission after replay is over
[{
REPLAY_FINISHED
}, {
["END1"] remoteExec ["endMission",0,false]; // your custom end mission call or whatever you want to do after replay
}, []] call CBA_fnc_waitUntilAndExecute;
```### 6. Configure (optional)
Optionally configure grad-replay by adding the following to your missionconfig (`description.ext`):```
class GRAD_Replay {
precision = 5; // precision of replay, 5 means every 5 seconds one snapshot (number)
trackedSides[] = {"west", "east", "civilian"}; // defines the sides that will be tracked (possible are "west", "east", "independent", "civilian") (array)
stepsPerTick = 1; // defines steps played back at once (number)
trackedVehicles = 0; // defines if empty and AI steered vehicles will be tracked (0/1)
trackedAI = 0; // defines if AI will be tracked (0/1)
sendingChunkSize = 10; // higher number means replay loading is faster, but might cause instability / lags during loading (number)
trackShots = 0; // defines if shots will be tracked (0/1)
upload = 1; // defines if replay data will be uploaded to replay.gruppe-adler.de (0/1)
};
```Note that for the upload setting to have an effect, you need to have [grad-replay-intercept](https://github.com/gruppe-adler/grad_replay_intercept) (and the Intercept mod) loaded on your server. Check the repo's README to see how to configure it to upload to your server.
#### individual colors for units
define *grad_replay_color* global variable on a unit as a callback that returns a color in the format `[, , , ]` , each value a number from the interval 0..1
example:
```sqf
_unit setVariable ["grad_replay_color", {[[0.0, 0.9, 1.0, 0.8]}, true];
```you can change the color anytime during the mission to cause the color to change during replay.
NOTE: color will be adjusted automatically for incapacitation & death### Important
Currently there is **no helper function to resume normal gameplay after replay has played**, this means all assets will be frozen and TFAR spectator channel will be set for all players, furthermore every wound will be healed and all spectator cams left.### Script commands
to pause recording, set `GRAD_REPLAY_RECORDING_PAUSED` to true on server / false to resume