I really don't think ai markers belongs in the game xml.  Can you put in a separate file?  Maybe add an optional  more_n_able.properties in the map directory.  To load it, you need to get a ResourceLoader, and call gameResourceLoader.getResourceAsStream("more_n_able.properties");


From: Kevin <serf_tide@yahoo.com>
To: Kevin Comcowich <comradekev@yahoo.com>; triplea-developers@lists.sourceforge.net
Sent: Thu, August 12, 2010 11:56:13 AM
Subject: Re: [Triplea-develop] Territory Attachment...

It is a territory attachment. For the AITarget, it increases the likelihood that the AI (if specified as the value) will attack a certain territory. For the AmphibAITarget, it dramatically increases the likelihood that the AI will land units on that territory.
It works just by adding two methods in the TerritoryAttachment and then adding the option to the xml file. If the options are not there, the AI goes ahead and plays as normal.
I can't get around this SeaBattle error that I posted and I have tried 3 times to add a comment to it and it has failed everytime. This causes a crash in both maps in WW2V3. Here is the error:
Exception in thread "Triplea start local thread" java.lang.NullPointerException
 at games.strategy.triplea.delegate.BattleDelegate.setupSeaUnitsInSameSeaZoneBattles(BattleDelegate.java:409)
 at games.strategy.triplea.delegate.BattleDelegate.start(BattleDelegate.java:89)
 at games.strategy.engine.framework.ServerGame.startStep(ServerGame.java:603)
 at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:482)
 at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:299)
 at games.strategy.engine.framework.startup.launcher.LocalLauncher$2.run(LocalLauncher.java:125)
 at java.lang.Thread.run(Unknown Source)
Kevin Moore

From: Kevin Comcowich <comradekev@yahoo.com>
To: triplea-developers@lists.sourceforge.net; Kevin <serf_tide@yahoo.com>
Sent: Thu, August 12, 2010 2:44:38 PM
Subject: Re: [Triplea-develop] Territory Attachment...

What's the intent of the change?  Will the AI attack that player to the exclusion of all other options?  If so, I can see potential problems with the AI.  We'd have to wait and see what it did.
On another note, I don't remember for sure, but that change may require you to update the xml dtd.  Otherwise, I don't see a problem with it.

--- On Thu, 8/12/10, Kevin <serf_tide@yahoo.com> wrote:

From: Kevin <serf_tide@yahoo.com>
Subject: [Triplea-develop] Territory Attachment...
To: triplea-developers@lists.sourceforge.net
Date: Thursday, August 12, 2010, 9:38 AM

Hey all-
I wanted to make sure it is ok to modify the territory attachments to allow the map file to specify AI targets. I've already made the mods and verified them.
    <option name="AITarget" value="Americans"/>
    <option name="AmphibAITarget" value="Japanese"/>
If this is ok, I'll post my modifications. Thanks!
Kevin Moore

-----Inline Attachment Follows-----

This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge

-----Inline Attachment Follows-----

Triplea-developers mailing list