Opt_EntData.bci 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. // Specification: Opt_EntData 0.7b
  2. // Written by: Anders Jenbo
  3. // Version: 0.7b
  4. // Created: August 8, 2004
  5. // Last updated: September 5, 2004
  6. // Updated by: Ryan Gregg
  7. // Date: September 5, 2004
  8. // Thanks to: Matt 'Bluefang' Turnbull
  9. // Added Texture Data option.
  10. // Changed Settings filter to setting_*.db.
  11. // Updated by: Ryan Gregg
  12. // Date: August 10, 2004
  13. // Fixed Opt_EntData's command line.
  14. // Updated by: Ryan Gregg
  15. // Date: August 9, 2004
  16. // Changed the switch for Keep Properties from -nolghts to -nostrip.
  17. // Renamed No Linemod option to No Line Mod.
  18. // Added No Log option.
  19. // Repositioned Additional Parameters to its standard position.
  20. // Spell checked all hints and improved their wording and punctuation.
  21. // Updated Opt_EntData link.
  22. Include "Templates.bci"
  23. Batch
  24. {
  25. Name "Opt_EntData"
  26. Priority "1"
  27. Links "Opt_EntData,http://www.chatbear.com/board.plm?a=viewthread&t=52%2c1080647136%2c18491&id=634830&b=590&v=flatold&s=0"
  28. Stages "Opt_EntData"
  29. Filter "Entity Files (*.ent)|*.ent"
  30. Template "@echo off\n"_
  31. "\"${StagePath=Opt_EntData}\" \"${FilePath}\\${FileName}\" ${StageParam=Opt_EntData}\n"_
  32. "${LogViewerRun}\n"
  33. }
  34. //
  35. // Opt_EntData
  36. //
  37. Stage
  38. {
  39. Name "Opt_EntData"
  40. Title "Optimize Entity Data"
  41. Type "Program"
  42. Filter "Opt_EntData (opt_entdata.exe)|opt_entdata.exe"
  43. CheckBox
  44. {
  45. Name "No Line Mod"
  46. Checked "True"
  47. Param "-nolinemod"
  48. Hint "\tThis is an option for those having problems with other programs that may need access to a map's entdata.\n\n"_
  49. "\tIt also makes debugging scripted events difficult so it is recommended only for release versions of a map.\n\n"_
  50. "\tRunning Opt_EntData twice on the same ENT file with out this option will delete all entity data except for the worldspawn (first line) and can prevent RESGen from running properly."
  51. }
  52. CheckBox
  53. {
  54. Name "Run RipEnt"
  55. Checked "True"
  56. Param "-ripent"
  57. Hint "\tOpt_EntData requires Ripent to import and export entity data to and from the BSP.\n\n"_
  58. "\tThis option should always be checked unless you know what you are doing."
  59. }
  60. CheckBox
  61. {
  62. Name "Simplify"
  63. Param "-simplify"
  64. Hint "\tSimplify takes names of entities and replaces them with a (in theory) shorter one.\n\n"_
  65. "\tIt makes debugging scripted events difficult so it is recommended only for release versions of a map.\n\n"_
  66. "\tWhen (if ever) asked for a log file from opt_entdata (or screen output) then -verbose is a recommended option to use.\n\n"_
  67. "\tSometimes simplify may overwrite a name it shouldn't. Consider, for example, an entity named spawnflags or something similar. Now let us assume simplify picks that up as a name and replaces it with a name of abc. Messy eh?"
  68. }
  69. CheckBox
  70. {
  71. Name "Keep Misc"
  72. Param "-nomiscents"
  73. Hint "\tThis option prevents opt_entdata from removing the info_null, info_texlights and info_compile_parameters from the BSP.\n\n"_
  74. "\tIf you seem to be getting errors around the \"Removing misc ents..\" message then try using this option."
  75. }
  76. CheckBox
  77. {
  78. Name "Keep Lights"
  79. Param "-nolights"
  80. Hint "\tThis disables the removal of lights and (most) optimizations made on them.\n\n"_
  81. "\tThis option has a MAJOR impact on the effectiveness of opt_entdata. Use with caution."
  82. }
  83. CheckBox
  84. {
  85. Name "Keep Properties"
  86. Param "-nostrip"
  87. Hint "\tThis option is frequently the cause of in game problems concerning entities.\n\n"_
  88. "\tThis option has a MAJOR impact on the effectiveness of opt_entdata. Use with caution."
  89. }
  90. CheckBox
  91. {
  92. Name "No Log"
  93. Param "-nolog"
  94. Hint "\tDon't use the compile LOG files.\n\n"_
  95. "\tThis option disables the use of the LOG files which are normally written to whenever opt_entdata runs. Regardless of -nolog's presence, logging will be disabled if opt_entdata can't locate your map's LOG file."
  96. }
  97. CheckBox
  98. {
  99. Name "Verbose"
  100. Param "-verbose"
  101. Hint "\tThe verbose option enables extra output information while the program is running.\n\n"_
  102. "\tIf you observe strange problems verbose mode may show you where they occur.\n\n"_
  103. "\tWhen (if ever) asked for a log file from opt_entdata (or screen output) then -verbose is a recommended option to use."
  104. }
  105. TextBox
  106. {
  107. Name "Texture Data"
  108. Param "-texdata"
  109. Type "Integer"
  110. Default "4096"
  111. Min "2048"
  112. Hint "\tAlter maximum texture memory limit (in kb).\n\n"_
  113. "\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)."
  114. }
  115. FileBox
  116. {
  117. Name "Settings"
  118. Param "-settings"
  119. FullPath "False"
  120. Filter "Setting File (setting_*.db)|setting_*.db"
  121. Hint "\tYou only need specify this if you don't want to use the setting_default."
  122. }
  123. TextBox
  124. {
  125. Name "Additional Parameters"
  126. Type "String"
  127. Size "3"
  128. Hint "\tAdd additional parameters here as you would a command line."
  129. }
  130. }