Difference between revisions of ".ymap"

From GTAMods Wiki
Jump to navigation Jump to search
(YTYP Formats)
m (‎)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
'''.ymap''' is compressed file format which is used as map system placement. Since GTA5, this format has XML structure.  
 
'''.ymap''' is compressed file format which is used as map system placement. Since GTA5, this format has XML structure.  
  
== YTYP Formats ==
 
  
YMAP has some formats
+
== CMapData ==
 +
 
 +
{{Research}}
  
External Format
+
CMapData is a parent section. It includes file description, flags and entities
Stream Format
 
Long Format
 
Interior Format
 
  
External Format is parent format which is used to place the LODs.
+
<name> - File name definition
 +
<parent> - Subfiles (_strm, _long, etc.) links to the main ymap file. 
 +
<flags> - It's unknown what flags do. Some external formats uses value "2" and other - "0".
 +
<hash_6A675035> - unknown.  
  
Stream Format is child format of External. We use it to place normal objects. Objects gets LodIndex from External format.
+
=== <entities> ===
  
Long Format is child format of external. It's used for props and grass placement.  
+
This section enumerate objects and sections in ymap file.  
  
Interior Format is child format of external. It has MLO system and used to place the interior and its objects.
+
===<CEntityDef>===
  
== CMapData ==
+
      <archetypeName> - Model name
 +
      <flags value/> - Object flags
 +
      <guid value>
 +
      <position x="" y="" z=""> - object coordinates
 +
      <rotation x="" y="" z="" w=""> - object rotation
 +
      <scaleXY value=""/>
 +
      <scaleZ value="1"/>
 +
      <parentIndex value="" /> - Lod Index
 +
      <lodDist value="" /> - Lod Distance
 +
      <childLodDist value=""/>
 +
      <numChildren value="0"/>
 +
      <priorityLevel>PRI_REQUIRED</priorityLevel>
 +
      <extensions/>
 +
      <ambientOcclusionMultiplier value=""/>
 +
      <artificialAmbientOcclusion value=""/>
 +
      <tintValue value="0"/>
  
  
=== <name> </name> ===
 
 
 
This tag is used to put the name of ymap file. e.g:
 
  
<name>bt1_01</name>
+
====<extensions>====
  
File must be named as bt1_01.ymap
+
This subsection includes other additional sections.
  
=== <parent></parent> ===
+
====<CExtensionDefLightEffect>====
  
It connects ymap to ytyp file. e.g:
+
{{incomplete}}
  
<parent>ss1_lod</parent>
+
====<timeCycleModifiers>====
 
We connect bt1_01.ymap to ss1_lod.ytyp. File parse objects information from YTYP file.
 
  
=== <Flags Value> ===
+
====<carGenerators>====
  
It's unknown what flag does. Some external formats uses value "2" and others are "0". YTYP format use this section too.
+
====<LODLightsSOA>====
  
== <entities> ==
+
====<DistantLODLightsSOA>====
  
This section enumerate objects and sections in ymap file.
+
==== <block> ====
  
===<CEntityDef>===
+
Ignored by the game
  
      <archetypeName> - Model name hash
+
{{N|V}}
      <flags value/> - Flag object
+
[[Category:File Formats]]
      <guid value>
 
      <position x="" y="" z=""> - object coordinates
 
      <rotation x="" y="" z="" w=""> - object rotation
 
      <hash_9CA32637> - unknown
 
      <hash_10FB7C42> - unknown
 
      <parentIndex value="" /> - Lod Index (?)
 
      <lodDist value="" /> - Lod Distance
 
      <hash_CA974BCD> - unknown
 
      <hash_6C8F1715> - unknown
 
      <hash_A687AC89> - unknown
 
      <hash_2691F019> - unknown
 
      <extensions /> - tag include additional params.
 
      <hash_18C1D58/> - R color?
 
      <hash_23C0E543/> - G color?
 
      <hash_3C852527/> - B color?
 

Latest revision as of 21:35, 17 July 2017

.ymap is compressed file format which is used as map system placement. Since GTA5, this format has XML structure.


CMapData

CMapData is a parent section. It includes file description, flags and entities

<name> - File name definition
<parent> - Subfiles (_strm, _long, etc.) links to the main ymap file.  
<flags> - It's unknown what flags do. Some external formats uses value "2" and other - "0".
<hash_6A675035> - unknown. 

<entities>

This section enumerate objects and sections in ymap file.

<CEntityDef>

     <archetypeName> - Model name
     <flags value/> - Object flags
     <guid value>
     <position x="" y="" z=""> - object coordinates
     <rotation x="" y="" z="" w=""> - object rotation
     <scaleXY value=""/>
     <scaleZ value="1"/>
     <parentIndex value="" /> - Lod Index 
     <lodDist value="" /> - Lod Distance
     <childLodDist value=""/>
     <numChildren value="0"/>
     <priorityLevel>PRI_REQUIRED</priorityLevel>
     <extensions/>
     <ambientOcclusionMultiplier value=""/>
     <artificialAmbientOcclusion value=""/>
     <tintValue value="0"/>


<extensions>

This subsection includes other additional sections.

<CExtensionDefLightEffect>

This section is incomplete. You can help by fixing and expanding it.

<timeCycleModifiers>

<carGenerators>

<LODLightsSOA>

<DistantLODLightsSOA>

<block>

Ignored by the game