Aircraft Weapon Filters

Please post here for questions and discussion about scenario design, art and sound modding and the game editor for WITP Admiral's Edition.

Moderators: wdolson, MOD_War-in-the-Pacific-Admirals-Edition

RichardAckermann
Posts: 270
Joined: Fri Dec 04, 2015 12:07 pm

RE: Aircraft Weapon Filters

Post by RichardAckermann »

The conversion of alt devices is calculated on AC load capacity if I remember correctly.
The hardcoded torpedo replacement for japan uses dual 250Kg bombs and fills the rest with dual 60 Kg bombs if fit.
You may change the AC load capacity to check if the number of alt devices is changing according to that.

ORIGINAL: Dili
That is what OP is doing. But he says when he sets the squadron to fire torpedoes the aircraft drops both.

Yes, I confirmed the same behaviour at least for japanese AC.
For some reason, the engine calculates
Filter = 2;
( Filter & 4 ) == TRUE && (Filter & 2 ) == TRUE
on having an airgroup "Using torpedos"

That result should only happen on filter = 6, or more precise on having filter bit 0x02 and 0x04 set to "1"
scopejockey
Posts: 14
Joined: Sat Oct 28, 2017 11:48 pm

RE: Aircraft Weapon Filters

Post by scopejockey »

"( Filter & 4 ) == TRUE && (Filter & 2 ) == TRUE
on having an airgroup "Using torpedos"

Thanks.


Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

RE: Aircraft Weapon Filters

Post by Dili »

So any fix must be made by michaelm? or is there anyone that can look at it?
RichardAckermann
Posts: 270
Joined: Fri Dec 04, 2015 12:07 pm

RE: Aircraft Weapon Filters

Post by RichardAckermann »

Yes, Michaelm is the one to take a look at this and determine if it is something to fix. I think all other coders working on WITP AE have left for other projects. Yet since Michaelm is also gone for now, it maybe never looked at.
There is, by the way, another issue related to this. Airgroups having torpedoes with a filter value set are dropping those torps on missions like ground attack. At least it was so back when I tested for how the filters work.
I guess the cause is a conflict with the hardcoded torp replacements.
Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

RE: Aircraft Weapon Filters

Post by Dili »

This is surprising since the 2 and 4 fields are the most important.
So what is the functional solution? i mean use 2+4= 6 with torpedoes or that also can't work?

If so this means that weapon filters are useless for aircraft that have torpedoes?
scopejockey
Posts: 14
Joined: Sat Oct 28, 2017 11:48 pm

RE: Aircraft Weapon Filters

Post by scopejockey »

"If so this means that weapon filters are useless for aircraft that have torpedoes?"

1, 8, 16, 32 and 64 are not.

But for 4 it looks like it. A bit frustrating.

A setup like this works:

An example I have been using for B5N2.
1x 45cm torpedo filter 2
1x 800kg AP bomb filter 16 (was using 20, but 4 does not work for me)
6x 60kg GP bomb filter 40
3x 250kg GP bomb filter 65


Everything works fine, just no option to navy strike with bomb(s).


scopejockey
Posts: 14
Joined: Sat Oct 28, 2017 11:48 pm

RE: Aircraft Weapon Filters

Post by scopejockey »

he conversion of alt devices is calculated on AC load capacity if I remember correctly.

I think it may be a default number of bombs, not based on AC Max Load. I have some aircraft I have not edited yet. If primary weapon is a torpedo it uses 2x the default device ID (208 or 210 for Japanese). My G3Ms (not edited) are dropping
two torpedoes on airfields (I have JAAF torpedoes in device ID 208 and 210). The weight of both torpedoes is double the G3M Max Load.

This is why I wanted 2 and 4 to work. Each nation has it's own bombs and torpedoes. I did not want all Allied torpedoes to default to the same 500lb bomb and IJN.IJA to default to same 250kg bomb.
Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

RE: Aircraft Weapon Filters

Post by Dili »

ORIGINAL: scopejockey

"If so this means that weapon filters are useless for aircraft that have torpedoes?"

1, 8, 16, 32 and 64 are not.

But for 4 it looks like it. A bit frustrating.

A setup like this works:

An example I have been using for B5N2.
1x 45cm torpedo filter 2
1x 800kg AP bomb filter 16 (was using 20, but 4 does not work for me)
6x 60kg GP bomb filter 40
3x 250kg GP bomb filter 65


Everything works fine, just no option to navy strike with bomb(s).



Thanks.
A- So what happens if you do not set to use torpedoes in squadron interface?

B -or if you set but the HQ have no torpedoes?
RichardAckermann
Posts: 270
Joined: Fri Dec 04, 2015 12:07 pm

RE: Aircraft Weapon Filters

Post by RichardAckermann »

ORIGINAL: Dili

This is surprising since the 2 and 4 fields are the most important.
So what is the functional solution? i mean use 2+4= 6 with torpedoes or that also can't work?

If so this means that weapon filters are useless for aircraft that have torpedoes?

I did not find a functional solution to make the weapon filters work for craft that use torpedos.
Maybe there is a workaround using the "alternate use" and "alternate device" values of the devices itself.
I guess this filter behaviour is still at this state because there are voices that insist on this is working as it should.

I do not agree, as having one missiontype using two filter values at the same time does contradict logic.

Also, it is quite complicated to setup a good filter calculation. For my "WITP 2" I had the same issues as seen in AE before I finally got it working.
Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

RE: Aircraft Weapon Filters

Post by Dili »

So the game uses as alternate the device slot 208 for Axis and device slot 210 for Allies?
RichardAckermann
Posts: 270
Joined: Fri Dec 04, 2015 12:07 pm

