Clear Objectives? (Full Version)

All Forums >> [New Releases from Matrix Games] >> The Operational Art of War IV >> Tech Support



Message


LOK32MK -> Clear Objectives? (11/5/2021 9:58:11 PM)

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




cathar1244 -> RE: Clear Objectives? (11/6/2021 8:20:51 AM)

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 -> RE: Clear Objectives? (11/6/2021 12:39:26 PM)

That works! Thank you.




sPzAbt653 -> RE: Clear Objectives? (11/7/2021 11:46:50 AM)

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

[image]local://upfiles/24850/420DC5A5F75A4BFC8D8B91EA76AED234.jpg[/image]




LOK32MK -> RE: Clear Objectives? (11/7/2021 3:07:11 PM)

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




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.171875