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

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

Aircraft Weapon Filters

Post by scopejockey »

Hello.

I am unable to get filter 2 and 4 to work together.

My last test I have a B7A3 set up as (for testing not for game):

Torpedoe x1 filter 2
800kg AP x1 filter 4 (sometimes 20)
500kg GP x2 filter 1
60kg GP x6 filter 40
250kg GP x2 filter 64

When set to Naval Attack using Torpedo the aircraft uses both Torpedo (*N) and 800kg AP (*nP). When set to Naval Attack using Bombs only the 800kg AP (*nP) is used (which is correct). All other filters work correctly.

What am I doing wrong?
User avatar
btd64
Posts: 12738
Joined: Sat Jan 23, 2010 12:48 am
Location: Lancaster, OHIO

RE: Aircraft Weapon Filters

Post by btd64 »

If a torpedo bomber is set to Torp weapons, then it will use torps until they are gone. Then switch to bombs....GP
Intel i7 4.3GHz 10th Gen,16GB Ram,Nvidia GeForce MX330

AKA General Patton

DWU-Beta Tester
TOAW4-Alpha/Beta Tester
DW2-Alpha/Beta Tester
New Game Development Team

"Do everything you ask of those you command"....Gen. George S. Patton
scopejockey
Posts: 14
Joined: Sat Oct 28, 2017 11:48 pm

RE: Aircraft Weapon Filters

Post by scopejockey »

The problem is when set to use Torpedo it uses both torpedo and bomb (it uses both filters, 2 and 4).
User avatar
btd64
Posts: 12738
Joined: Sat Jan 23, 2010 12:48 am
Location: Lancaster, OHIO

RE: Aircraft Weapon Filters

Post by btd64 »

Tell me about the B7A3. Is it a 2E? Does it have the hard points for a torpedo and bombs? Is it an aircraft that you modded?....GP
Intel i7 4.3GHz 10th Gen,16GB Ram,Nvidia GeForce MX330

AKA General Patton

DWU-Beta Tester
TOAW4-Alpha/Beta Tester
DW2-Alpha/Beta Tester
New Game Development Team

"Do everything you ask of those you command"....Gen. George S. Patton
scopejockey
Posts: 14
Joined: Sat Oct 28, 2017 11:48 pm

RE: Aircraft Weapon Filters

Post by scopejockey »

It's an upgrade of the B7A in the stock game. All weapons are on centerline.

