<?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; source</title>
	<atom:link href="http://www.mzzt.net/tag/source/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>Garry&#8217;s Dir Mod Update</title>
		<link>http://www.mzzt.net/2009/03/03/garrys-dir-mod-update/</link>
		<comments>http://www.mzzt.net/2009/03/03/garrys-dir-mod-update/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 04:42:45 +0000</pubDate>
		<dc:creator>Dan Bugglin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[garry]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[listing]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://www.mzzt.net/?p=155</guid>
		<description><![CDATA[I made some changes to my mod of Garry&#8217;s Directory List script. The latest version of garry&#8217;s script is seen here. Mine is here.  The biggest change is I&#8217;ve gone for the look of the new Windows 7 Content view for files and folders &#8230; I like it very much. In addition I have removed [...]]]></description>
			<content:encoded><![CDATA[<p>I made some changes to my mod of Garry&#8217;s Directory List script.  The latest version of garry&#8217;s script is seen <a href="http://www.garry.tv/img/">here</a>.</p>
<p>Mine is <a href="http://x.mzzt.net/">here</a>.  The biggest change is I&#8217;ve gone for the look of the new Windows 7 Content view for files and folders &#8230; I like it very much. <img src='http://www.mzzt.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <span id="more-155"></span></p>
<p>In addition I have removed most of the excess whitespace, added hover effects, and added tooltip info to images.  In addition there are custom icons for some different filetypes, and it&#8217;s easy to change those.</p>
<p>There are also a couple interesting statistics at the bottom.</p>
<p>Download the source <a href="http://junk.mzzt.net/garrysdirmod.7z">here</a> (requires 7zip or a tool that can extract .7z files to use).</p>
<p>Shockingly IE8RC1 renders it correctly without requiring any hacks.  I did not test it with IE7 (I&#8217;m scared to, given the semi-hackish way I got the folder/file lists working without tables).  The latest versions of Gecko, Webkit, and Opera all handle it fine&#8230; and of course Gecko and Webkit get fancy rounded borders too.</p>
<p>For the future I might add some javascript in to allow for custom sorting and maybe different views for files/folders&#8230; who knows.  But that would require coding a lot of the template over in JavaScript.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzzt.net/2009/03/03/garrys-dir-mod-update/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

