<?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>Daggering Cats</title>
	<atom:link href="http://www.daggeringcats.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daggeringcats.com</link>
	<description>... because we want the Bra!</description>
	<lastBuildDate>Sat, 06 Mar 2010 15:53:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mouse input in games &#8211; and why so much developers bork it</title>
		<link>http://www.daggeringcats.com/index.php/2010/03/04/mouse-input-in-games-and-why-so-much-developers-bork-it/</link>
		<comments>http://www.daggeringcats.com/index.php/2010/03/04/mouse-input-in-games-and-why-so-much-developers-bork-it/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 18:39:02 +0000</pubDate>
		<dc:creator>aVoN</dc:creator>
				<category><![CDATA[Bullshit]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://www.daggeringcats.com/index.php/2010/03/04/mouse-input-in-games-and-why-so-much-developers-bork-it/</guid>
		<description><![CDATA[I lately bought Battlefield &#8211; Bad Company 2 and I really dislike how they implemented mouse input control. The game doesn&#8217;t feel like the majority of the games I own, and here is the reason why:
Instead of using mouse input directly from Windows (including every feature it has on the desktop such as acceleration etc), [...]]]></description>
			<content:encoded><![CDATA[<p>I lately bought <em>Battlefield &#8211; Bad Company 2</em> and I really dislike how they implemented mouse input control. The game doesn&#8217;t feel like the majority of the games I own, and here is the reason why:</p>
<p>Instead of using mouse input <span style="text-decoration: underline;">directly from Windows</span> (including every feature it has on the desktop such as acceleration etc), they read out the mouse movement <span style="text-decoration: underline;">from the hardware</span> instead, so they can fuck around with it. This is a really bad idea because it will make every game doing the same feel differently due to different implementations. That&#8217;s stupid. The right way would be just taking the mouse input of windows and multiplying it by a sensitivity multiplication for the game (and adding a checkbox which temporarily turns off Window’s mouse acceleration for those who need it).</p>
<p>This brings me to <strong>Mouse Acceleration</strong>: Many gamers like to say &#8220;<em>disable it</em>&#8220;, where I like to have it enabled: This allows me using a small sensitivity for precise accuracy while a fast movement maneuver gives me the ability turning around by 180° without moving the mouse 5 times over the pad. Sadly some games force acceleration off with no option to turn it back on.</p>
<p>Here is a small list of games which do it right:</p>
<ul>
<li><strong><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/hl2_ctf.jpg" rel="shadowbox[post-628];player=img;"><img style="display: inline; border-width: 0px;" title="hl2_ctf" src="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/hl2_ctf_thumb.jpg" border="0" alt="hl2_ctf" width="24" height="24" /></a> Half-Life 2, Left 4 Dead 1/2</strong> and every Source Engine bases game</li>
<li><strong><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/1_Squad_COD4.png" rel="shadowbox[post-628];player=img;"><img style="display: inline; border-width: 0px;" title="1_Squad_COD4" src="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/1_Squad_COD4_thumb.png" border="0" alt="1_Squad_COD4" width="24" height="24" /></a> Call of Duty: Modern Warfare 2</strong></li>
<li><strong><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/57_CrysisWarhead.png" rel="shadowbox[post-628];player=img;"><img style="display: inline; border-width: 0px;" title="57_CrysisWarhead" src="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/57_CrysisWarhead_thumb.png" border="0" alt="57_CrysisWarhead" width="24" height="24" /></a> Crysis</strong></li>
<li><strong><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/c0f66756fed26578036c9277786449c238302769_medium.jpg" rel="shadowbox[post-628];player=img;"><img style="display: inline; border-width: 0px;" title="c0f66756fed26578036c9277786449c238302769_medium" src="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/c0f66756fed26578036c9277786449c238302769_medium_thumb.jpg" border="0" alt="c0f66756fed26578036c9277786449c238302769_medium" width="24" height="24" /></a> Killing Floor</strong></li>
</ul>
<p>And these are now some of the black sheep:</p>
<ul>
<table border="0" cellspacing="0" cellpadding="0" width="593">
<tbody>
<tr>
<td width="34" valign="top">
<ul>
<li></li>
</ul>
</td>
<td width="557" valign="top"><strong><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/BattlefieldBadCompany22icon.png" rel="shadowbox[post-628];player=img;"><img style="display: inline; border-width: 0px;" title="Battlefield-Bad-Company-2-2-icon" src="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/BattlefieldBadCompany22icon_thumb.png" border="0" alt="Battlefield-Bad-Company-2-2-icon" width="24" height="24" /></a> Battle Field – Bad Company 2<br />
</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="555">
<tbody>
<tr>
<td width="28" valign="top"></td>
<td width="525" valign="top">You can at least turn on mouse acceleration and adjust the acceleration parameters. But you can neither modify the acceleration threshold nor switch back to “Windows”-like input. So any settings you do here in order to make it feel like in other games are condemned to fail or take ages until you found the one you need.</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td width="34" valign="top">
<ul>
<li></li>
</ul>
</td>
<td width="557" valign="top"><strong><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/UnrealTournamentIII2icon.jpg" rel="shadowbox[post-628];player=img;"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" title="Unreal-Tournament-III-2-icon" src="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/03/UnrealTournamentIII2icon_thumb.jpg" border="0" alt="Unreal-Tournament-III-2-icon" width="24" height="24" /></a> Unreal Tournament 3<br />
</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="555">
<tbody>
<tr>
<td width="27" valign="top"></td>
<td width="526" valign="top">Here you even can’t enable mouse acceleration at all. You can only try messing around with a config-file but this hasn’t revealed any settings for me yet which allowes me making it feel like e.g. Half-Life 2 (which uses Windows mouse input).</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.daggeringcats.com/index.php/2010/03/04/mouse-input-in-games-and-why-so-much-developers-bork-it/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>gm_mount2 &#8211; Use any source-engine content in GMod</title>
		<link>http://www.daggeringcats.com/index.php/2010/02/19/gm_mount2-use-any-source-engine-content-in-gmod/</link>
		<comments>http://www.daggeringcats.com/index.php/2010/02/19/gm_mount2-use-any-source-engine-content-in-gmod/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 23:13:43 +0000</pubDate>
		<dc:creator>aVoN</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Garry's Mod]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Steam]]></category>
		<category><![CDATA[Left 4 Dead]]></category>

		<guid isPermaLink="false">http://www.daggeringcats.com/?p=610</guid>
		<description><![CDATA[  

Description
This addon allows you mounting any source-engine games in Garry&#8217;s Mod including  default VALVE games, Steamworks content like D.I.P.R.I.P, Left 4  Dead and every installed SourceMod.
Download

The full version includes spawnicons for some models (several MB). The light version doesn&#8217;t, so it is much smaller. But you have to generate the icons [...]]]></description>
			<content:encoded><![CDATA[<p><strong> </strong><strong> </strong></p>
<p><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/02/gm_mount2_blog1.jpg" rel="shadowbox[post-610];player=img;"><img class="aligncenter size-full wp-image-613" title="gm_mount2_blog" src="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/02/gm_mount2_blog1.jpg" alt="" width="600" height="326" /></a></p>
<p><strong>Description</strong><br />
This addon allows you mounting any source-engine games in <a href="http://store.steampowered.com/app/4000/">Garry&#8217;s Mod</a> including  default VALVE games, Steamworks content like <a href="http://store.steampowered.com/app/17530/">D.I.P.R.I.P</a>, <a href="http://store.steampowered.com/app/500/">Left 4  Dead</a> and every installed SourceMod.</p>
<p><strong>Download</strong></p>
<p style="text-align: center;"><strong><a href="http://gmod.daggeringcats.com/mount2/mount2.zip"><img class="alignnone" title="Download - Full" src="http://gmod.daggeringcats.com/mount2/images/index.php?image=download_heavy.png" alt="" width="200" height="90" /></a><a href="http://gmod.daggeringcats.com/mount2/mount2_lite.zip"><img class="alignnone" title="Download - Light" src="http://gmod.daggeringcats.com/mount2/images/index.php?image=download_lite.png" alt="" width="200" height="90" /></a></strong></p>
<p>The full version includes spawnicons for some models (several MB). The light version doesn&#8217;t, so it is much smaller. But you have to generate the icons yourself.</p>
<p><strong>SVN-Repository (always up-to-date)</strong></p>
<blockquote><p><strong>Url:</strong> <a href="http://svn.daggeringcats.com/mount2" target="_blank">http://svn.daggeringcats.com/mount2</a><br />
<strong>User:</strong> anon<br />
<strong>Password:</strong> anon</p></blockquote>
<p><strong>Annotations for Left 4 Dead 1/2:</strong><br />
Left 4 Dead maps are not compatible with Garry&#8217;s Mod. Don&#8217;t try loading them &#8211; This will only cause GMod to crash.</p>
<p><strong>Why another mounting addon?</strong><br />
You may know the <a href="http://www.facepunch.com/showthread.php?p=12293086" target="_blank">orginal mounting addon</a> and <a href="http://www.facepunch.com/showthread.php?t=637181" target="_blank">it&#8217;s  extension for sourcemods</a>. They work well but I wasn&#8217;t really  satisfied with the way they work and I disliked their messy sourcecode  so I wrote up my own from scratch.<br />
My addon directly integrates into GMod and works on dedicated servers which is not possible without many  modifications of the old gm_mount addon.<br />
It also can mount Left 4 Dead and Left 4 Dead 2 which is the main  purpose of this addon, which took me over 3 weeks, around 2000 lines of  C++ code and much coffee to figure that out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daggeringcats.com/index.php/2010/02/19/gm_mount2-use-any-source-engine-content-in-gmod/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>gm_mount2 &#8211; Mount everything in GMod &#8211; Current state</title>
		<link>http://www.daggeringcats.com/index.php/2010/02/05/gm_mount2-mount-everything-in-gmod-current-state/</link>
		<comments>http://www.daggeringcats.com/index.php/2010/02/05/gm_mount2-mount-everything-in-gmod-current-state/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 22:05:46 +0000</pubDate>
		<dc:creator>aVoN</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Garry's Mod]]></category>
		<category><![CDATA[Modules]]></category>
		<category><![CDATA[GMod]]></category>
		<category><![CDATA[Module]]></category>

		<guid isPermaLink="false">http://www.daggeringcats.com/index.php/2010/02/05/gm_mount2-mount-everything-in-gmod-current-state/</guid>
		<description><![CDATA[In the past two weeks, I have been working on gm_mount2, an adaption but also totally rewrite from scratch of this addon for GMod.
My intention first was making it mount games automatically if you install it serverside (the way it is in that link needs heavy modifications to make it run) and an easy integration [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/02/gm_mount21.png" rel="shadowbox[post-606];player=img;"></a><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/02/gm_mount21.png" rel="shadowbox[post-606];player=img;"><img class="alignright size-medium wp-image-607" title="gm_mount2" src="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/02/gm_mount21-300x187.png" alt="" width="300" height="187" /></a>In the past two weeks, I have been working on gm_mount2, an adaption but also totally rewrite from scratch of <a href="http://www.facepunch.com/showthread.php?t=637181">this addon</a> for GMod.</p>
<p>My intention first was making it mount games automatically if you install it serverside (the way it is in that link needs heavy modifications to make it run) and an easy integration into GMod&#8217;s default mounting-menu.</p>
<p>This was done really easily and I started thinking about &#8220;why can&#8217;t garry make GMod mount L4D?&#8221;. I took some more deeper research into it and found out, that L4D and L4D2 don&#8217;t use <a href="http://developer.valvesoftware.com/wiki/GCF">GCF-files</a> to store their models, sounds and everything in &#8211; They use <a href="http://developer.valvesoftware.com/wiki/VPK">VPK files</a> which are unsupported for mounting in the OrangeBox version of the Source-Engine where GMod runs on.</p>
<p>Luckily it rushed into my mind that <a href="http://nemesis.thewavelength.net">Nemesis</a>, the coder of <a href="http://nemesis.thewavelength.net/index.php?c=76">GCFScape</a>, has a library called <a href="http://nemesis.thewavelength.net/index.php?c=108">HLLib</a> which allows reading from VPK containers. It took me around 2 hours to figure out how HLLib works and I made my first successful attempt in reading from VPKs.</p>
<p>But now the torture began: How shall I tell GMod to read from VPKs? My idea was overriding default FileIO functions of Source which are stored in the interface IFileSystem and IBaseFileSystem. My idea was using <a href="http://research.microsoft.com/en-us/projects/detours/">MS Detours</a> which is known to be detectable by <a href="http://supportwiki.steampowered.com/wiki/Valve_Anti-Cheat_System_%28VAC%29">VAC</a> so I searched different ways for about 3 days before I got told &#8220;<a href="http://www.facepunch.com/showthread.php?t=886944">VAC in GMod is active but does not ban</a>&#8221; (yet).</p>
<p>So the plan was clear: Detouring the methods of the interface and intercept if a file within a VPK is requested. It was all so clear and easy in my head but I got beaten down by reality really fast again. The methods of the interface I have to hook/overwrite are <a href="http://en.wikipedia.org/wiki/Virtual_function">virtual</a>, which makes them a pain in the ass to hook. It took me 2 days with the help of mainly <a href="http://cdbarrett.com/">Jinto</a> before I was able to hook those. If any developer is interested in, you can find my <a href="http://www.daggeringcats.com/images//cpp/detours/virtualmember.h" target="_blank">VDETOUR script here</a>.</p>
<p>Hooking now worked but I first had to figure our a fast and efficient way of tracing opened files so I can tell it’s either a file within a VPK or a “normal file”. This took me 3 more days.</p>
<div id="attachment_609" class="wp-caption alignright" style="width: 310px"><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/02/francis.png" rel="shadowbox[post-606];player=img;"><img class="size-medium wp-image-609" title="francis" src="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/02/francis-300x232.png" alt="" width="300" height="232" /></a><p class="wp-caption-text">Yes, I suck at ragdoll-posing - In the console you  see what the filesystem has done etc and in the background you see  Francis</p></div>
<p>Today I had my first successful attempt reading a file from within a VPK in GMod with GMod’s lua function <a href="http://wiki.garrysmod.com/?title=File.Read" target="_blank">file.Read</a> <span style="text-decoration: line-through;">but it just read about 500 letters at max – how silly</span>.</p>
<p>Recapitulation: It was a pain in the ass to implement. Especially because my lack of knowledge of GMod’s internals. It could have been so much easier to implement if I’d be the mod-coder.</p>
<p><strong>Update</strong>:</p>
<p>Today I made the successful attempt in loading a model of L4D in GMod using my module. It works flawless! <span style="text-decoration: line-through;">No crashes etc</span>. Now I only have to implement some minor stuff like file-searching and the lua-interface. <span style="text-decoration: line-through;">Maybe one ore two more days and I can release it</span>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daggeringcats.com/index.php/2010/02/05/gm_mount2-mount-everything-in-gmod-current-state/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>My current plans and projects</title>
		<link>http://www.daggeringcats.com/index.php/2010/01/23/my-current-plans-and-projects/</link>
		<comments>http://www.daggeringcats.com/index.php/2010/01/23/my-current-plans-and-projects/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 02:38:43 +0000</pubDate>
		<dc:creator>aVoN</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.daggeringcats.com/index.php/2010/01/23/my-current-plans-and-projects/</guid>
		<description><![CDATA[I&#8217;m currently busy as always with University. In about 1 week I have my first exam of 6. Once this is done, I&#8217;ll have time again for “work” &#8211; In two ways.
I&#8217;m working at my Institute where I did my Bachelor-Thesis. It&#8217;s a mini-job with max of 400 € (Just needs me to work for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently busy as always with University. In about 1 week I have my first exam of 6. Once this is done, I&#8217;ll have time again for “work” &#8211; In two ways.</p>
<p>I&#8217;m working at my Institute where I did my Bachelor-Thesis. It&#8217;s a mini-job with max of 400 € (Just needs me to work for about 28 hours a month. This costs me about one day in the week &#8211; and I love my job!</p>
<p>Another thing I&#8217;m on is a <a href="http://www.trillian.im/" target="_blank">Trillian</a> plugin which allows chatting with Steam Friends (while Steam is running in the background). It uses <a href="http://www.facepunch.com/showthread.php?t=824685" target="_blank">Open Steamworks</a>.</p>
<p>One more thing is a new mount-plugin for GMod which shall allow mounting third-party games easily. I know there are about 2 plugings already around, but both have messed up code (They are a sourcemod-plugin and a lua-plugin at once which is shit-code) and are not really userfriendly. My plugin is meant to work easily on clientside and is also meant to mount all available games it finds serverside if you host a dedicated server.</p>
<p>And of course I have to finish #45 of Stargate: The very long expected new release to my famous stargate-mod for Garry’s Mod. I can understand when/why people are unable to wait for #45 (its over one year ago I did a major stargate-release). But all other topics (University and side-projects) eat up all my time so far. I hope I can work out #45 this year and before April.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daggeringcats.com/index.php/2010/01/23/my-current-plans-and-projects/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Happy Microwave Cap</title>
		<link>http://www.daggeringcats.com/index.php/2010/01/21/happy-microwave-cap/</link>
		<comments>http://www.daggeringcats.com/index.php/2010/01/21/happy-microwave-cap/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 09:37:17 +0000</pubDate>
		<dc:creator>aVoN</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Bullshit]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Microwave]]></category>

		<guid isPermaLink="false">http://www.daggeringcats.com/?p=597</guid>
		<description><![CDATA[My sister has latelty destroyed our microwave-cap, which is supposed to be put over the dishes in order to keep the microwave clean.
Well, she was lazy and put the dishes onto the cap, which was upside down. This resulted to the plated heating up and melting the plastic of the microwave cap. Well, this was [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/01/DSCF0036.jpg" rel="shadowbox[post-597];player=img;"><img class="alignright size-thumbnail wp-image-598" title="Happy Microwave Cap" src="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/01/DSCF0036-150x150.jpg" alt="" width="150" height="150" /></a>My sister has latelty destroyed our microwave-cap, which is supposed to be put over the dishes in order to keep the microwave clean.</p>
<p>Well, she was lazy and put the dishes onto the cap, which was upside down. This resulted to the plated heating up and melting the plastic of the microwave cap. Well, this was the result.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daggeringcats.com/index.php/2010/01/21/happy-microwave-cap/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>One more rant about GTA IV</title>
		<link>http://www.daggeringcats.com/index.php/2010/01/17/one-more-rant-about-gta-iv/</link>
		<comments>http://www.daggeringcats.com/index.php/2010/01/17/one-more-rant-about-gta-iv/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 15:32:25 +0000</pubDate>
		<dc:creator>aVoN</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[GTA IV]]></category>

		<guid isPermaLink="false">http://www.daggeringcats.com/?p=594</guid>
		<description><![CDATA[Savegames! They are stored in C:\Users\&#60;your username&#62;\AppData\Local\Rockstar Games\GTA IV\savegames and not how you could guess in the games-folder or (what is also just dumb) in your My Documents-Folder.
Seriously: Why do game-developers make so shitty shit? I have my PC configured to have 3 Partitions: System (C:\), Data/Programs/Games (D:\) and Media (E:\). I do not install [...]]]></description>
			<content:encoded><![CDATA[<p>Savegames! They are stored in <em>C:\Users\&lt;your username&gt;\AppData\Local\Rockstar Games\GTA IV\savegames</em> and not how you could guess in the games-folder or (what is also just dumb) in your <em>My Documents</em>-Folder.</p>
<p>Seriously: Why do game-developers make so shitty shit? I have my PC configured to have 3 Partitions: System (C:\), Data/Programs/Games (D:\) and Media (E:\). I do not install any app to C:\ nor do I use <em>My Documents</em>. I put all my data to D:\ and Media such as MP3s,eBooks and Videos to E:\. The best way for the developers putting savegames is in the game-folder directly! This will give users the chance to backup their games including all savegames at once.</p>
<p>Now I had to reinstall my Windows (putting back a TrueImage backup) and now my savegames are gone &#8211; Even with a full backup of my &#8220;My Documents&#8221;-Folder where you have a &#8220;RockStar/GTAIV&#8221; folder in (which I suspected to be my savegames).</p>
<p>I will now stop playing GTA IV. I can&#8217;t be arsed to play every fucking mission I did before again (I had about 30-40%), except someone gives me a savegame which I can use (Right after your original house got burned down my Dimitri and his guys).</p>
<p><strong>Edit</strong>:</p>
<p>I just found a website, <a href="http://download.gta-expert.com/" target="_blank">where you can download</a> savegames. But sadly, GTA IV disallows loading savegames not made with your own <em>Games for Windows &#8211; Live</em> account. Seriously, <span style="color: #ff0000;"><strong>what the fuck</strong></span>?</p>
<p>Now I will use a program called &#8220;XLiveLess&#8221; which removes the <em>Games for Windows &#8211; Live</em> and <em>Rockstar Social Club</em> bindings out of GTA IV. This is some sort of a crack. But hey: If they are so stupid disallowing adding savegames, put savegames to arbitrary folders which are getting easily lost after a Windows reinstallation and add copy-protection like <em>SecuRom,Games for Windows &#8211; Live</em> and <em>Rockstar Social Club</em> to the game &#8211; what do you expect?</p>
<p>Unluckily, XLiveLess disallows me using the Multiplayer mode (the coder intentionally added it to disallow cheating). But I can get around this. I simply have to remove one file out of my GTA IV folder to make it able to play online again (but which will block loading my savegames).</p>
<p><strong>tl;dr Version</strong>:</p>
<p>Just a big <font size="15pt">fuck you</font> at Microsoft and RockStar Games for their inability to make games easy and not full of nagging copy-protection shit which only annoys legit buyers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daggeringcats.com/index.php/2010/01/17/one-more-rant-about-gta-iv/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Installing Xen from Source on Debian Lenny (on a hetzner.de EQ6 server)</title>
		<link>http://www.daggeringcats.com/index.php/2010/01/11/installing-xen-from-source-on-debian-lenny/</link>
		<comments>http://www.daggeringcats.com/index.php/2010/01/11/installing-xen-from-source-on-debian-lenny/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 20:42:10 +0000</pubDate>
		<dc:creator>aVoN</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.daggeringcats.com/?p=589</guid>
		<description><![CDATA[Xen is a very powerfull virtualization program, which also allows using techniques like AMD Pacifica or Intel Vanderpool to run the virtualized OS directly on the hardware of the machine without any emulation. This makes it very powerfull and fast compared to an emulated OS. But it actually is a pain in the neck if [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/01/xenbackground.gif" rel="shadowbox[post-589];player=img;"><img class="alignright size-full wp-image-590" title="xenbackground" src="http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/01/xenbackground.gif" alt="" width="339" height="106" /></a>Xen is a very powerfull virtualization program, which also allows using techniques like <a href="http://en.wikipedia.org/wiki/X86_virtualization#AMD_virtualization_.28AMD-V.29">AMD Pacifica</a> or <a href="http://en.wikipedia.org/wiki/X86_virtualization#Intel_Virtualization_Technology_for_x86_.28Intel_VT-x.29">Intel Vanderpool</a> to run the virtualized OS directly on the hardware of the machine without any emulation. This makes it very powerfull and fast compared to an emulated OS. But it actually is a pain in the neck if you want to install it and are a newbie concerning virtualization.</p>
<p>This tutorial now shows you how to compile the necessary Xen-Kernels and how to set up some example VMs running Linux itself again and Windows. <span id="more-589"></span>It also is strongly adviced not to use the Xen-Version available in the update-manager of your OS (e.g. apt-get) because it is in most cases outdated.</p>
<p>First of all: How is Xen managed?</p>
<ul>
<li>Xen runs different OS which are called Domains</li>
<li>Dom0 is the Host-OS which directly runs on the hardware and manages access to the hardware for other OS</li>
<li>DomU&#8217;s are virtualized OS which run upon the Dom0.</li>
<li>Dom0 needs a special kernel for hypervising the hardware. The compiling-steps are showed below.</li>
<li>DomU&#8217;s (if Linux) need a special kernel to run (para-virtualization). The compiling-steps are showed below.</li>
<li>If the DomU is Windows, your Hardware needs to support <a href="http://en.wikipedia.org/wiki/X86_virtualization#AMD_virtualization_.28AMD-V.29">AMD Pacifica</a> or <a href="http://en.wikipedia.org/wiki/X86_virtualization#Intel_Virtualization_Technology_for_x86_.28Intel_VT-x.29">Intel Vanderpool</a>. Check this with <em>xm dmesg | egrep &#8216;(VMX|SVM)&#8217;</em></li>
</ul>
<hr />
<h3>Compiling Xen Kernels</h3>
<p>Assuming you have Debian Lenny installed, make sure you have all necessary tools for compiling and running Xen</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> bcc bin86 <span style="color: #c20cb9; font-weight: bold;">gawk</span> bridge-utils iproute libcurl3 libcurl4-openssl-dev <span style="color: #c20cb9; font-weight: bold;">bzip2</span> module-init-tools transfig tgif texinfo pciutils-dev mercurial build-essential <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">gcc</span> libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev <span style="color: #c20cb9; font-weight: bold;">patch</span> libvncserver-dev libsdl-dev libjpeg62-dev linux-headers-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`</span></pre></div></div>

<p>If you have a 64bit OS, also run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gcc-multilib</pre></div></div>

<p>Now download Xen from <a href="http://www.xen.org/products/xen_source.html" target="_blank">Xen.org</a> and unpack it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>bits.xensource.com<span style="color: #000000; font-weight: bold;">/</span>oss-xen<span style="color: #000000; font-weight: bold;">/</span>release<span style="color: #000000; font-weight: bold;">/</span>3.4.2<span style="color: #000000; font-weight: bold;">/</span>xen-3.4.2.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzf</span> xen-3.4.2.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> xen-3.4.2</pre></div></div>

<p>Now start compiling the Dom0 and DomU kernel. This will take several minutes. Better get a drink &#8211; or two.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #660033;">-j4</span> world <span style="color: #007800;">KERNELS</span>=<span style="color: #ff0000;">&quot;linux-2.6-xen0&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #660033;">-j4</span> world <span style="color: #007800;">KERNELS</span>=<span style="color: #ff0000;">&quot;linux-2.6-xenU&quot;</span></pre></div></div>

<p>Once both is done without any errors, run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> linux-<span style="color: #000000;">2.6</span>-xen0-config <span style="color: #007800;">CONFIGMODE</span>=menuconfig
<span style="color: #c20cb9; font-weight: bold;">make</span> linux-<span style="color: #000000;">2.6</span>-xenU-config <span style="color: #007800;">CONFIGMODE</span>=menuconfig</pre></div></div>

<p>You may get asked for setting options manually by a prompt for the Dom0 Kernel. I personally prefer the following options, but you have to decide what you want and what not.<br />
<a class="spoiler_link_show" href="javascript:void(0)" onclick="wpSpoilerToggle(document.getElementById('id2108511942'), this, 'show', 'hide')">show</a>
<div class="spoiler_div" id="id2108511942" style="display:none"></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># y: yes, n: no, M: compile as kernel-module</span>
<span style="color: #666666; font-style: italic;">### Memory settings and PCI-Passthrough options.</span>
PRECACHE: y
PRESWAP: y
X86_MCE: y
PCI_GUESTDEV: y
PCI_IOMULTI: y
PCI_RESERVE: y
PCI_IOV: y
&nbsp;
<span style="color: #666666; font-style: italic;">### IMQ: This made Xen not boot for me, when all set to y</span>
IP_NF_TARGET_IMQ: n
IP6_NF_TARGET_IMQ: n
IMQ: n
&nbsp;
<span style="color: #666666; font-style: italic;">### Networkdriver support</span>
IGB: y
E1000E: y
IXGBE: y
&nbsp;
<span style="color: #666666; font-style: italic;">### Xen-Kernel crashed with this option enabled for me</span>
SENSORS_CORETEMP: n
&nbsp;
IPATH_CORE: n
&nbsp;
RTC_DRV_CMOS: M
&nbsp;
<span style="color: #666666; font-style: italic;">### USB Passthrough options</span>
XEN_USB_BACKEND: M
XEN_USB_FRONTEND: M
XEN_USB_FRONTEND_HCD_STATS: y
XEN_USB_FRONTEND_HCD_PM: n</pre></div></div>

<p></div>
<br />
In the menuconfig you can now chose your settings. I prefer to set the processor-architecture to the one which runs on the server (Intel EMT64 for x64 capable Intel or AMDx64 for x64 AMD CPUs) and increasing the kernel-time to 1000 Hz (for gameserver optimization).</p>
<p>Once both is done without any errors, install the current Dom0 Kernel to your Host OS:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> dist
.<span style="color: #000000; font-weight: bold;">/</span>install.sh</pre></div></div>

<p>Register startscripts for the Xen-Daemon</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">update-rc.d xend defaults <span style="color: #000000;">20</span> <span style="color: #000000;">21</span>
update-rc.d xendomains defaults <span style="color: #000000;">21</span> <span style="color: #000000;">20</span></pre></div></div>

<p>Build dependencies</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">depmod 2.6.18.8-xen0</pre></div></div>

<p>Update kernels and the bootmanager grub.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">update-initramfs <span style="color: #660033;">-c</span> <span style="color: #660033;">-k</span> 2.6.18.8-xen0
update-grub</pre></div></div>

<p>Now, the Xen-Dom0-Kernel is installed to your Host-OS. It will be available after a restart.<br />
<strong>Attention</strong>: We experienced a problem, where after a restart our network devices got renamed from eth0 to eth1. This rendered our server&#8217;s network config useless and we weren&#8217;t able to connect to the server anymore. So make sure, this does not happen to you. If so, modify your network script</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>interfaces</pre></div></div>

<p>and rename eth0 to eth1 to make networking run again.</p>
<p>If everything is prepared, restart your system with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">shutdown <span style="color: #660033;">-r</span> now</pre></div></div>

<p>and check, if the Xen-Kernel is loaded with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-r</span></pre></div></div>

<p>It should return stuff similar to</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">2.6.18.8-xen0</pre></div></div>

<hr />
<h3>Preparing Guests/DomU&#8217;s</h3>
<p><strong>Linux Guests</strong><br />
If your Guest is a Linux-System, you need to make it use Xen&#8217;s specialized DomU Kernel, which you have compiled above already. Assuming, you have created a space where your Guest-OS writes it&#8217;s data to (either to an image  &#8211; slow &#8211; or directly to a partition using e.g. LVM &#8211; fast), you can create a start-script for it in the Xen-Folder. The below example uses a partition for writing the data.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">nano</span> linux</pre></div></div>

<p>Add the following lines</p>
<p><a class="spoiler_link_show" href="javascript:void(0)" onclick="wpSpoilerToggle(document.getElementById('id638823182'), this, 'show', 'hide')">show</a>
<div class="spoiler_div" id="id638823182" style="display:none"></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">kernel = <span style="color: #ff0000;">&quot;/boot/vmlinuz-2.6.18.8-xenU&quot;</span> <span style="color: #666666; font-style: italic;">#Use the DomU Kernel!</span>
ramdisk = <span style="color: #ff0000;">&quot;/boot/initrd.img-2.6.18.8-xen0&quot;</span>
memory = <span style="color: #000000;">512</span>
name = <span style="color: #ff0000;">&quot;linux&quot;</span>
cpus = <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">&quot;0&quot;</span>, <span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #666666; font-style: italic;"># Use the CPU's Core 0 and 1</span>
vcpus = <span style="color: #000000;">2</span> <span style="color: #666666; font-style: italic;">#How much &quot;Virtual&quot; CPUs do you want to &quot;emulate&quot; for that Guest?</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#vif is the virtual network interface, which is present on the HOST (Dom0). Tell it the IP to use to connect to the internet. The mac-setting is not necessary, but keeps it constant once set here (and not randomly assigned which can cause havoc)</span>
vif = <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">'ip=123.123.123.123,mac=00:16:3e:00:00:01,vifname=linux-vif'</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Where should be the partition mounted to (/home/xen/linux) and what is it's physical address (/dev/hda1)</span>
<span style="color: #666666; font-style: italic;">#Also specifies path to the installer-CD/DVD image in order to install that OS.</span>
disk = <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">'phy:/home/xen/linux,/dev/hda1,w'</span>,<span style="color: #ff0000;">'file:/home/linux_install_image.iso,hdc:cdrom,r'</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
root = <span style="color: #ff0000;">&quot;/dev/hda1&quot;</span>
&nbsp;
extra = <span style="color: #ff0000;">'console=xvc0 xencons=tty'</span> <span style="color: #666666; font-style: italic;">#allow the VM to be accessed by the Xen-Console</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#What to do on shutdown etc</span>
on_poweroff = <span style="color: #ff0000;">'destroy'</span>
on_reboot = <span style="color: #ff0000;">'restart'</span>
on_crash = <span style="color: #ff0000;">'restart'</span></pre></div></div>

<p></div>
</p>
<p>Try starting the VM with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xm create linux</pre></div></div>

<p>You can now install your preferred Linux OS from the ISO CD-Image. But my suggestion is (assuming you use Debian as Dom0) using <a href="http://www.debian-administration.org/articles/426" target="_blank">debootstrap</a>.<br />
After the successful boot, you should be able to access the console now with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xm console linux</pre></div></div>

<p>You can shutdown that VM using</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xm shutdown linux</pre></div></div>

<p>or kill it with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xm destroy linux</pre></div></div>

<p><strong>Windows Guests</strong></p>
<p>Also make sure, you have a place where the files are written to (either an image  &#8211; slow &#8211; or directly to a partition using e.g. LVM &#8211; fast). The below&#8217;s example uses a partition.<strong><br />
</strong></p>
<p>Then create a start-script<strong><br />
</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">nano</span> windows</pre></div></div>

<p>Here, it should look like<br />
<a class="spoiler_link_show" href="javascript:void(0)" onclick="wpSpoilerToggle(document.getElementById('id1873526005'), this, 'show', 'hide')">show</a>
<div class="spoiler_div" id="id1873526005" style="display:none"></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">import os, re
<span style="color: #c20cb9; font-weight: bold;">arch</span> = os.uname<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">if</span> re.search<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'64'</span>, <span style="color: #c20cb9; font-weight: bold;">arch</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:
    arch_libdir = <span style="color: #ff0000;">'lib64'</span>
<span style="color: #000000; font-weight: bold;">else</span>:
    arch_libdir = <span style="color: #ff0000;">'lib'</span>
&nbsp;
kernel = <span style="color: #ff0000;">&quot;/usr/lib/xen/boot/hvmloader&quot;</span>
<span style="color: #007800;">builder</span>=<span style="color: #ff0000;">'hvm'</span>
memory = <span style="color: #000000;">512</span>
&nbsp;
cpus = <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">&quot;0&quot;</span>,<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #666666; font-style: italic;"># Use the CPU's Core 0 and 1</span>
vcpus = <span style="color: #000000;">3</span> <span style="color: #666666; font-style: italic;">#How much &quot;Virtual&quot; CPUs do you want to &quot;emulate&quot; for that Guest?</span>
&nbsp;
shadow_memory = <span style="color: #000000;">16</span> <span style="color: #666666; font-style: italic;"># Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.</span>
name = <span style="color: #ff0000;">&quot;windows&quot;</span>
vif = <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">'ip=123.123.123.123,mac=00:16:3e:00:02:01,vifname=win-vif'</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
acpi = <span style="color: #000000;">1</span>
apic = <span style="color: #000000;">1</span> <span style="color: #666666; font-style: italic;">#Necessary for MULTI-CORE setup</span>
disk = <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">'phy:/home/xen/win,hda,w'</span>,<span style="color: #ff0000;">'file:/home/windows.iso,hdc:cdrom,r'</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> 
&nbsp;
device_model = <span style="color: #ff0000;">'/usr/'</span> + arch_libdir + <span style="color: #ff0000;">'/xen/bin/qemu-dm'</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Boot-order. d is the cdrom (hdc)</span>
<span style="color: #007800;">boot</span>=<span style="color: #ff0000;">&quot;cd&quot;</span>
<span style="color: #007800;">sdl</span>=<span style="color: #000000;">0</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Optimizes Xen for running Windows</span>
<span style="color: #007800;">guest_os_type</span>=<span style="color: #ff0000;">'windows'</span>
&nbsp;
<span style="color: #007800;">serial</span>=<span style="color: #ff0000;">'pty'</span>
<span style="color: #007800;">usbdevice</span>=<span style="color: #ff0000;">'tablet'</span>
<span style="color: #007800;">keymap</span>=<span style="color: #ff0000;">&quot;de&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#What to do on shutdown etc</span>
on_poweroff = <span style="color: #ff0000;">'destroy'</span>
on_reboot = <span style="color: #ff0000;">'restart'</span>
on_crash = <span style="color: #ff0000;">'restart'</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#VNC: Probably required for you for installation</span>
<span style="color: #007800;">vnc</span>=<span style="color: #000000;">1</span> <span style="color: #666666; font-style: italic;">#TURN THIS OFF AFTER INSTALLATION,OR FEAR SECURITY ISSUES</span>
<span style="color: #007800;">vncconsole</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">vncpasswd</span>=<span style="color: #ff0000;">'yoursecretvncpassword'</span>
<span style="color: #007800;">vnclisten</span>=<span style="color: #ff0000;">'0.0.0.0'</span></pre></div></div>

<p></div>
<br />
The start and stop commands are similar to the one of the linux system above. Just replace <em>linux</em> by <em>windows</em>.</p>
<p>Once you started the VM for the first time, you need to connect to the machine via VNC on &lt;Dom0.IP&gt; :9001 in order to make the OS install. VNC is enabled in the config-file above by default.<br />
<strong>Note</strong>: Make sure to disable VNC once the installation is done or you risk a security threat!</p>
<hr />
<h3>Making the Network work</h3>
<p>This can be really a pain in the ass. If you run Xen at home or if you are allowed to use network-bridging, you only have to change a few things in Xen&#8217;s config.</p>
<p>First make sure, what your network-device name on Dom0  is (remember: for us, Xen renamed it from eth0 to eth1). Find this out with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #660033;">-a</span></pre></div></div>

<p>Now edit the Xen-Config&#8230;</p>
<p><strong>Dom0 Network-Bridging setup</strong> (does not work with hetzner.de)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>xen<span style="color: #000000; font-weight: bold;">/</span>xend-config.sxp</pre></div></div>

<p>and modify the network-lines by adding the netdev settings.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>network-script <span style="color: #ff0000;">'network-bridge netdev=eth1'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>vif-script     <span style="color: #ff0000;">'vif-bridge netdev=eth1'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Restart the Xen-Daemon with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>xend restart</pre></div></div>

<p><strong>Note</strong>: Our hoster (hetzner.de) does not allow the bridging. So instead we need the route-scripts which are now described below.</p>
<p><strong>Dom0 </strong><strong>Network-Routing setup</strong> (only option which works on hetzner.de servers)<br />
Comment out</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#(network-script 'network-bridge netdev=eth1')</span>
<span style="color: #666666; font-style: italic;">#(vif-script     'vif-bridge netdev=eth1')</span></pre></div></div>

<p>and add the lines</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>network-script <span style="color: #ff0000;">'network-route netdev=eth1'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>vif-script     <span style="color: #ff0000;">'vif-route netdev=eth1'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Now you also have to edit <em>/etc/xen/scripts/vif-common.sh</em><br />
Find the ip_of(){&#8230;} block and replace it by</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ip_of<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#123;</span>
<span style="color: #666666; font-style: italic;">#  ip addr show &quot;$1&quot; | awk &quot;/^.*inet.*$1\$/{print \$2}&quot; | sed -n '1 s,/.*,,p' #Old code!</span>
  ip <span style="color: #660033;">-4</span> <span style="color: #660033;">-o</span> addr show primary dev $<span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'$3 == &quot;inet&quot; {print $4; exit}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s!/.*!!'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>Restart the Xen-Daemon with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>xend restart</pre></div></div>

<p>Now edit <em>/etc/sysctl.conf</em> and make it look like</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">### Hetzner Online AG installimage</span>
<span style="color: #666666; font-style: italic;"># sysctl config</span>
<span style="color: #666666; font-style: italic;">#Default Hetzner.cfg</span>
<span style="color: #666666; font-style: italic;">##net.ipv4.ip_forward=1</span>
<span style="color: #666666; font-style: italic;">#net.ipv4.conf.all.rp_filter=1</span>
<span style="color: #666666; font-style: italic;">#net.ipv4.icmp_echo_ignore_broadcasts=1</span>
&nbsp;
net.ipv4.conf.all.rp_filter=<span style="color: #000000;">1</span>
net.ipv4.icmp_echo_ignore_broadcasts=<span style="color: #000000;">1</span>
&nbsp;
net.ipv4.ip_forward=<span style="color: #000000;">1</span>
net.ipv6.conf.all.forwarding=<span style="color: #000000;">1</span>
<span style="color: #666666; font-style: italic;">#net.ipv4.conf.all.proxy_arp=1</span>
net.ipv4.conf.default.proxy_arp=<span style="color: #000000;">1</span></pre></div></div>

<p>Make this changes available with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sysctl <span style="color: #660033;">-p</span></pre></div></div>

<p>Configure the network-settings in <em>/etc/network/interfaces</em> to look like</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">auto lo
iface lo inet loopback
&nbsp;
<span style="color: #666666; font-style: italic;"># device: eth1</span>
auto  eth1
iface eth1 inet static
	address   111.111.111.111 <span style="color: #666666; font-style: italic;">#Ip of this server</span>
	netmask   255.255.255.192
	gateway   100.100.100.100 <span style="color: #666666; font-style: italic;">#Ip of the gateway</span>
	pointopoint 100.100.100.100 <span style="color: #666666; font-style: italic;">#This is important to make routing work (gatway IP)</span></pre></div></div>

<p>Make sure, there are no additional <em>up route</em> lines anywhere. The above settings are totally sufficient!</p>
<hr /><strong>DomU network setup &#8211; Linux</strong></p>
<p>That&#8217;s quite easy. Just edit /etc/network/interfaces and add</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">auto lo
iface lo inet loopback
&nbsp;
<span style="color: #666666; font-style: italic;"># The primary network interface</span>
auto eth0
iface eth0 inet static
	address 122.122.122.122
	netmask 255.255.255.192 <span style="color: #666666; font-style: italic;">#Same as Dom0</span>
	gateway 111.111.111.111 <span style="color: #666666; font-style: italic;">#Dom0 IP</span>
	pointopoint 111.111.111.111 <span style="color: #666666; font-style: italic;">#Dom0 IP</span>
	post-up <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>ip route add default dev eth0</pre></div></div>

<p><strong>DomU network setup &#8211; Windows</strong></p>
<p>That&#8217;s not that easy. First of all, make sure you allow the installation of unsigned drivers if you run a x64 OS. Login to the OS (if installed) using eg VNC &#8211; look at the windows-installation-steps concerning VNC (network and therefore the remote-desktop shouldn&#8217;t work yet).<br />
Run this in a command-prompt (if x64 only!)</p>

<div class="wp_syntax"><div class="code"><pre class="bath" style="font-family:monospace;">bcdedit /set testsigning on
bcdedit /set loadoptions DDISABLE_INTEGRITY_CHECKS</pre></div></div>

<p>Reboot. Now Windows should boot up with &#8220;Testmode&#8221; in the right lower corner.</p>
<p>Now install the <a href="http://wiki.xensource.com/xenwiki/XenWindowsGplPv?highlight=%28gplpv%29" target="_blank">GPLPV</a> driver for Windows and reboot if asked. They allow Windows to use PCI-Passthrough and you will gain a noticeable performance boost from this.</p>
<p>Once rebooted one more time, you can configure the network. Set the IP of your server. The netmask has to be the one of the Dom0 and the gateway should be the IP of Dom0. As DNS, use the DNS servers of your hoster (for hetzner.de, you find the IPs <a href="http://wiki.hetzner.de/index.php/Hetzner_Standard_Name_Server" target="_blank">here</a>).</p>
<p>Now networking should work.</p>
<p><strong>Note</strong>: I experience a low download-rate (around 12 kb/s) from my server while the upload to it was fast (maximum speed). This was caused by a network-driver-option of the GPLPV drivers. Go to <em>Controlpanel/System/Hardware/Networkadapters/Xen Net Device Driver</em> and click properties. At <em>Extended</em>, go to <em>Large Send Offload</em> and disable this option.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daggeringcats.com/index.php/2010/01/11/installing-xen-from-source-on-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>New design</title>
		<link>http://www.daggeringcats.com/index.php/2010/01/10/new-design/</link>
		<comments>http://www.daggeringcats.com/index.php/2010/01/10/new-design/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 20:09:00 +0000</pubDate>
		<dc:creator>aVoN</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.daggeringcats.com/?p=588</guid>
		<description><![CDATA[How you can see, I have updated the whole website&#8217;s design to this cool one. It took me half the day because this wasn&#8217;t the only thing to do. I had first to update all my wordpress addons and wordpress itself and then I needed to modify this design and fix nasty bugs.
Anyway, it is [...]]]></description>
			<content:encoded><![CDATA[<p>How you can see, I have updated the whole website&#8217;s design to this cool one. It took me half the day because this wasn&#8217;t the only thing to do. I had first to update all my wordpress addons and wordpress itself and then I needed to modify this design and fix nasty bugs.</p>
<p>Anyway, it is done now. I&#8217;d also like to announce, that our <a href="http://www.daggeringcats.com/index.php/server/teamspeak/">Teamspeak 3</a> server is available now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daggeringcats.com/index.php/2010/01/10/new-design/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>GTA IV &#8211; Ruined by DRM</title>
		<link>http://www.daggeringcats.com/index.php/2010/01/07/gta-iv-ruined-by-drm/</link>
		<comments>http://www.daggeringcats.com/index.php/2010/01/07/gta-iv-ruined-by-drm/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 18:29:53 +0000</pubDate>
		<dc:creator>aVoN</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.daggeringcats.com/index.php/2010/01/07/gta-iv-ruined-by-drm/</guid>
		<description><![CDATA[When Steam had his amazing holiday-sale off, i bought GTA IV for about $7 and I was happy I got a game that cheap. But quite just a few moments later I realized why I was boycotting this game in the earlier days: It is “copy protected” by SecuRom and you have to register this [...]]]></description>
			<content:encoded><![CDATA[<p>When Steam had his amazing holiday-sale off, i bought GTA IV for about $7 and I was happy I got a game that cheap. But quite just a few moments later I realized why I was boycotting this game in the earlier days: It is “copy protected” by SecuRom and you have to register this game to “Rockstar Social Club” (RSC) and “Games for Windows – Live” (GWL) so the torture began.</p>
<p>I started the game for the very first time and that RSC-Window popped up, nagging me to register. So did I. I logged in to my account on RSC and started the game. Everything seemed to work but then the game simply kept hanging at “Changing Language” all the time. It nearly made me rage. After about 10 restarts of the game, I googled that specific error and found out, that I have to press POS1 on my keyboard (it never told me to do that within these 10 starts) to make the GWL-popup appearing. So one more freaking service I have to register to before I can play. So I turned off GTA IV, went to the RSC-Website and logged in there. There was an option I remembered seeing before which was about “linking Rockstar Social Club to Games for Windows”. I pressed this and got referred to a website which allowed me to register. I did and activated all. Then I hoped being able to login but I wasn’t! This dumbshit RSC referred me to “Windows Live” which is not “Games for Windows – Live” – What the hell.</p>
<p>Anyway, after I figured that out, I wasted more than one hour making that game run. And that just because of motherfucking DRM. Seriously. I play a game which is already protected by Steam but now also needs SecurRom installed (why? I have no disc I could copy) and being registered to “Rockstar Social Club” (why? That game is already registered exclusively to my steam account) and “Games for Windows – Live” (same why question as for RSC).</p>
<p>This is the kind of shit, why other people actually pirated games: To get rid of these nagging shit. (The game itself is fun of course!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daggeringcats.com/index.php/2010/01/07/gta-iv-ruined-by-drm/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>The website is back</title>
		<link>http://www.daggeringcats.com/index.php/2010/01/06/the-website-is-back/</link>
		<comments>http://www.daggeringcats.com/index.php/2010/01/06/the-website-is-back/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 19:47:41 +0000</pubDate>
		<dc:creator>aVoN</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.daggeringcats.com/index.php/2010/01/06/the-website-is-back/</guid>
		<description><![CDATA[Finally, after a really really long downtime (sorry guys), my server and website is back and running again. The reasons for the downtime were various. First of all, our old hoster set our server offline because it got hacked. Additionally, after we were going to buy a new and faster one, we had billing issues [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, after a really really long downtime (sorry guys), my server and website is back and running again. The reasons for the downtime were various. First of all, our old hoster set our server offline because it got hacked. Additionally, after we were going to buy a new and faster one, we had billing issues which I do not want to discuss in detail now. Also many members were busy and so the server kept offline.</p>
<p>Anyway, now we have a new server. It is hosted by hetzner.de. It has a Core i7-920, 12 GB RAM and 3 TB harddisk. The connection is 100 MBit/s wide. Various virtual servers run on it (for now two Linux servers and one Windows) which are virtualized by Xen (I will probably write a post about Xen in the future because installing out of source it is not really easy).</p>
<p>My gameservers are also back. You can see their details on the right. Have fun <img src='http://www.daggeringcats.com/wordpress/wp-content/plugins/tango-smileys-extended/tango/smile.png' alt='Smile' title='Smile' class='tse-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daggeringcats.com/index.php/2010/01/06/the-website-is-back/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
