ofp:file_formats:rap
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ofp:file_formats:rap [2007/07/10 09:52] – external edit 127.0.0.1 | ofp:file_formats:rap [2024/07/31 12:52] (current) – links added. snakeman | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== raP File Format ====== | + | ====== |
| + | |||
| + | [[https:// | ||
| + | |||
| + | **Operation Flashpoint (OFP)** aka ArmA: Cold War Assault (CWA) | ||
| Line 31: | Line 35: | ||
| Importantly, | Importantly, | ||
| - | The engine will work with config.**cpp** as a raP encoded entity, just as it would work with config.**bin**. | + | The engine will work with config.**cpp** as a raP encoded entity, just as it would work with config.**bin**. |
| ====== Tools ====== | ====== Tools ====== | ||
| - | Various utilities exist which refer to binary <> cpp compression and extraction (or encoding and decoding). Again, these terms are misleading because the file concerned is not executable binary data, just tokenised strings and values. | + | Various utilities exist which refer to binary <> cpp compression and extraction (or encoding and decoding). Again, these terms are misleading because the file concerned is not executable binary data, just tokenised strings and values. |
| ====== Basics ====== | ====== Basics ====== | ||
| - | There is no need here to elaborately define what a mission.sqm file is. But, it is worth understanding the basics of these (types of) files to understand the __very small__ requirements needed to raPify them. | + | There is no need here to elaborately define what a mission.sqm file is. But, it is worth understanding the basics of these (types of) files to understand the __very small__ requirements needed to raPify them. |
| class files only contain 3 types of construct | class files only contain 3 types of construct | ||
| Line 49: | Line 53: | ||
| </ | </ | ||
| - | [:inherit] is optional and simply refers to another classname. | + | [:inherit] is optional and simply refers to another classname. |
| (For your interest the [] are known as bacchus naur format and mean // | (For your interest the [] are known as bacchus naur format and mean // | ||
| Line 59: | Line 63: | ||
| < | < | ||
| | | ||
| - | | + | |
| | | ||
| </ | </ | ||
| Line 68: | Line 72: | ||
| < | < | ||
| - | | + | |
| </ | </ | ||
| Line 86: | Line 90: | ||
| < | < | ||
| class filename | class filename | ||
| - | | + | { |
| class FirstEmbeddedClass | class FirstEmbeddedClass | ||
| { | { | ||
| Line 181: | Line 185: | ||
| < | < | ||
| - | | + | |
| { | { | ||
| byte PacketType; | byte PacketType; | ||
| Line 220: | Line 224: | ||
| **PacketType2: | **PacketType2: | ||
| - | Arrays[] contain four possible element types. They are the traditional variables mentioned above with an added tweak of an embedded array type. | + | Arrays[] contain four possible element types. They are the traditional variables mentioned above with an added tweak of an embedded array type. |
| thus | thus | ||
| Line 243: | Line 247: | ||
| < | < | ||
| - | | + | |
| { | { | ||
| byte VarType; | byte VarType; | ||
| Line 282: | Line 286: | ||
| { | { | ||
| byte VarType; | byte VarType; | ||
| - | [[# | + | [[# |
| - | ... series of array elememts in ''' | + | ... series of array elememts in ''' |
| }; | }; | ||
| </ | </ | ||
| Line 349: | Line 353: | ||
| { | { | ||
| int extra; | int extra; | ||
| - | + | ||
| if ((extra = GetByte())==EOF) return EOF; | if ((extra = GetByte())==EOF) return EOF; | ||
| val += (extra - 1) * 0x80; | val += (extra - 1) * 0x80; | ||
| Line 367: | Line 371: | ||
| </ | </ | ||
| - | A table of strings is accumalated according to it's index number when that specific index number is first encountered. | + | A table of strings is accumalated according to it's index number when that specific index number is first encountered. |
| Although the values appear to be ordinal (0, | Although the values appear to be ordinal (0, | ||
| Line 400: | Line 404: | ||
| etc | etc | ||
| </ | </ | ||
| + | |||
ofp/file_formats/rap.1184061152.txt.gz · Last modified: 2007/07/10 09:52 by 127.0.0.1