RE: Aircraft Weapon Filters

Post by RichardAckermann »

I do not remember the device slots used for this. It's been quite some time since I took a look at this.
Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

RE: Aircraft Weapon Filters

Post by Dili »

Sorry 209 and 210. 209 have 800kg AP bomb, 210 have 2000lb AP bomb
User avatar
Admiral DadMan
Posts: 3426
Joined: Fri Feb 22, 2002 10:00 am
Location: A Lion uses all its might to catch a Rabbit

RE: Aircraft Weapon Filters

Post by Admiral DadMan »

I am a modding aircraft loadouts to specify ordinance by mission. I read the following threads:

Aircraft Loads

Mark 17 Depth Charge

I am experiencing the "torpedo bomber naval attack double weapon loadout" issue described earlier in this thread: Post #1

To test the issue, I set Lexington and Enterprise in separate TFs in the same hex. Enterprise carries torpedoes, Lexington does not in order to test what happens when no torps are available here is what I get:

Lexington:
6 Hexes/Naval Attack/Use Torpedos/10000ft
*12 x TBD-1 Devastator bombing from 10000 feet * Naval Attack: 1 x 250 lb SAP Bomb, 1 x 500 lb SAP Bomb

6 Hexes/Naval Attack/Use Bombs/10000ft
*10 x TBD-1 Devastator bombing from 10000 feet * Naval Attack: 1 x 250 lb SAP Bomb, 1 x 500 lb SAP Bomb

3 Hexes/Naval Attack/Use Torpedos/10000ft
*9 x TBD-1 Devastator bombing from 10000 feet Naval Attack: 1 x 1000 lb SAP Bomb

3 Hexes/Naval Attack/Use Bombs/10000ft
*8 x TBD-1 Devastator bombing from 10000 feet Naval Attack: 1 x 1000 lb SAP Bomb


Enterprise:
6 Hexes/Naval Attack/Use Torpedos/10000ft
*14 x TBD-1 Devastator bombing from 10000 feet * Naval Attack: 1 x 250 lb SAP Bomb, 1 x 500 lb SAP Bomb

6 Hexes/Naval Attack/Use Bombs/10000ft
*11 x TBD-1 Devastator bombing from 10000 feet * Naval Attack: 1 x 250 lb SAP Bomb, 1 x 500 lb SAP Bomb

3 Hexes/Naval Attack/Use Torpedos/10000ft
*9 x TBD-1 Devastator launching torpedoes at 200 feet Naval Attack: 1 x 22.5in Mk13 AerTorp, 1 x 1000 lb SAP Bomb

3 Hexes/Naval Attack/Use Bombs/10000ft
*11 x TBD-1 Devastator bombing from 10000 feet Naval Attack: 1 x 1000 lb SAP Bomb


Should I be looking at "Alt Device"/"Alt Use" settings?

"ALT USE" device data field



Image
Attachments
TBD.jpg
TBD.jpg (300.25 KiB) Viewed 484 times
Scenario 127: "Scraps of Paper"
(\../)
(O.o)
(> <)

CVB Langley:
Image
User avatar
inqistor
Posts: 1813
Joined: Wed May 12, 2010 1:19 pm

RE: Aircraft Weapon Filters

Post by inqistor »

That was AGES ago, but I think you have to delete all alternate devices, if you are using filters. Check my MOD:

http://www.matrixgames.com/forums/fb.asp?m=3360956

I have only Japanese planes done, but everything seems to work fine.

Just to make sure:
you have to use BETA patch, because filtering doesn't work properly in latest official.
User avatar
Admiral DadMan
Posts: 3426
Joined: Fri Feb 22, 2002 10:00 am
Location: A Lion uses all its might to catch a Rabbit

RE: Aircraft Weapon Filters

Post by Admiral DadMan »

Your thread/mod was done before the 2015 Official patch, so what you're calling beta is now rolled out.

Thank for the recommendation though. I did look into that, and it didn't change anything.
ORIGINAL: inqistor

That was AGES ago, but I think you have to delete all alternate devices, if you are using filters. Check my MOD:

http://www.matrixgames.com/forums/fb.asp?m=3360956

I have only Japanese planes done, but everything seems to work fine.

Just to make sure:
you have to use BETA patch, because filtering doesn't work properly in latest official.
Scenario 127: "Scraps of Paper"
(\../)
(O.o)
(> <)

CVB Langley:
Image
Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

RE: Aircraft Weapon Filters

Post by Dili »

Alfred says earlier in this topic to not use 800kg AP bomb, 2000lb AP bomb as alternate to torpedoes. Slots 209 and 210.
Are you doing that?
User avatar
Admiral DadMan
Posts: 3426
Joined: Fri Feb 22, 2002 10:00 am
Location: A Lion uses all its might to catch a Rabbit

RE: Aircraft Weapon Filters

Post by Admiral DadMan »

I did read Alfred's advisory. I am doing neither of those things.


I posted a screen shot of what I did.

ORIGINAL: Dili

Alfred says earlier in this topic to not use 800kg AP bomb, 2000lb AP bomb as alternate to torpedoes. Slots 209 and 210.
Are you doing that?
Scenario 127: "Scraps of Paper"
(\../)
(O.o)
(> <)

CVB Langley:
Image
Dili
Posts: 4742
Joined: Fri Sep 10, 2004 4:33 pm

RE: Aircraft Weapon Filters

Post by Dili »

Apologies i didn't paid attention to the screenshot.

Edit: did you checked Inquistor scenario and his solution?

Edit2: i see you checked it.
Post Reply

Return to “Scenario Design and Modding”