Translations for our friends around the world.

New URL: www.Schwerpunkt.Games



Click image to go to main site  www.Schwerpunkt.Games

Author Topic: Creating computer Allies plan for scenario 31  (Read 7219 times)

0 Members and 1 Guest are viewing this topic.

Offline blond_knight

  • New member
  • *
  • Posts: 22
  • New member
Creating computer Allies plan for scenario 31
« on: November 08, 2016, 03:03:32 AM »
I don't know if there's any interest, but Im creating an Allied computer plan for scenario 31 'Overlord and Cotenin'.
I cant promise 100% accuracy but its better than what you have now. ;)
My intent was to get only the airborne landings, and beach landings scripted. But it looks like if you run a script it turns off the AI for the remained of the turn(still not sure about that).  So that would mean no air/naval ops for the first turn.  And that would hardly be historically accurate.
So Im also scripting the Allied CAP, tactical bombing, interdiction, naval transport, and naval gunfire support for turn 1.
funny
0
informative
0
Thanks
0
No reactions
No reactions
No reactions

Offline schwerpt

  • Schwerpunkt
  • *
  • Posts: 216
  • Schwerpunkt Games Developer
    • Schwerpunkt
Re: Creating computer Allies plan for scenario 31
« Reply #1 on: November 08, 2016, 04:08:51 AM »
Good luck with this, I am interested in how it turns out.
And yes, you have to script the entire player's turn, all ops.

Ron
funny
0
informative
0
Thanks
0
No reactions
No reactions
No reactions

Offline blond_knight

  • New member
  • *
  • Posts: 22
  • New member
Re: Creating computer Allies plan for scenario 31
« Reply #2 on: November 08, 2016, 12:15:10 PM »
OK thanks for that confirmation Ron.
Will keep you posted.
funny
0
informative
0
Thanks
0
No reactions
No reactions
No reactions

Offline blond_knight

  • New member
  • *
  • Posts: 22
  • New member
Re: Creating computer Allies plan for scenario 31
« Reply #3 on: November 09, 2016, 02:00:21 AM »
Creating an AI plan file can be tedious.  So I created a very quick Powershell script to parse out the mission, unit value, and X and Y hex coordinates.  This is particularly helpful if you're dealing with a stack of units.  If you're running a Windows OS made in the last decade you've got Powershell already installed.  Just type 'Powershell_ise' into the Run box.

You enter the mission type number of the stack, the individual unit ID's, and the target hex's X and Y coordinates. And run it.
It spits out a long list of numbers that you copy and paste into your plan file.
Here's the script with examples:

$units = 591,590,589,588,587,586
$mission = 32004
$coord1 = 63
$coord2= 71
foreach ($unit in $units)
{
 $mission
 $unit*20
 $coord1
 $coord2
}
« Last Edit: November 09, 2016, 02:02:22 AM by blond_knight »
funny
0
informative
0
Thanks
0
No reactions
No reactions
No reactions

Offline blond_knight

  • New member
  • *
  • Posts: 22
  • New member
Re: Creating computer Allies plan for scenario 31
« Reply #4 on: November 15, 2016, 02:45:46 AM »
This is what I have so far.  Im not entirely happy with it yet.  And Im thinking there will need to be AI plans  for the other turns to get the Allied units onto the continent.
funny
0
informative
0
Thanks
0
No reactions
No reactions
No reactions

Tags:
     

    Anglo-German War 1939- 1945 Scenario list

    Started by Asid

    Replies: 0
    Views: 6816
    Last post May 27, 2016, 07:41:31 PM
    by Asid
    (Resolved)How do you create a Computer Opponent Plan File?

    Started by blond_knight

    Replies: 2
    Views: 7727
    Last post November 03, 2016, 10:57:20 PM
    by blond_knight