Page 1 of 1
Why can't my artillery target the enemy?
Posted: Thu May 15, 2014 8:50 am
by alfamail
I am playing a game of BA in the Woods scenario against CCHESAK. I am the Axis.
I noticed today that I am unable to target one of the Objective flags which is being held by CCHESAK. I am unable to see if there is a unit in the sqaure but I suspect there is since I am unable to plot a move into the square. The same artillery piece can be targeted on all the empty squares around the flag square, and also on other enemy units but not (I notice) on any square containing my own units. Soooooo, I am wondering if the unit in the flag square is being identified by the game as one of my units (which it isn't) even though the objective flag shows ownership by CCHESAK.
I trust you are now as confused as I am.
Cheers Alfamail.
Re: Why can't my artillery target the enemy?
Posted: Thu May 15, 2014 2:59 pm
by pipfromslitherine
Hmmm - interesting. I will take a look. That said, not being able to plot a move generally isn't a way to spot enemy units as I think it allows the move but stops you before you get there.
Cheers
Pip
Re: Why can't my artillery target the enemy?
Posted: Thu May 15, 2014 3:56 pm
by AndrewGardner
Is there a wreck of one of your units on the tile?
Re: Why can't my artillery target the enemy?
Posted: Thu May 15, 2014 8:33 pm
by kingt
AndrewGardner wrote:Is there a wreck of one of your units on the tile?
I noticed on some custom maps, which have smoke-firing units, that you can't smoke a tile that has a wreck.
I also noticed that smoking a friendly unit actually damages its morale, which would be a strange behavior.
Re: Why can't my artillery target the enemy?
Posted: Fri May 16, 2014 12:26 am
by Navaronegun
kingt wrote:AndrewGardner wrote:Is there a wreck of one of your units on the tile?
I noticed on some custom maps, which have smoke-firing units, that you can't smoke a tile that has a wreck.
I also noticed that smoking a friendly unit actually damages its morale, which would be a strange behavior.
Smoke in BA 1 basically creates an Object in a hex which blocks LOS. At the beginning of the next player turn, the script clears the smoke away, removing the object. A wreck places an object in the tile, so the Smoke cannot be created there.
Nav
Re: Why can't my artillery target the enemy?
Posted: Fri May 16, 2014 11:04 am
by kingt
Navaronegun wrote:kingt wrote:AndrewGardner wrote:Is there a wreck of one of your units on the tile?
I noticed on some custom maps, which have smoke-firing units, that you can't smoke a tile that has a wreck.
I also noticed that smoking a friendly unit actually damages its morale, which would be a strange behavior.
Smoke in BA 1 basically creates an Object in a hex which blocks LOS. At the beginning of the next player turn, the script clears the smoke away, removing the object. A wreck places an object in the tile, so the Smoke cannot be created there.
Nav
Right, good to know. I had a situation in Robaa where I wanted both an obstacle on the road, and smoke on the same tile.

Re: Why can't my artillery target the enemy?
Posted: Fri May 16, 2014 3:46 pm
by AndrewGardner
Navaronegun wrote:Smoke in BA 1 basically creates an Object in a hex which blocks LOS. At the beginning of the next player turn, the script clears the smoke away, removing the object. A wreck places an object in the tile, so the Smoke cannot be created there.
Nav
At the scripting level, that is not precisely true. There is no technical limitation preventing a smoke object from being placed on a wreck tile. If a smoke mod does not allow it, that is just the way it is scripted. However, the Modder's Corner would probably be a better place to discuss that.
To get back to the original topic, BA does not allow bombard attacks directly on the wreck of a friendly unit. I really don't know if that was an intentional decision or an oversight.
Re: Why can't my artillery target the enemy?
Posted: Fri May 16, 2014 6:41 pm
by enric
As Andrew said, BA don't allow bombard attack on friendly wreck, so in my scenarios, smoke (based on bombard action) can only be placed on tiles containing wrecks if it's an enemy wreck.
Engineers, that also have the capacity to place smoke, can't place it on a tile containing a unit or wreck (frienly or enemy). I don't remember if that was an intentional decision or an oversight.
Re: Why can't my artillery target the enemy?
Posted: Fri May 16, 2014 6:46 pm
by Navaronegun
enric wrote:As Andrew said, BA don't allow bombard attack on friendly wreck, so in my scenarios, smoke (based on bombard action) can only be placed on tiles containing wrecks if it's an enemy wreck.
Engineers, that also have the capacity to place smoke, can't place it on a tile containing a unit or wreck (frienly or enemy). I don't remember if that was an intentional decision or an oversight.
Since I am using your script, is there any way to alter it to allow smoke on all wrecks or on tank traps?
Re: Why can't my artillery target the enemy?
Posted: Fri May 16, 2014 6:54 pm
by enric
Sure, you need to change the two action scripts, engineers_smoke.bsf and IndirectSmoke.bsf
Re: Why can't my artillery target the enemy?
Posted: Fri May 16, 2014 7:02 pm
by Navaronegun
enric wrote:Sure, you need to change the two action scripts, engineers_smoke.bsf and IndirectSmoke.bsf
Are there object exceptions listed in the scripts? I forget...not in front of my computer at the moment.
Re: Why can't my artillery target the enemy?
Posted: Fri May 16, 2014 7:11 pm
by enric
Are there object exceptions listed in the scripts?
I don't understand well you meaning...
The engineers actions is based on TILE and to get your goal you should change to be based on ALL (see STUB engine doc) as TILE operates only on empty tiles.
The bombard action (based on ALL) check if the target tile has a friendly unit in it, and don't allow the fire in that case (a friendly wreck for BA is a friendly unit...), so you should change this.
Hope it helps.
Cheers
Re: Why can't my artillery target the enemy?
Posted: Fri May 16, 2014 7:12 pm
by Navaronegun
enric wrote:Are there object exceptions listed in the scripts?
I don't understand well you meaning...
The engineers actions is based on TILE and to get your goal you should change to be based on ALL (see STUB engine doc) as TILE operates only on empty tiles.
The bombard action (based on ALL) check if the target tile has a friendly unit in it, and don't allow the fire in that case (a friendly wreck for BA is a friendly unit...), so you should change this.
Hope it helps.
Cheers
Thanks, Enric!