This doccument describe the file format and the data format that penguinplug use to store the RWT
data.


	example program :
rwt2txt: copy replay text data from a .rep file in a .txt
command line tool, use "rwt2txt replayname.rep", it will create "replayname.rep.txt"




	file format:

The header is at the end of the file, it's 4 DWORD

the .rep file:
------------------------------------
replay... | ... | RWT data | header|  (eof)
------------------------------------





	header:

  DWORD        DWORD           DWORD         DWORD
---------------------------------------------------------
...   size     | app_code  |  app_version  | format code|
---------------------------------------------------------
size: size of the data, not including the header

app_code: a code that represent the program or the penguinplug module that must be used to
	open the data, and indicate the type of the data : for RWT : 0x52575420

app_version: high order WORD : major version change (if >, it mean not compatible)
	low order WORD : minor version change, that can normaly be open with the old version programs
	for RWT, current is 0x00000001, no major change planned

format code: a fixed DWORD to recognize that the replay use the penguinplug format





	possible usage of multiple penguinplug headers :

-----------------------------------------------------------------------
replay... | ... | data3 | header 3 | data2 | header2 | data1 | header1|  (eof)
-----------------------------------------------------------------------
The application should check that the header is the one it needs,
seek (using the size DWORD) to the next header if the one currently checked is not the expected
one but still using penguinplug format.





	RWT data format:

succession of

DWORD        char *        BYTE
-----------------------------------------
gametick |  line        | '\0'  | gametick2 ... line2...
-----------------------------------------

if at the begining of a new line, gametick = 0xFFFFFFFF, the program should stop reading the text
(new versions use the CRC informations after this byte)

In all cases, the last BYTE of RWT data must be 0x00



superpenguin