arma:file_formats:pew
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
arma:file_formats:pew [2009/05/30 10:33] – updated pew page info. snakeman | arma:file_formats:pew [2024/08/01 08:06] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Introduction | + | ====== ArmA 1 PEW File Format ====== |
- | Pew are Visitor' | + | [[https:// |
- | Visitor is a Gui tool interface | + | **ArmA 1** aka Armed Assault (ArmA) |
+ | |||
+ | |||
+ | ====== Introduction ====== | ||
+ | |||
+ | PEW are Visitor' | ||
+ | |||
+ | Visitor is a GUI tool that interacts with Bulldozer, an inbuilt ' | ||
The contents of the project file, pew, are not directly related to the ultimate output, a wrp file. However, that data, of course, contains all similar elements, such as road networks, elevations, cell matrices, models and textures. | The contents of the project file, pew, are not directly related to the ultimate output, a wrp file. However, that data, of course, contains all similar elements, such as road networks, elevations, cell matrices, models and textures. | ||
Line 10: | Line 17: | ||
While there have been several pew versions, the one's listed here are | While there have been several pew versions, the one's listed here are | ||
- | + | < | |
- | * POSEW59 and | + | *POSEW59 and |
- | * POSEW60 | + | *POSEW60 |
+ | </ | ||
there are only a few subtle differences to their makeup. | there are only a few subtle differences to their makeup. | ||
- | Legend | + | ====== |
- | [[http:// | + | see Generic FileFormat Data Types |
- | < | + | |
- | Type Description | + | |
- | byte 8 bit (1 byte) | + | |
- | short 16 bit signed short (2 bytes) | + | |
- | int 32 bit signed integer (4 bytes) | + | |
- | float 32 bit signed single precision floating point value (4 bytes) | + | |
- | double 64 bit signed single precision floating point value (8 bytes) | + | |
- | asciiz Null terminated (0x00) variable length ascii string | + | |
- | ascii fixed length ascii string(UTF-8) | + | |
- | </ | + | |
- | XYPair | ||
- | <code cpp> | + | ====== File Format ====== |
- | XYPair | + | |
- | { | + | |
- | ulong x,y; // normally associated with cell sizes | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | RGBAColor | + | |
+ | This file format is principally used with Armed Assault v1.09 and later plus the ArmA Tools Suite Final release (v1.14). | ||
<code cpp> | <code cpp> | ||
- | RGBAColor | + | POSEW59 |
- | { | + | |
- | byte r,g,b,a; // // 0xFF: | + | |
- | } | + | |
- | </code> | + | ulong nOFPTextures |
+ | OFPTexture | ||
+ | ulong nObjectTemplates; | ||
+ | ObjectTemplate | ||
+ | shortBool | ||
+ | if (!NoOfpTerrains) | ||
+ | { | ||
+ | ulong nOFPTerrains; | ||
+ | OFPTerrain | ||
+ | } | ||
+ | | ||
+ | if (!NoOFPForests) | ||
+ | { | ||
+ | ulong nOFPForests; | ||
+ | OFPForest | ||
+ | } | ||
+ | RoadNets | ||
+ | Elevation | ||
+ | ulong NoOfObjects; | ||
+ | Object | ||
- | * RGBA colors correspond to Microsoft' | + | ulong NoOfLayers; |
- | * They normally come in pairs innside the pew structures | + | |
+ | Layer Layers[[NoOfLayers]] ; | ||
+ | if (POSEW60) | ||
+ | { | ||
+ | | ||
+ | } | ||
+ | else // pose59 | ||
+ | { | ||
+ | ulong nNamedZones; | ||
+ | NamedZone | ||
+ | } | ||
- | String | + | ulong nRoadBlocks; |
+ | RoadBlock | ||
- | <code cpp> | + | if (POSEW60) |
- | String | + | { |
- | { | + | ulong nNamedZones; |
- | | + | NamedZone |
- | Asciiz Characters;// null terminated regardless. | + | } |
+ | else // pose59 | ||
+ | { | ||
+ | | ||
+ | } | ||
+ | ulong nKeyPoints; | ||
+ | KeyPoint | ||
+ | ulong NoOfBackgrounds; | ||
+ | Background | ||
+ | ulong TotalSizeOfSelections; | ||
+ | ulong nSelections; | ||
+ | Selection | ||
+ | } | ||
</ | </ | ||
- | Length always =strlen(Characters)+1; | ||
- | This is a pre-calculated convenience to reduce load times (and skip over the variable length block). | + | ====== PoseHeader ====== |
- | + | ||
- | File Format | + | |
- | + | ||
- | * This file format is principally used with Armed Assault v1.09 and later plus the ArmA Tools Suite Final release (v1.14). | + | |
<code cpp> | <code cpp> | ||
- | POSEW59 | + | Header |
- | | + | |
{ | { | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | if (POSEW60) | + | |
- | { | + | |
- | ulong | + | |
- | Background | + | |
- | } | + | |
- | else // pose59 | + | |
- | { | + | |
- | | + | |
- | | + | |
- | } | + | |
- | | + | ulong Length; |
- | RoadBlock | + | |
+ | | ||
+ | // Folderlocation of the rvmat material list | ||
+ | String | ||
+ | float | ||
+ | float | ||
+ | String | ||
+ | }; | ||
+ | </ | ||
- | if (POSEW60) | + | |
- | | + | ====== OFPTexture ====== |
- | | + | |
- | UnknownStruct2 | + | <code cpp> |
- | } | + | |
- | | + | { |
- | { | + | ulong TextureID; |
- | | + | |
- | | + | |
- | } | + | |
- | | + | |
- | Locale | + | |
- | ulong Always0; | + | |
- | | + | |
- | | + | |
} | } | ||
</ | </ | ||
- | PoseHeader | ||
- | <code cpp> | + | ====== ObjectTemplate ====== |
- | Header | + | |
- | { | + | |
- | | + | |
- | | + | <code cpp> |
- | ulong UnknownLong1; // typically | + | ObjectTemplate |
- | | + | { |
- | String | + | String |
- | ulong IslandObjectPathLen; | + | String |
- | String | + | |
- | float GridSize; //50.0 | + | // 0 Undefined - This type should never be encountered. |
- | float SellSize; //400.0 (SegmentSize - SegmentOverlap) | + | // 1 Natural |
- | | + | // 2 Artificial |
- | String | + | // 3 Road (RoadFlag will be true) |
- | }; | + | // 4 Forest |
+ | // 5 Road2 (RoadFlag will be false) | ||
+ | RGBAColor | ||
+ | | ||
+ | double | ||
+ | ulong | ||
+ | | ||
+ | double | ||
+ | | ||
+ | shortBool Generally0x01; | ||
+ | | ||
+ | double | ||
+ | | ||
+ | double | ||
+ | | ||
+ | double | ||
+ | shortBool | ||
+ | if (RoadFlag) | ||
+ | { | ||
+ | TransformMatrix RoadNamedSelections; | ||
+ | TransformMatrix XRoadNamedSelections; | ||
+ | }; | ||
+ | | ||
+ | | ||
+ | ulong MarkerType; | ||
+ | } | ||
</ | </ | ||
- | Texture | + | |
+ | ====== NamedVector ====== | ||
<code cpp> | <code cpp> | ||
- | | + | NamedVector |
- | | + | { |
- | ulong TextureID; | + | |
- | | + | LongBool |
- | String TextureFileName[TextureFileNameLen]; // " | + | |
- | | + | XYZTriplet StartEndPos[[nTriplets]]; |
- | String TextureName[TextureNameLen]; // " | + | } |
- | | + | |
- | | + | |
- | Char UnlnownChar[14]; // (typically 0) | + | |
- | RGBAColor Colour; | + | |
- | } | + | |
</ | </ | ||
- | ObjectType | + | |
+ | ====== OFPTerrain ====== | ||
<code cpp> | <code cpp> | ||
- | ObjectType | + | OFPTerrain |
{ | { | ||
- | String | + | |
- | String | + | |
- | | + | ulong nSurfaces; |
- | | + | |
- | RGBAColor | + | |
- | | + | |
- | | + | |
- | | + | |
- | ulong ModelID; | + | |
- | float UnknFloat[3]; | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | { | + | |
- | case 0x0001: | + | |
- | { | + | |
- | | + | |
- | | + | |
- | }; | + | |
- | }; | + | |
- | ulong MarkerType; | + | |
- | | + | |
} | } | ||
</ | </ | ||
- | NB: While the ' | ||
- | ObjectTypeID is also present at offset 16 in the VariousInfo' | + | ====== OFPSurface ====== |
- | + | ||
- | ArtificialSubObject | + | |
<code cpp> | <code cpp> | ||
- | ArtificialSubObject | + | OFPSurface |
{ | { | ||
- | | + | |
- | | + | |
- | | + | |
- | XYZTriplet StartEndPos[2]; | + | |
} | } | ||
</ | </ | ||
- | Terrains | + | |
+ | ====== OFPForest ====== | ||
<code cpp> | <code cpp> | ||
- | | + | OFPForest |
- | | + | { |
- | | + | |
- | ulong nTerrains; | + | |
- | TerrainType Terrains[nTerrains]; | + | |
- | { | + | ulong SquareFillModelID; |
- | | + | |
- | string TerrainName[TerrainNameLen]; | + | |
- | char unknchar[11]; | + | ulong Unknown1; // (typically 0) |
- | | + | ulong Unknown2; // (typically 0) |
- | SurfaceType [nSurfaces] | + | } |
- | { | + | |
- | ulong SurfaceNameLen; | + | |
- | string SurfaceName[SurfaceNameLen]; | + | |
- | | + | |
- | | + | |
- | } | + | |
- | } | + | |
</ | </ | ||
- | Forests | ||
- | <code cpp> | + | ====== |
- | | + | |
- | | + | |
- | { | + | |
- | | + | |
- | | + | |
- | { | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | } | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | RoadNet | + | |
<code cpp> | <code cpp> | ||
- | shortBool NoRoads; | + | |
- | | + | if (!NoRoads) |
- | | + | { |
- | | + | ulong nTypes; |
- | | + | RoadType RoadTypes[[nTypes]]; |
- | | + | ulong nXRoads; |
- | | + | XRoad XRoads[[nXRoads]]; |
- | | + | } |
</ | </ | ||
- | RoadType | + | ====== |
<code cpp> | <code cpp> | ||
- | RoadType | + | |
- | { | + | { |
- | | + | String |
- | | + | RGBA |
- | RGBA | + | |
- | | + | shortBool |
- | | + | double |
- | | + | double |
- | | + | ulong nStraights; |
- | | + | RoadList |
- | | + | ulong nCurves; |
- | | + | RoadList |
- | | + | ulong nSpecials; |
- | | + | RoadList |
- | | + | ulong nTerminators; |
- | | + | RoadList |
- | | + | } |
- | } | + | } |
</ | </ | ||
- | RoadList | + | |
+ | ====== | ||
<code cpp> | <code cpp> | ||
- | RoadList | + | |
- | { | + | { |
- | String | + | |
- | ulong | + | |
- | ushort | + | |
- | shortBool | + | |
- | } | + | } |
- | </ | + | |
MeterType | MeterType | ||
- | + | :Type Straights Curves | |
- | Type Straights Curves\\ | + | :0 6 |
- | 0 6 25 meters\\ | + | :1 |
- | 1 12 50\\ | + | :2 |
- | 2 25 75\\ | + | :3 |
- | 3 100 | + | </ |
Broadly speaking, there are a few basic road types | Broadly speaking, there are a few basic road types | ||
- | | + | < |
- | * silnice Paved | + | *asfalt |
- | * cesta dirt | + | *silnice |
+ | *cesta | ||
+ | </ | ||
Each RoadType describes the general characteristics of a Dirt Road as opposed to (say) an Asphalt one. | Each RoadType describes the general characteristics of a Dirt Road as opposed to (say) an Asphalt one. | ||
- | Each of these RoadTypes (such as asphalt) can have multiple curved, straight, special, and termination p3d models associated with them. | + | Each of these RoadTypes |
Generally speaking, there are | Generally speaking, there are | ||
- | + | < | |
- | * 3 ' | + | *3 ' |
- | * 4 ' | + | *4 ' |
- | * 1 ' | + | *1 ' |
+ | </ | ||
The termination type is a road like any other but tends to be a fixed 6 meter fade out of the general road texture. | The termination type is a road like any other but tends to be a fixed 6 meter fade out of the general road texture. | ||
- | XRoad | + | |
+ | ====== | ||
<code cpp> | <code cpp> | ||
- | XRoad | + | XRoad |
- | { | + | { |
- | | + | String |
- | | + | ushort |
- | | + | RGBA color; |
- | | + | shortBool CanChangeBankAngle; |
- | | + | ulong |
- | | + | String |
- | } | + | } |
</ | </ | ||
Although CrossRoads could, conceivably, | Although CrossRoads could, conceivably, | ||
- | | + | < |
- | * Type 3: A Genuine crossroad (4 way intersection) | + | *Type 1: A T_Junction (3 intersections) |
+ | *Type 3: A Genuine crossroad (4 way intersection) | ||
+ | </ | ||
For T_Junctions, | For T_Junctions, | ||
Line 357: | Line 329: | ||
Without taking too literal an interpretation, | Without taking too literal an interpretation, | ||
- | | + | < |
- | * silnice: Paved | + | *asfaltka: |
- | * cesta: Dirt | + | *silnice: Paved |
+ | *cesta: | ||
+ | </ | ||
Thus the names of each intersection reflect the road type of that intersection, | Thus the names of each intersection reflect the road type of that intersection, | ||
- | The overall name of the crossroad itself, tries to reflect the nature of it's makeup thus kr_asfaltka_asfaltka_t: | + | The overall name of the crossroad itself, tries to reflect the nature of it's makeup thus |
- | Terrain | + | kr_asfaltka_asfaltka_t: |
- | <code cpp> | + | kr_silince_x_cesta: |
- | Terrain | + | |
- | { | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | Object | + | |
- | <code cpp> | ||
- | Object | ||
- | { | ||
- | ShortBool IsPresent; | ||
- | if (IsPresent) | ||
- | { | ||
- | ShortBool Always0; | ||
- | ulong InstanceId; | ||
- | float TransformColumn[3][4]; | ||
- | double ObjectRelativeSize; | ||
- | String InstanceName; | ||
- | float RelativeSurfaceElevation; | ||
- | RGBA OutlineColour; | ||
- | RGBA ObjectColour; | ||
- | ulong ObjectID; | ||
- | }; | ||
- | }; | ||
- | </ | ||
- | Layer | + | ====== Elevation ====== |
<code cpp> | <code cpp> | ||
- | Layer | + | Elevation |
{ | { | ||
- | | + | XYPair |
- | ulong | + | |
- | String | + | |
- | ushort | + | // NoOfBlueFloats = (GridSize_Y * GridSize_X)/ |
- | | + | ulong |
- | | + | |
- | } | + | |
} | } | ||
</ | </ | ||
- | TerrainMaterial | + | |
+ | ====== Object ====== | ||
<code cpp> | <code cpp> | ||
- | TerrainMaterial | + | Object |
- | { | + | { |
- | ulong | + | ShortBool IsPresent; |
- | | + | if (IsPresent) |
- | | + | { |
- | } | + | |
+ | | ||
+ | float | ||
+ | // this is a standard DirectX Transform matrix | ||
+ | // but in COLUMN format; | ||
+ | double | ||
+ | | ||
+ | | ||
+ | RGBA OutlineColour; | ||
+ | RGBA ObjectColour; | ||
+ | ulong | ||
+ | | ||
+ | }; | ||
</ | </ | ||
- | Background | + | |
+ | ====== Layer ====== | ||
<code cpp> | <code cpp> | ||
- | | + | Layer |
- | { | + | { |
- | | + | |
- | String | + | String |
- | | + | |
- | | + | if (DefaultIndicator == 0) |
- | | + | { |
- | | + | ulong SurfaceTable[[TableSize.x*y]]; |
- | ulong | + | |
- | ulong | + | |
- | } | + | |
+ | }; | ||
+ | if (DefaultIndicator == 1) | ||
+ | { | ||
+ | ulong | ||
+ | TerrainMaterial[[NoOfTerrainMaterials]] | ||
+ | { | ||
+ | | ||
+ | String MaterialName; | ||
+ | ulong | ||
+ | }; | ||
+ | ulong RvmatTable[[TableSize.x*y]]; | ||
+ | }; | ||
+ | }; | ||
+ | |||
+ | TableSize = Terrain.GridSize>> | ||
</ | </ | ||
- | RoadBlock | + | |
+ | ====== | ||
<code cpp> | <code cpp> | ||
- | RoadBlock | + | RoadBlock |
- | { | + | |
- | | + | |
- | if IsPresent | + | |
{ | { | ||
- | | + | ShortBool IsPresent; |
- | | + | if IsPresent |
- | | + | { |
- | | + | |
- | **C6 42 0E 01 00 00 01 00 00 F0 2C 46 00 98 23 46 | + | ulong |
- | **C6 6F C6 42 0E 01 00 00 4B 00 00 00 00 00 00 00 | + | /* typical data |
- | | + | **00 00 00 00 00 |
- | | + | 00 00 F0 2C |
- | | + | 46 00 98 23 |
- | | + | 46 C6 6F C6 |
- | | + | 42 0E 01 00 |
- | | + | 00 01 00 00 |
- | | + | F0 2C 46 00 |
- | | + | 98 |
- | | + | 23 46 C6 6F |
- | | + | C6 42 0E 01 |
- | | + | 00 00 4B 00 |
- | | + | 00 00 00 00 |
- | | + | 00 00 |
- | | + | */ |
- | | + | ushort |
- | | + | String |
- | | + | String |
- | | + | RGBA color; |
- | | + | ShortBool Always1; |
- | | + | ulong |
+ | FamilyList FamilyLists[[Count]]; | ||
+ | ulong | ||
+ | /* typical data | ||
+ | **FA D4 30 BF 94 58 08 3D 00 00 C8 C0 00 00 60 C0 | ||
+ | **00 00 00 00 00 00 48 C1 00 00 60 40 00 00 00 00 | ||
+ | **00 00 48 C1 00 00 60 C0 00 00 00 00 00 00 00 00 | ||
+ | **00 00 60 40 00 00 00 00 00 00 00 00 00 00 C8 C0 | ||
+ | **00 00 00 00 00 00 30 C0 00 00 C8 C0 00 00 00 00 | ||
+ | **00 00 1C C1 04 01 00 00 00 00 00 00 00 00 00 00 | ||
+ | **09 00 00 00 0B 80 00 00 04 00 00 00 | ||
+ | */ | ||
+ | ulong | ||
+ | ModelList ModelLists[[Count]]; | ||
+ | } | ||
} | } | ||
- | } | + | Type |
+ | *0 Road Ending with FamilyName and it's ModelName_konec | ||
+ | *1 TJunction ModelName Only | ||
+ | *2 Road similar to type 0 | ||
+ | *3 Xroad with ModelName Only | ||
</ | </ | ||
- | Type | ||
- | * 0 Road Ending with FamilyName and it's ModelName_konec | + | ====== |
- | * 1 TJunction ModelName Only | + | |
- | * 2 Road similar to type 0 | + | |
- | * 3 Xroad with ModelName Only | + | |
- | + | ||
- | + | ||
- | FamilyList | + | |
<code cpp> | <code cpp> | ||
- | FamilyList | + | FamilyList |
- | { | + | { |
- | ulong Unknown[4];// | + | |
- | String Name; // | + | |
- | } | + | } |
</ | </ | ||
This struct is principally used for Xroads and Tjunctions. It typically lists the order of all RoadFamilyName' | This struct is principally used for Xroads and Tjunctions. It typically lists the order of all RoadFamilyName' | ||
- | ModelList | + | |
+ | ====== | ||
<code cpp> | <code cpp> | ||
- | ModelList | + | ModelList |
- | { | + | { |
- | | + | ulong Count; |
- | | + | BlockModel BlockModel[[Count]]; |
- | | + | String |
- | | + | ulong Unknown[[4]]; //Typically 00 00 C8 C0 00 00 C8 C0 00 00 00 00 0E 01 00 00 |
- | | + | RGBA color[[2]]; |
- | | + | ShortBool |
- | | + | ulong buf2[[4]]; // Typically 00 00 00 00 00 00 39 40 00 00 00 00 00 00 24 40 |
- | } | + | } |
</ | </ | ||
- | BlockModel | + | |
+ | ====== | ||
<code cpp> | <code cpp> | ||
- | BlockModel | + | |
- | { | + | { |
- | | + | ulong |
- | /* typical data | + | |
- | **01 00 01 00 00 86 2D 46 | + | |
- | **00 98 23 46 65 6C C5 42 | + | |
- | **0E 01 00 00 4D 00 00 00 | + | ushort |
- | */ | + | String |
- | | + | ulong unknown[[25]]; |
- | | + | |
- | | + | |
- | /*typical data | + | |
- | **00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | + | |
- | **C4 76 C2 3F 0E EB 8A C1 00 00 00 00 BE 00 00 00 | + | |
- | **CC ED 26 BE CA 0F 12 40 56 30 28 3F 00 00 00 00 | + | |
- | **18 CA 04 C1 48 8B 3D C0 00 00 00 00 2D 3D 91 C1 | + | |
- | **06 01 C0 40 00 00 00 00 EE 98 84 C1 99 99 91 C0 | + | |
- | **00 00 00 00 64 4A 5F 35 99 99 91 40 00 00 00 00 | + | |
- | **64 4A 5F B5 01 00 | + | ShortBool |
- | */ | + | } |
- | | + | |
- | } | + | |
</ | </ | ||
- | UnknownStruct2 | + | |
+ | ====== NamedZone ====== | ||
<code cpp> | <code cpp> | ||
- | UnknownStruct2 | + | |
- | { | + | |
- | | + | |
- | if IsPresent | + | |
{ | { | ||
- | ShortBool | + | ShortBool |
- | BisString Name1; | + | if IsPresent |
- | ulong | + | |
- | ulong | + | |
- | float | + | |
- | /* Typical Data | + | |
- | **00 00 61 45 00 78 1B 46 00 20 64 45 00 20 19 46 | + | |
- | **00 20 64 45 00 78 1B 46 00 40 67 45 00 58 18 46 | + | |
- | **00 40 67 45 00 78 1B 46 00 60 6A 45 00 58 18 46 | + | |
- | **00 60 6A 45 00 78 1B 46 00 80 6D 45 00 90 17 46 | + | |
- | **00 80 6D 45 00 B0 1A 46 00 A0 70 45 00 C8 16 46 | + | |
- | **00 A0 70 45 00 E8 19 46 00 C0 73 45 00 00 16 46 | + | |
- | */ | + | |
- | ulong | + | |
- | if POSEW60 | + | |
{ | { | ||
- | | + | |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | { | ||
+ | float TopLeft.xy; | ||
+ | float BottomRight.xy; | ||
+ | | ||
+ | /* Typical Data | ||
+ | **00 00 61 45 00 78 1B 46 00 20 64 45 00 20 19 46 | ||
+ | **00 20 64 45 00 78 1B 46 00 40 67 45 00 58 18 46 | ||
+ | **00 40 67 45 00 78 1B 46 00 60 6A 45 00 58 18 46 | ||
+ | **00 60 6A 45 00 78 1B 46 00 80 6D 45 00 90 17 46 | ||
+ | **00 80 6D 45 00 B0 1A 46 00 A0 70 45 00 C8 16 46 | ||
+ | **00 A0 70 45 00 E8 19 46 00 C0 73 45 00 00 16 46 | ||
+ | */ | ||
+ | | ||
+ | if POSEW60 | ||
+ | { | ||
+ | | ||
+ | } | ||
+ | | ||
+ | { | ||
+ | BisString Name2; // | ||
+ | } | ||
} | } | ||
- | else | + | }; |
- | { | + | |
- | | + | |
- | } | + | |
- | } | + | |
- | }; | + | |
</ | </ | ||
- | Locale | + | |
+ | ====== KeyPoint ====== | ||
<code cpp> | <code cpp> | ||
- | Locale | + | |
- | { | + | { |
- | | + | LongBool |
- | | + | String |
- | | + | RGBA |
- | | + | |
- | | + | |
- | | + | float |
- | | + | float Size[[2]]; // 250 x 250.0 eg (widht and height) |
- | | + | ulong |
- | | + | BisString TownName; |
- | | + | BisString LocaleType; //"NameCity& |
- | } | + | BisString |
+ | } | ||
</ | </ | ||
Each of these locales have a LocaleType. Some of which are: | Each of these locales have a LocaleType. Some of which are: | ||
- | | + | *NameCity |
- | * NameCityCapital | + | |
- | * NameVillage | + | |
- | * VegetationBroadLeaf (Forest) | + | |
+ | *NameCityCapital | ||
+ | |||
+ | *NameVillage | ||
+ | |||
+ | *VegetationBroadLeaf (Forest) | ||
There is always a classname associated with this locale, | There is always a classname associated with this locale, | ||
- | | + | *Forest_Owls |
- | * Abel_LaTrinite | + | |
+ | *Abel_LaTrinite | ||
and in most cases a text name | and in most cases a text name | ||
Line 609: | Line 602: | ||
"La Refuge Des Chassuers" | "La Refuge Des Chassuers" | ||
- | (Type Viewpoints and Marine eg) do not have names associated with them. There is no "place" | + | (Type Viewpoints and Marine eg) do not have names associated with them. There is no "place& |
- | Enums | ||
- | ObjectClassEnum | + | ====== Background ====== |
<code cpp> | <code cpp> | ||
- | enum ObjectClassEnum | + | Background // this structure has not been seen |
- | { | + | { |
- | Natural = 1, | + | String BackgroundFilename;//& |
- | Artificial = 2, | + | String BackgroundName; |
- | ArtificialAndDefinedInRoad = 5, | + | |
- | Road = 3 | + | |
- | } | + | ulong Transparency; |
+ | shortBool Visible; // or ulong? | ||
+ | } | ||
</ | </ | ||
- | MarkerTypeEnum | + | |
+ | ====== Selection ====== | ||
<code cpp> | <code cpp> | ||
- | enum MarkerTypeEnum | + | |
- | { | + | { |
- | Rectangular = 0, | + | |
- | Elliptical | + | char[[]] |
+ | ulong nSubSelections; | ||
+ | SubSelection SubSelections[[nSubSelections]] | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ====== SubSelection ====== | ||
+ | |||
+ | <code cpp> | ||
+ | | ||
+ | { | ||
+ | ulong ObjectId; | ||
+ | byte Type; | ||
+ | byte Unknown[[7]]; | ||
} | } | ||
</ | </ | ||
+ | |||
+ | |||
+ | ====== Enums ====== | ||
+ | |||
+ | ====== ObjectClassEnum ====== | ||
+ | |||
+ | <code cpp> | ||
+ | enum ObjectClassEnum | ||
+ | { | ||
+ | | ||
+ | | ||
+ | Road = 3, | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== MarkerTypeEnum ====== | ||
+ | |||
+ | <code cpp> | ||
+ | enum MarkerTypeEnum | ||
+ | { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | As of v60 a rarely used sub structure with ObjTemplates. | ||
arma/file_formats/pew.1243679612.txt.gz · Last modified: 2009/05/30 10:33 by snakeman