HLFix.bci 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // Specification: HLFix
  2. // Written by: Ryan Gregg
  3. // Version: 0.81b
  4. // Created: August 4, 2004
  5. // Last updated: September 13, 2004
  6. // Updated by: Ryan Gregg
  7. // Date: September 13, 2004
  8. // Added MakeWAD Batch and Stage.
  9. Batch
  10. {
  11. Name "MakeWAD"
  12. Priority "0"
  13. Links "HLFix,http://extension.ws/hlfix/"
  14. Stages "MakeWAD"
  15. Template "@echo off\n"_
  16. "\"${StagePath=MakeWAD}\" ${StageParam=MakeWAD}\n"
  17. }
  18. Batch
  19. {
  20. Name "HLFix"
  21. Priority "1"
  22. Links "HLFix,http://extension.ws/hlfix/"
  23. Stages "HLFix"
  24. Filter "Supported Files|*.rmf;*.map|RMF Files (*.rmf)|*.rmf|MAP Files (*.map)|*.map"
  25. Template "@echo off\n"_
  26. "\"${StagePath=HLFix}\" ${StageParam=HLFix} \"${FilePath}\\${FileName}\"\n"
  27. }
  28. //
  29. // MakeWAD
  30. //
  31. Stage
  32. {
  33. Name "MakeWAD"
  34. Title "Make WAD"
  35. Type "Program"
  36. Filter "MakeWAD (makewad.exe)|makewad.exe"
  37. Space
  38. {
  39. Size "10"
  40. }
  41. TextBox
  42. {
  43. Name "Additional Parameters"
  44. Type "String"
  45. Size "3"
  46. Hint "\tAdd additional parameters here as you would a command line."
  47. }
  48. }
  49. //
  50. // HLFix
  51. //
  52. Stage
  53. {
  54. Name "HLFix"
  55. Title "Half-Life Fix"
  56. Type "Program"
  57. Filter "HLFix (hlfix.exe)|hlfix.exe"
  58. CheckBox
  59. {
  60. Name "Only Visible"
  61. Param "-v"
  62. Bold "True"
  63. Hint "\tProcess and output visible objects only."
  64. }
  65. CheckBox
  66. {
  67. Name "No Tessellation"
  68. Param "-nt"
  69. Hint "\tDon't tesselate non-planar faces."
  70. }
  71. CheckBox
  72. {
  73. Name "No Decomposition"
  74. Param "-nd"
  75. Hint "\tDon't decompose non-convex solids."
  76. }
  77. CheckBox
  78. {
  79. Name "No Union"
  80. Param "-nu"
  81. Hint "\tDon't unite coplanar faces."
  82. }
  83. CheckBox
  84. {
  85. Name "No Correction"
  86. Param "-na"
  87. Hint "\tDon't perform any geometry correction."
  88. }
  89. TextBox
  90. {
  91. Name "Epsilon"
  92. Param "-e"
  93. Type "Single"
  94. Default "1.0"
  95. Min "0.0"
  96. Hint "\tEpsilon factor for numeric comparisons.\n\n"_
  97. "\tCertain numeric comparisons in hlfix require a \"fuzziness\" value in order to deal with inaccurate data that can be generated by VHE. The value of the -e parameter is a multiplier for this fuzziness value. If you find that hlfix is modifying geometry it shouldn't or producing unexplainable \"Incomplete edge cycle\" errors, try raising this value. If you find that hlfix is not modifying geometry it should or that your compiled maps have visible errors, try lowering this value."
  98. }
  99. TextBox
  100. {
  101. Name "Output File"
  102. Param "-o"
  103. Type "String"
  104. Hint "\tSpecify another output file name (default is <mapname>.map or <mapname>.rmf)."
  105. }
  106. ComboBox
  107. {
  108. Name "Input File"
  109. Bold "True"
  110. Default "RMF File"
  111. Options "RMF File,|MAP File,-r"
  112. Hint "\tSpecify the input file type.\n\n"_
  113. "\tIf RMF File is selected HLFix will generate a MAP File. If MAP File is selected HLFix will generate a RMF File."
  114. }
  115. FileBox
  116. {
  117. Name "WAD File"
  118. Param "-w"
  119. Bold "True"
  120. FullPath "True"
  121. //Default "wad.txt"
  122. Filter "Text Files (*.txt)|*.txt|All Files|*.*"
  123. Hint "\tSpecify a .wad file list.\n\n"_
  124. "\tThe .wad files used in your map must be listed in a seperate text file (because they aren't listed in the .rmf file). This file must contain the full paths of the wad files used in your map, listed one per line. By default, hlfix looks for a file called wad.txt. It looks for the file in the same directory as the input file unless you specify a path when using the -w parameter. A utility is included with hlfix called makewad.exe which reads VHE's registry entries to generate a wad list file. The only reason hlfix needs the filenames for .wads is so those filenames can be written to the .map file. hlfix does not actually attempt to read any of the .wads as it currently does not perform any operations on textures themselves."
  125. }
  126. Space
  127. {
  128. Size "1"
  129. }
  130. TextBox
  131. {
  132. Name "Additional Parameters"
  133. Type "String"
  134. Size "3"
  135. Hint "\tAdd additional parameters here as you would a command line."
  136. }
  137. }