aboutsummaryrefslogtreecommitdiff
path: root/files/batch-compiler-spec/Source_Texture_Utility.bcs
blob: 2ac64d4f3d174a524c3f7a2fb05408a5973be27c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
// Specification: VTex
// Written by: Ryan Gregg
// Version: N/A
// Created: April 7, 2004
// Last updated: N/A

Include		"Templates.bci"

Variable
{
  Name		"ValveProject"
  Type		"Folder"
  Optional	"True"
  Hint		"The directory your gameinfo.txt is located in."
}

Batch
{
  Name		"VTex"
  Priority	"1"
  Links		"Source SDK,http://www.valve-erc.com/srcsdk/"
  Filter	"TGA Files (*.tga)|*.tga"
  Stages	"VTex"
  Template	"@echo off\n"_
  		"set VPROJECT=${ValveProject}\n"_

		"${Splash}"_

  		"\"${StagePath=VTex}\" -nopause ${StageParam=VTex} \"${FileName}.${FileExt}\"\n"
}

//
// VTex
//
Stage
{
  Name		"VTex"
  Title		"VTex"
  Type		"Program"
  Filter	"VTex (vtex.exe)|vtex.exe"

  CheckBox
  {
    Name	"Make Directory"
    Bold	"True"
    Param	"-mkdir"
    Hint	"\tMake the destination directory if it does not exist.\n\n"_
		"\tFor example, if you had a .tga in your .../sourcesdk_content/hl2/materialsrc/sample/sample_material.tga folder, -mkdir would create a new directory called \"sample\" in your .../Half-Life 2/hl2/materials directory, if it didn't already exist, and then place the compiled .vtf file in that new location. If the directory already exists, the -mkdir parameter is ignored."
  }

  CheckBox
  {
    Name	"Quiet"
    Param	"-quiet"
    Hint	"\tDon't display any console output."
  }

  TextBox
  {
    Name	"VMT Parameter"
    Param	"-vmtparam"
    Size	"2"
    Type	"String"
    Quote	"False"
    Hint	"\tAdd additional material parameters to the created .vmt file.\n\n"_
		"\tIf a .vmt already exists in the same location, any new parameters will not be added. For example, to make a material translucent, you would type the following: \"$translucent 1\" (without quotes).\n"
  }

  TextBox
  {
    Name	"VMT Parameter"
    Param	"-vmtparam"
    Size	"2"
    Type	"String"
    Quote	"False"
    Hint	"\tAdd additional material parameters to the created .vmt file.\n\n"_
		"\tIf a .vmt already exists in the same location, any new parameters will not be added. For example, to make a material translucent, you would type the following: \"$translucent 1\" (without quotes).\n"
  }

  TextBox
  {
    Name	"VMT Parameter"
    Param	"-vmtparam"
    Size	"2"
    Type	"String"
    Quote	"False"
    Hint	"\tAdd additional material parameters to the created .vmt file.\n\n"_
		"\tIf a .vmt already exists in the same location, any new parameters will not be added. For example, to make a material translucent, you would type the following: \"$translucent 1\" (without quotes).\n"
  }

  TextBox
  {
    Name	"VMT Parameter"
    Param	"-vmtparam"
    Size	"2"
    Type	"String"
    Quote	"False"
    Hint	"\tAdd additional material parameters to the created .vmt file.\n\n"_
		"\tIf a .vmt already exists in the same location, any new parameters will not be added. For example, to make a material translucent, you would type the following: \"$translucent 1\" (without quotes).\n"
  }

  TextBox
  {
    Name	"VMT Parameter"
    Param	"-vmtparam"
    Size	"2"
    Type	"String"
    Quote	"False"
    Hint	"\tAdd additional material parameters to the created .vmt file.\n\n"_
		"\tIf a .vmt already exists in the same location, any new parameters will not be added. For example, to make a material translucent, you would type the following: \"$translucent 1\" (without quotes).\n"
  }

  TextBox
  {
    Name	"Custom Shader"
    Param	"-shader"
    Size	"2"
    Type	"String"
    Hint	"\tHave VTex create a .vmt for the new material with the shader specified.\n\n"_
		"\tNot to be used with the Standard Shader option."
  }

  ComboBox
  {
    Name	"Standard Shader"
    Param	"-shader"
    Size	"2"
    Default	"Lightmapped Generic"
    Options	"Cable,Cable|Decal,Decal|Decal Modulate,DecalModulate|Lightmapped Generic,LightmappedGeneric|Modulate,Modulate|Monitor Screen,MonitorScreen|Predator,Predator|Refract,Refract|Shattered Glass,ShatteredGlass|Sprite,Sprite|Unlit Generic,UnlitGeneric|Vertex Lit Generic,VertexlitGeneric|Water,Water"
    Hint	"\tHave VTex create a .vmt for the new material with the shader specified.\n\n"_
		"\tNot to be used with the Custom Shader option."
  }

  Space
  {
    Size	"1"
  }

  TextBox
  {
    Name	"Additional Parameters"
    Type	"String"
    Quote	"False"
    Size	"3"
    Hint	"\tAdd additional parameters here as you would a command line."
  }
}