GTA: Modification Area

A website for the GTA modding scene

Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Big-game starts raising Schneider's profile
Sun Mar 04, 2012 2:28 am by lavivi

» [Help] cleo created lighting
Thu Oct 14, 2010 1:03 am by findmy012

» Mission Question
Thu Oct 14, 2010 1:02 am by findmy012

» [IV] Spoiler Script
Thu Oct 14, 2010 1:02 am by findmy012

» Mission mod [help]
Sat Sep 18, 2010 5:50 pm by jayd00

» Bc7 Mod Help
Fri Aug 20, 2010 11:19 am by pengpeng

» Found a bug
Fri Dec 18, 2009 4:22 am by _CJ360_

» [IV] Novitec Rosso 599 GTB
Tue Nov 17, 2009 4:22 pm by Kotton

» Hello/Guidance Request
Mon Oct 12, 2009 6:45 am by Adler

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
image

Image

Image

Image

Image

Image

Image

Image

Image

Image

image

Image

steve-m.com

Image


----- Русский -----

Если ваш сайт содержит большую коллекцию SCM/CLEO-скриптов (больше 16), напишите на мой e-mail, и я добавлю его в список. Приветствуются скрипты, которые не встречаются на других сайтах ... Спасибо. ))))


----- English -----

If your website has a big enough collection of SCM/CLEO scripts (more than 16) notify me by e-mail
, and I will add it to the list. The unique scripts are preferable ... Thank you. ))))

Log in

I forgot my password



December 2016
MonTueWedThuFriSatSun
   1234
567891011
12131415161718
19202122232425
262728293031 

Calendar Calendar


You are not connected. Please login or register

San Andreas Replay Files

View previous topic View next topic Go down  Message [Page 1 of 1]

1 San Andreas Replay Files on Mon Feb 09, 2009 8:36 am

Information


Replay files have the extension .rep and can be called by pressing F1 on you're keyboard.
Replays are the sequence of the scenes and actions recorded and stored in the replay.rep file.
This file is located in the User Files directory; GTA San Andreas User Files directory.

Special actors to do load during replays, they are replaced with the #MALE01 model, because he is the games default ped, who is always loaded.

The replay file(s) consists of a header string and variable amount of 'scenes' or 'frames'
A scene is a copy of important game information at given moment of time (actors, vehicles positions, weather, clothes, etc).
Following one after another, the scenes create an illusion of a movie when played.
The most of scenes contains a same set of blocks and ends with Block 8.

The .rep file itself consist of a header string which is simply the text GtaSA29 and up to 8 parts,
size of each one is 100,000 bytes, depending on the replay length.
So, the maximum size of a replay file is 800,008 bytes
(including 8 bytes of the header string).
If the replay length is that it does not match 100,000 bytes boundary being less,
the rest of the file is filled with useless data (commonly the previous replay data).

Blocks


Each block consists of a byte denoting its type and some data as described below.
A number in a block name is the data type stored in the first byte of the block. Reading this byte, the game detects what block follows.
Block 0: End of file

This block denotes the end of replay data. It consists only of a data type. After this block the game stops reading the replay file.

Code:

OFFSET  TYPE      DESCRIPTION
0x00    byte      data type (0x00)
0x01              (end)

Block 1: Vehicle1
Code:

size 52 bytes

Block 2: Vehicle2
Code:

size 56 bytes

Block 3: Player data
Code:

Common information about player ped.

OFFSET  TYPE      DESCRIPTION
0x00    byte      data type (0x03)
0x01    byte      index (handle?)
0x02    WORD      modelID
0x04    byte      ped type
0x05    byte[3]  (align)
0x08              (end)

Block 4: Ped
Code:

size 52 bytes

Block 5: Camera
Code:

size 88 bytes

Block 6: Day time
Code:

This block contains information about current day time during a scene.

OFFSET  TYPE      DESCRIPTION
0x00    byte      data type (0x06)
0x01    byte      currentHour
0x02    byte      currentMinute
0x03    byte      (align)
0x04              end

Block 7: Weather
Code:

size 8 bytes

Block 8: End of scene
Code:

This block denotes the end of the current scene (frame). It consists only of a data type.

OFFSET  TYPE      DESCRIPTION
0x00    byte      data type (0x00)
0x01              (end)

Block 9: Scene timing
Code:

This block contains value of the global game timer. The replay play length could be found by using this block.

OFFSET  TYPE      DESCRIPTION
0x00    byte      data type (0x09)
0x01    byte[3]  (align)
0x04    DWORD    timer
0x08              (end)


Links


There is an editor, made by Seemann for 010 Editor template. It allows to edit different replay data: Click!

View user profile http://gtamodding.com

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum