Difference between revisions of ".ymap"

From GTAMods Wiki
Jump to navigation Jump to search
m (‎)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
CMapData is a parent section. It includes file description, flags and entities
 
CMapData is a parent section. It includes file description, flags and entities
  
  <name> </name>
+
  <name> - File name definition
 
+
  <parent> - Subfiles (_strm, _long, etc.) links to the main ymap file.   
This tag is used to put the name of ymap file. e.g:
+
  <flags> - It's unknown what flags do. Some external formats uses value "2" and other - "0".
 
+
<hash_6A675035> - unknown.  
<name>bt1_01</name>
 
 
 
File must be named as bt1_01.ymap
 
 
 
  <parent></parent>
 
 
 
Parent section is used to link _strm, _long or other subfiles to the main ymap file. Main ymap file links to .ytyp file that include LOD objects only.
 
 
 
  <parent>bt1_lod</parent>
 
 
It links bt1_01.ymap to bt1_lod.ytyp.
 
 
 
  <Flags Value>  
 
 
 
It's unknown what flags do. Some external formats uses value "2" and other - "0".
 
  
 
=== <entities> ===
 
=== <entities> ===
Line 36: Line 21:
 
===<CEntityDef>===
 
===<CEntityDef>===
  
       <archetypeName> - Model name hash
+
       <archetypeName> - Model name
       <flags value/> - Flag object
+
       <flags value/> - Object flags
 
       <guid value>
 
       <guid value>
 
       <position x="" y="" z=""> - object coordinates
 
       <position x="" y="" z=""> - object coordinates
 
       <rotation x="" y="" z="" w=""> - object rotation
 
       <rotation x="" y="" z="" w=""> - object rotation
       <hash_9CA32637> - unknown
+
       <scaleXY value=""/>
       <hash_10FB7C42> - unknown
+
       <scaleZ value="1"/>
       <parentIndex value="" /> - Lod Index (?)
+
       <parentIndex value="" /> - Lod Index  
 
       <lodDist value="" /> - Lod Distance
 
       <lodDist value="" /> - Lod Distance
       <hash_CA974BCD> - unknown
+
       <childLodDist value=""/>
       <hash_6C8F1715> - unknown
+
       <numChildren value="0"/>
       <hash_A687AC89> - unknown
+
       <priorityLevel>PRI_REQUIRED</priorityLevel>
       <hash_2691F019> - unknown
+
      <extensions/>
 +
      <ambientOcclusionMultiplier value=""/>
 +
      <artificialAmbientOcclusion value=""/>
 +
       <tintValue value="0"/>
  
  
Line 59: Line 47:
  
 
{{incomplete}}
 
{{incomplete}}
 +
 +
====<timeCycleModifiers>====
 +
 +
====<carGenerators>====
 +
 +
====<LODLightsSOA>====
 +
 +
====<DistantLODLightsSOA>====
 +
 +
==== <block> ====
 +
 +
Ignored by the game
  
 
{{N|V}}  
 
{{N|V}}  
 
[[Category:File Formats]]
 
[[Category:File Formats]]

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