VTFEdit Cmd Usage

2
Jul
0

Correct vtfcmd usage:
 -file <path>             (Input file path.)
 -folder <path>           (Input directory search string.)
 -output <path>           (Output directory.)
 -prefix <string>         (Output file prefix.)
 -postfix <string>        (Output file postfix.)
 -format <string>         (Ouput format to use.)
 -flag <string>           (Output flags to set.)
 -resize                  (Resize the input to a power of 2.)
 -rmethod <string>        (Resize method to use.)
 -rfilter <string>        (Resize filter to use.)
 -rsharpen <string>       (Resize sharpen filter to use.)
 -gamma                   (Gamma correct image.)
 -gcorrection <single>    (Gamma correction to use.)
 -mfilter <string>        (Mipmap filter to use.)
 -msharpen <string>       (Mipmap sharpen filter to use.)
 -normal                  (Convert input file to normal map.)
 -nkernel <string>        (Normal map generation kernel to use.)
 -nheight <string>        (Normal map height calculation to use.)
 -nalpha <string>         (Normal map alpha result to set.)
 -nscale <single>         (Normal map scale to use.)
 -nwrap                   (Wrap the normal map for tiled textures.)
 -bumpscale <single>      (Engine bump mapping scale to use.)
 -nothumbnail             (Don’t generate thumbnail image.)
 -noreflectivity          (Don’t calculate reflectivity.)
 -shader <string>         (Create a material for the texture.)
 -param <string> <string> (Add a parameter to the material.)
 -recurse                 (Process directories recursively.)
 -silent                  (Silent mode.)
 -pause                   (Pause when done.)
 -help                    (Display vtfcmd help.)

Example vtfcmd usage:
vtfcmd.exe -file “C:\texture1.bmp” -file “C:\texture2.bmp” -format “dxt1″
vtfcmd.exe -file “C:\texture.bmp” -format “bgr888″ -normal -postfix “_normal”
vtfcmd.exe -folder “C:\input\*.tga” -output “C:\output” -recurse -pause

Tagged as: , ,

Photoshop 6.0 VTF Texture Plug-in

2
Jul
0

Installation:

  1) Close Photoshop.
  2) Extract VTFLib.dll to your ..\Photoshop\ folder.
  3) Extract VTF.8bi to your ..\Photoshop\Plug-Ins\File Formats\ folder.
  4) Run Photoshop.

  - This is a basic plug-in and is not designed to replace other tools such as VTFEdit.
  - The plug-in only supports single-face and single-frame .vtf files.
  - If a multi-face or multi-frame .vtf file is loaded, only the first frame or face is used.
  - .vtf information such as image format, flags and thumbnail data is not recalled when the
    .vtf is saved again.  The information from the previously loaded .vtf is used.
  - The DXT file formats are lossy, if you save your .vtfs in this format you should also save
    a backup copy so you can access the original image data.

Half-Life 2 VTFTool

2
Jul
0

VTFTool needs to exist in the SourceSDK\Bin folder but doesn’t need Steam
to be running to actually work (at the moment).

From the ‘File’ menu, choose the type of conversion you want to perform and
if you want to convert just a single file or a whole folder.

VTFTool has quite a few extra options you need to know about. Tooltips are
provided on each options giving a brief explanation of what they do.

The drop down box provides a list of current Source games and mods taken from
the SDK config which can be used to automatically set your materials source
and materials folders. This is NOT 100% foolproof so make sure you do check
that the folders that it sets are correct for your project. Alternatively, you
can set these using the “…” browse buttons to the folders of your choosing.

The reference paths are uses by “smart mode” which will attempt to keep sync
between the layout of your source and final materials folders and is used in
creating any folders and files that are needed.

The reference paths do NOT have to be set for simple conversions but you
will need to choose the “Output to same folder” or “To ‘materials/materialsrc
only’” option to stop the alert boxes being shown.

The other options are fairly familary to those who have used the command line
VTF2TGA and VTEX tools before. However two extra options need explaining.

“Output to same folder” is used for simple, quick conversions of one file format
to another. Simply put, the converted file will be places inthe same folder as
the source regardless of the reference paths. No smart placement will be done.

“To ‘materials/materialsrc’ only” will output the converted file to the materials
or source folder (depending on the type of conversion) but won’t attempt to place
the file in the relevant sub-folder structure.

Additional options - Generate/Use config TXT will export or read extra flags for
the VTF files header. When converting to TGA this will be written out, when making
a VTF these are read in. If during VTF creation the config doesnt exist its ignored.

‘Export MIPs’ which will export the MIP TGA’s as well as the original 1:1 scale
image file.

Half-Life 2 Valve Map Extractor

2
Jul
0

VMEX (valve Map Extractor) is a .bsp to .vmf map decompiler for Half-Life 2 games (HL2, HL2DM, CS:S and DoD:S).
It also partially supports decompiling of .bsp files from Vampire: The Masquerade Bloodlines.

It requires the Java Runtime Environment 5.0 (aka 1.5.0) which can be downloaded from this page:
http://java.sun.com/j2se/1.5.0/download.jsp
By following the “Download JRE” link.

The decompiler can now be used from a graphical interface or the command line.
For the GUI, double-click on the vmex.bat file. Use the “Browse” button to select a .bsp file
to decompile, and the “Decompile” button to start decompilation. Note that any errors will appear
in the command-line window.

Half-Life 2 Source Server Query Tool

2
Jul
0

This is a tool to query a Valve Source server via UDP (User Datagram Protocol). It will return all of the information provided by the Source server in response to the A2S_INFO query.

The tool is missing some features such as robust input checking and a receive timeout. If you enter a malformed IP or port it is liable to throw an exception.

The Visual Basic.Net source is located in the included source folder with the associated Visual Studio .Net 2003 support files. Simply double-click on the project file and it will open in Visual Studio.

This tool is provided as a courtesy to the community. It is intended as a starting point for other .Net based projects looking to query the Source engine. The executable and source are provided as-is with no warranty either expicit or implied. I cannot support this application.

I hope you find it useful and educational.

by Technocrat