Clear Objectives?

Post bug reports and ask for game support here.
Post Reply
LOK32MK
Posts: 57
Joined: Sun Jul 19, 2015 3:47 pm
Contact:

Clear Objectives?

Post by LOK32MK »

In the Scenario Editor is there any way to delete all objectives of a specific formation or (if that does not work) all objectives in the scenario?

I am trying to move the first objective of dozens of formations so units would reconstitute at a specific location but it is extremely time consuming to find the first objective of each formation on the map, clear it and then place it somewhere else.
Any help would be greatly appreciated.
Thank you
User avatar
cathar1244
Posts: 1251
Joined: Sat Sep 05, 2009 2:16 am

RE: Clear Objectives?

Post by cathar1244 »

Here is one way to do it outside of the editor.

1. Make a copy of your scenario file so you have a backup.
2. With the scenario loaded into the scenario editor, save the file with the "Save game (XML)" option. This creates a file with a .gam file type suffix.
3. The .gam file can be loaded into a text editor.

4. Bunch of information in that file, including formation objectives. This is what you want to look for:

<FORMATION ID="14" NAME="Baltic Front" PROFICIENCY="100" SUPPLY="100" SUPPORTSCOPE="Internal Support" ORDERS="Wait" EMPHASIS="Ignore Losses" ENTRYTURN="2">
<OBJECTIVES TRACK="1">
<OBJECTIVE ID="1" DESCRIPTION="41,10 (LENINGRAD)" X="41" Y="10"/>
<OBJECTIVE ID="2" DESCRIPTION="21,15 (RIGA)" X="21" Y="15"/>
<OBJECTIVE ID="3" DESCRIPTION="16,21 (KAUNAS)" X="16" Y="21"/>
<OBJECTIVE ID="4" DESCRIPTION="2,18 (GDANSK)" X="2" Y="18"/>
<OBJECTIVE ID="5" DESCRIPTION="51,30 (MOSCOW)" X="51" Y="30"/>

</OBJECTIVES>
<OBJECTIVES TRACK="2"/>
<OBJECTIVES TRACK="3"/>
<OBJECTIVES TRACK="4"/>
<OBJECTIVES TRACK="5"/>

This example shows only one objective track has been set up. The objectives are numbered, and the DESCRIPTION field identifies the hex coordinates of the objective. You can change the coordinates there and save the .gam file.

Once saved, load the modified .gam file into the scenario editor with the "Open Game (XML)" option. If it loads without error, then save it as a regular scenario file and the changes will be in the newly saved scenario file.

Cheers
LOK32MK
Posts: 57
Joined: Sun Jul 19, 2015 3:47 pm
Contact:

RE: Clear Objectives?

Post by LOK32MK »

That works! Thank you.
User avatar
sPzAbt653
Posts: 10052
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: Clear Objectives?

Post by sPzAbt653 »

If you want to have them all reconstitute at one point, you can do so in the Deployment Editor:

Image
Attachments
jpeg166.jpg
jpeg166.jpg (81.77 KiB) Viewed 399 times
LOK32MK
Posts: 57
Joined: Sun Jul 19, 2015 3:47 pm
Contact:

RE: Clear Objectives?

Post by LOK32MK »

Thanks. I know about the re-entry point. But I only want some of the formations to appear at particular locations so the previous solutions works. Thank you
Post Reply

Return to “Tech Support”