Jump to content

Replay/Format details: Difference between revisions

no edit summary
m (moved Replays (GTA SA) to Replay/Format details: Rearranged as subarticle for replay, which covers feature as a whole in the series.)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''Replays''' are the sequence of the scenes and actions recorded and stored in the <code>replay.rep</code> file. This file is located in the [[GTA San Andreas]] User Files directory.
The following is a detailed '''analysis of [[replay]] files''' as used in [[Grand Theft Auto: San Andreas]]. Due to similar programming, this article may be partially applicable to replay files for [[Grand Theft Auto III]] and [[Grand Theft Auto: Vice City]].
 
== Description ==
Replays are the sequence of the scenes and actions recorded and stored in the <code>replay.rep</code> file. In GTA San Andreas, this file is located in the User Files directory.


==Format Details==
Each .rep file 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: End of scene|Block 8]].
Each .rep file 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: End of scene|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).
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).


===Data Blocks===
===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.
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.


Line 105: Line 106:
  0x72    WORD      Muscle;
  0x72    WORD      Muscle;


==Tools==
== Tools ==
There is a template for [[Wikipedia:010 Editor|010 Editor]], made by [[User:Seemann|Seemann]]. It allows to edit different replay data: http://sannybuilder.com/dev/Replay.rar
There is a template for [[Wikipedia:010 Editor|010 Editor]], made by [[User:Seemann|Seemann]]. It allows to edit different replay data: http://sannybuilder.com/dev/Replay.rar


{{gtasa}}
[[Category:File Formats]]
 
[[Category:File Formats]]{{fdl}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.