arma:file_formats:pew
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
arma:file_formats:pew [2009/05/25 04:28] – created pew initial page. 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 ====== | ||
- | Legend | + | see Generic FileFormat Data Types |
- | [[http:// | ||
- | < | ||
- | 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 | + | ====== 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> | ||
- | XYPair | + | POSEW59 |
- | { | + | |
- | ulong | + | |
- | } | + | |
- | </code> | + | |
+ | OFPTexture | ||
+ | ulong nObjectTemplates; | ||
+ | ObjectTemplate | ||
+ | shortBool | ||
+ | if (!NoOfpTerrains) | ||
+ | { | ||
+ | ulong nOFPTerrains; | ||
+ | | ||
+ | | ||
+ | | ||
+ | if (!NoOFPForests) | ||
+ | { | ||
+ | ulong nOFPForests; | ||
+ | OFPForest | ||
+ | } | ||
+ | RoadNets | ||
+ | Elevation | ||
+ | ulong NoOfObjects; | ||
+ | Object | ||
+ | ulong NoOfLayers; | ||
+ | String | ||
+ | Layer Layers[[NoOfLayers]] ; | ||
- | RGBAColor | + | if (POSEW60) |
+ | { | ||
+ | | ||
+ | } | ||
+ | else // pose59 | ||
+ | { | ||
+ | ulong nNamedZones; | ||
+ | NamedZone | ||
+ | } | ||
- | <code cpp> | + | ulong nRoadBlocks; |
- | RGBAColor | + | |
- | { | + | |
- | byte r,g,b,a; // // 0xFF: | + | if (POSEW60) |
- | } | + | |
+ | | ||
+ | NamedZone | ||
+ | } | ||
+ | else // pose59 | ||
+ | { | ||
+ | | ||
+ | } | ||
+ | ulong nKeyPoints; | ||
+ | KeyPoint | ||
+ | ulong NoOfBackgrounds; | ||
+ | Background | ||
+ | ulong TotalSizeOfSelections; | ||
+ | ulong nSelections; | ||
+ | Selection | ||
+ | } | ||
</ | </ | ||
- | * RGBA colors correspond to Microsoft' | ||
- | * They normally come in pairs innside the pew structures | ||
- | + | ====== PoseHeader ====== | |
- | String | + | |
<code cpp> | <code cpp> | ||
- | String | + | |
- | { | + | { |
- | ulong | + | |
- | Asciiz Characters;// null terminated regardless. | + | |
+ | ulong | ||
+ | | ||
+ | String | ||
+ | // Folderlocation of the rvmat material list | ||
+ | String | ||
+ | float | ||
+ | float | ||
+ | String | ||
+ | }; | ||
</ | </ | ||
- | Length always =strlen(Characters)+1; | ||
- | This is a pre-calculated convenience to reduce load times (and skip over the variable length block). | + | ====== OFPTexture ====== |
- | + | ||
- | 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 | + | |
- | POSEW60 | + | { |
- | { | + | ulong TextureID; |
- | PoseHeader | + | |
- | ulong | + | |
- | Textures | + | |
- | ulong | + | |
- | ObjectType | + | |
- | RoadNets | + | } |
- | Terrain | + | </code> |
- | ulong | + | |
- | Object | + | |
- | ulong NoOfLayers; | + | |
- | Layer Layers[[NoOfLayers] ; | + | |
- | ulong | + | |
- | if (POSEW60) | + | |
- | { | + | |
- | ulong | + | |
- | Background | + | |
- | } | + | |
- | else // pose59 | + | |
- | { | + | |
- | ulong | + | |
- | UnknownStruct2 | + | |
- | } | + | |
- | ulong | ||
- | RoadBlock | ||
- | |||
- | if (POSEW60) | ||
- | { | ||
- | ulong | ||
- | UnknownStruct2 | ||
- | } | ||
- | else // pose59 | ||
- | { | ||
- | ulong | ||
- | Background | ||
- | } | ||
- | ulong | ||
- | Locale | ||
- | ulong | ||
- | ulong | ||
- | ulong | ||
- | } | ||
- | </ | ||
+ | ====== ObjectTemplate ====== | ||
- | PoseHeader | ||
<code cpp> | <code cpp> | ||
- | Header | + | ObjectTemplate |
- | { | + | { |
- | char | + | |
- | + | String | |
- | ulong | + | ulong |
- | ulong UnknownLong1; // typically | + | // 0 Undefined - This type should never be encountered. |
- | ulong | + | // 1 Natural |
- | String | + | // 2 Artificial |
- | ulong IslandObjectPathLen; | + | // 3 Road (RoadFlag will be true) |
- | String | + | // 4 Forest |
- | float GridSize; //50.0 | + | // 5 Road2 (RoadFlag will be false) |
- | float SellSize; //400.0 (SegmentSize - SegmentOverlap) | + | RGBAColor |
- | ulong | + | |
- | String | + | double |
- | }; | + | ulong |
+ | | ||
+ | double | ||
+ | | ||
+ | shortBool Generally0x01; | ||
+ | | ||
+ | double | ||
+ | | ||
+ | double | ||
+ | | ||
+ | double | ||
+ | shortBool | ||
+ | if (RoadFlag) | ||
+ | { | ||
+ | TransformMatrix RoadNamedSelections; | ||
+ | TransformMatrix XRoadNamedSelections; | ||
+ | }; | ||
+ | | ||
+ | | ||
+ | ulong MarkerType; | ||
+ | } | ||
</ | </ | ||
- | ObjectType | + | |
+ | ====== NamedVector ====== | ||
<code cpp> | <code cpp> | ||
- | ObjectType | + | NamedVector |
- | { | + | { |
- | String | + | |
- | String ModelName; //" | + | LongBool |
- | ulong | + | |
- | RGBAColor OutlineColour; | + | XYZTriplet StartEndPos[[nTriplets]]; |
- | RGBAColor ObjectColour; | + | } |
- | VariousInfo: | + | </code> |
- | double UnknDouble01; | + | |
- | double UnknDouble02; | + | |
- | ulong ObjectTypeID; | ||
- | float UnknFloat[3]; | ||
- | double UnknDouble11; | + | ====== OFPTerrain ====== |
- | double UnknDouble12; | + | |
- | char UnknChar02[14]; | + | <code cpp> |
- | short ScaleFlag; // Random Scale Flag | + | |
- | double Scale0; // 50.0 | + | { |
- | double Scale1; // 50.0 | + | String |
+ | byte UnknownBytes[[11]]; | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </code> | ||
- | short RotateFlag; // Random Rotate Flag | ||
- | double Rotate0; // 20.0 | ||
- | double Rotate1; // 20.0 | ||
- | short OrientationFlag;// | + | ====== OFPSurface ====== |
- | double Orientation0; | + | |
- | double Orientation1; | + | |
- | short RoadFlag; switch (RoadFlag) | + | <code cpp> |
- | { | + | |
- | case 0x0001: | + | { |
- | { | + | |
- | float UnknFloat[12]; | + | float |
- | char UnknChar[48]; // (typically 0) | + | |
- | }; | + | } |
- | }; | + | |
- | ulong MarkerType; // See MarkerTypeEnum | + | |
- | LongBool LongBool; // 0 or 1 | + | |
- | } | + | |
</ | </ | ||
- | NB: While the ' | ||
- | ObjectTypeID is also present at offset 16 in the VariousInfo' | + | ====== OFPForest ====== |
- | + | ||
- | ArtificialSubObject | + | |
<code cpp> | <code cpp> | ||
- | ArtificialSubObject | + | |
- | { | + | { |
- | String | + | String |
- | LongBool | + | RGBAColor OutlineColour; |
- | ulong | + | RGBAColor ObjectColour; |
- | XYZTriplet StartEndPos[2]; | + | ulong |
- | } | + | |
+ | ulong TriangleModelID; | ||
+ | | ||
+ | ulong | ||
+ | } | ||
</ | </ | ||
- | RoadNet | + | |
+ | ====== | ||
<code cpp> | <code cpp> | ||
- | RoadNet | + | |
- | { | + | if (!NoRoads) |
- | shortBool Always1; | + | { |
- | shortBool Always1; | + | ulong nTypes; |
- | shortBool NoRoads; | + | RoadType RoadTypes[[nTypes]]; |
- | if (!NoRoads) | + | ulong nXRoads; |
- | { | + | XRoad XRoads[[nXRoads]]; |
- | ulong nTypes; | + | } |
- | RoadType RoadTypes[nTypes]; | + | |
- | ulong nXRoads; | + | |
- | XRoad XRoads[nXRoads]; | + | |
- | } | + | |
- | } | + | |
</ | </ | ||
- | RoadType | + | ====== |
<code cpp> | <code cpp> | ||
- | RoadType | + | |
- | { | + | { |
- | String | + | String |
- | RGBA | + | RGBA |
- | RGBA | + | RGBA |
- | shortBool | + | shortBool |
- | double | + | double |
- | double | + | double |
- | ulong | + | ulong nStraights; |
- | RoadList | + | RoadList |
- | ulong | + | ulong nCurves; |
- | RoadList | + | RoadList |
- | ulong | + | ulong nSpecials; |
- | RoadList | + | RoadList |
- | ulong | + | ulong nTerminators; |
- | RoadList | + | 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 | + | String |
- | ushort | + | ushort |
- | RGBA color; | + | RGBA color; |
- | shortBool CanChangeBankAngle; | + | shortBool CanChangeBankAngle; |
- | ulong | + | ulong |
- | String | + | 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 305: | 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 | + | |
- | { | + | |
- | XYPair | + | |
- | float | + | |
- | float | + | |
- | ulong | + | |
- | } | + | |
- | </ | + | |
- | Object | ||
- | |||
- | <code cpp> | ||
- | Object | ||
- | { | ||
- | ShortBool IsPresent; | ||
- | if (IsPresent) | ||
- | { | ||
- | ShortBool Always0; | ||
- | ulong InstanceId; | ||
- | float TransformColumn[3][4]; | ||
- | // this is a standard DirectX Transform matrix | ||
- | // but in COLUMN format; | ||
- | |||
- | double ObjectRelativeSize; | ||
- | String InstanceName; | ||
- | float RelativeSurfaceElevation; | ||
- | RGBA OutlineColour; | ||
- | RGBA ObjectColour; | ||
- | ulong ObjectID; | ||
- | }; | ||
- | }; | ||
- | </ | ||
- | Layer | + | ====== Elevation ====== |
<code cpp> | <code cpp> | ||
- | Layer | + | |
- | { | + | { |
- | String | + | |
- | ulong | + | |
- | String | + | |
- | ushort | + | // NoOfBlueFloats = (GridSize_Y * GridSize_X)/ |
- | ulong | + | |
- | TerrainMaterial TerrainMaterials[NoOfTerrainMaterials]; | + | } |
- | } | + | |
</ | </ | ||
- | TerrainMaterial | + | ====== Object ====== |
<code cpp> | <code cpp> | ||
- | TerrainMaterial | + | Object |
- | { | + | { |
- | ulong | + | |
- | String MaterialName; // " | + | if (IsPresent) |
- | ulong TypeID; | + | { |
- | } | + | ShortBool Moveable; |
+ | | ||
+ | float | ||
+ | // this is a standard DirectX Transform matrix | ||
+ | // but in COLUMN format; | ||
+ | double | ||
+ | | ||
+ | | ||
+ | RGBA OutlineColour; | ||
+ | RGBA ObjectColour; | ||
+ | ulong | ||
+ | | ||
+ | }; | ||
</ | </ | ||
- | Background | + | |
+ | ====== Layer ====== | ||
<code cpp> | <code cpp> | ||
- | Background // this structure has not been seen | + | Layer |
- | { | + | { |
- | String BackgroundFilename; | + | |
- | String | + | String |
- | float OffsetX; | + | |
- | float OffsetY; | + | if (DefaultIndicator == 0) |
- | float SizeX; | + | { |
- | float SizeY; | + | 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 |
- | { | + | { |
- | ShortBool IsPresent; | + | ShortBool IsPresent; |
- | if IsPresent | + | if IsPresent |
- | { | + | { |
- | ShortBool Always1; | + | ShortBool Always1; |
- | ulong | + | ulong |
- | | + | /* typical data |
- | | + | **00 00 00 00 00 |
- | * *C6 42 0E 01 00 00 01 00 00 F0 2C 46 00 98 23 46 | + | 00 00 F0 2C |
- | * *C6 6F C6 42 0E 01 00 00 4B 00 00 00 00 00 00 00 | + | 46 00 98 23 |
- | | + | 46 C6 6F C6 |
- | ushort | + | 42 0E 01 00 |
- | String | + | 00 01 00 00 |
- | String | + | F0 2C 46 00 |
- | RGBA color; | + | 98 |
- | ShortBool Always1; | + | 23 46 C6 6F |
- | ulong | + | C6 42 0E 01 |
- | FamilyList FamilyLists[Count]; | + | 00 00 4B 00 |
- | ulong | + | 00 00 00 00 |
- | | + | 00 00 |
- | | + | */ |
- | | + | ushort |
- | | + | String |
- | | + | String |
- | | + | RGBA color; |
- | | + | ShortBool Always1; |
- | | + | ulong |
- | | + | FamilyList FamilyLists[[Count]]; |
- | ulong | + | ulong |
- | ModelList ModelLists[Count]; | + | /* 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 | + | |
- | 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 | + | ulong Count; |
- | BlockModel BlockModel[Count]; | + | BlockModel BlockModel[[Count]]; |
- | String | + | String |
- | ulong | + | ulong Unknown[[4]]; //Typically 00 00 C8 C0 00 00 C8 C0 00 00 00 00 0E 01 00 00 |
- | RGBA | + | RGBA color[[2]]; |
- | ShortBool | + | ShortBool |
- | ulong | + | 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 | + | 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 |
- | ushort | + | ulong unknown[[25]]; |
- | String | + | |
- | ulong | + | |
- | /*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 |
- | * / | + | } |
- | ShortBool ok; // 0 or 1 | + | |
- | } | + | |
</ | </ | ||
- | UnknownStruct2 | + | ====== NamedZone ====== |
<code cpp> | <code cpp> | ||
- | UnknownStruct2 | + | |
- | { | + | { |
- | ShortBool IsPresent; | + | ShortBool IsPresent; |
- | if IsPresent | + | if IsPresent |
- | { | + | { |
- | ShortBool Always0; | + | |
- | BisString Name1; | + | |
- | ulong Colour[3]; | + | |
- | ulong nFloats; | + | |
- | float | + | ulong |
- | /* 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 | + | float TopLeft.xy; |
- | * *00 40 67 45 00 78 1B 46 00 60 6A 45 00 58 18 46 | + | float BottomRight.xy; |
- | * *00 60 6A 45 00 78 1B 46 00 80 6D 45 00 90 17 46 | + | }[[nPoints/4]]; |
- | * *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 | + | |
- | { | + | |
- | LongBool | + | |
- | } | + | |
- | else | + | |
- | { | + | |
- | BisString Name2; | + | |
- | } | + | LongBool |
- | } | + | |
- | }; | + | |
+ | | ||
+ | BisString Name2; | ||
+ | | ||
+ | } | ||
+ | }; | ||
</ | </ | ||
- | Locale | + | ====== KeyPoint ====== |
<code cpp> | <code cpp> | ||
- | Locale | + | |
- | { | + | { |
- | LongBool | + | LongBool |
- | String | + | String |
- | RGBA | + | RGBA |
- | ShortBool | + | |
- | float | + | |
- | float | + | float |
- | ulong | + | float Size[[2]]; // 250 x 250.0 eg (widht and height) |
- | BisString TownName; | + | ulong |
- | BisString LocaleType; //"NameCity" | + | BisString TownName; |
- | BisString | + | 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 563: | 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.1243225704.txt.gz · Last modified: 2009/05/25 04:28 by snakeman