<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error with maxConstructionsPerType]]></title><description><![CDATA[<p dir="auto">I receive the following error when loading the scenario</p>
<p dir="auto">GameParseException: Missing property definition for option ''maxConstructionsPerType'' in attachment ''unitAttachment''</p>
<p dir="auto">Here is my code</p>
<pre><code>    &lt;attachment name="unitAttachment" attachTo="fort" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType"&gt;
      &lt;option name="defense" value="2"/&gt;
      &lt;option name="createsResourcesList" value="-1:PUs"/&gt;
      &lt;option name="hitPoints" value="2"/&gt;
      &lt;option name="isAAforCombatOnly" value="true"/&gt;
      &lt;option name="targetsAA" value="infantry:cavalry"/&gt;
      &lt;option name="maxRoundsAA" value="3"/&gt;
      &lt;option name="requiresUnits" value="infantry"/&gt;
      &lt;option name="isConstruction" value="true"/&gt;
      &lt;option name="constructionType" value="fort"/&gt;
      &lt;option name="constructionsPerTerrPerTypePerTurn" value="1"/&gt;
      &lt;option name="maxConstructionsPerType" value="5"/&gt;
    &lt;/attachment&gt;

</code></pre>
<p dir="auto">I want to limit the building of forts to 1 per turn, up to a max of 5 per territory.</p>
<p dir="auto">Is there something wrong with my code.</p>
]]></description><link>https://forums.triplea-game.org/topic/4396/error-with-maxconstructionspertype</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 12:59:40 GMT</lastBuildDate><atom:link href="https://forums.triplea-game.org/topic/4396.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Aug 2026 01:10:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error with maxConstructionsPerType on Tue, 18 Aug 2026 01:57:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rogercooper" aria-label="Profile: RogerCooper">@<bdi>RogerCooper</bdi></a></p>
<p dir="auto">I think the option you are looking for is "maxConstructionsPerTypePerTerr" as there no "maxConstructionsPerType".</p>
<p dir="auto">Cheers...</p>
]]></description><link>https://forums.triplea-game.org/post/79220</link><guid isPermaLink="true">https://forums.triplea-game.org/post/79220</guid><dc:creator><![CDATA[wc_sumpton]]></dc:creator><pubDate>Tue, 18 Aug 2026 01:57:05 GMT</pubDate></item></channel></rss>