Zoners Tools P Series.bci 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027
  1. // Specification: Zoners Tools P Series (now v3 and up).
  2. // Written by: Ryan Gregg
  3. // Version: 3.2.1
  4. // Created: August 4, 2004
  5. // Last updated: Febuary 25, 2005
  6. // Updated by: Ryan Gregg
  7. // Date: Febuary 25, 2004
  8. // Updated RipEnt options.
  9. // Updated ZHLT link.
  10. // Updated by: Ryan Gregg
  11. // Date: October 26, 2004
  12. // Added RipEnt to Light Data's shared stages.
  13. // Updated by: Ryan Gregg
  14. // Date: October 24, 2004
  15. // Fixed Null File option filter.
  16. // Updated by: Ryan Gregg
  17. // Date: August 9, 2004
  18. // Thanks to: Anders Jenbo
  19. // Moved RipEnt's Import and Export options to a ComboBox.
  20. // CSG's No Null Tex option now shared with BSP.
  21. // RAD2's Jitter and Jitter Color options changed to Integer format.
  22. // Renamed RAD's Custom Shadow option to Custom Shadows.
  23. // Renamed RAD's RGB Transfers option to Color Custom Shadows.
  24. // Updated RAD's Custom Shadows option's hint.
  25. Include "Templates.bci"
  26. Variable
  27. {
  28. Name "WADRoot"
  29. Type "Folder"
  30. Optional "True"
  31. Hint "Wad root directory."
  32. }
  33. Batch
  34. {
  35. Name "Zoners Tools P Series"
  36. Priority "2"
  37. Links "Zoners Tools,http://www.zhlt.info/"
  38. Filter "Supported Files|*.map;*.bsp|MAP Files (*.map)|*.map|BSP Files (*.bsp)|*.bsp"
  39. Stages "CSG|BSP|VIS|RAD|RAD2|RipEnt|Shared"
  40. Template "@echo off\n"_
  41. "set WADROOT=${WADRoot}\n"_
  42. "\"${StagePath=CSG}\" ${StageParam=CSG} \"${FilePath}\\${FileName}\"\n"_
  43. "\"${StagePath=BSP}\" ${StageParam=BSP} \"${FilePath}\\${FileName}\"\n"_
  44. "\"${StagePath=VIS}\" ${StageParam=VIS} \"${FilePath}\\${FileName}\"\n"_
  45. "\"${StagePath=RAD}\" ${StageParam=RAD} ${StageParam=RAD2} \"${FilePath}\\${FileName}\"\n"_
  46. "\"${StagePath=RipEnt}\" ${StageParam=RipEnt} \"${FilePath}\\${FileName}\"\n"_
  47. "${LogViewerRun}\n"
  48. }
  49. Batch
  50. {
  51. Name "CSG"
  52. Priority "1"
  53. Stages "CSG|Shared"
  54. Filter "Map Files (*.map)|*.map"
  55. Template "@echo off\n"_
  56. "set WADROOT=${WADRoot}\n"_
  57. "\"${StagePath=CSG}\" ${StageParam=CSG} \"${FilePath}\\${FileName}\"\n"_
  58. "${LogViewerRun}\n"
  59. }
  60. Batch
  61. {
  62. Name "BSP"
  63. Priority "1"
  64. Stages "BSP|Shared"
  65. Filter "Map Files (*.map)|*.map"
  66. Template "@echo off\n"_
  67. "set WADROOT=${WADRoot}\n"_
  68. "\"${StagePath=BSP}\" ${StageParam=BSP} \"${FilePath}\\${FileName}\"\n"_
  69. "${LogViewerRun}\n"
  70. }
  71. Batch
  72. {
  73. Name "VIS"
  74. Priority "1"
  75. Stages "VIS|Shared"
  76. Filter "Map Files (*.map)|*.map"
  77. Template "@echo off\n"_
  78. "set WADROOT=${WADRoot}\n"_
  79. "\"${StagePath=VIS}\" ${StageParam=VIS} \"${FilePath}\\${FileName}\"\n"_
  80. "${LogViewerRun}\n"
  81. }
  82. Batch
  83. {
  84. Name "RAD"
  85. Priority "1"
  86. Stages "RAD|RAD2|Shared"
  87. Filter "Map Files (*.map)|*.map"
  88. Template "@echo off\n"_
  89. "set WADROOT=${WADRoot}\n"_
  90. "\"${StagePath=RAD}\" ${StageParam=RAD} ${StageParam=RAD2} \"${FilePath}\\${FileName}\"\n"_
  91. "${LogViewerRun}\n"
  92. }
  93. Batch
  94. {
  95. Name "RipEnt"
  96. Priority "1"
  97. Stages "RipEnt|Shared"
  98. Filter "BSP Files (*.bsp)|*.bsp"
  99. Template "@echo off\n"_
  100. "\"${StagePath=RipEnt}\" ${StageParam=RipEnt} \"${FilePath}\\${FileName}\"\n"_
  101. "${LogViewerRun}\n"
  102. }
  103. //
  104. // CSG
  105. //
  106. Stage
  107. {
  108. Name "CSG"
  109. Title "Constructive Solid Geometry"
  110. Type "Program"
  111. Filter "HLCSG (hlcsg.exe)|hlcsg.exe"
  112. CheckBox
  113. {
  114. Name "No Clip"
  115. Param "-noclip"
  116. Stages "BSP"
  117. Hint "\tDon't create clipping hull.\n\n"_
  118. "\tHalf-life like Quake 1, has 4 hulls, 1 visual hull and 3 collision hulls. This option disables generation of the collision hulls for a small savings in compile time. Note that the world will not be solid at all (everything will fall into the void) with this option set."
  119. }
  120. CheckBox
  121. {
  122. Name "No Clip Economy"
  123. Param "-noclipeconomy"
  124. Hint "\tDisables redundant clipnode stripping.\n\n"_
  125. "\tClipnodes are \"planes\" that restrict the player movement. They are placed along the walls and floors of your level, so that they player cannot pass though them. However, like everything else in the Half-Life universe, they are limited, and will max out with compile errors if you end up using too many of them.\n\n"_
  126. "\tCSG will analyse how the clipnodes are being used in your map. If it thinks that it can get away with not using clipnodes in any particular situation (such as in func_illusionaries which don't need clipnodes), then hlcsg will strip them away from the level. This means that by default, your clipnode counts will be lower than normal. This doesn't mean that you will never see another MAX_MAP_CLIPNODES error, it just means it's less likely to happen in the first place.\n\n"_
  127. "\tUse this switch to turn off clipnode economy mode if you believe that it is causing problems."
  128. }
  129. CheckBox
  130. {
  131. Name "No Null Tex"
  132. Param "-nonulltex"
  133. Stages "BSP"
  134. Hint "\tDisables NULL texture stripping."
  135. }
  136. CheckBox
  137. {
  138. Name "No Sky Clip"
  139. Param "-noskyclip"
  140. Hint "\tDisable automatic clipping of SKY brushes.\n\n"_
  141. "\tBy default CSG will CLIP all SKY brushes, as well as remove all non-sky faces on the 'inside' of a sky brush (which eases up vis time, and improves some time and memory usage in rad as well)."
  142. }
  143. CheckBox
  144. {
  145. Name "No WAD Textures"
  146. Param "-nowadtextures"
  147. Bold "True"
  148. Hint "\tInclude all used textures into bsp.\n\n"_
  149. "\tThis option is obsolete by -wadinclude and is only left in to retain some backwards compatibility as it making the bsp unnecessarily big by including textures from the default wad's."
  150. }
  151. CheckBox
  152. {
  153. Name "Entities Only"
  154. Param "-onlyents"
  155. Bold "True"
  156. Hint "\tDo an entity update from .map to .bsp.\n\n"_
  157. "\tThis option will take the entities from the .map file and update them into the bsp file. For the most part, entities can only be edited. Adding or removing any can reorder the other entities which frequently break brush based entities, especially triggers."
  158. }
  159. CheckBox
  160. {
  161. Name "WAD Auto Detect"
  162. Param "-wadautodetect"
  163. Bold "True"
  164. Hint "\tEnable automatic wad detection.\n\n"_
  165. "\tAutomatic wad detection is a simple utility that will exclude any wadfiles from the bsp that aren't in use by the map. This enables you to add any assortment of wadfiles you wish, and yet only have those that are actually used by the map included in the .bsp file."
  166. }
  167. Space
  168. {
  169. Size "3"
  170. }
  171. TextBox
  172. {
  173. Name "Additional Parameters"
  174. Type "String"
  175. Size "3"
  176. Hint "\tAdd additional parameters here as you would a command line."
  177. }
  178. TextBox
  179. {
  180. Name "Brush Union"
  181. Param "-brushunion"
  182. Type "Single"
  183. Default "95.0"
  184. Min "0.0"
  185. Max "100.0"
  186. Hint "\tThreshold to warn about overlapping brushes.\n\n"_
  187. "\tThis option is a mapper debugging feature. The value passed in is a percentage (0 to 100) of overlap of two brushes before a warning is printed. Starting with a high value (95+) is a good idea, as going too low to start can print hundreds or thousands of messages. The brush numbers of the intersecting brushes and the percentage in which they intersect each other is displayed for each occurrence. This option is off by default as it dramatically slows down hlcsg to do these calculations."
  188. }
  189. TextBox
  190. {
  191. Name "Tiny"
  192. Param "-tiny"
  193. Type "Single"
  194. Default "0.5"
  195. Min "0.0"
  196. Hint "\tMinimum brush face surface area before it is discarded.\n\n"_
  197. "\tTiny brush faces are outright removed. The current cut-off is 0.5 square units. It is dangerous to drop faces in this manner, as the BSP tree for the world can be unusable, or generate leaf portal errors or hall-of-mirrors vis errors."
  198. }
  199. TextBox
  200. {
  201. Name "WAD Config"
  202. Param "-wadconfig"
  203. Type "String"
  204. Default "wad.cfg"
  205. Hint "\tUse a custom wad configuration in the wad.cfg custom wad configuration file.\n\n"_
  206. "\tCustom wad configurations are used to enable you to choose which .wad files you want written into the the .bsp file, regardless of what happens to be in your editor, for any given game configuration. So, now, hlcsg will ignore the wads that you have configured in your editor, and instead only write in the ones you specify."
  207. }
  208. ComboBox
  209. {
  210. Name "Clip Type"
  211. Param "-cliptype"
  212. Bold "True"
  213. Default "Legacy"
  214. Options "Legacy|Normalized|Simple|Smallest|Precise"
  215. Hint "\tSelect the clip hull generation method. Choices are smallest, normalized, simple, precise or legacy (default).\n"_
  216. "\tThe ExpandBrush function of CSG has been reworked to fix 2 bad assumptions that led to \"sticky\" exterior corners in Half-Life maps.\n\n"_
  217. "\tTo use the new clip hull feature, use \"-cliptype precise\". If you want to same some clipnodes, you can use \"-cliptype simple\" which will shift player models a few units upward on sloped floors. If you want to use the new CSG for the speed improvement but want the old style clipping, use \"-cliptype legacy\". If you want to have the smallest possible number of clipnodes and don't mind some stickyness (not recommended), use \"-cliptype smallest\". \"-cliptype normalized\" uses bugfix 1 and skips bugfix 2 for people who don't want denormalized brushes."
  218. }
  219. FileBox
  220. {
  221. Name "Hull File"
  222. Param "-hullfile"
  223. FullPath "True"
  224. Filter "Hull Files (*.hull)|*.hull|Text Files (*.txt)|*.txt"
  225. Hint "\tLoad a custom hullfile.\n\n"_
  226. "\tLoads a custom set of hulls for the collision hull generation. The file is composed of 3 lines of 3 whitespace delimited numbers. Each line is an X Y Z size of the bounding box it is for. Only specific mod authors and their mapping teams should ever worry about this feature."
  227. }
  228. FileBox
  229. {
  230. Name "Null File"
  231. Param "-nullfile"
  232. FullPath "True"
  233. Filter "Null Files (*.null)|*.null|Text Files (*.txt)|*.txt"
  234. Hint "\tSpecify a file containing a list of entities to retexture with the NULL texture."
  235. }
  236. FolderBox
  237. {
  238. Name "WAD Config Path"
  239. Param "-wadcfgfile"
  240. Hint "\tManually specifies the path to the wad.cfg file. By default, the tools will look in the same directory and the Half-Life directory."
  241. }
  242. Space
  243. {
  244. Size "3"
  245. }
  246. FileBox
  247. {
  248. Name "WAD File"
  249. Param "-wadinclude"
  250. FullPath "False"
  251. Filter "WAD Files (*.wad)|*.wad"
  252. Hint "\tPlace textures used by the wad file specified into the bsp.\n\n"_
  253. "\tThis option will cause csg to include used textures from the named wadfile into the bsp. It does partial name matching, is not case sensitive, and can also match directory names. If multiple includes need to be done, -wadinclude must be specified multiple times, once for each include. Only textures actually used in the map are included into the bsp."
  254. }
  255. FileBox
  256. {
  257. Name "WAD File"
  258. Param "-wadinclude"
  259. FullPath "False"
  260. Filter "WAD Files (*.wad)|*.wad"
  261. Hint "\tPlace textures used by the wad file specified into the bsp.\n\n"_
  262. "\tThis option will cause csg to include used textures from the named wadfile into the bsp. It does partial name matching, is not case sensitive, and can also match directory names. If multiple includes need to be done, -wadinclude must be specified multiple times, once for each include. Only textures actually used in the map are included into the bsp."
  263. }
  264. FileBox
  265. {
  266. Name "WAD File"
  267. Param "-wadinclude"
  268. FullPath "False"
  269. Filter "WAD Files (*.wad)|*.wad"
  270. Hint "\tPlace textures used by the wad file specified into the bsp.\n\n"_
  271. "\tThis option will cause csg to include used textures from the named wadfile into the bsp. It does partial name matching, is not case sensitive, and can also match directory names. If multiple includes need to be done, -wadinclude must be specified multiple times, once for each include. Only textures actually used in the map are included into the bsp."
  272. }
  273. FileBox
  274. {
  275. Name "WAD File"
  276. Param "-wadinclude"
  277. FullPath "False"
  278. Filter "WAD Files (*.wad)|*.wad"
  279. Hint "\tPlace textures used by the wad file specified into the bsp.\n\n"_
  280. "\tThis option will cause csg to include used textures from the named wadfile into the bsp. It does partial name matching, is not case sensitive, and can also match directory names. If multiple includes need to be done, -wadinclude must be specified multiple times, once for each include. Only textures actually used in the map are included into the bsp."
  281. }
  282. FileBox
  283. {
  284. Name "WAD File"
  285. Param "-wadinclude"
  286. FullPath "False"
  287. Filter "WAD Files (*.wad)|*.wad"
  288. Hint "\tPlace textures used by the wad file specified into the bsp.\n\n"_
  289. "\tThis option will cause csg to include used textures from the named wadfile into the bsp. It does partial name matching, is not case sensitive, and can also match directory names. If multiple includes need to be done, -wadinclude must be specified multiple times, once for each include. Only textures actually used in the map are included into the bsp."
  290. }
  291. FileBox
  292. {
  293. Name "WAD File"
  294. Param "-wadinclude"
  295. FullPath "False"
  296. Filter "WAD Files (*.wad)|*.wad"
  297. Hint "\tPlace textures used by the wad file specified into the bsp.\n\n"_
  298. "\tThis option will cause csg to include used textures from the named wadfile into the bsp. It does partial name matching, is not case sensitive, and can also match directory names. If multiple includes need to be done, -wadinclude must be specified multiple times, once for each include. Only textures actually used in the map are included into the bsp."
  299. }
  300. FileBox
  301. {
  302. Name "WAD File"
  303. Param "-wadinclude"
  304. FullPath "False"
  305. Filter "WAD Files (*.wad)|*.wad"
  306. Hint "\tPlace textures used by the wad file specified into the bsp.\n\n"_
  307. "\tThis option will cause csg to include used textures from the named wadfile into the bsp. It does partial name matching, is not case sensitive, and can also match directory names. If multiple includes need to be done, -wadinclude must be specified multiple times, once for each include. Only textures actually used in the map are included into the bsp."
  308. }
  309. FileBox
  310. {
  311. Name "WAD File"
  312. Param "-wadinclude"
  313. FullPath "False"
  314. Filter "WAD Files (*.wad)|*.wad"
  315. Hint "\tPlace textures used by the wad file specified into the bsp.\n\n"_
  316. "\tThis option will cause csg to include used textures from the named wadfile into the bsp. It does partial name matching, is not case sensitive, and can also match directory names. If multiple includes need to be done, -wadinclude must be specified multiple times, once for each include. Only textures actually used in the map are included into the bsp."
  317. }
  318. }
  319. //
  320. // BSP
  321. //
  322. Stage
  323. {
  324. Name "BSP"
  325. Title "Binary Space Partition"
  326. Type "Program"
  327. Filter "HLBSP (hlbsp.exe)|hlbsp.exe"
  328. CheckBox
  329. {
  330. Name "Leak Only"
  331. Param "-leakonly"
  332. Hint "\tRun BSP only enough to check for leaks.\n\n"_
  333. "\tIf you already know a map has a leak, this is a good option to just save some time in hlbsp and just generate the pts file."
  334. }
  335. CheckBox
  336. {
  337. Name "No Optimization "
  338. Param "-noopt"
  339. Hint "\tSkip plane optimization on output.\n\n"_
  340. "\tHLBSP version p14 and later automatically removes unused planes when writing the output BSP. This switch turns off that behavior."
  341. }
  342. CheckBox
  343. {
  344. Name "No Fill"
  345. Param "-nofill"
  346. Hint "\tDon't fill outside (will mask LEAKs and is not for final runs).\n\n"_
  347. "\tThis step causes filling to not be performed, which will cause all the faces on the outside of the map to not be discarded. It is probably a bad idea to rad a map that has been compiled this way, though vis should run normally."
  348. }
  349. CheckBox
  350. {
  351. Name "No T-Junction"
  352. Param "-notjunc"
  353. Hint "\tDon't break edges on t-junctions (not for final runs).\n\n"_
  354. "\tThis is a development/debugging option that should not be set in normal use."
  355. }
  356. TextBox
  357. {
  358. Name "Max Node Size"
  359. Param "-maxnodesize"
  360. Bold "True"
  361. Type "Single"
  362. Default "1024.0"
  363. Min "64.0"
  364. Max "8192.0"
  365. Hint "\tSets the maximum portal node size.\n\n"_
  366. "\tThis option tweaks the maximum size of a portal node. Setting it smaller will bsp the world into smaller chunks at the cost of higher r_speeds, but it can pay itself back in many cases with making vis either faster, or more accurate, or both."
  367. }
  368. TextBox
  369. {
  370. Name "Subdivide"
  371. Param "-subdivide"
  372. Type "Single"
  373. Default "240.0"
  374. Min "64.0"
  375. Max "512.0"
  376. Hint "\tSets the face subdivide size.\n\n"_
  377. "\tFaces in Half-life are subdivided by this value (in units). Setting this to high might cause bad surface extents when running rad. It should never be set lower then 240 as this just increases the r_speeds."
  378. }
  379. Space
  380. {
  381. Size "4"
  382. }
  383. TextBox
  384. {
  385. Name "Additional Parameters"
  386. Type "String"
  387. Size "3"
  388. Hint "\tAdd additional parameters here as you would a command line."
  389. }
  390. }
  391. //
  392. // VIS
  393. //
  394. Stage
  395. {
  396. Name "VIS"
  397. Title "Visibility Index Set"
  398. Type "Program"
  399. Filter "HLVIS (hlvis.exe)|hlvis.exe"
  400. TextBox
  401. {
  402. Name "Max Distance"
  403. Param "-maxdistance"
  404. Bold "True"
  405. Type "Integer"
  406. Default "0"
  407. Min "0"
  408. Hint "\tSet the maximum visibility distance in units. Maximum Distance Visibility (MDV) is a feature that prevents leafs beyond a certain distance from being rendered (or even sent to the renderer at all). In conjunction with fog, it can become the ultimate catalyst when building and compiling large maps, especially those with open areas. However, due to the nature of the calculations, not all leaves beyond a certain distance are guaranteed to be prevented from being rendered; but those that are within the maximum distance are guaranteed to be rendered.\n\n"_
  409. "\tThere is a small side effect when using the Maximum Distance feature, because hlrad relies heavily on the visibility matrix to speed up lighting operations. As such, a normal rad of the map will result in ackward, \"cut off\" lighting. This means that a special version of hlrad is required (all compile tools in this series since MHLT 1.6), which accomodates for the MDV lighting problem. When you use this parameter, an extra file named <mapname>.vdt that contains the real visibility matrix (i.e without any MDV performed) will be created, which will be used to correctly light the map."
  410. }
  411. ComboBox
  412. {
  413. Name "Vis Type"
  414. Bold "True"
  415. Default "Normal"
  416. Options "Fast,-fast|Normal,|Full,-full"
  417. Hint "\tRun as fast or normal or full VIS.\n\n"_
  418. "\tFull vis enables extra calculations during vis, which help reduce the number of vis errors in a map over a normal vis. The speed hit is approximately 30% over a normal vis. r_speeds will generally be the same, though lower in some areas, and higher in others (primarily due to vis errors being fixed).\n\n"_
  419. "\tFast vis is handy for running around in a developed map without dropping polygons. However, r_speeds will usually be pretty bad, as well as epoly counts. The map can still be lit with hlrad, however its quality and compile time will both suffer as a result. Maps should regularly be compiled without fast vis, as fast vis can mask a sudden increase in normal vis compile time."
  420. }
  421. Space
  422. {
  423. Size "8"
  424. }
  425. TextBox
  426. {
  427. Name "Additional Parameters"
  428. Type "String"
  429. Size "3"
  430. Hint "\tAdd additional parameters here as you would a command line."
  431. }
  432. }
  433. //
  434. // RAD
  435. //
  436. Stage
  437. {
  438. Name "RAD"
  439. Title "Radiosity"
  440. Type "Program"
  441. Filter "HLRAD (hlrad.exe)|hlrad.exe"
  442. CheckBox
  443. {
  444. Name "Circus"
  445. Param "-circus"
  446. Hint "\tEnable 'circus' mode for locating unlit lightmaps.\n\n"_
  447. "\tThis is a debugging option, which will cause all black pixels in any lightmap to be set to a random fullbright color. It only looks at the direct lighting to make this determination, and ignores any bounced radiosity data for making this determination."
  448. }
  449. CheckBox
  450. {
  451. Name "Custom Shadows"
  452. Param "-customshadowwithbounce"
  453. Bold "True"
  454. Hint "\tEnable custom shadows for bounced light.\n\n"_
  455. "\tBy default, the zhlt_customshadow flag does not affect bounced light. Using this switch will enable custom shadows for bounced light, however, this will only work with greyscale custom shadows"
  456. }
  457. CheckBox
  458. {
  459. Name "Color Custom Shadows"
  460. Param "-rgbtransfers"
  461. Hint "\tEnables RGB transfers (for custom shadows). Requires -customshadowwithbounce switch."
  462. }
  463. CheckBox
  464. {
  465. Name "Dump Light Patches"
  466. Param "-dump"
  467. Hint "\tDumps light patches to a file for hlrad debugging info This is a developer option for zhlt, to dump out the patch data generated by the chopping/subdividing and make sure it looks alright."
  468. }
  469. CheckBox
  470. {
  471. Name "Extra"
  472. Param "-extra"
  473. Bold "True"
  474. Hint "\tTurns on 9 point oversampling for lighting, making it look much better."
  475. }
  476. CheckBox
  477. {
  478. Name "Incremental"
  479. Param "-incremental"
  480. Hint "\tUse or create an incremental transfer list file.\n\n"_
  481. "\tThis is a handy option for tweaking lighting, especially on slow or lower memory machines. BuildVisLeafs, MakeScales, and SwapTransfers can be skipped entirely on subsequent runs of hlrad. Note that geometry must not change, but lighting can."
  482. }
  483. CheckBox
  484. {
  485. Name "No Diffuse"
  486. Param "-nodiffuse"
  487. Hint "\tDisables light_environment diffuse hack."
  488. }
  489. CheckBox
  490. {
  491. Name "No Dyn Bounce"
  492. Param "-nodynbounce"
  493. Bold "True"
  494. Hint "\tTurn off bounces for dyanmic lights (overrides -bounce).\n\n"_
  495. "\tPrior to ZHLT 1.7, only the static light type (constant brightness, no switching) was used in bounce calculations. This switch activates that older behavior. Benefits include smaller lightdata sizes and a lower probability of a \"too many lightstyles\" error."
  496. }
  497. CheckBox
  498. {
  499. Name "No Linear Interpolation"
  500. Param "-nolerp"
  501. Hint "\tDisable three multi-point interpolation for radiosity patch blending, use nearest point sample instead."
  502. }
  503. /*CheckBox
  504. {
  505. Name "No Visibility Matrix"
  506. Param "-nomatrix"
  507. Hint "\tDisable usage of vismatrix entirely.\n\n"_
  508. "\tAs the sparse code does some compression, it requires a lot of thread synchronization and does not scale well past 2 CPU's. The -nomatrix switch was added to address this. However, the addition of 'opaque brush entities' starting with ZHLT 2.2 hurts the -nomatrix method's performance quite a bit. There is no vismatrix in this method at all, so it essentially reduces the memory requirements to zero for that structure."
  509. }*/
  510. CheckBox
  511. {
  512. Name "No Opaque Entities"
  513. Param "-nopaque"
  514. Bold "True"
  515. Hint "\tDisable all entities using zhlt_lightflags 2 to block light. Using opaque entities slows rad down, and using this option is useful for doing quicker non-final lighting compiles."
  516. }
  517. TextBox
  518. {
  519. Name "Additional Parameters"
  520. Type "String"
  521. Size "3"
  522. Hint "\tAdd additional parameters here as you would a command line."
  523. }
  524. CheckBox
  525. {
  526. Name "No Sky Fix"
  527. Param "-noskyfix"
  528. Hint "\tDisable light_environment being global ZHLT 2.1 added a simpler more manageable system for light_environments. The new behavior is that a map only needs a single light_environment entity to light up all sky everywhere. The placement of the entity no longer matters. The -noskyfix option turns this feature off and enables the original code which requires multiple light_environments to properly light up an outdoor area."
  529. }
  530. CheckBox
  531. {
  532. Name "No Spot Points"
  533. Param "-nospotpoints"
  534. Hint "\tDisables light_spot spherical point sources."
  535. }
  536. CheckBox
  537. {
  538. Name "No Texture Scale"
  539. Param "-notexscale"
  540. Hint "\tDo not scale radiosity patches with texture scale.\n\n"_
  541. "\tBy default, hlrad will take the texture scale and apply it to the chopping grid which is projected onto it. This option turns that off, and almost always increases the number of patches in a map as most maps have many walls scaled up to 2 and 3."
  542. }
  543. /*CheckBox
  544. {
  545. Name "Sparse"
  546. Param "-sparse"
  547. Bold "True"
  548. Hint "\tEnable low memory vismatrix algorithm.\n\n"_
  549. "\tThe original vismatrix algorithm was limited to 65535 patches due to its design. Its memory usage also grew exponentially with the number of patches (patches * patches / 16 bytes). This option enables a compressed vismatrix, which at the cost of extra CPU time, breaks the 65535 limit, and also uses about 10% of the memory the vismatrix would."
  550. }*/
  551. TextBox
  552. {
  553. Name "Bounce"
  554. Param "-bounce"
  555. Bold "True"
  556. Type "Integer"
  557. Default "1"
  558. Min "0"
  559. Hint "\tSet number of radiosity bounces.\n\n"_
  560. "\tThis option sets the number of times light bounces in the radiosity pass. By the time the code gets to this point, all the data is precomputed, and extra bounces are very fast. It will make the shadows less harsh using more bounces, but can help light up dark areas much more naturally."
  561. }
  562. TextBox
  563. {
  564. Name "Chop"
  565. Param "-chop"
  566. Type "Single"
  567. Default "64.0"
  568. Min "1.0"
  569. Hint "\tSet radiosity patch size for normal textures.\n\n"_
  570. "\tEach face in the world has a grid projected onto it, and chopped up into a rather coarse set of sample points. These points are patches, and are what hlrad uses to do the bounced lighting calculations. A higher chop sacrifices quality for both speed and memory consumption of hlrad. A lower chop increases the quality at the expense of speed and memory usage."
  571. }
  572. TextBox
  573. {
  574. Name "Coring"
  575. Param "-coring"
  576. Type "Single"
  577. Default "1.0"
  578. Min "0.0"
  579. Hint "\tSet lighting threshold before blackness.\n\n"_
  580. "\tThis value controls how much light it takes before a surface will be lit with a non-black value."
  581. }
  582. TextBox
  583. {
  584. Name "Direct Light"
  585. Param "-dlight"
  586. Type "Single"
  587. Default "25.0"
  588. Min "0.0"
  589. Hint "\tSet direct lighting threshold.\n\n"_
  590. "\tThis option is similar to -maxlight, except that it re-normalizes the direct lighting values instead of clipping them if they are too high."
  591. }
  592. TextBox
  593. {
  594. Name "Direct Scale"
  595. Param "-dscale"
  596. Bold "True"
  597. Type "Single"
  598. Default "2.0"
  599. Min "0.0"
  600. Hint "\tSet direct lighting scale.\n\n"_
  601. "\tDue to a bug in the original version of qrad, the direct lighting layer was added into the final lighting twice. The correct thing to do is only have it in there once, but at the time too many maps had been created with this assumption and it was left in there. This has been corrected as a command line switch, to scale the direct lighting by.\n\n"_
  602. "\tUsing the value of '1' would generate the most correct looking maps. Using a value of '0' will remove the direct lighting completely. Using larger values, like '3' or '4', cause extremely harsh direct lighting relation to shadows."
  603. }
  604. TextBox
  605. {
  606. Name "Fade"
  607. Param "-fade"
  608. Type "Single"
  609. Default "1.0"
  610. Min "0.0"
  611. Hint "\tSet global fade (larger values shorter lights).\n\n"_
  612. "\tThis value adds in an artificial factor into the normal (1 / dist * dist) inverse square falloff calculations, by multiplying the denominator of the scale by the fade value. Point lights can set their own individual fade and falloff values, which override any global setting on the command line. These calculations only affect the direct lighting layer, as the radiosity pass always uses plain inverse square falloff."
  613. }
  614. TextBox
  615. {
  616. Name "Gamma"
  617. Param "-gamma"
  618. Type "Single"
  619. Default "0.5"
  620. Min "0.0"
  621. Hint "\tSet global gamma value.\n\n"_
  622. "\tThis option also occurs after the direct and radiosity layers are added together, and a global gamma correction is calculated and applied to the lighting before it is finalized."
  623. }
  624. Space
  625. {
  626. Size "1"
  627. }
  628. TextBox
  629. {
  630. Name "Max Light"
  631. Param "-maxlight"
  632. Type "Integer"
  633. Default "255"
  634. Min "0"
  635. Hint "\tSet maximum light intensity value.\n\n"_
  636. "\tThis option can be used to cap the bright spots, if you want a map to come out darker overall."
  637. }
  638. TextBox
  639. {
  640. Name "Scale"
  641. Param "-scale"
  642. Type "Single"
  643. Default "1.0"
  644. Min "0.0"
  645. Hint "\tSet global light scaling value.\n\n"_
  646. "\tThis option scales the final light values right after the direct lighting layer is added to the radiosity bounced lighting layer. Low values make the world darker, higher values make it brighter."
  647. }
  648. TextBox
  649. {
  650. Name "Sky"
  651. Param "-sky"
  652. Type "Single"
  653. Default "0.5"
  654. Min "0.0"
  655. Hint "\tSet ambient sunlight contribution in the shade outside.\n\n"_
  656. "\tMany faces have line of sight to sky, but fall in the shadow of some other object. This option affects how much of the normal sky lighting is put into the shadows."
  657. }
  658. TextBox
  659. {
  660. Name "Smooth"
  661. Param "-smooth"
  662. Bold "True"
  663. Type "Single"
  664. Default "50.0"
  665. Min "0.0"
  666. Max "180.0"
  667. Hint "\tSet smoothing threshold for blending (in degrees).\n\n"_
  668. "\tBy default hlrad uses Phong shading on all faces. If the angle between two edges is less than this value, it will be shaded with the Phong smoothing code, otherwise it won't."
  669. }
  670. TextBox
  671. {
  672. Name "Texture Chop"
  673. Param "-texchop"
  674. Type "Single"
  675. Default "32.0"
  676. Min "1.0"
  677. Hint "\tSet radiosity patch size for texture light faces.\n\n"_
  678. "\tTexture light faces are chopped with a different granularity than the normal faces, primarily so that the lighting looks good. Generally it should be half of the chop value. Adding -extra to hlrad will automatically divide this value by 2 at runtime."
  679. }
  680. TextBox
  681. {
  682. Name "Soft Light"
  683. Param "-softlight"
  684. Quote "False"
  685. Type "String"
  686. Default "r g b d"
  687. Hint "\tScaling values for backwards-light hack."
  688. }
  689. ComboBox
  690. {
  691. Name "Fall Off Mode"
  692. Param "-falloff"
  693. Default "Inverse Square"
  694. Options "Inverse Linear,1|Inverse Square,2"
  695. Hint "\tSet global falloff mode.\n\n"_
  696. "\tThis option can change the normal inverse square falloff of lighting in the direct lighting layer with inverse falloff."
  697. }
  698. ComboBox
  699. {
  700. Name "VIS Matrix"
  701. Bold "True"
  702. Default "Legacy"
  703. Options "Legacy,|Sparse,-sparse|Disable,-nomatrix"
  704. Hint "\tThe original vismatrix algorithm was limited to 65535 patches due to its design. Its memory usage also grew exponentially with the number of patches (patches * patches / 16 bytes).\n\n"_
  705. "\tSparse enables a compressed vismatrix, which at the cost of extra CPU time, breaks the 65535 limit, and also uses about 10% of the memory the original vismatrix would, but as it does some compression, it requires a lot of thread synchronization and does not scale well past 2 CPU's.\n\n"_
  706. "\tDisabling the Vis matrix essentially reduces the memory requirements to zero for that structure. However, the addition of \"opaque brush entities\" starting with ZHLT 2.2 hurts this method's performance quite a bit."
  707. }
  708. }
  709. //
  710. // RAD2
  711. //
  712. Stage
  713. {
  714. Name "RAD2"
  715. Title "Radiosity Continued"
  716. Type "ParameterList"
  717. ColorBox
  718. {
  719. Name "Ambient Light"
  720. Param "-ambient"
  721. Type "Single"
  722. Default "0 0 0"
  723. Hint "\tSet ambient world light.\n\n"_
  724. "\tThis option sets a minimum light value to every face so that nothing comes out pitch black."
  725. }
  726. ColorBox
  727. {
  728. Name "Gamma Color"
  729. Param "-colourgamma"
  730. Type "Single"
  731. Default "0 0 0"
  732. Hint "\tSets different gamma values for r, g, b."
  733. }
  734. ColorBox
  735. {
  736. Name "Jitter"
  737. Param "-jitter"
  738. Type "Integer"
  739. Default "0 0 0"
  740. Hint "\tAdds noise, monochromatic, for dithering."
  741. }
  742. ColorBox
  743. {
  744. Name "Jitter Color"
  745. Param "-colourjitter"
  746. Type "Integer"
  747. Default "0 0 0"
  748. Hint "\tAdds noise, independent colours, for dithering."
  749. }
  750. ColorBox
  751. {
  752. Name "Scale Color"
  753. Param "-colourscale"
  754. Type "Single"
  755. Default "0 0 0"
  756. Hint "\tSets different lightscale values for r, g ,b."
  757. }
  758. FileBox
  759. {
  760. Name "Lights File"
  761. Param "-lights"
  762. FullPath "True"
  763. Bold "True"
  764. Filter "Radiosity Files (*.rad)|*.rad|Text Files (*.txt)|*.txt"
  765. Hint "\tManually specify a lights.rad file to use.\n\n"_
  766. "\tThe .rad file will be used in addition to the defaults of lights.rad and mapname.rad."
  767. }
  768. }
  769. //
  770. // RipEnt
  771. //
  772. Stage
  773. {
  774. Name "RipEnt"
  775. Title "Rip Entities"
  776. Type "Program"
  777. Filter "RipEnts (ripent.exe)|ripent.exe"
  778. CheckBox
  779. {
  780. Name "Parse"
  781. param "-parse"
  782. Bold "True"
  783. Hint "\tParse entity data.\n\n"_
  784. "\tOn export -parse parses the entity data and reformats it for easy reading in any text editor.\n\n"_
  785. "\tOn import -parse parses the entity data and removes all unnecessary white space. The parsing operation also works as a means to insure that the entity data is well formed, if it isn't an error message is printed to help track down the problem."
  786. }
  787. ComboBox
  788. {
  789. Name "Operation"
  790. Checked "True"
  791. Bold "True"
  792. Default "Export"
  793. Options "Import,-import|Export,-export"
  794. Hint "\tImport an entity list into a BSP or export an entity list from a BSP.\n\n"_
  795. "\tAn entity list is a mapname.ent file which lists all the entities in the BSP in MAP format which you can edit in a text editor."
  796. }
  797. Space
  798. {
  799. Size "8"
  800. }
  801. TextBox
  802. {
  803. Name "Additional Parameters"
  804. Type "String"
  805. Size "3"
  806. Hint "\tAdd additional parameters here as you would a command line."
  807. }
  808. }
  809. //
  810. // Shared
  811. //
  812. Stage
  813. {
  814. Name "Shared"
  815. Title "Shared Parameters"
  816. Type "ParameterList"
  817. CheckBox
  818. {
  819. Name "Chart"
  820. param "-chart"
  821. Bold "True"
  822. Stages "CSG|BSP|VIS|RAD|RipEnt"
  823. Hint "\tDisplay BSP statistics.\n\n"_
  824. "\tThis option will cause the program to print out the bsp statistics right before it writes out the bsp. It is most handy to do -chart with hlrad and hlvis at the end of the compiles. The ripent program will always displays the chart."
  825. }
  826. CheckBox
  827. {
  828. Name "Estimate"
  829. param "-estimate"
  830. Bold "True"
  831. Stages "CSG|BSP|VIS|RAD"
  832. Hint "\tDisplay estimated time during compile.\n\n"_
  833. "\tThis option replaces the 10...20... style progress indicators with a estimate bar with some estimated completion times, as well as the exact number of the current job and how many jobs there are to do. The three different times remaining factor in varying amounts of historical data to guess how much longer it will take to run. It is good for a ballpark figure, but frequently not much more accurate than that."
  834. }
  835. CheckBox
  836. {
  837. Name "No Info"
  838. param "-noinfo"
  839. Stages "CSG|BSP|VIS|RAD|RipEnt"
  840. Hint "\tDo not show tool configuration information.\n\n"_
  841. "\tBy default every tool shows its current settings and their default. This sometimes causes problems with other programs and is unnecessary as it already can be seen in the command line."
  842. }
  843. CheckBox
  844. {
  845. Name "No Log"
  846. param "-nolog"
  847. Stages "CSG|BSP|VIS|RAD"
  848. Hint "\tDon't generate the compile logfiles.\n\n"_
  849. "\tThis option just disables the generation of the .log and .err files which are normally generated whenever the compile tools run."
  850. }
  851. CheckBox
  852. {
  853. Name "Verbose"
  854. param "-verbose"
  855. Stages "CSG|BSP|VIS|RAD"//, Opt_EntData"
  856. Hint "\tCompile with verbose messages.\n\n"_
  857. "\tMany of the tools have 'minor warnings' and informative messages which are displayed when verbose mode is set. As the ZHLT 2.x series develops, many of the developer specific settings are being moved to developer messages, while the mapper related messages will remain as verbose messages."
  858. }
  859. /*Space
  860. {
  861. Size "6"
  862. }*/
  863. TextBox
  864. {
  865. Name "Texture Data"
  866. Param "-texdata"
  867. Bold "True"
  868. Stages "CSG|BSP|VIS|RAD|RipEnt"
  869. Type "Integer"
  870. Default "4096"
  871. Min "2048"
  872. Hint "\tAlter maximum texture memory limit (in kb).\n\n"_
  873. "\tHalflife was built with a 2Mb texture limit, as was Opposing Force. The ZHLT default limit is 4Mb. Even 4Mb can be a bit much, when combined with model textures, skies, hud graphics, and more. This is especially true of people with older cards (Voodoo 1 and 2's, etc)."
  874. }
  875. TextBox
  876. {
  877. Name "Light Data"
  878. Param "-lightdata"
  879. Bold "True"
  880. Stages "CSG|BSP|VIS|RAD|RipEnt"
  881. Type "Integer"
  882. Default "6144"
  883. Min "2048"
  884. Hint "\tAlter maximum lightmap memory limit (in kb).\n\n"_
  885. "\tHigher values than the default (6MB) can cause performance issues. You should perform compatability testing before releasing maps if they're over the preset limit."
  886. }
  887. TextBox
  888. {
  889. Name "Threads"
  890. Param "-threads"
  891. Stages "CSG|BSP|VIS|RAD"
  892. Type "Integer"
  893. Default "1"
  894. Min "1"
  895. Hint "\tManually specify the number of threads to run.\n\n"_
  896. "\tThis option is generally only necessary on the non-windows versions of the tools, where there is not a standard way to detect the number of processors in the system and auto-set the value. It can be manually set on windows machines, primarily if you wish to use fewer threads than processors."
  897. }
  898. ComboBox
  899. {
  900. Name "Developer"
  901. Param "-dev"
  902. Stages "CSG|BSP|VIS|RAD"
  903. Default "Error"
  904. Options "Off,0|Error,1|Warning,2|Info,3|Fluff,4|Spam,5|MegaSpam,6"
  905. Hint "\tCompile with developer messages.\n\n"_
  906. "\tInternal ZHLT debugging messages have been slowly added to the tools. This variable sets the 'level' to display. In order (starting with 0 and going up) : Off, Error, Warning, Info, Fluff, Spam, MegaSpam. Generally this option should never be used except at request, to diagnose a compile problem on an end-users machine."
  907. }
  908. ComboBox
  909. {
  910. Name "Priority"
  911. Stages "CSG|BSP|VIS|RAD"
  912. Default "Normal"
  913. Options "Low,-low|Normal,|High,-high"
  914. Hint "\tRun program an altered priority level.\n\n"_
  915. "\tSetting the priority of the compile tools to -low is very handy, as you can multitask and do other things without really feeling the drain of the compile programs on the system, provided there is enough memory for the tools and the other programs you use."
  916. }
  917. }