Dmxconvert: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(added more things found in CsGo's and HL:A's dmx convert)
m (accidentally deleted two things. Added them back and mentioned they don't exist in source2 and csgo.)
Line 20: Line 20:
*actbusy
*actbusy
*commentary
*commentary
*entitylayer {{not|{{source2}}, {{csgo}}}}
*vmt
*vmt
*vmf {{not|{{source2}}}}
*mks {{since|{{csgo}}}}
*mks {{since|{{csgo}}}}
*tex_source1 {{since|{{csgo}}}}
*tex_source1 {{since|{{csgo}}}}

Revision as of 07:12, 8 May 2023

DMXconvert is a command-line SDK tool which converts DMX files. It can be found in all Source 2013 Source 2013 games, Counter-Strike: Global Offensive Counter-Strike: Global Offensive Authoring Tools , Left 4 Dead 2 Left 4 Dead 2 Authoring Tools , Source Filmmaker Source Filmmaker , as well as in various Source 2 Source 2 Workshop Tools.

An example usage is: converting regular DMX files using "encoding binary 3 format model 15" into others, such as plain text "encoding keyvalues2 1 format dmx 15".
This new Keyvalues 2 DMX 15 version could then be used in Blender Source Tools advanced Flex properties tab to copy the face flex rules from.

Usage

 dmxconvert -i <in file> [-ie <in encoding hint>] [-o <out file>] [-oe <out encoding>] [-of <out format>]

If no output file is specified, dmx to dmx conversion will overwrite the input
Source 2: -r argument does a recursive search if the in file specifies wildcards
Source 2: -upconvert will auto-check out the files. If -i is not specified, it will operate on all DMX files}}

Supported DMX file encodings:

  • keyvalues
  • keyvalues2
  • keyvalues2_flat
  • keyvalues2_noids
  • binary
  • binary_seqids
  • actbusy
  • commentary
  • entitylayer (not in Source 2, Counter-Strike: Global Offensive)
  • vmt
  • vmf (not in Source 2)
  • mks (in all games since Counter-Strike: Global Offensive)
  • tex_source1 (in all games since Counter-Strike: Global Offensive)

Supported DMX file formats:

  • dmx
  • movieobjects
  • sfm
  • sfm_settings (in all games since Counter-Strike: Global Offensive)
  • sfm_session
  • sfm_trackgroup
  • pcf
  • gui
  • schema
  • preset
  • facial_animation
  • model
  • ved
  • vmks (in all games since Counter-Strike: Global Offensive)
  • mp_preprocess
  • mp_root
  • mp_model
  • mp_anim
  • mp_physics
  • mp_hitbox
  • mp_materialgroup
  • mp_keyvalues
  • mp_eyes
  • mp_bonemask
  • tex (in all games since Counter-Strike: Global Offensive) (not in Source 2)
  • vtex Source 2
  • world (in all games since Counter-Strike: Global Offensive)
  • worldnode (in all games since Counter-Strike: Global Offensive)
  • virtualvolumetexture Source 2
  • vmap Source 2
  • vanim Source 2
  • animflags Source 2

Simple Drag and Drop bat file

As is the case with many Command-Line only tools, usage might be confusing. So here is a simple Drag and Drop .bat file script which automatically converts whatever DMX you drop into the bat into a Keyvalues 2 DMX 15 version, creating a new DMX file with the _Keyvalues2 suffix.

::Game location that has the DMXconvert you want to use. Just main game folder.
SET Game_path=d:\programme\steam\steamapps\common\left 4 dead 2
::Don't change anything below here
"%Game_path%\bin\dmxconvert.exe" -i %1 -of dmx -oe keyvalues2 -o "%~dpn1_Keyvalues2.dmx"