.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

BCT Commander- Save $8.00
winSPWW2- Save $5.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPWW2
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old February 12th, 2018, 03:01 AM

Arnie L. Arnie L. is offline
Private
 
Join Date: Dec 2011
Posts: 26
Thanks: 9
Thanked 3 Times in 3 Posts
Arnie L. is on a distinguished road
Default AI hijacks artillery and targets own units.

There was a bug that started quite a while back where the AI hijacks some of my artillery and targets my own units with it after one of the patches. I was hoping it would be fixed by now but it's still happening.
Reply With Quote
  #2  
Old February 12th, 2018, 03:15 AM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,929
Thanks: 440
Thanked 1,853 Times in 1,217 Posts
Mobhack is on a distinguished road
Default Re: Bug...AI hijacks artillery and targets own units.

It should be properly fixed in the next patch, It did not always seem to clear down the programmed fire variables between succeeding games in the same session. (The AI uses programmes if attacking).

The quick fix is to clear down the programme with the appropriate bombardment screen button on entry to the game.
Reply With Quote
The Following User Says Thank You to Mobhack For This Useful Post:
  #3  
Old February 12th, 2018, 07:41 AM

Arnie L. Arnie L. is offline
Private
 
Join Date: Dec 2011
Posts: 26
Thanks: 9
Thanked 3 Times in 3 Posts
Arnie L. is on a distinguished road
Default Re: Bug...AI hijacks artillery and targets own units.

On entry to the game? I don't exactly know what you mean by "appropriate bombardment screen button". I'm on turn 12 and I just clicked the clear button under programme and it seems fixed now.
Reply With Quote
  #4  
Old February 12th, 2018, 11:17 AM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,929
Thanks: 440
Thanked 1,853 Times in 1,217 Posts
Mobhack is on a distinguished road
Default Re: Bug...AI hijacks artillery and targets own units.

If you are playing a game after loading it, go to the bombardment screen when given the opportunity (turn 1 or so, unless attacking). Press the button marked "clear" under the programme heading to clear all programmes.

The bug is intermittent, and only seems to happen when playing on to a new game after completing one where programmed fire was used. This would typically be in an ongoing campaign, where the AI was attacking you and used a programmed artillery plan (I think it only does this in the full game, not the free demo).

I couldn't get it to happen in umpteen tests when debugging a report of it, but put in extra clear-down code for the variable in a couple of places and have not seen the behaviour happen in ongoing testing.
Reply With Quote
  #5  
Old February 12th, 2018, 04:59 PM

Arnie L. Arnie L. is offline
Private
 
Join Date: Dec 2011
Posts: 26
Thanks: 9
Thanked 3 Times in 3 Posts
Arnie L. is on a distinguished road
Default Re: Bug...AI hijacks artillery and targets own units.

Oh, I see. Yes it happens when I play campaigns and I do use the CD version of the game. Thanks for clearing that up.
Reply With Quote
  #6  
Old February 14th, 2018, 02:04 PM

Steves308 Steves308 is offline
Corporal
 
Join Date: Feb 2015
Posts: 97
Thanks: 530
Thanked 43 Times in 30 Posts
Steves308 is on a distinguished road
Default Re: Bug...AI hijacks artillery and targets own units.

As long as we're talking arty bugs, something I have noticed the AI doing something similar to this. But it is usually in the upper left corner of the map, and It may be happening because I have unused victory flags that I have put in the 0,0 location (the uppermost gray hex). It may be that I did not reduce the point value of the victory flag to the minimum value, I never went back to the pre-game and confirmed. If it happens, it will happen in the first couple of turns, and sometimes the AI will kill it's troops if they are starting on that side of the map. If you are really interested in looking at it I can try and save a game when it happens and upload it. Not a big deal to me personally, just sucks to be those poor AI troops ;^)

Steve
Reply With Quote
  #7  
Old February 14th, 2018, 03:13 PM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,227
Thanks: 3,798
Thanked 5,390 Times in 2,687 Posts
DRG will become famous soon enough
Default Re: Bug...AI hijacks artillery and targets own units.

Your supposition is correct. The AI will target V hexes and if you have one off map you confuse it.

We do tell people to ensure all V hexes are ON MAP, not off the edges
__________________


If you find you are constantly reacting to your enemy's tactics instead forcing the enemy to react to yours, you are losing the battle....
Reply With Quote
The Following User Says Thank You to DRG For This Useful Post:
  #8  
Old February 15th, 2018, 10:55 AM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,929
Thanks: 440
Thanked 1,853 Times in 1,217 Posts
Mobhack is on a distinguished road
Default Re: Bug...AI hijacks artillery and targets own units.

leaving unused V-hexes is never a good idea in scenario design as the AI path finding will direct troops towards these. It will also target them for bombardment, as you have yourself noted. It may also decide to "defend" them when deploying troops. None of which is good.


All
V-hexes must be on the map. If you "dont need" some, then set them to 0 value and stack them on top of valid V-hexes that do have a value. This is mentioned in the game guide somewhere in the scenario design section.
Reply With Quote
The Following User Says Thank You to Mobhack For This Useful Post:
  #9  
Old February 15th, 2018, 03:41 PM

Steves308 Steves308 is offline
Corporal
 
Join Date: Feb 2015
Posts: 97
Thanks: 530
Thanked 43 Times in 30 Posts
Steves308 is on a distinguished road
Default Re: Bug...AI hijacks artillery and targets own units.

Thanks for the info. I don't know where I read to put the unused victory flags on the 0,0 hex, but I've been doing it for probably 5+ years. I remember reading something about reducing the point value to below 25 points so the AI would ignore them, and then I somehow got in my head to put them in the 0,0 hex.

Guess I put 2 and 2 together and got 5

Steve
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:36 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.