Why can't my artillery target the enemy?

Tech support for Battle Academy

Moderators: Slitherine Core, BA Moderators

Post Reply
alfamail
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 62
Joined: Sat Sep 21, 2013 10:39 am

Why can't my artillery target the enemy?

Post 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.
pipfromslitherine
Site Admin
Site Admin
Posts: 9897
Joined: Wed Mar 23, 2005 10:35 pm

Re: Why can't my artillery target the enemy?

Post 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
follow me on Twitter here
AndrewGardner
Slitherine
Slitherine
Posts: 535
Joined: Tue Nov 13, 2012 6:24 pm

Re: Why can't my artillery target the enemy?

Post by AndrewGardner »

Is there a wreck of one of your units on the tile?
kingt
2nd Lieutenant - Elite Panzer IVF/2
2nd Lieutenant - Elite Panzer IVF/2
Posts: 735
Joined: Sat Mar 24, 2012 6:07 pm

Re: Why can't my artillery target the enemy?

Post 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.
Navaronegun
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 946
Joined: Sun Sep 22, 2013 5:39 pm
Location: Arizona, USA -7 GMT

Re: Why can't my artillery target the enemy?

Post 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
I think the best way to describe our operations to date is that they have violated every recognized principle of war.
General Eisenhower, Supreme Commander Allied Expeditionary Force, on the Tunisian Campaign, 27 DEC 1942.
kingt
2nd Lieutenant - Elite Panzer IVF/2
2nd Lieutenant - Elite Panzer IVF/2
Posts: 735
Joined: Sat Mar 24, 2012 6:07 pm

Re: Why can't my artillery target the enemy?

Post 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. :D
AndrewGardner
Slitherine
Slitherine
Posts: 535
Joined: Tue Nov 13, 2012 6:24 pm

Re: Why can't my artillery target the enemy?

Post 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.
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Why can't my artillery target the enemy?

Post 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.
Navaronegun
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 946
Joined: Sun Sep 22, 2013 5:39 pm
Location: Arizona, USA -7 GMT

Re: Why can't my artillery target the enemy?

Post 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?
I think the best way to describe our operations to date is that they have violated every recognized principle of war.
General Eisenhower, Supreme Commander Allied Expeditionary Force, on the Tunisian Campaign, 27 DEC 1942.
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Why can't my artillery target the enemy?

Post by enric »

Sure, you need to change the two action scripts, engineers_smoke.bsf and IndirectSmoke.bsf
Navaronegun
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 946
Joined: Sun Sep 22, 2013 5:39 pm
Location: Arizona, USA -7 GMT

Re: Why can't my artillery target the enemy?

Post 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.
I think the best way to describe our operations to date is that they have violated every recognized principle of war.
General Eisenhower, Supreme Commander Allied Expeditionary Force, on the Tunisian Campaign, 27 DEC 1942.
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: Why can't my artillery target the enemy?

Post 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
Navaronegun
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 946
Joined: Sun Sep 22, 2013 5:39 pm
Location: Arizona, USA -7 GMT

Re: Why can't my artillery target the enemy?

Post 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!
I think the best way to describe our operations to date is that they have violated every recognized principle of war.
General Eisenhower, Supreme Commander Allied Expeditionary Force, on the Tunisian Campaign, 27 DEC 1942.
Post Reply

Return to “Battle Academy : Tech Support”