Jump to content
  • Announcements

    • Battlefront.com

      Special Upgrade 4 Tech Tips   12/27/2016

      Hi all! Now that Upgrade 4 is out and about in large quantities we have now discovered a few SNAFUs that happen out in the scary, real world that is home computing.  Fortunately the rate of problems is extremely small and so far most are easily worked around.  We've identified a few issues that have similar causes which we have clear instructions for work arounds here they are: 1.  CMRT Windows customers need to re-license their original key.  This is a result of improvements to the licensing system which CMBN, CMBS, and CMFB are already using.  To do this launch CMRT with the Upgrade and the first time enter your Engine 4 key.  Exit and then use the "Activate New Products" shortcut in your CMRT folder, then enter your Engine 3 license key.  That should do the trick. 2.  CMRT and CMBN MacOS customers have a similar situation as #2, however the "Activate New Products" is inside the Documents folder in their respective CM folders.  For CMBN you have to go through the process described above for each of your license keys.  There is no special order to follow. 3.  For CMBS and CMFB customers, you need to use the Activate New Products shortcut and enter your Upgrade 4 key.  If you launch the game and see a screen that says "LICENSE FAILURE: Base Game 4.0 is required." that is an indication you haven't yet gone through that procedure.  Provided you had a properly functioning copy before installing the Upgrade, that should be all you need to do.  If in the future you have to install from scratch on a new system you'll need to do the same procedure for both your original license key and your Upgrade 4.0 key. 4.  There's always a weird one and here it is.  A few Windows users are not getting "Activate New Products" shortcuts created during installation.  Apparently anti-virus software is preventing the installer from doing its job.  This might not be a problem right now, but it will prove to be an issue at some point in the future.  The solution is to create your own shortcut using the following steps: Disable your anti-virus software before you do anything. Go to your Desktop, right click on the Desktop itself, select NEW->SHORTCUT, use BROWSE to locate the CM EXE that you are trying to fix. The location is then written out. After it type in a single space and then paste this:

      -showui

      Click NEXT and give your new Shortcut a name (doesn't matter what). Confirm that and you're done. Double click on the new Shortcut and you should be prompted to license whatever it is you need to license. At this time we have not identified any issues that have not been worked around.  Let's hope it stays that way Steve
    • Battlefront.com

      Forum Reorganization   10/12/2017

      We've reorganized our Combat Mission Forums to reflect the fact that most of you are now running Engine 4 and that means you're all using the same basic code.  Because of that, there's no good reason to have the discussion about Combat Mission spread out over 5 separate sets of Forums.  There is now one General Discussion area with Tech Support and Scenario/Mod Tips sub forums.  The Family specific Tech Support Forums have been moved to a new CM2 Archives area and frozen in place. You might also notice we dropped the "x" from distinguishing between the first generation of CM games and the second.  The "x" was reluctantly adopted back in 2005 or so because at the time we had the original three CM games on European store shelves entitled CM1, CM2, and CM3 (CMBO, CMBB, and CMAK).  We didn't want to cause confusion so we added the "x".  Time has moved on and we have to, so the "x" is now gone from our public vocabulary as it has been from our private vocabulary for quite a while already.  Side note, Charles *NEVER* used the "x" so now we're all speaking the same language as him.  Which is important since he is the one programming them
Sign in to follow this  
Pericles

Combat Mission AI and scenario design

Recommended Posts

Here is an example of unsatisfactory, immersion-breaking AI from the "Charge of the Stryker Brigade" campaign. These three enemy units had not yet been engaged... they are just hanging out in a group in the middle of a road with their flanks to the enemy (me). Two of their tank friends had been destroyed many minutes before this screen capture was taken.

Unacceptable? Yes. Will I continue this mission? Yes.

AI example.jpg

Share this post


Link to post
Share on other sites

It's a bit difficult to see in the Picture...

Are those two destroyed tanks anywhere close to these 3 guys ? Are YOUR units anywhere close (within LOS/LOF) to these guys ? Are you about to capture any significant victory point ?

How much time is left on the game Clock ?

These guys might be triggered to start acting if you are about to secure a high value objective or something...They may be part of 'the other flank' security...Have they spotted any of your units you think ?

 

 

Share this post


Link to post
Share on other sites

The point I am making is that it is unrealistic to have 3 vehicles parked next to one another on a road in an active combat environment. My artillery has been falling, tanks have been exploding. This would never happen in real life. It is utterly stupid. Do you disagree?

Share this post


Link to post
Share on other sites

No...i'm not neccesarely dissagreing.

What this might be showing is some of the limitations with the scenario editor currently.

As we have no conditional triggers as of yet and no other way either of giving AI-Groups several options of what to do in a certain situation...things like this might happen.

 

Let's say these 3 vehicles are part of an AI-Group. The scenario designer only have 3 options when it comes to deciding when these guys should start moving...and what is worse !

The designer may only specify ONE movement path ( a set of waypoints ) that these guys will follow...Regardless of what you as the player decides to do.

1. The AI-Group may start moving at a specific time in the scenario

2. The designer may specify an area on the map that will trigger the AI-Group to start moving if you move any units into it...The designer only has one chans here to get it right. If you do not move any units into this area the AI-Group will remain stationary...atleast until the game-time that the designer specified in option 1 is reached.

3. The AI-Groups movement start may be linked to another AI-Group (only one) reaching a specific location (waypoint). If that AI-Group does not reach that waypoint the other AI-Group will remain stationary until the game-time that the designer specified in option 1 is reached.

And as mentioned previously...regardless of what you as the player does...If and when the AI-Group is allowed to start moving...they will only have one set of waypoints to follow...There is no options to allow the AI-Group to advance to Point A if you as the player decide to advance along the left flank and to point B if you decide to advance along right flank for example...

If the AI Group is allowed to move...it will move to ONE location regardless of what you are doing.

In ceratin situations the AI-units will move on their own...that is..reacting to known threaths. If they spot an enemy they will usually rotate in that direction. If they spot an enemy that is considderably stronger they may withdraw out of sight...that kind of thing...and offcourse...they will open fire on their own...

But even if they do react like this on their own...Their next move will be along the -  one and only  - movement path designated by the scenario designer if any of the above conditions (1,2, or 3) are met.

The AI have no ability to chose Another movement path that might better suit the actual situation on the battlefield.

These limitations when it come to programing the AI will sometimes lead to less then ideal results...i agree ! Scenario designers are however getting better and better at designing scenarios so these failures will hopefully happen less often...B)

 

 

 

 

