<?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>KennyNet &#187; dk2</title>
	<atom:link href="http://www.kennynet.co.uk/tag/dk2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kennynet.co.uk</link>
	<description>Ramblings of a PHP developer</description>
	<lastBuildDate>Fri, 02 Dec 2011 14:05:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>DK2 Editor &#8211; Adding Actions to Hero Party Members PATCH</title>
		<link>http://www.kennynet.co.uk/2008/06/12/dk2-editor-adding-actions-to-hero-party-members-patch/</link>
		<comments>http://www.kennynet.co.uk/2008/06/12/dk2-editor-adding-actions-to-hero-party-members-patch/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 07:55:10 +0000</pubDate>
		<dc:creator>Kenny Millington</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[dk2]]></category>
		<category><![CDATA[dungeon keeper 2]]></category>
		<category><![CDATA[hero parties]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://www.kennynet.co.uk/blog/?p=5</guid>
		<description><![CDATA[So (quite a few years on) I started playing Dungeon Keeper 2 again &#8211; it&#8217;s still a great game and very recommended. Having completed the single campaign I thought it&#8217;d be fun to start making my own levels, however I hit a problem in that the DK2 Editor crashes under both WinXP (and Win98 &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>So (quite a few years on) I started playing Dungeon Keeper 2 again &#8211; it&#8217;s still a great game and very recommended.</p>
<p>Having completed the single campaign I thought it&#8217;d be fun to start making my own levels, however I hit a problem in that the DK2 Editor crashes under both WinXP (and Win98 &#8211; yes, I tried it&#8230;) when trying to add an Action to a Hero Party member. This is quite annoying since if you have the Lord of the Land in a hero party you&#8217;re unable to setup some important actions, like: &#8220;Attach Portal Gem&#8221; and &#8220;Make Objective&#8221;.</p>
<p>Searching the newsgroup <a href="http://groups.google.com/group/alt.games.dungeon-keeper/topics">alt.games.dungeon-keeper</a>. I found someone (MercAngel) who&#8217;d figured out a patch to make this work, however it didn&#8217;t work on WinXP but it did work on Win98 &#8211; but it&#8217;s tiresome to have to load up my Win98 virtual machine everytime I want to create actions under hero party members so I thought I&#8217;d look into this myself and see if I could get it to work under WinXP.</p>
<p>After an hour or two of poking around in OllyDbg I&#8217;d come up with something that appears to work! It resembles MercAngel&#8217;s patch in quite a few ways (so credit to him).</p>
<p>For ease of installation I&#8217;ve created a patch program using PatchWise which you can download from here: <a href="http://www.kennynet.co.uk/misc/dk2heropartyactionfix.zip">dk2heropartyactionfix.zip</a>.</p>
<p>Note: YOU USE THIS PATCH ENTIRELY AT YOUR OWN RISK.</p>
<p>It seems to work, and personally, I&#8217;d use it but it&#8217;s for you to decide if you want to use it. All I will say is that if it crashes while trying to do something different then you could use the patched DK2 Editor to add/edit hero party actions and the original unpatched one to  do everything else.</p>
<p>For those who are curious about what it patches, here&#8217;s the output of a binary file comparison using fc:-</p>
<pre>C:\km\dk2edit&gt;fc /b "DK2 Editor.exe.old" "DK2 Editor.exe"
Comparing files DK2 Editor.exe.old and DK2 EDITOR.EXE
0001B4E3: C3 83
0001B4E4: 90 F8
0001B4E5: 90 00
0001B4E6: 90 75
0001B4E7: 90 03
0001B4E8: 90 8D
0001B4E9: 90 41
0001B4EA: 90 0C
0001B4EB: 90 C3</pre>
<p>And the difference in the assembly:-</p>
<pre>OLD:
:0041B4E0 8B410C                 mov eax, dword[ecx+0C]
:0041B4E3 C3                     ret

:0041B4E4 90 90 90 90 90 90 90 90 90 90 90 90               ............

NEW:
:0041B4E0 8B410C                 mov eax, dword[ecx+0C]
:0041B4E3 83F800                 cmp eax, 000
:0041B4E6 7503                   jne 0041B4EB
:0041B4E8 8D410C                 lea eax, dword[ecx+0C]
:0041B4EB C3                     ret
:0041B4EC 90 90 90 90                                       ....</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kennynet.co.uk/2008/06/12/dk2-editor-adding-actions-to-hero-party-members-patch/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

