This article's documentation is for Source 2. Click here for more information.

VMAP: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Add comparison to previous format, should help with understanding)
No edit summary
 
(17 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{stub}}
{{LanguageBar}}
'''VMAP''' stands for Valve Map, and it is the main map file extension used by '''Source 2''''s Hammer. The file itself is just a [[dmx]] file under binary encoding version 4, however Hammer can export an ASCII-encoded vmap by clicking "Save Copy As Text".
{{Source 2 topicon}}
{{tabsBar|main=MAP}}
{{Stub}}
'''VMAP''' stands for Valve Map, and it is the main map file extension used by {{source2|4}} Hammer. The file itself is just a [[DMX]] file under binary encoding version 4, however Hammer can export an ASCII-encoded vmap by clicking "Save Copy As Text".


Some key differences with '''Source''' [[Valve Map Format|VMF]]:
Some key differences with preceding formats:
{| class="wikitable"
{| class="wikitable"
|-
|-
!  !! VMF !! VMAP
!  !! {{source|4}} !! {{source2|4}}
|-
|-
| Geometry uncompiled || Brushes in [[Valve Map Format]] || Meshes in [https://en.wikipedia.org/wiki/Doubly_connected_edge_list half-edge format]
| Geometry uncompiled || Brushes in [[Valve Map Format]] || Meshes in [[Wikipedia:Doubly connected edge list|half-edge format]]
|-
|-
| Geometry partitioning || [[BSP]] || [https://en.wikipedia.org/wiki/Octree Octree]
| Geometry partitioning || [[Source BSP File Format#Node and leaf|Node and leaf lump]] '''/''' [[BSP]] || [[.vwnod_c]] file '''/''' [[Wikipedia:Octree|octree]]
|-
|-
| Geometry compiled || Various lumps but mainly [[Source BSP File Format#Model|Bmodels]] || Objects are formed and [[Static Prop Combine|autocombined]] into [[.vmdl_c]] files
| Geometry compiled || [[Source BSP File Format#Face and original face|Face lump]] || [[.vmdl_c]] files
|-
|-
| Visibility compiled || [[Source BSP File Format#Visibility|Visibility lump]] || [[.vvis_c]] file.
| Visibility compiled || [[Source BSP File Format#Visibility|Visibility lump]] || [[.vvis_c]] file
|-
|-
| Physics compiled || [[Source BSP File Format#Physics|Physics lump]] || [[.vphys_c]] file.
| Physics compiled || [[Source BSP File Format#Physics|Physics lump]] || [[.vphys_c]] file
|-
|-
| Entities compiled || [[Source BSP File Format#Entity|Entity lump]] || [[.vents_c]] file.
| Entities compiled || [[Source BSP File Format#Entity|Entity lump]] || [[.vents_c]] file
|}
|}


== Compiled VMAP ==
'''VMAP_C''' stands for Valve Map Compiled, and is the main map file extension used to load maps in {{source2|4}}. The .vmap_c file is used to refer to various map dependencies (including vwrld, vwnod, vvis, vphys, vents, [[VTEX (Source 2)|vtex]], vmdl, vrman; usually residing in <code>maps/<mapname>/</code>) as well as other external assets used in the map.


This file along with its main dependencies usually get bundled together into a single [[VPK]] file, the latter of which serves similarly to the '''.bsp'''. Since lumps are separate files, they get packed and live next to other assets in the VPK. This makes post-compile addons much more convenient than in {{source|4}} ''(see [[Patching levels with lump files|Patching EP1 levels]] vs. [[Half-Life: Alyx Workshop Tools/Level Design/Map Extensions|HL:A Map Extensions]])''.


== Valve Map Compiled ==
[[Category:Source 2|V]]
'''VMAP_C''' stands for Valve Map Compiled, and is the main map file extension used to load maps in [[Source 2]]. The .vmap_c file is used to refer to various map dependencies (including vwrld, vwnod, vvis, vphys, vents, vtex, vmdl, vrman) residing in <code>maps/<mapname>/</code> as well as other external assets used in the map. Its usefulness to the engine seems questionable as <code><mapname>/world.vrman_c</code> also refers to all the same vital dependencies.<sup>?</sup> 
[[Category:File formats|V]]
 
[[Category:Files|V]]
This file along with its main dependencies usually get bundled together into a single [[VPK|.vpk]] file, serving similarily to a .bsp. Compared to the [[Source BSP File Format|source BSP format]], you can see that lumps are now separate files, and so the [[Source BSP File Format#Pakfile|Pakfile lump]] idea was extended to also hold all these lumps (as files inside <code>maps/<mapname>/</code>). This makes post-compile addons much more convenient ''(see [[Patching levels with lump files|Patching EP1 levels]] vs. [[Half-Life: Alyx Workshop Tools/Level Design/Map Extensions|HL:A Map Extensions]])''.
[[Category:Hammer|V]]

Latest revision as of 06:48, 29 April 2025

English (en)Translate (Translate)

edit

Stub

This article or section is a stub. You can help by expanding it.

VMAP stands for Valve Map, and it is the main map file extension used by Source 2 Source 2 Hammer. The file itself is just a DMX file under binary encoding version 4, however Hammer can export an ASCII-encoded vmap by clicking "Save Copy As Text".

Some key differences with preceding formats:

Source Source Source 2 Source 2
Geometry uncompiled Brushes in Valve Map Format Meshes in half-edge format
Geometry partitioning Node and leaf lump / BSP .vwnod_c file / octree
Geometry compiled Face lump .vmdl_c files
Visibility compiled Visibility lump .vvis_c file
Physics compiled Physics lump .vphys_c file
Entities compiled Entity lump .vents_c file

Compiled VMAP

VMAP_C stands for Valve Map Compiled, and is the main map file extension used to load maps in Source 2 Source 2. The .vmap_c file is used to refer to various map dependencies (including vwrld, vwnod, vvis, vphys, vents, vtex, vmdl, vrman; usually residing in maps/<mapname>/) as well as other external assets used in the map.

This file along with its main dependencies usually get bundled together into a single VPK file, the latter of which serves similarly to the .bsp. Since lumps are separate files, they get packed and live next to other assets in the VPK. This makes post-compile addons much more convenient than in Source Source (see Patching EP1 levels vs. HL:A Map Extensions).