Share this post


Link to post
Share on other sites

Good points. I think your argument about having more AI-groups is strong (as in the Combat Mission AI thread). That would at least enable scenario designers to circumvent unrealistic AI behavior. 

 

 

 

Share this post


Link to post
Share on other sites

Its possible tac AI may have kicked in and backed these guys up to that location as a response to fire. I didn't look at the scenario in the editor. But that happens. The only  work around is to have a redundant or repeated movement order in line, but set to occur much later in time to "rally" the group to the intended position. If they are already there then having an extra order to the same place later on won't matter much.  

Share this post


Link to post
Share on other sites
1 hour ago, nik mond said:

Its possible tac AI may have kicked in and backed these guys up to that location as a response to fire. I didn't look at the scenario in the editor. But that happens. The only  work around is to have a redundant or repeated movement order in line, but set to occur much later in time to "rally" the group to the intended position. If they are already there then having an extra order to the same place later on won't matter much.  

 
I do not belive that is the way it works.
 
If i understand this correctly (it has atleast been my experience) the TacAI will not overwrite or delete any waypoints (orderlocations) in an AI-groups movement path as set by the scenariodesigner.
If the AI-groups comes under fire or detects a significant threath and the TacAI forces the AI-group to temporarely hit the ground or withdraw...the next waypoint in the groups movementpath will not be  DELETED. It will be put on hold...
 
There is no need for a new one.

As soon as the AI-group rallies (and a movement for this AI group have indeed been triggered) they will continue to the waypoint that is the next one in the que. Nothing will be deleted as far as i know.
 
The way that the AI-groups advances through its waypoints makes your suggestion to put in a redundant (repeated) waypoint at the same location at a much later time...Problematic
 
The AI-groups will NOT jump back and forth amongst its waypoints...It follows them in numerical order...number one then number two, number three, number four and so on.
They will not skip waypoint two or three for example to get to waypoint four.
 
If your example with redundant waypoints should have any chans of working...The redundant waypoint would have to be the very next one in the que after the one that got temporarely halted by the TacAI.
This would mean no problems if the movementpath only had ONE waypoint (plus the redundant one at the same location)...But what if the movement path consist of an additional 5 waypoints for example..
The scenariodesigners idea with the programing of the AI-group was to have them move to waypoint one and wait there for something like two minutes and then move on to the next one...and the next one.
Putting a redundant waypoint in as number two at the same location as WP 1 but with a long delay would ruin this plan...
 
Edited by RepsolCBR

Share this post


Link to post
Share on other sites

My example was for an end location, where a unit moved to an over-watch position, got beat back. The trigger condition was already met. I sometimes include a redundant last order later just in case. As I said, I didn't look at the scenario, and wasn't being specific to it, so if that example is at order 2 of 10 then fine.

Edited by nik mond

Share this post


Link to post
Share on other sites

It may simply be down to an area being 'block painted' in an AI Setup or Move order.....Setup is always best done manually and I've found that if you paint one tile per vehicle in an AI group, it will often attempt to assign one vehicle per tile when carrying out those orders in game.

This was what prompted my recent question about whether infantry carried by vehicles have to be in the same AI group as the vehicles (they don't), I've been attempting to use these two features to create more realistic behaviour for AI mechanised units, the big limitation being that once the troops dismount they can never remount.

Share this post


Link to post
Share on other sites

And there could be some pathfinding jiggery-pokery going on there as well. Image left you have a low wall with a street lamp, a road and then a tree. Some of those vehicles may be just figuring out where they should be going.

I agree it doesn't look great though and could be improved.

Share this post


Link to post
Share on other sites

Without knowing what the designer's intent was it is difficult to figure out why these vehicles are sitting where they are sitting.  My guess from looking at them is that the designer probably didn't expect the player to have LOS to that location at this point in time in the scenario.  I would also guess that perhaps they might be a reinforcement group that appears at that spot as opposed to somewhere near a map edge and that they are scheduled to move somewhere at some future point in time - either by trigger or by time.  Judging from their facing one of two things is going on.  Either, as a reinforcement group or as an initial force, the designer neglected to position and face them and it wasn't caught during testing (I don't know if this scenario came with the game or if it is additional community content) or this particular AI group's next waypoint is located in the direction that they are facing and they are waiting for a trigger or point in time before they proceed.  If this waypoint is not their initial waypoint then AI troops will face in the direction of their next waypoint although that was somewhat recently changed and additional tools were added so that the designer could face vehicles and even have them use reverse.  I haven't created anything in a while though so I don't remember exactly when those improvements were added.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×