<?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>Twistereli &#187; Scripting Lessons &#8211; Noob to Pro</title>
	<atom:link href="http://twistereli.com/category/games/enemy-territory/scripting-lessons-noob-to-pro/feed/" rel="self" type="application/rss+xml" />
	<link>http://twistereli.com</link>
	<description>Design and Nerdraline</description>
	<lastBuildDate>Sun, 07 Aug 2011 09:35:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>ET Scripting Lessons: Adding content to your cfg</title>
		<link>http://twistereli.com/games/enemy-territory/et-scripting-lessons-adding-content-to-your-cfg/</link>
		<comments>http://twistereli.com/games/enemy-territory/et-scripting-lessons-adding-content-to-your-cfg/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 14:01:59 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[Enemy Territory]]></category>
		<category><![CDATA[Scripting Lessons - Noob to Pro]]></category>
		<category><![CDATA[Et]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[lessons]]></category>
		<category><![CDATA[noob to pro]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[w:et]]></category>
		<category><![CDATA[wolfenstein]]></category>

		<guid isPermaLink="false">http://twistereli.com/?p=59</guid>
		<description><![CDATA[
ET Scripting Lessons: Adding content to your cfg
Because this is the part where most people get lost, since it&#8217;s the hardest part to explain, i will be trying to go over every single step.
In this case i&#8217;ll use my own cfg (the advanced one) to get you as fast as possible to a clean cfg [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="445" height="268" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/78jEQnMQv0E&amp;hl=nl&amp;fs=1&amp;rel=0&amp;hd=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="445" height="268" src="http://www.youtube.com/v/78jEQnMQv0E&amp;hl=nl&amp;fs=1&amp;rel=0&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><span style="font-size: large;">ET Scripting Lessons: Adding content to your cfg</span><br />
Because this is the part where most people get lost, since it&#8217;s the hardest part to explain, i will be trying to go over every single step.<br />
In this case i&#8217;ll use my own cfg (the advanced one) to get you as fast as possible to a clean cfg combination with everything you need in it.</p>
<p>First, we are going to create subdirectories in your etmain to keep the folder clean so you can find all your files at any time.<br />
Now create 3 folders inside etmain called: effects, binds and others</p>
<p>I&#8217;ll explain why we&#8217;re doing this.<br />
When you get familiar with cfg&#8217;s, you&#8217;ll want to create new ones every time but you keep your old ones because you like them too, but you end up with a bunch of configs with partially the same content in them (like your binds)<br />
That&#8217;s why i like to keep your binds at one folder, and your effects at another.<br />
The &#8220;others&#8221; folder is just there for other stuff you can&#8217;t categorize, feel free to remove/rename or add other folders.</p>
<p>Now open up your mycfg.cfg and put the following in it:<br />
exec binds/default.cfg<br />
exec effects/default.cfg<br />
echo Binds&amp;Effects loaded!<br />
This will make you exec your binds and effects every time you exec your mycfg.cfg</p>
<p>As you might have noticed, you don&#8217;t have those default.cfg files yet.<br />
Believing you already played ET and got some changes in it, we will try to get those out of ET and put them in those default configs.</p>
<p>To do this you&#8217;ll have to open up your ET and join a server you usually play at and make sure your settings are like you want them or usually have them.<br />
Now open up your console again (~or²) and type the following:<br />
/writeconfig backup.cfg<br />
When this is done you can get out of ET again and search the backup.cfg you just created in your etmain. (it might happen for some reasons that you have to search it in your modfolder [e.g.: Jaymod])<br />
Open it up in notepad (right click open as) and now you&#8217;ll get a huge list of commands. Don&#8217;t worry, you won&#8217;t be editing them yet.<br />
As you can see, the commands are all written behind eachother separated with some square-like characters. Those give the command to ET to start a new line, but notepad doesn&#8217;t recognize them.<br />
Because it&#8217;s very hard to find what you&#8217;re searching for, we will get those commands split up.<br />
To do this you&#8217;ll have to copy all the content into a text-editor like Microsoft Word. If everything goes right, you get a nice list of commands all beneath eachother.<br />
Now copy all the content from the text editor again and paste it into your cfg (you may overwrite the old content since it isn&#8217;t needed anymore)<br />
Now just save it again so it&#8217;s ready to go.</p>
<p><em> Tip: If something goes wrong during this tutorial, you can always /exec backup to get your standard settings back!</em></p>
<p>Lets get this all into our configs.<br />
First you create a new config into your etmain/binds folder, call it default.cfg<br />
Open up the config and copy all the content from backup.cfg starting with &#8220;bind&#8221; into it. So actually you take everything from your backup.cfg from the start to the first &#8220;seta&#8221;.<br />
Keep the unbindall command out of it for the safety.<br />
Paste all those lines into your default.cfg and save it. Close it and re-open it to check if it&#8217;s all saved correctly.</p>
<p>Now go into your effects folder and create a new default.cfg again.<br />
Paste all the other lines from backup.cfg into it.<br />
<em> Tip: If you get familiar with the commands, you can create multiple configs with different command types like sound, visual and net effects.</em><br />
Save this again and do the same check as the other config you just created.</p>


<p>Related posts:<ol><li><a href='http://twistereli.com/games/enemy-territory/an-introduction/' rel='bookmark' title='Permanent Link: An Introduction'>An Introduction</a></li>
<li><a href='http://twistereli.com/games/enemy-territory/creating-your-cfg/' rel='bookmark' title='Permanent Link: Creating your cfg'>Creating your cfg</a></li>
<li><a href='http://twistereli.com/games/enemy-territory/the-best-wet-tweak-around-by-dualinity/' rel='bookmark' title='Permanent Link: The best W:ET tweak around!  &#8211;  by Dualinity'>The best W:ET tweak around!  &#8211;  by Dualinity</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://twistereli.com/games/enemy-territory/et-scripting-lessons-adding-content-to-your-cfg/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>An Introduction</title>
		<link>http://twistereli.com/games/enemy-territory/an-introduction/</link>
		<comments>http://twistereli.com/games/enemy-territory/an-introduction/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 18:56:22 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[Enemy Territory]]></category>
		<category><![CDATA[Scripting Lessons - Noob to Pro]]></category>
		<category><![CDATA[Et]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[lessons]]></category>
		<category><![CDATA[noob to pro]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[w:et]]></category>
		<category><![CDATA[wolfenstein]]></category>

		<guid isPermaLink="false">http://twistereli.com/?p=43</guid>
		<description><![CDATA[ET Scripting Lessons: An introduction

Difference
So what actually is the difference between a script, config(cfg) and a bind?
 A config includes scripts and binds, and a script most likely includes binds.
 A config is a file, with all codes written down in it, saves as a .cfg but editable with notepad.
 Scripts are codes enabling you [...]]]></description>
			<content:encoded><![CDATA[<p><a id="video-long-title-0fLSe7xSN7Q" title="ET Scripting Lessons: An introduction" rel="nofollow" href="http://www.youtube.com/watch?v=0fLSe7xSN7Q">ET Scripting Lessons: An introduction</a></p>
<p><object width="480" height="295" data="http://www.youtube.com/v/0fLSe7xSN7Q&amp;hl=nl&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;hd=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/0fLSe7xSN7Q&amp;hl=nl&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;hd=1" /><param name="allowfullscreen" value="true" /></object></p>
<p><strong>Difference</strong></p>
<p>So what actually is the difference between a script, config(cfg) and a bind?</p>
<p><span> </span>A config includes scripts and binds, and a script most likely includes binds.</p>
<p><span> </span>A config is a file, with all codes written down in it, saves as a .cfg but editable with notepad.</p>
<p><span> </span>Scripts are codes enabling you to create extra features ingame which are already accessable, but not fast enough to use.</p>
<p><span> </span>A bind is just a random code, most likely an action applied to a key, your movement keys are binds for example.</p>
<p><strong>Some examples:</strong></p>
<p><span> </span>A config: go to your etmain folder located at C:\Program Files\Wolfenstein &#8211; Enemy Territory\etmain and you&#8217;ll find some files with a .cfg extention.</p>
<p><span> </span>A Script: <span> </span>bind h &#8220;set r_fastsky 1; set cg_atmosphericeffects 0; echo</p>
<p><span> </span>^2&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;^3your game will now run faster&#8221;</p>
<p><span> </span>bind j &#8220;set r_fastsky 0; set cg_atmospericeffects 1; echo ^2&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;^3yourgame will now run basic&#8221;</p>
<p><span> </span>This will make you toggle between a fast sky (black sky) and a quality sky by pressing 1 button.</p>
<p><span> </span>A bind: <span> </span>bind k kill</p>
<p><span> </span>This will make you commit suicide (ingame) when pressing K</p>


<p>Related posts:<ol><li><a href='http://twistereli.com/games/enemy-territory/et-scripting-lessons-adding-content-to-your-cfg/' rel='bookmark' title='Permanent Link: ET Scripting Lessons: Adding content to your cfg'>ET Scripting Lessons: Adding content to your cfg</a></li>
<li><a href='http://twistereli.com/games/enemy-territory/creating-your-cfg/' rel='bookmark' title='Permanent Link: Creating your cfg'>Creating your cfg</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://twistereli.com/games/enemy-territory/an-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

