<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mega-ZBlog &#187; Left 4 Dead</title>
	<atom:link href="http://www.mzzt.net/tag/left-4-dead/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mzzt.net</link>
	<description>You are here.</description>
	<lastBuildDate>Sat, 07 Jan 2012 23:53:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Monitoring CVAR changes in the Source engine</title>
		<link>http://www.mzzt.net/2009/07/05/monitoring-cvar-changes-in-the-source-engine/</link>
		<comments>http://www.mzzt.net/2009/07/05/monitoring-cvar-changes-in-the-source-engine/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 23:59:26 +0000</pubDate>
		<dc:creator>Dan Bugglin</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[compare]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[Left 4 Dead]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[winmerge]]></category>

		<guid isPermaLink="false">http://www.mzzt.net/?p=187</guid>
		<description><![CDATA[If you want to create a script that toggles a setting in a Source engine game like Left 4 Dead, you need to know the console variable name that controls it, but sometimes you don&#8217;t know.  One way to figure it out is to blindly search using the &#8220;find&#8221; command to look for a command [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
  pre {
    white-space: pre-wrap;
  }
</style>
<p>If you want to create a script that toggles a setting in a Source engine game like <a href="http://l4d.com/">Left 4 Dead</a>, you need to know the console variable name that controls it, but sometimes you don&#8217;t know.  One way to figure it out is to blindly search using the &#8220;find&#8221; command to look for a command that looks like it controls what you need.  The other way is to dump the cvar list to disk, change the setting in the GUI, dump the list again, and compare the two lists.<span id="more-187"></span></p>
<p>However the latter approach is not easy.  There is a condump command but it only dumps a limited amount of text, and the cvarlist command displays too much text for the console to hold (or dump).</p>
<p>However, taking advantage of the fact that cvars always start with a letter, we can brute force this.  First, clear any condump*.txt files from your Source engine mod folder (For Left 4 Dead, it&#8217;s Steam\common\Left 4 Dead\left4dead) and then run the following three commands in sequence:</p>
<pre>clear; cvarlist a; condump; clear; cvarlist b; condump; clear; cvarlist c; condump; clear; cvarlist d; condump; clear; cvarlist e; condump; clear; cvarlist f; condump; clear; cvarlist g; condump; clear; cvarlist h; condump; clear; cvarlist i; condump

clear; cvarlist j; condump; clear; cvarlist k; condump; clear; cvarlist l; condump; clear; cvarlist m; condump; clear; cvarlist n; condump; clear; cvarlist o; condump; clear; cvarlist p; condump; clear; cvarlist q; condump; clear; cvarlist r; condump

clear; cvarlist s; condump; clear; cvarlist t; condump; clear; cvarlist u; condump; clear; cvarlist v; condump; clear; cvarlist w; condump; clear; cvarlist x; condump; clear; cvarlist y; condump; clear; cvarlist z; condump</pre>
<p>(Three lines of commands are needed since there is a limit to the length of one console command.)</p>
<p>Now you have 26 condump files in your Source mod folder.  Move them to an empty temporary folder on your desktop or somewhere.  Now change the setting you&#8217;re trying to find the cvar for and runt he console commands again to get another batch of 26 files.  Move these to a SECOND temporary folder.</p>
<p>Then, download <a href="http://winmerge.org/">WinMerge</a> (or use a similar file/directory comparison tool) and point it at both folders.  Bam.  It will instantly show you which dumped files changed, and you can then go into the files and see the changed values side by side.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzzt.net/2009/07/05/monitoring-cvar-changes-in-the-source-engine/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Small Update</title>
		<link>http://www.mzzt.net/2008/11/15/small-update/</link>
		<comments>http://www.mzzt.net/2008/11/15/small-update/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 05:36:05 +0000</pubDate>
		<dc:creator>Dan Bugglin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[Dock]]></category>
		<category><![CDATA[employment]]></category>
		<category><![CDATA[garry]]></category>
		<category><![CDATA[Left 4 Dead]]></category>
		<category><![CDATA[rounded]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[summary]]></category>
		<category><![CDATA[Team Fortress 2]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.mzzt.net/?p=103</guid>
		<description><![CDATA[I updated my directory listing script to support webkit rounded borders (IE Safari and Chrome users will now see them!) as well as the expected standard when all browsers support it&#8230; It&#8217;s available at the top under Projects. I need to blog more often, but here&#8217;s a quick catch-up summary: I like the Windows 7 [...]]]></description>
			<content:encoded><![CDATA[<p>I updated my directory listing script to support webkit rounded borders (IE Safari and Chrome users will now see them!) as well as the expected standard when all browsers support it&#8230;</p>
<p>It&#8217;s available at the top under Projects.</p>
<p>I need to blog more often, but here&#8217;s a quick catch-up summary: I like the Windows 7 new taskbar, though it rips off Apple&#8217;s Dock a bit much in functionality, who cares.  Been playing the Left 4 Dead demo, I love it, can&#8217;t wait for the full thing Tuesday, missed out on exploiting the &#8220;be a zombie&#8221; glitch before Valve patched it.  Still playing lots of TF2.</p>
<p>Still don&#8217;t have a job, grr.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzzt.net/2008/11/15/small-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

