<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
 <channel>
  <title>Guides</title>
  <link>http://cstrike.dynamicbits.com/forum/Blah.pl?</link>
  <generator>http://www.eblah.com</generator>
  <description></description>
  <language>en</language>
  <item>
   <title>HOWTO: Create an overview for a map</title>
   <link>http://cstrike.dynamicbits.com/forum/Blah.pl?m-1362602323/</link>
   <comments>http://cstrike.dynamicbits.com/forum/Blah.pl?m-1362602323/#num1</comments>
   <description><![CDATA[Having a map overview is nice when spectating from certain points of view. Unfortunately not all map authors include one with their map. Fortunately, it isn't difficult to create one.<br /><br /><span style="font-size: 18px;"><strong>Launch Counter-Strike Properly</strong></span><br /><br />Before even launching Counter-Strike, you need to <strong>set your display to 8-bit (256 colors)</strong>. This is done through your operating system, not from within Counter-Strike or Steam. Unless you are a graphics expert and plan to downsample to 256 colors later, setting your display to 256 colors will result in the best quality images.<br /><br />You need to launch Counter-Strike with additional parameters. There are two methods (per operating system) of doing this. The first method, which is applicable to all operating systems, is to right-click on Counter-Strike in the Steam game list and select &quot;Properties.&quot; In the new window, select &quot;Set Launch Options...,&quot; and then add the following parameters:<br /><br /><table class="border" cellpadding="0" cellspacing="1">
 <tr>
  <td>
   <div class="win3" style="padding: 8px"><strong>Code</strong></div>
   <div class="win" style="padding: 2px; overflow: auto; width: 800px; height: 50px; margin: 0px;">
    <table cellpadding="0" cellspacing="0" class="innertable">
     <tr>
      <td style="padding: 8px"><pre>&#045;dev &#045;window &#045;w 1024 &#045;h 768 &#045;noborder +map YOUR_MAP_NAME</pre></td>
     </tr>
    </table>
   </div>
  </td>
 </tr>
</table>
<br /><br />When running under Windows, you may have better luck with fullscreen mode:<br /><br /><table class="border" cellpadding="0" cellspacing="1">
 <tr>
  <td>
   <div class="win3" style="padding: 8px"><strong>Code</strong></div>
   <div class="win" style="padding: 2px; overflow: auto; width: 800px; height: 50px; margin: 0px;">
    <table cellpadding="0" cellspacing="0" class="innertable">
     <tr>
      <td style="padding: 8px"><pre>&#045;dev &#045;full &#045;w 1024 &#045;h 768 +map YOUR_MAP_NAME</pre></td>
     </tr>
    </table>
   </div>
  </td>
 </tr>
</table>
<br /><br />The Linux-specific method (<strong>which is not required if you used the Steam method</strong>) requires you to use the following terminal command while in the <span style="font-style: italic;">...Steam/SteamApps/common/Half-Life/</span> directory (or create a launcher):<br /><br /><table class="border" cellpadding="0" cellspacing="1">
 <tr>
  <td>
   <div class="win3" style="padding: 8px"><strong>Code</strong></div>
   <div class="win" style="padding: 2px; overflow: auto; width: 800px; height: 50px; margin: 0px;">
    <table cellpadding="0" cellspacing="0" class="innertable">
     <tr>
      <td style="padding: 8px"><pre>L&#068;_LIBRARY_PATH=&quot;&#046;&#058;$L&#068;_LIBRARY_PATH&quot; &#046;&#047;hl_linux &#045;game cstrike &#045;dev &#045;window &#045;w 1024 &#045;h 768 &#045;noborder +map YOUR_MAP_NAME</pre></td>
     </tr>
    </table>
   </div>
  </td>
 </tr>
</table>
<br /><br />The Windows-specific method (<strong>which is not required if you used the Steam method</strong>) requires you to create a shortcut to Counter-Strike (right click Counter-Strike in the Steam game list and select &quot;Create Desktop Shortcut&quot;), and add the following parameters to the &quot;Target&quot; line in the shortcut's properties:<br /><br /><table class="border" cellpadding="0" cellspacing="1">
 <tr>
  <td>
   <div class="win3" style="padding: 8px"><strong>Code</strong></div>
   <div class="win" style="padding: 2px; overflow: auto; width: 800px; height: 50px; margin: 0px;">
    <table cellpadding="0" cellspacing="0" class="innertable">
     <tr>
      <td style="padding: 8px"><pre>&#045;dev &#045;window &#045;w 1024 &#045;h 768 &#045;noborder +map YOUR_MAP_NAME</pre></td>
     </tr>
    </table>
   </div>
  </td>
 </tr>
</table>
<br /><br />If you have issues with windowed mode, try fullscreen mode:<br /><br /><table class="border" cellpadding="0" cellspacing="1">
 <tr>
  <td>
   <div class="win3" style="padding: 8px"><strong>Code</strong></div>
   <div class="win" style="padding: 2px; overflow: auto; width: 800px; height: 50px; margin: 0px;">
    <table cellpadding="0" cellspacing="0" class="innertable">
     <tr>
      <td style="padding: 8px"><pre>&#045;dev &#045;full &#045;w 1024 &#045;h 768 +map YOUR_MAP_NAME</pre></td>
     </tr>
    </table>
   </div>
  </td>
 </tr>
</table>
<br /><br /><span style="font-size: 18px;"><strong>Create Overview Image</strong></span><br /><br />Once the map is loaded, you need to change the point of view to the overview by typing the following command in the Counter-Strike console:<br /><br /><table class="border" cellpadding="0" cellspacing="1">
 <tr>
  <td>
   <div class="win3" style="padding: 8px"><strong>Code</strong></div>
   <div class="win" style="padding: 2px; overflow: auto; width: 800px; height: 50px; margin: 0px;">
    <table cellpadding="0" cellspacing="0" class="innertable">
     <tr>
      <td style="padding: 8px"><pre>dev_overview 2</pre></td>
     </tr>
    </table>
   </div>
  </td>
 </tr>
</table>
<br /><br />Close the console and take a screenshot (F5 by default).<br /><br />Open the console and type the following command:<br /><br /><table class="border" cellpadding="0" cellspacing="1">
 <tr>
  <td>
   <div class="win3" style="padding: 8px"><strong>Code</strong></div>
   <div class="win" style="padding: 2px; overflow: auto; width: 800px; height: 50px; margin: 0px;">
    <table cellpadding="0" cellspacing="0" class="innertable">
     <tr>
      <td style="padding: 8px"><pre>dev_overview 1</pre></td>
     </tr>
    </table>
   </div>
  </td>
 </tr>
</table>
<br /><br />At the top of the game window, and scrolling in the console will be a line similar to the following:<br /><br /><table class="border" cellpadding="0" cellspacing="1">
 <tr>
  <td>
   <div class="win3" style="padding: 8px"><strong>Code</strong></div>
   <div class="win" style="padding: 2px; overflow: auto; width: 800px; height: 50px; margin: 0px;">
    <table cellpadding="0" cellspacing="0" class="innertable">
     <tr>
      <td style="padding: 8px"><pre> Overview&#058; Zoom 4&#046;00, Map Origin &#040;&#045;128&#046;00, 512&#046;00, 50&#046;00&#041;, Z Min 321&#046;00, Z Max &#045;221&#046;00, Rotated 0</pre></td>
     </tr>
    </table>
   </div>
  </td>
 </tr>
</table>
<br /><br />Take another screen-shot, copy and paste that line, or just write it down because we will need those numbers for the next step.<br /><br />Note: The screen-shot should be 1024x768 and have 8-bit color depth (256 colors) and result in a bmp file that is 770KB in size. Anywhere the lime green color (R:0 G:255 B:0)&nbsp;&nbsp;appears will be transparent. If your file is much larger than 770KB, you either didn't set your display to 8-bit (256 colors), or aren't using the correct resolution. It is also possible to use a .tga image file, but that is beyond the scope of this HOWTO.<br /><br /><span style="font-size: 18px;"><strong>Create Overview Description File</strong></span><br /><br />Create a file named <span style="font-style: italic;">YOUR_MAP_NAME.txt</span> with the following layout:<br /><br /><blockquote>
 <div class="win3 quoteby"><strong>Quoted Text</strong></div>
 <div class="win quotebody">// overview description file for YOUR_MAP_NAME.bsp<br /><br />global <br />{<br />&nbsp; &nbsp; &nbsp;ZOOM&nbsp; &nbsp; &nbsp;<span style="color: green">4.00</span><br />&nbsp; &nbsp; &nbsp;ORIGIN&nbsp; &nbsp; &nbsp;<span style="color: blue">-128</span> <span style="color: purple">512</span> <span style="color: orange">50</span><br />&nbsp; &nbsp; &nbsp;ROTATED&nbsp; &nbsp; &nbsp;<span style="color: red">0</span><br />}<br /><br />layer <br />{<br />&nbsp; &nbsp; &nbsp;IMAGE&nbsp; &nbsp; &nbsp;&quot;overviews/YOUR_MAP_NAME.bmp&quot;<br />&nbsp; &nbsp; &nbsp;HEIGHT&nbsp; &nbsp; &nbsp;<span style="color: yellow">-221</span><br />}<br /></div>
</blockquote>
<br /><br />You need to replace the six numbers with the numbers you saved earlier. The line appears below with matching color coding to the file above for reference.<br /><br /><blockquote>
 <div class="win3 quoteby"><strong>Quoted Text</strong></div>
 <div class="win quotebody"> Overview: Zoom <span style="color: green">4.00</span>, Map Origin (<span style="color: blue">-128</span>.00, <span style="color: purple">512</span>.00, <span style="color: orange">50</span>.00), Z Min 321.00, Z Max <span style="color: yellow">-221</span>.00, Rotated <span style="color: red">0</span></div>
</blockquote>
<br /><br /><span style="font-size: 18px;"><strong>Put the Files in the Correct Directory</strong></span><br /><br />Right now, the screen-shot should be in your <span style="font-style: italic;">.../cstrike/</span> directory and it will be named something like <span style="font-style: italic;">YOUR_MAP_NAME0000.bmp</span>.<br /><br />To use it for the overview, it should be named exactly the same as the map, except for the extension. <br /><br />Place the <span style="font-style: italic;">YOUR_MAP_NAME.bmp</span> and <span style="font-style: italic;">YOUR_MAP_NAME.txt</span> files in the <span style="font-style: italic;">.../cstrike/overviews/</span> directory for your server If you have a fast download server, make sure to copy the files there as well.<br /><br />If there is a resource file (<span style="font-style: italic;">.../cstrike/maps/YOUR_MAP_NAME.res</span>) for your map, make sure the following two lines are in it:<br /><br /><table class="border" cellpadding="0" cellspacing="1">
 <tr>
  <td>
   <div class="win3" style="padding: 8px"><strong>Code</strong></div>
   <div class="win" style="padding: 2px; overflow: auto; width: 800px; height: 60px; margin: 0px;">
    <table cellpadding="0" cellspacing="0" class="innertable">
     <tr>
      <td style="padding: 8px"><pre>overviews&#047;YOUR_MAP_NAME&#046;bmp
overviews&#047;YOUR_MAP_NAME&#046;txt</pre></td>
     </tr>
    </table>
   </div>
  </td>
 </tr>
</table>
<br /><br /><span style="font-size: 18px;"><strong>Cleaning Up</strong></span><br /><br />Once you are finished, make sure to remove the extra parameters from the launch options in Steam and/or the shortcut you use to launch the game. If you find that the game still launches in the 1024x768 window (and you don't want it to), uncheck the following setting in Counter-Strike: Options &gt; Video &gt; Run in a window.<br /><br />Assuming you changed your color depth to 8-bit (256 colors), be sure to change it back to whatever you had it set at before.]]></description>
   <pubDate>Wed, 6 Mar 2013 12:38:43</pubDate>
   <dc:creator>DynamicBits</dc:creator>
  </item>
 </channel>
</rss>