<?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>TF2 Newbs (Team Fortress 2) &#187; G13</title>
	<atom:link href="http://www.tf2newbs.com/newbs_blog/tag/g13/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tf2newbs.com/newbs_blog</link>
	<description>We'll fool you with our name, we won't fool you with our game</description>
	<lastBuildDate>Wed, 07 Jul 2010 22:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Console In Plugin</title>
		<link>http://www.tf2newbs.com/newbs_blog/2010/03/15/console-in-plugin/</link>
		<comments>http://www.tf2newbs.com/newbs_blog/2010/03/15/console-in-plugin/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 00:59:24 +0000</pubDate>
		<dc:creator>cmptrwz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[G13]]></category>
		<category><![CDATA[G15]]></category>
		<category><![CDATA[G19]]></category>
		<category><![CDATA[Logitech]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tf2]]></category>

		<guid isPermaLink="false">http://www.tf2newbs.com/newbs_blog/?p=503</guid>
		<description><![CDATA[I got tired of having to find odd places on my keyboard to assign G-Keys to on my Logitech keyboard in TF2.

I wanted to be able to bind my G-Keys to build and destroy buildings and to specific disguises.

So I wrote a simple plugin to enable that. Once installed (extract to the tf folder, normally found in <steam install dir>\steamapps\<username>\team fortress 2) it will create a "Named Pipe" whenever the game is running. Dumping commands into this pipe will run them as though you typed them into the console directly.]]></description>
			<content:encoded><![CDATA[<p>I got tired of having to find odd places on my keyboard to assign G-Keys to on my Logitech keyboard in TF2.</p>
<p>I wanted to be able to bind my G-Keys to build and destroy buildings and to specific disguises.</p>
<p>So I wrote a simple plugin (see link below) to enable that. Extracted to the tf folder, normally found in<br />
<code>&lt;steam install dir&gt;\steamapps\&lt;username&gt;\team fortress 2</code><br />
it will create a &#8220;Named Pipe&#8221; whenever the game is running. Dumping commands into this pipe will run them as though you typed them into the console directly.<br />
<span id="more-503"></span><br />
This will ONLY work when you are actually in a game. It will not work in menus, or after being disconnected. It is also one way, console output and command output from the commands you run are not fed back the other way. There is also, due to the way it is coded, a built-in rate limit of sorts.</p>
<p>The named pipe is \\.\pipe\SourceConsole and, for me, I use a program that allows me to run cmd.exe invisibly. I then pass it parameters like so:</p>
<p><code>cmd.exe /C echo "build 1" > \\.\pipe\SourceConsole</code></p>
<p>The entire command line (entered into the G-series Key Profiler via &#8220;Assign Shortcut&#8221;) actually ends up including the program I use, but this is enough for now. What this will do, when bound to a key, is tell TF2 to build a teleporter entrance, as though you typed &#8220;build 1&#8243; into the game console or had it bound to a key normally.</p>
<p>This plugin is written in a very simplistic manner, and a number of things can prevent it from working properly. A major thing being something grabbing onto the named pipe and not wanting to release control. It works for me, and as people were asking me about it, I am posting it here.</p>
<p>And for the record, it will NOT allow you to do things that you can&#8217;t do by typing into the console already. I will not make it do anything like that either.</p>
<p>To get the plugin, click here:<br />
<a href="http://www.tf2newbs.com/newbs_blog/wp-content/uploads/2010/03/consolein.zip">http://www.tf2newbs.com/newbs_blog/wp-content/uploads/2010/03/consolein.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tf2newbs.com/newbs_blog/2010/03/15/console-in-plugin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Getting TF2 to work with a G15 (or G13, or G19) display</title>
		<link>http://www.tf2newbs.com/newbs_blog/2010/01/14/tf2_g-series/</link>
		<comments>http://www.tf2newbs.com/newbs_blog/2010/01/14/tf2_g-series/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 23:42:17 +0000</pubDate>
		<dc:creator>cmptrwz</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[G13]]></category>
		<category><![CDATA[G15]]></category>
		<category><![CDATA[G19]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[Logitech]]></category>
		<category><![CDATA[tf2]]></category>
		<category><![CDATA[Zeno Clash]]></category>

		<guid isPermaLink="false">http://www.tf2newbs.com/newbs_blog/?p=491</guid>
		<description><![CDATA[It is fairly well known at this point that TF2 has Logitech G15 LCD support. When it was discovered people rejoiced!

Then they found out it didn't work. Apparently the source engine has G15 support, and they didn't ship all the pieces with TF2.

But you can rejoice, for the secret of getting TF2 to work with a G15 (and, as a result, G13 and G19) has been discovered!

Read to find out the details!]]></description>
			<content:encoded><![CDATA[<p>It is fairly well known at this point that TF2 has Logitech G15 LCD support. When it was discovered people rejoiced!</p>
<p>Then they found out it didn&#8217;t work. Apparently the source engine has G15 support, and they didn&#8217;t ship all the pieces with TF2.</p>
<p>But you can rejoice, for the secret of getting TF2 to work with a G15 (and, as a result, G13 and G19) has been discovered!</p>
<p><span id="more-491"></span></p>
<h3>Requirements:</h3>
<ul>
<li><a href="http://store.steampowered.com/">Steam</a></li>
<li><a href="http://store.steampowered.com/app/440/">Team Fortress 2</a></li>
<li><a href="http://store.steampowered.com/app/22200/">Zeno Clash</a> (The <a href="http://store.steampowered.com/app/22220/">Demo</a> will work, and is what I tested with)</li>
</ul>
<h3>Recommended:</h3>
<ul>
<li><a href="http://nemesis.thewavelength.net/index.php?p=26">GCFScape</a></li>
<li>Text Editor of your choice (<a href="http://www.vim.org">Vim</a> is my choice)</li>
</ul>
<h2>Basic Setup</h2>
<p>First, install Steam, Team Fortress 2, and Zeno Clash (or the demo). Run Team Fortress 2 and Zeno Clash (or the demo) at least once.</p>
<p>Once you have done so, open up<br />
<strong>steam install dir</strong>\SteamApps\common\zeno clash\bin\<br />
(or the zeno clash demo folder) and copy g15.dll.</p>
<p>Next, open up<br />
<strong>steam install dir</strong>\SteamApps\<strong>your username</strong>\team fortress 2\bin\<br />
and paste the g15.dll file there. If the folder now contains &#8220;client.dll&#8221;, &#8220;server.dll&#8221;, and &#8220;g15.dll&#8221; you found the wrong bin folder. Go up a couple of directories and try again.</p>
<p>Now that the DLL is there, all that is left is to tell TF2 to load it. Open up steam, go to your games list, and right-click on TF2. Select properties, then hit &#8220;Set launch options&#8230;&#8221;. There you need to add -g15 to the list of options. (Side note, I recommend &#8220;-novid -g15&#8243; at a minimum.) Hit OK, then hit Close.</p>
<p>Run TF2, and you have a working health/ammo display on your G15, once in a server anyway.</p>
<p><em>TAKE NOTE: Getting the Zeno Clash g15.dll file may no longer be needed if Valve ever includes it in an update for TF2. The -g15 command line parameter will likely still be needed. This blog entry may or may not be updated should that ever happen.</em></p>
<h2>Making it look better</h2>
<p>Unfortunately, there is at least one problem. The TF2 logo is missing when you aren&#8217;t in a server!</p>
<p>Pop open GCFScape and open up &#8220;team fortress 2 content.gcf&#8221; in the SteamApps folder:<br />
<strong>steam install dir</strong>\SteamApps<br />
In there you should find a tf\resource folder. In there right-click on game_1bpp.ico and select &#8220;Extract&#8221;.</p>
<p>In the Browse for Folder dialog find your tf directory:<br />
<strong>steam install dir</strong>\SteamApps\<strong>your username</strong>\team fortress 2\tf<br />
If you already have a resource directory there then select it. Otherwise select the tf folder and then click on &#8220;Make New Folder&#8221;, entering &#8220;resource&#8221; for the name, then select it. Hit OK.</p>
<p>Now when on the &#8220;title&#8221; page a really crappy black and white TF2 logo will appear, which is strangely an improvement over the blank space that was there before.</p>
<h2>Viewing other pages</h2>
<p>The First two buttons on the G13/G15 under the display (or on the G19, the left and right arrow buttons) control what page is shown when TF2 is running. The left one changes the page, the right one changes the sub page. And there is a difference.</p>
<p>The pages are, by default and as of this writing:</p>
<ol>
<li>Title &#8211; Only shown when NOT in a game</li>
<li>Health/Weapon Info</li>
<li>My Team (Dead/Alive)</li>
<li>Scoreboard Data (Score/Deaths/Ping)</li>
<li>Chat</li>
</ol>
<p>Aside from the title and Health/Weapon pages, the other pages will likely not hold everything in the 4 lines or so you can cram onto the display. Hence sub pages to, for lack of a better term, &#8220;scroll&#8221; the page.</p>
<h2>Customization</h2>
<p>While you were in GCFScape you may have noticed a g15.res file, a couple of lines above the game_1bpp.ico file. If you put that in the same resource folder as the game_1bpp.ico file you can customize what your G15 shows you when in game.</p>
<p>To do so, open it up with a text editor.</p>
<p>You will notice that the file is in KeyValues format. If you don&#8217;t know what that is I suggest looking it up quick, or just following along to figure it out as you go. A //, at the very least, represents a comment, but you cannot use /* */ commenting for multi-line or mid-line comments.</p>
<p>I suggest leaving the &#8220;icons&#8221; section alone, as well as the &#8220;game&#8221; and &#8220;chatlines&#8221; values above it. The &#8220;replace&#8221; block, however, can be very useful. All replacements are applied last, just before the values are crammed into the defined fields. This allows for some interesting tricks. For example, you can change &#8220;Jar Based Karate&#8221; to &#8220;Jarate&#8221; with a single line. What is being replaced is on the left, what it is replaced with is on the right. Use &#8220;&#8221; for &#8220;replace with nothing&#8221; on the right. For example, I added:</p>
<pre>
"Flame Thrower" "Flamethrower"
" Launcher" ""
"Jar Based Karate" "Jarate"
"Battle Banner" "Partyhorn"
</pre>
<p>Although to my disappointment the Battle Banner doesn&#8217;t normally show up when selected. Bummer. The &#8221; Launcher&#8221; one shortens the names of the Rocket Launcher, Stickybomb Launcher and Grenade Launcher weapons all in one go.</p>
<p>After the &#8220;replace&#8221; section you will find the pages. I suggest leaving the title page, the first page there, alone. In fact, I recommend doing ALL of your customization to the default page when playing, the first page, just after the title page. The one that contains your health/ammo values.</p>
<p>By default, that page looks like this:</p>
<pre>
	"page"   // Player health/wpn info
	{
		// Only show this if the player has a player entity in the game
		"requiresplayer"	"1"

		"static_text"
		{
			"size"		"medium"
			"align"		"left"
			"x"			"10"
			"y"			"4"
			"w"			"150"
			"text"		"Team:  team_%(localteam)m_szTeamName%"
		}

		"static_icon"
		{
			"x"			"144"
			"y"			"4"
			"w"			"16"
			"h"			"16"
			"name"		"icon_%(localteam)m_szTeamName%"
		}

		"static_text"
		{
			"size"		"medium"
			"align"		"left"
			"x"			"10"
			"y"			"18"
			"w"			"150"
			"text"		"Health:  - %(localplayer)m_iHealth% -"
		}

		"static_text"
		{
			"size"		"medium"
			"align"		"left"
			"x"			"10"
			"y"			"32"
			"w"			"150"
			"text"		"(weapon_print_name):  - (ammo_primary) -"
		}
	}
</pre>
<p>Basically, that means put &#8220;Red&#8221; or &#8220;Blue&#8221; in the upper left, a non-existent icon in the upper right, your current health to the left in the middle, and your current weapon with ammo under your health. I didn&#8217;t like that.</p>
<p>I won&#8217;t go into all the details of how to put information, largely because most of it is useless, but here is a handy list of ones I find useful:</p>
<dl>
<dt>(ammo_primary)</dt>
<dd>Current weapon&#8217;s primary ammo, AKA the current &#8220;in the clip&#8221; ammo, or for single reload/non-reloading weapons all of it.</dd>
<dt>(ammo_secondary)</dt>
<dd>Reserve ammo for the current weapon. Will be 0 for a number of weapons.</dd>
<dt>(weapon_print_name)</dt>
<dd>Current weapon&#8217;s name</dd>
<dt>%(localplayer)m_iHealth%</dt>
<dd>Current health</dd>
<dt>%(localteam)m_szTeamName%</dt>
<dd>Current team name (valve prefixed this with team_ for replacement above, or with icon_ for the non-existent icons)</dd>
<dt>%(localplayer)m_iAmmo[1]%</dt>
<dd>Primary weapon ammo</dd>
<dt>%(localplayer)m_iAmmo[2]%</dt>
<dd>Secondary weapon ammo</dd>
<dt>%(localplayer)m_iAmmo[3]%</dt>
<dd>Metal (100 for everyone but Engineer, who can actually USE metal)</dd>
</dl>
<p>Due to the way things work, I recommend something like this:</p>
<pre>
	"page"   // Player health/wpn info
	{
		// Only show this if the player has a player entity in the game
		"requiresplayer"	"1"

		"static_text"
		{
			"size"		"medium"
			"align"		"left"
			"x"			"10"
			"y"			"4"
			"w"			"100"
			"text"		"H: %(localplayer)m_iHealth%"
		}
		"static_text"
		{
			"size"		"medium"
			"align"		"right"
			"x"			"110"
			"y"			"4"
			"w"			"50"
			"text"		"team_%(localteam)m_szTeamName%"
		}

		"static_text"
		{
			"size"		"medium"
			"align"		"left"
			"x"			"10"
			"y"			"18"
			"w"			"150"
			"text"		"(weapon_print_name): (ammo_primary) / (ammo_secondary)"
		}

		"static_text"
		{
			"size"		"medium"
			"align"		"left"
			"x"			"10"
			"y"			"32"
			"w"			"150"
			"text"		"A: P: %(localplayer)m_iAmmo[1]% S: %(localplayer)m_iAmmo[2]%"
		}

		"newsubpage"	"1"

		"static_text"
		{
			"size"		"medium"
			"align"		"left"
			"x"			"10"
			"y"			"4"
			"w"			"100"
			"text"		"H: %(localplayer)m_iHealth%"
		}

		"static_text"
		{
			"size"		"medium"
			"align"		"right"
			"x"			"110"
			"y"			"4"
			"w"			"40"
			"text"		"team_%(localteam)m_szTeamName%"
		}

		"static_text"
		{
			"size"		"medium"
			"align"		"left"
			"x"			"10"
			"y"			"18"
			"w"			"150"
			"text"		"(weapon_print_name): (ammo_primary) / (ammo_secondary)"
		}

		"static_text"
		{
			"size"		"medium"
			"align"		"left"
			"x"			"10"
			"y"			"32"
			"w"			"150"
			"text"		"A: P: %(localplayer)m_iAmmo[1]% S: %(localplayer)m_iAmmo[2]% M: %(localplayer)m_iAmmo[3]%"
		}
	}
</pre>
<p>This creates two pages (see that &#8220;newsubpage&#8221; &#8220;1&#8243; thing? That says make a new sub page). The first will show your team in the upper right, your health in the upper left, your current weapon with ammo below your health, and your current ammo supplies for primary and secondary below your current weapon. If you hit the sub page change button it will toggle your metal showing up. It does away with the &#8211; around the health/ammo, and removes the non-existent icon. It could likely use some work, but it works well enough for me.</p>
<p><img src="http://www.tf2newbs.com/newbs_blog/wp-content/uploads/2010/01/G13_Engineer.jpg" alt="G13 Display with TF2 Engineer Information Displayed" /></p>
<p>I would go into more detail, but there is only so much I can say I know in the day I have messed with this. I know that x is horizontal position and y is vertical, that w is for width and h is for height. The align value can be left, right, or center, and I have seen small, medium, and big sizes. Yes, big, not large.</p>
<p>You apparently CAN&#8217;T show cloak, rage, or charge levels properly, nor can you show ubercharge levels, or easily show your own ping. I tried all of that already.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tf2newbs.com/newbs_blog/2010/01/14/tf2_g-series/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
