Canal Bug



  • Triplea engine does not allow using one sea zone for two different canal. For example in Crazy Europe's map I am not allowed to create Bosphorus and Dardanelles at the same time because they have both the same sea zone (Sea Zone 190 aka Sea of Marmara)


  • Admin

    @schulz Can you post the map zip?


  • Moderators

    @schulz I believe this would be an invalid bug report.

    However, I suppose you are supposed to paste the code you are trying to use, if referring to an availabe game, or your entire map, otherwise, and the eventual error you are getting, for the bug report to be actually verifiable, specifically.

    Try using (pasting in your game xml) this code and let us know if it works:

    	<attachment name="canalAttachmentTurkey 02 - Turkey 06" attachTo="Sea Zone 184" javaClass="games.strategy.triplea.attachments.CanalAttachment" type="territory">
    		<option name="canalName" value="the Dardanelles strait"/>
    		<option name="landTerritories" value="Turkey 02:Turkey 06"/>
    	</attachment>
    	<attachment name="canalAttachmentTurkey 02 - Turkey 06" attachTo="Sea Zone 190" javaClass="games.strategy.triplea.attachments.CanalAttachment" type="territory">
    		<option name="canalName" value="the Dardanelles strait"/>
    		<option name="landTerritories" value="Turkey 02:Turkey 06"/>
    	</attachment>
    
    	<attachment name="canalAttachmentTurkey 03 - Turkey 04" attachTo="Sea Zone 190" javaClass="games.strategy.triplea.attachments.CanalAttachment" type="territory">
    		<option name="canalName" value="the Bosphorus strait"/>
    		<option name="landTerritories" value="Turkey 03:Turkey 04"/>
    	</attachment>
    	<attachment name="canalAttachmentTurkey 03 - Turkey 04" attachTo="Sea Zone 191" javaClass="games.strategy.triplea.attachments.CanalAttachment" type="territory">
    		<option name="canalName" value="the Bosphorus strait"/>
    		<option name="landTerritories" value="Turkey 03:Turkey 04"/>
    	</attachment>


  • @cernel

    Thank you. Problem is solved. I have forgot to give different attachment numbers to canals.


  • Donators Moderators Admin

    @cernel

    Does it work with actual spaces and - , in the attachment names? I think this format can cause problems down the line if your using spaces across the board.


  • Moderators

    @general_zod If you mean the "name", of course not. That just needs to be different if attached to a same sea zone, and, beside assuring this, it has no use.

    I could have called the first two ones "canalAttachment1" and the last two ones "canalAttachment2", or whatever, as long as not the same.


  • Donators Moderators Admin

    @cernel

    Yes I was referring to attachment names. I've noticed that certain features do not even acknowledge the attachment if formatted badly.