Changes between Version 14 and Version 15 of PMP_File_Format
- Timestamp:
- Feb 4, 2024, 10:27:58 PM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PMP_File_Format
v14 v15 1 1 = Scenario file formats = 2 3 2 A scenario consists of an XML data file and, optionally, a PMP data file. The XML format is text and may be viewed in any text editor, while the PMP is a proprietary binary format. Most scenarios are created with [wiki:Atlas_Manual Atlas scenario editor], which generates one of each file per map. 4 3 … … 6 5 7 6 == PMP format == 8 9 The following describes version 6 of the PMP file format with C-like syntax. 7 The following describes version 7 of the PMP file format with C-like syntax. 10 8 11 9 Basic types: 10 12 11 * char = 8-bit character 13 12 * u32 = 32-bit unsigned int … … 21 20 // FILE HEADER 22 21 char magic[4]; // == "PSMP" 23 u32 version; // == 622 u32 version; // == 7 24 23 u32 data_size; // == filesize-12 25 24 … … 50 49 } 51 50 }}} 52 53 51 == Scenario XML format == 54 55 52 The following outlines version 5 of the scenario XML format. 56 53 … … 135 132 </Scenario> 136 133 }}} 137 138 134 === Environment === 139 140 135 These elements correspond to settings on the [wiki:Atlas_Manual_Environment_Tab environment tab] in Atlas. They affect renderer behavior. 141 136 142 137 === Camera === 143 144 138 Currently unused? 145 139 … … 147 141 148 142 === !ScriptSettings === 149 150 A special element containing a [wiki:JSON JSON] object. This object gets parsed during game setup to display information about the map such as its name, description, number of players and their civilizations. It's a flexible format which gets updated as we add new map settings. 143 A special element containing a [wiki:JSON] object. This object gets parsed during game setup to display information about the map such as its name, description, number of players and their civilizations. It's a flexible format which gets updated as we add new map settings. 151 144 152 145 This data mostly corresponds to the [wiki:Atlas_Manual_Map_Tab map] and [wiki:Atlas_Manual_Player_Tab player] settings tabs in Atlas. … … 155 148 156 149 === Entities === 150 This is a list of Entity elements that define all the objects on the map. Each Entity consists of: 157 151 158 This is a list of Entity elements that define all the objects on the map. Each Entity consists of:159 152 * unique [wiki:Entity entity] ID of type u32. Players are also considered entities, so these don't necessarily start with 1. 0 is reserved for `INVALID_ENTITY`. 160 153 * entity template filename. For [wiki:Actors actors], these are a reference to the actor template instead, prefixed with '''actor|''' … … 164 157 165 158 === Paths === 166 167 159 Currently unused.