All my aircraft that use filter 2 and 4 are having this problem (when set to use torpedo they use both filters. 1E, 2E, 4E, Torpdeo bomber, dive bomber (they launch torpedoes at 200' elevation), heavy bomber, fighter bomber (they launch torpedoes at 200' elevation, fighters iirc correctly will not drop to 200'...it's been awhile since testing this). Weapon load out weight under or over the Max Load (which from what I seen max load does not matter for the load out).
Dili
Posts: 4713
Joined: Fri Sep 10, 2004 4:33 pm

RE: Aircraft Weapon Filters

Post by Dili »

Did you check if you had torpedoes and supply available?
Do you have the filters in tab 11-20 correspond with tab 1-10?

Did you tried to invert the filters? 4 for torpedo 2 for bomb. (i know how you made is how is supposed to be but just in case...)
scopejockey
Posts: 14
Joined: Sat Oct 28, 2017 11:48 pm

RE: Aircraft Weapon Filters

Post by scopejockey »

Yes. Level 10 AF. Max amount of supply (all 9s, forum will not allow me to post 6 9s). HQ has 100 torpedoes.

Yes. Adjusted aircraft a few days ago in case this was the issue. Latest test do not use 11-20.

Yes. No luck.
User avatar
BillBrown
Posts: 2335
Joined: Sat Jun 15, 2002 3:55 am

RE: Aircraft Weapon Filters

Post by BillBrown »

Here is a link to a long discussion of aircraft load filters, maybe it will help. tm.asp?m=3185771&mpage=1&key=filter
scopejockey
Posts: 14
Joined: Sat Oct 28, 2017 11:48 pm

RE: Aircraft Weapon Filters

Post by scopejockey »

Thanks for the help. That's the post that got me started with filters. I've been rereading to see if I have missed something.

I've been using filters for Allied aircraft for awhile.

A couple of weeks ago I've been editing the Japanese aircraft. I played the first turn of my campaign and noticed my B5Ns and G4Ms were attacking with both torpedo (filter 2) and 800kg AP bomb (filter 4). Checked my edits, everything looked ok. Other filters work ok. This morning I made a small map scenario to test various setups. No luck.

Another weird thing is using filters for the Alt Device/Alt Use. My USN string is working (torpedo (ALT Use 2, ALT Device GP Bomb) GP Bomb (ALT Use 52, Alt Device Napalm) Napalm (Alt Use 8, Alt Device Torpedo), but my IJN string is not. Using device filters will not work if using aircraft filters. I'm not using these devices for the above problem.
scopejockey
Posts: 14
Joined: Sat Oct 28, 2017 11:48 pm

RE: Aircraft Weapon Filters

Post by scopejockey »

I just copied Scenario 2 to a new slot. Added filter 2 to the existing torpedo for the B5N2 Kate and added a 800kg AP bomb with filter 4. It is using both weapons when "Use Torpedo".

I ran a second turn to engage Lexington and Enterprise. Torpedoes and bombs used by Kates.
RichardAckermann
Posts: 270
Joined: Fri Dec 04, 2015 12:07 pm

RE: Aircraft Weapon Filters

Post by RichardAckermann »

This is a know issue. There seems to be no way to define custom torpedo replacement by filter.
It's on Michaelm's to do list, but with him and bugfix support gone...
scopejockey
Posts: 14
Joined: Sat Oct 28, 2017 11:48 pm

RE: Aircraft Weapon Filters

Post by scopejockey »

Thanks.

I tried a search of the forum. I found one old, vague post, I believe the individual was talking about this issue.

I never have much luck with the forum search feature.

Thanks again. Back to the edit room.
Alfred
Posts: 6683
Joined: Thu Sep 28, 2006 7:56 am

RE: Aircraft Weapon Filters

Post by Alfred »

The 800kg bomb must never be designated as the alternate for a torpedo.
 
Use of the 800kg bomb is hard coded and dependent on several variables.  The game was designed to make it a rare event when the 800kg bomb is used (just as the 2000lb bomb is also meant to be a rare event).  Any attempt by a player to make it regularly available will result in perverse outcomes.
 
The 04 filter alternate to the filter 02 torpedo should be a bomb of 250kg or less.
 
Alfred
el cid again
Posts: 16980
Joined: Mon Oct 10, 2005 4:40 pm

RE: Aircraft Weapon Filters

Post by el cid again »

I have successfully hard coded the 800 kg bomb for various aircraft and it works fine PROVIDED that you
define it as a bomber vice a torpedo bomber. I allow players to produce various variants of some
aircraft - including in some cases dedicated torpedo bombers, anti-submarine armed bombers, horizontal
bombers, etc. [As appropriate for the date and type] The discussion is correct in that there is a hard
code 800kg bomb alternate load for a torpedo in theory. It omits that the alternate load probability is
33% - but some thread alleges that it is and that seems to be true from testing. It also omits that you
seem to be able to CONTROL the alternate load by how you define it in the device list - if you want to.
Just be sure your alternate device goes into the very same slot as the 800 kg bomb does. Generally you
can define alternate devices as you please, with apparently the same 33% chance they will be used, but
in the case of torpedo weapons, you must use the exact slot stock does. Also FYI one CAN drop larger
torpedoes from aircraft. The G7A program contemplated dripping the 21 inch Long Lance (for submarines),
and indeed that works if you put it in your aircraft data.

ORIGINAL: Alfred

The 800kg bomb must never be designated as the alternate for a torpedo.

Use of the 800kg bomb is hard coded and dependent on several variables.  The game was designed to make it a rare event when the 800kg bomb is used (just as the 2000lb bomb is also meant to be a rare event).  Any attempt by a player to make it regularly available will result in perverse outcomes.

The 04 filter alternate to the filter 02 torpedo should be a bomb of 250kg or less.

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

RE: Aircraft Weapon Filters

Post by scopejockey »

"The 04 filter alternate to the filter 02 torpedo should be a bomb of 250kg or less."

I tried 250lb, 500lb, 250kg, 500kg size bombs (both GP and AP) as filter 4. When set to Use Torpedo the aircraft, no matter type of aircraft, uses both torpedo (filter 2) and bomb (filter 4).

I've run my mod to Jan 49 many times. There is no issue with using 800kg or 2000lb bombs. Many of my late war aircraft, of all types, are armed with the heavier bombs.

The only problem I've encountered is with filter 2 and 4 (which is a known issue that is on a list of things to fix....see a few posts above).

When using the filters I've never had the game use the default alternate device.

When doing a Naval Strike, if I have torpedo as filter 2 and no filter 4 it uses the torpedo when "Use Torpedo" is selected. When "Use Bomb" is selected no weapon appears, because filter 4 was not used.

If I have torpedo as filter 2 and a bomb for filter 4 it uses the torpedo and bomb when "Use Torpedo" is selected. When "Use Bomb" is selected only the bomb is used.
Alfred
Posts: 6683
Joined: Thu Sep 28, 2006 7:56 am

RE: Aircraft Weapon Filters

Post by Alfred »

ORIGINAL: scopejockey

"The 04 filter alternate to the filter 02 torpedo should be a bomb of 250kg or less."

I tried 250lb, 500lb, 250kg, 500kg size bombs (both GP and AP) as filter 4. When set to Use Torpedo the aircraft, no matter type of aircraft, uses both torpedo (filter 2) and bomb (filter 4).

I've run my mod to Jan 49 many times. There is no issue with using 800kg or 2000lb bombs. Many of my late war aircraft, of all types, are armed with the heavier bombs.

The only problem I've encountered is with filter 2 and 4 (which is a known issue that is on a list of things to fix....see a few posts above).

When using the filters I've never had the game use the default alternate device.

When doing a Naval Strike, if I have torpedo as filter 2 and no filter 4 it uses the torpedo when "Use Torpedo" is selected. When "Use Bomb" is selected no weapon appears, because filter 4 was not used.

If I have torpedo as filter 2 and a bomb for filter 4 it uses the torpedo and bomb when "Use Torpedo" is selected. When "Use Bomb" is selected only the bomb is used.

Don't presume that I don't read every post in a thread. Nor should you presume that everyone who posts actually has any idea about what they say.

There is no list of bug fixes which anyone is looking into. Too many people around here like to present themselves as having direct contact with the devs.

1. The 800kg issue I referred to comes directly from the man who coded the air algorithms. It is an obvious issue based on your OP. You can prefer to rely on what others, without access to the code, say but I will always accept what the actual coder says instead.

2. The only "bug" involving torpedoes in the alternate loadouts was fixed by the coder back in 2012. It had revolved around shortage of torpedoes. Other modders have got their filters 02 and 04 to work in their mods so the problem lies with you and not with this invented 02 with 04 filter "bug". When you reach the threshold to post screenshots, do so for invariably inexperienced players never provide all the relevant details of what exactly they have done, or not done.

3. As the French say, "quel surprise" that when you order torpedoes be used, they appear on the aircraft. Also how convenient that at no stage you bother to tell us which weapon slots are being used. Both filters and weapon slots need to be used properly, especially when dealing with torpedoes. I see now that it was my mistake in believing that you had understood properly that long thread on the subject, far easier to believe that a bug exists.

Try to read what I wrote in both posts accurately and not substitute your own thinking for my words. I did not say 800kg bombs could not exist. What I said was not to make them the alternate for torpedoes, said in the context of you attempting to have them as nP in the loadout; nP of course standing for alternate Port Attack as a standard Port attack is both a different filter and presents differently on screen.

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

RE: Aircraft Weapon Filters

Post by scopejockey »

No need to get ugly. I never called it a bug. I asked why it is not working for me.

"invariably inexperienced players" hardly, I've been playing since UV.

When doing a Naval Strike, if I have torpedo, Wpn 3, as filter 2 and no filter 4 it uses the torpedo when "Use Torpedo" is selected. When "Use Bomb" is selected no weapon appears, because filter 4 was not used.

If I have torpedo, Wpn 3, as filter 2 and a bomb, Wpn 4, for filter 4 it uses the torpedo and bomb when "Use Torpedo" is selected. When "Use Bomb" is selected only the bomb is used.

"I did not say 800kg bombs could not exist." I did not imply that. I said there is no issue using as many of them as you want. From all of my testing the filters hold over default settings.

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

RE: Aircraft Weapon Filters

Post by RichardAckermann »

I briefly talked to Michaelm about this and a lot of other small issues found by players several month ago before he went on another project.
If I remember his answer right, he told me that filter 4 should be used for naval bombing, and filter 2 for naval torpedoing. No matter what device ID was used for the weapon slot.
The filters 2 & 4 should exclude each other.

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

RE: Aircraft Weapon Filters

Post by Dili »

That is what OP is doing. But he says when he sets the squadron to fire torpedoes the aircraft drops both.
scopejockey
Posts: 14
Joined: Sat Oct 28, 2017 11:48 pm

RE: Aircraft Weapon Filters

Post by scopejockey »

While trying to find a work around I came across something pretty exciting. I'm still testing, but right now it seems to work. If this is known I apologize (I have not seen it in the three or four mods I have looked at).

For awhile I have been linking three to five weapons together using Alt Device/Alt Use (filter 1 and 64 do not work). Example: 22" torpedo (Alt Use 2), 2000lb bomb (Alt Use 48), Napalm (Alt Use 8), back to torpedo (Alt Device points to next weapon in string). I've always had weapons of similar weight in the string.

Today I did a new string 22" torpedo (Alt Use 2) to a 1000lb SAP (Alt Use 16) to a 1000lb GP (Alt Use 32) to a 1000lb napalm bomb (Aly Use 8) back to the torpedo.

I put ONE torpedo on the centerline of my AD-1. Opened the game, checked the loads for each mission.

Airfield Attack: 2 x 1000lb GP bombs (when I changed the weight to 20 got 114 bombs)
Port Attack: 2 x 1000lb SAP bombs
Naval Attack: 1 torpedo (no change in weapon numbers)
Ground Attack: 2 x napalm bombs

Basically the weight of the Alt Device is divided into the weight of the carried weapon the result is number of Alt Device carried.

I'm still testing. Right now I believe if an A-20 was loaded with 4 500lb bombs (Alt Use 26) would use 80 25lb parafrags (Alt Use 32).

++++++++++++++

Now I know why my IJN/IJA device strings did not work. My mod is a copy of Scenario 2. Two of the Japanese torpedoes have wrong weights and would not use the 800kg bomb. I corrected the weight and now the bomb works along with the 60kg bombs (currently I get 10 60kg bombs for a torpedo swap).
Post Reply

Return to “Scenario Design and Modding”