Wiki

Version 6 (Mikhail, 11/21/2010 13:54)

1 1 Mikhail
h1. Readme
2 1 Mikhail
3 5 Mikhail
h2. Special thanks to: 
4 5 Mikhail
5 5 Mikhail
    * *SickBoy* for major support in ideas and coding
6 5 Mikhail
    * *i0n0s* for his sharing Delphi sources
7 5 Mikhail
    * *kju*, *Oktane* for good hints and advise
8 5 Mikhail
    * *Jaynus* for his ArmaLib
9 6 Mikhail
    * *Muahaha*, *HeliJunkie*, *Kremator* and all those who inspired me at "BIForums":http://forums.bistudio.com/showthread.php?t=101069
10 5 Mikhail
11 1 Mikhail
*Tested only on Windows XP 32bit on Combined Ops.* (please report usability with other combinations)
12 1 Mikhail
13 4 Mikhail
*IMPORTANT!* This current system is very very alpha. It's recording capabilities are not tuned and probably if you want to use AAR again to record new replay you will have to restart both arma and Client.
14 2 Mikhail
15 4 Mikhail
h2. What's recorded?
16 1 Mikhail
17 4 Mikhail
Current version records only infantry units, only people or soldiers, their movement, animations, and their life state (simply dead or not). During playback units get killed just at the moment they were killed during recording. No weapon effects, bullets or projectiles. It doesn't even record which weapon you used during recording. During playback you can even relad and probably do other actions, except turning left\right and change position.
18 4 Mikhail
19 4 Mikhail
Current version is not compatible with complex interactions like climbing ladders, using vehicles etc. I'm 90% sure you get killed on playback if you climbed a ladder, or got in a vehicle. The script will smash your position against this vehicle or ladder or object. 
20 4 Mikhail
21 4 Mikhail
You can enter buildings, but door animations are not recorded.
22 4 Mikhail
23 4 Mikhail
So basically it's already can be useful for simple infantry mission.
24 4 Mikhail
25 4 Mikhail
h2. Filesize and record time limit.
26 4 Mikhail
27 4 Mikhail
Recording time is virtually infinite to the extend of operating system capabilites of writing files bigger than 2gb. 
28 4 Mikhail
29 4 Mikhail
Your replay filesize grows with every unit added. Once the unit is killed it consumes less space. You can compare the filesize to a recorded video size on your PC, but video depends on the resolution, audio tracks and compression, while AAR replay will depend on unit quantity and fps. I tested it on 10 vs 10 units. Some 3-4 minutes consumed I think 1-2 mb.
30 4 Mikhail
31 4 Mikhail
h2. Requirements:
32 4 Mikhail
33 1 Mikhail
* "CBA":http://dev-heaven.net/projects/cca
34 1 Mikhail
* "JayArma2Lib":http://dev-heaven.net/projects/jayarma2lib
35 1 Mikhail
36 1 Mikhail
At this moment AAR consists of a set of scripts in a mission which is *AAR Arma2*, and a Delphi application compiled for windows (ra_aar.velmet.org.exe) which is the *AAR Client*.
37 1 Mikhail
38 1 Mikhail
h2. Installing
39 1 Mikhail
40 1 Mikhail
# Download the two archieves. Unpack.
41 1 Mikhail
# place aar_io_1.utes (with scripts) to you missions folder.
42 1 Mikhail
# grab ra_aar.velmet.org.exe from AAR_NEW.rar and copy it to some folder (where replays will be stored).
43 1 Mikhail
44 1 Mikhail
h2. Launching
45 1 Mikhail
46 1 Mikhail
# Start Arma2 with CBA and JayArma2Lib addons. 
47 4 Mikhail
# Start ra_aar.velmet.org.exe. It must inform you that all 4 pipes are open. Then it will tell that no pipes found or something. It's ok because we did not initiate AAR in Arma.
48 1 Mikhail
# Start the mission aar_io_1.utes. You can edit all the contents to your liking, but be sure every unit is named (has variable) and you have a unit called "reporter" who will have AAR menu controls.
49 1 Mikhail
# When mission starts scroll mousewheel (dialog is not implemented yet) and select "Launch AAR"
50 1 Mikhail
51 1 Mikhail
*Now* 
52 1 Mikhail
53 1 Mikhail
The AAR Client stops spawning errors and says that pipes are empty.
54 1 Mikhail
In game you see that AAR is waiting for some commands.
55 1 Mikhail
56 1 Mikhail
h2. Recording
57 1 Mikhail
58 1 Mikhail
# Scroll mousewheel and select Record. 
59 1 Mikhail
# Wait until timer in the right corner starts (at the same time you see Client receiving data on Data Monitor)
60 3 Mikhail
# Scroll and select Stop when you're done.
61 4 Mikhail
# Your replay data is saved in the folder with ra_aar.velmet.org.exe as *test.aar*
62 1 Mikhail
63 1 Mikhail
64 1 Mikhail
h2. Playback
65 4 Mikhail
66 4 Mikhail
In this version you are at last able to playback your recorded replay just after you recorded it. But of course if you killed someone, they are not resurrected. You will only see all the movement and moving corpses)))
67 4 Mikhail
68 1 Mikhail
69 1 Mikhail
coming really soon
70 2 Mikhail
_
71 2 Mikhail
If you can't wait look inside the reading.sqf and reader.sqf and replay.sqf to see how it's done. Basicall you need to get the test.aar contents and apply them in the mission where it was recorded._