<?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>LegacyWorlds Beta 6 &#187; countermeasures</title>
	<atom:link href="http://blog.legacyworlds.com/index.php/tag/countermeasures/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.legacyworlds.com</link>
	<description>Updates on the new version's design and progress</description>
	<lastBuildDate>Thu, 12 Aug 2010 08:12:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Milestone 2 &#8211; Battle system</title>
		<link>http://blog.legacyworlds.com/index.php/2010-07-29/milestone-2-battle-system/</link>
		<comments>http://blog.legacyworlds.com/index.php/2010-07-29/milestone-2-battle-system/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 21:20:11 +0000</pubDate>
		<dc:creator>TSeeker</dc:creator>
				<category><![CDATA[Game design]]></category>
		<category><![CDATA[Milestones]]></category>
		<category><![CDATA[battles]]></category>
		<category><![CDATA[countermeasures]]></category>
		<category><![CDATA[fleets]]></category>
		<category><![CDATA[ground armies]]></category>
		<category><![CDATA[ground combat]]></category>
		<category><![CDATA[milestone 2]]></category>
		<category><![CDATA[ships]]></category>
		<category><![CDATA[space combat]]></category>
		<category><![CDATA[strategies]]></category>
		<category><![CDATA[tactics]]></category>
		<category><![CDATA[weapons]]></category>

		<guid isPermaLink="false">http://blog.legacyworlds.com/?p=191</guid>
		<description><![CDATA[While I had considered posting about fleet strategies and tactics, I thought it would be more appropriate to start from the beginning – the battle system itself. There are two major computations performed by the battle system. First, space combat is computed. Once this part is over, and provided there are still attacking ships in [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } -->While I had considered posting about fleet strategies and tactics, I thought it would be more appropriate to start from the beginning – the battle system itself.</p>
<p>There are two major computations performed by the battle system. First, space combat is computed. Once this part is over, and provided there are still attacking ships in orbit, computations regarding ground combat are performed. Once these two main chunks have been computed, experience points are attributed.</p>
<p>This posts attempts to explain what the various steps of each computation are and how they work, generally speaking.</p>
<p><span id="more-191"></span></p>
<div id="attachment_192" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.legacyworlds.com/wp-content/uploads/2010/07/b6m2-battlesystem.png" rel="lightbox[191]" title="Milestone 2's battle system"><img class="size-medium wp-image-192" title="Milestone 2's battle system" src="http://blog.legacyworlds.com/wp-content/uploads/2010/07/b6m2-battlesystem-300x272.png" alt="" width="300" height="272" /></a><p class="wp-caption-text">This flowchart shows the essential steps of the battle computations. Exit conditions and various internal steps have been omitted for clarity.</p></div>
<p><strong>Space combat</strong></p>
<p>The first step of space combat is fleet updates. When attacking fleets first start a battle or when fleets join an ongoing battle, they suffer “time dilation” which causes them to be less efficient for some time. This time dilation effect must be decreased over time.</p>
<p>Once fleets&#8217; time dilation strengths have been updated, ships need to undergo various systematic updates: ships that can repair themselves will regain hit points, countermeasures will recover from previous damage absorption, and weapons will charge or cool down. If no weapons are ready to fire, then the space combat computation is over.</p>
<p>If there are weapons ready to fire, the first step is target selection. If a weapon already has a target, there&#8217;s a chance it might still select another target – this depends on a fleet&#8217;s strategy (for planet-based weapon platforms, there is a fixed, very small probability of target change). If such a change needs to occur, or if the weapon had no target for some other reason, it will seek a target based on the fleet&#8217;s (or the planet&#8217;s) tactics – basically, it can select targets by size, weaponry or defences, with different priorities. An attacking fleet&#8217;s strategy will determine whether the weapon may target the planet&#8217;s infrastructure.</p>
<p>Once weapons have selected their targets, they may fire. A computation is performed to determine whether the weapon actually hits, whether the shot may be intercepted and which amount of damage it would cause on a “naked” ship from various variables such as the ship&#8217;s experience, current hit points, manoeuvrability&#8230; When a weapon fires, there&#8217;s also a small chance of a critical hit, which cannot be intercepted and deals twice as much damage.</p>
<p>Depending on strategy settings, some ships may try to intercept shots aimed at other fleets or at the planet. Such an interception depends on how successful the aim was, and on various other factors such as how many hits the intercepting fleet might sustain. A successful intercept will cause the ship that intercepted the shot to take the damage – which is particularly useful to defend planets. No ship can intercept two shots in a single battle update, however.</p>
<p>Once the destination of all shots have been computed, the corresponding damage is inflicted to ships and buildings. Ships may have countermeasures which can sometimes absorb part or totality of the damage. Of course, should a ship or building reach 0 hit points, it is destroyed. In addition, any ships or buildings that provide ground armies will have their army strength reduced accordingly.</p>
<p><strong>Ground combat</strong></p>
<p>Once space combat has been resolved, and provided there are any attacking ships left, the computation of ground combat begins.</p>
<p>First, the ground defence advantage is computed. It is determined by the amount and type of ships supporting ground troupes, by the amount and type of military buildings, and by the population&#8217;s happiness.</p>
<p>The support that fleets provide for ground armies may vary depending on a fleet&#8217;s current strategy. Fleet strategy also determines whether ships that carry armies should drop the troupes to the planet&#8217;s surface or attempt to extract them.</p>
<p>Once the system knows which armies are on the planet, providing there are both attacking and defending armies, ground combat is computed. The damage dealt by either side is mostly determined by the advantage value, although their respective sizes has an influence. Finally, damage is applied to armies (and to the corresponding ships or buildings).</p>
<p><strong>Assigning experience points</strong></p>
<p>After all actual fighting has been computed, experience points are given to ships (buildings will have no XP in milestone 2, but that might change later). The amount of experience points granted to a ship is determined by the damage it inflicted to other ships, by the shots it intercepted, and by the damage the ground armies it carries inflicted.</p>
<p><strong>Next time&#8230;</strong></p>
<p>… I will explain the mechanics of space combat more precisely, and how it is affected by fleet tactics and strategies.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://blog.legacyworlds.com/index.php/2010-07-29/milestone-2-battle-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Milestone 2 &#8211; Weapons and defences</title>
		<link>http://blog.legacyworlds.com/index.php/2010-07-27/milestone-2-weapons-and-defences/</link>
		<comments>http://blog.legacyworlds.com/index.php/2010-07-27/milestone-2-weapons-and-defences/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 17:21:17 +0000</pubDate>
		<dc:creator>TSeeker</dc:creator>
				<category><![CDATA[Game design]]></category>
		<category><![CDATA[Milestones]]></category>
		<category><![CDATA[battles]]></category>
		<category><![CDATA[countermeasures]]></category>
		<category><![CDATA[defences]]></category>
		<category><![CDATA[fleets]]></category>
		<category><![CDATA[milestone 2]]></category>
		<category><![CDATA[ships]]></category>
		<category><![CDATA[weapons]]></category>

		<guid isPermaLink="false">http://blog.legacyworlds.com/?p=185</guid>
		<description><![CDATA[I am currently working on designing the M2 database. While quite a lot of the basic structure stays, there are many changes, especially as far as fleets and battles are concerned. In order to make sure that the fleet-related information is complete, the most crucial component is the battle system. It affects a few things [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently working on designing the M2 database. While quite a lot of the basic structure stays, there are many changes, especially as far as fleets and battles are concerned.</p>
<p>In order to make sure that the fleet-related information is complete, the most crucial component is the battle system. It affects a few things on planets, and has far-reaching consequences on the whole ship design and fleet management system.</p>
<p>The most basic types of information handled by the battle system are the definitions of weapons and their countermeasures. The basic principle &#8211; three types of weapons vs. three types of countermeasures &#8211; has been described many times. This time I needed to come up with the details.</p>
<p><span id="more-185"></span></p>
<p><strong>Weapons</strong></p>
<p>In addition to their types, weapons will have four characteristics.</p>
<ul>
<li><em>Base damage</em> is the &#8220;standard&#8221; amount of damage a weapon deals when it hits. Depending on circumstances, the actual damage may be different.</li>
<li><em>Accuracy</em> describes the probability that, in a perfectly neutral environment, the weapon actually hits what it is aimed at.</li>
<li><em>Charge time</em> and <em>Cool-down time</em> are delays that occur before and after the weapon is fired.</li>
</ul>
<p>It is easy to compute the average damage inflicted by a weapon at each tick. This allows weapons of the same level, but of different types, to be relatively different in behaviour without sacrificing game balancing.</p>
<p>For example, one could imagine a beam weapon that fires once every two ticks, with a base damage of 5 and an accuracy of 80%. This weapon would inflict, on average, 2 points of damage every minute. It is easy to create a mass driver with similar results; such a weapon would fire once every 4 minutes, inflicting a base damage of 20 with an accuracy of 40%.</p>
<p>In battles, each weapon fires independently. Weapons on the same ship may have different targets &#8211; while this makes no real sense for fighters, it prevents really big ships from concentrating their fire on a potentially much weaker target.</p>
<p><strong>Countermeasures</strong></p>
<p>Just like weapons, countermeasures have a few more characteristics in addition to their type.</p>
<ul>
<li><em>Maximal absorption</em><span style="text-decoration: underline;"> </span>is the maximal amount of damage that can be absorbed by a countermeasure before it becomes inefficient.</li>
<li><em>Efficiency</em> describes the probability that a countermeasure intercepts damage.</li>
<li><em>Absorption recovery</em> is the amount of absorption points recovered at each tick after damage absorption.</li>
</ul>
<p>Balancing for countermeasures is a little more tricky than it is for weapons. I chose to use a (totally artificial) value corresponding to the efficiency multiplied by the amount of minutes a countermeasure would be efficient for if it was absorbing half its maximal capacity at each minute:</p>
<p><em>Efficiency * Maximal absorption / ( Maximal absorption * 0.5 &#8211; Absorption recovery )</em></p>
<p>Obviously, this means that the recovery should always be lower than half the maximal absorption&#8230;</p>
<p>In battles, all countermeasures of the same type act as one single countermeasure on a ship, with an weighted average used as the efficiency and sums for both the maximal absorption and the recovery.</p>
<p><strong>Balancing weapons and countermeasures</strong></p>
<p>No countermeasure can prevent damage indefinitely unless its recovery rate is higher than the damage being inflicted. While this might happen when pitting e.g. a very big ship against a single fighter, it makes it relatively easy to balance weapons and countermeasures of the same level &#8211; a weapon&#8217;s average damage should be slightly higher than its respective countermeasure&#8217;s recovery rate.</p>
<p><strong>Next time&#8230;</strong></p>
<p>I am still working on the battle system at the moment. My next post will be about fleet tactics and strategies, as this has been (is?) a major headache.</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://blog.legacyworlds.com/index.php/2010-07-27/milestone-2-weapons-and-defences/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Missile countermeasures</title>
		<link>http://blog.legacyworlds.com/index.php/2008-03-04/missile-countermeasures/</link>
		<comments>http://blog.legacyworlds.com/index.php/2008-03-04/missile-countermeasures/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 08:24:46 +0000</pubDate>
		<dc:creator>TSeeker</dc:creator>
				<category><![CDATA[Raw bits]]></category>
		<category><![CDATA[countermeasures]]></category>
		<category><![CDATA[missiles]]></category>
		<category><![CDATA[ship design]]></category>
		<category><![CDATA[ships]]></category>
		<category><![CDATA[technologies]]></category>

		<guid isPermaLink="false">http://blog.legacyworlds.com/index.php/2008-03-04/missile-countermeasures/</guid>
		<description><![CDATA[Missile countermeasures come in various types and shapes; some will disrupt a missile&#8217;s guidance system while others will try to get a missile to explode before it can reach its target. Quite obviously, they protect ships against missiles. Missile countermeasures come in three different types. Anti-missile weapon systems (AMWS) are weapons that try to shoot [...]]]></description>
			<content:encoded><![CDATA[<p>Missile countermeasures come in various types and shapes; some will disrupt a missile&#8217;s guidance system while others will try to get a missile to explode before it can reach its target. Quite obviously, they protect ships against missiles.</p>
<p>Missile countermeasures come in three different types.<span id="more-13"></span></p>
<ul>
<li> Anti-missile weapon systems (<em>AMWS</em>) are weapons that try to shoot incoming missiles to destroy them; this type of countermeasure uses a lot of space on board.</li>
<li> Electronic missile countermeasures (<em>EMC</em>) try to fool an incoming missile&#8217;s guidance system to prevent it from reaching its target. They are much smaller than anti-missile weapon systems, however they are very demanding on the ship&#8217;s generators.</li>
<li> Physical missile countermeasures (<em>PMC</em> &#8211; for lack of a better name) use advanced knowledge of the universe&#8217;s structure to get rid of incoming missiles. While these systems use quite a lot of space and energy, they are more efficient than EMCs or AMWSs.</li>
</ul>
<table style="margin: 0pt 5%" border="1" width="90%">
<tr>
<th align="left" width="25%">Name</th>
<th style="width: 70px; text-align: center">Type</th>
<th align="left">Notes</th>
</tr>
<tr>
<td><span class="new">Flak batteries</span></td>
<td align="center">AMWS</td>
<td>Shoots explosive devices at short range to destroy incoming missiles.</td>
</tr>
<tr>
<td><span class="new">Point defense missiles</span></td>
<td align="center">AMWS</td>
<td>Uses smaller guided missiles to destroy incoming missiles.</td>
</tr>
<tr>
<td><span class="new">AI laser turrets</span></td>
<td align="center">AMWS</td>
<td>These AI-controlled turrets shoot incoming missiles using a high-energy laser beam.</td>
</tr>
<tr>
<td><span class="new">Droid sentries</span></td>
<td align="center">AMWS</td>
<td>Uses small flying robots that go after incoming missiles.</td>
</tr>
<tr>
<td><span class="new">Guidance systems jammer</span></td>
<td align="center">EMC</td>
<td>Tries to jam the incoming missile&#8217;s guidance system.</td>
</tr>
<tr>
<td><span class="new">Shadows generator</span></td>
<td align="center">EMC</td>
<td>Fools the incoming missile&#8217;s guidance system into thinking it&#8217;s going after many different targets.</td>
</tr>
<tr>
<td><span class="new">Nanites fog</span></td>
<td align="center">EMC</td>
<td>Generates a fog of nanites around the ship that will hack into incoming missiles to disable them.</td>
</tr>
<tr>
<td><span class="new">Picotech fog</span></td>
<td align="center">EMC</td>
<td>Upgrade from the above using picotech.</td>
</tr>
<tr>
<td><span class="new">Layered gravity field</span></td>
<td align="center">PMC</td>
<td>Modifies gravity in a thin layer of space around the ship, causing incoming missiles to detonate as they pass through.</td>
</tr>
<tr>
<td><span class="new">Thin gravity field</span></td>
<td align="center">PMC</td>
<td>Same as above but causing a stronger anomaly in a thinner layer of space.</td>
</tr>
<tr>
<td><span class="new">Phase-shifting cannon</span></td>
<td align="center">PMC</td>
<td>Cannon that shoots incoming missiles, making them shift out of phase with normal space.</td>
</tr>
<tr>
<td><span class="new">Hyperspace projector</span></td>
<td align="center">PMC</td>
<td>Cannon that sends incoming missiles into Hyperspace.</td>
</tr>
</table>
<p>Do you have other ideas of possible missile counter measures?</p>
<p>Do you have ideas of other categories of missile counter measures?</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://blog.legacyworlds.com/index.php/2008-03-04/missile-countermeasures/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
