NOTE, Nov 7, 2022: The Ki-43-Ia and -Ib now have a fully new tube sight implementation. If you use the new mod (available in the thread below), the 4 cockpit classfiles here will be superseded, and you will be instructed in the new mod's readme.txt on how to deal with them. The new Ki-43 mod is available in this thread:
https://www.sas1946.com/main/index.php/topic,69779.0.html------------------------------------------------------------------------
UPDATE, Dec 17, 2021: Second release, adding two more cockpits and after checking out/refining ALL cockpits that are present in my BAT 4.0 game. There were several sights overlooked and not altered in their FOV setting; they're correct now. Updated readme contents below.
------------------------------------------------------------------------
This mod widens the field of view for the telescopic/tube sight view, suitable for the wide screens of today (optimized for 16:9). Note that this does not widen the FOV of the sight picture itself; its true field of view remains unchanged. Rather, the whole screen FOV is widened, which shrinks the image scale as a whole, the purpose being to not clip off the top and bottom of the circular field of view.
There are a few planes not present in my BAT 4.0 game, and hence not tested. If you find any problem, let me know so that a fix can be issued in short order. I managed to compile the R_5 and R_5_SKIS cockpits, but the new 6dof limits appear to remain unchanged, leading me to suspect these 'pits are not being 'seen' by my game.
Get it here:
https://www.mediafire.com/file/rkl0pktn1hb9bu1/%2521_%2521_%2521_Tube_Sight_Cockpits.7z/fileFrom the included, updated readme file:
Tube Sight FoV fixes (plus VSI and 6dof limits, while I'm at it), by WxTech
Second release, after checking out and refining all cockpits I can. There are a few that are not in my BAT 4.0 game, and hence cannot be tested by me.
This mod does not address any model or texture issues. ONLY the classfiles have been worked on.
The B.A.T. 4.1.3 code is the basis of this work. It should be OK for 4.12 through the latest B.A.T.
Most players these days use 16:9 aspect monitors--if not wider still. Virtually no one uses the outmoded 4:3 screen format. The tube sight FoV values of 31 degrees from the old days are no longer appropriate, because the top and bottom portions of the sight view become clipped. This mod alters the cockpit classfiles for those cockpits having telescopic/tube sights. Where appropriate, which is in almost all cases, the FoV has been widened from the typical 31 degrees to 45 degrees. Now the full circular field of the sight is visible for 16:9 displays. For monitors of wider aspect, there will still be clipping at the top and bottom, but at least it will be reduced.
Listed below are the cockpit class names where tube sights are in use. In the great majority I added anew the code for the setting of the 6dof limits in translation (fore-aft, side-to-side and up-down). Formerly this was absent, with the defaults specified in another base class being used. For some number of Japanese planes, the formerly far-too-crisp VSI (vertical speed) gauge response has been slowed down, bringing them into line with other such gauges. For the SBD the too-slow VSI response has had hysteresis halved.
The R_5 and the R_5_SKIS do not appear to be 'seen' by my game, the updated 6dof limits not reflecting my changes. And so I can't be sure if my alterations are as refined as I'd like.
I include in a sub-folder all the Java files. For even non-programmers who are curious, these files are readable with any text editor (like Notepad). Notepad++ is excellent, due to its automatic color formatting for easier readability.)
A5M4 6dof NEW vspeed
CR32quater 6dof NEW
D1A1 6dof NEW has BAD sight aiming problem
D3A1 vspeed
D3A2 6dof NEW vspeed
D4Y2 vspeed
D4Y3 vspeed
DuckFront 6dof NEW sight view compromised by cowl scoop
DXXI 6dof NEW
DXXI_SARJA3_EARLY 6dof NEW
DXXI_SARJA3_LATE 6dof NEW
F1M 6dof NEW vspeed (seems to be no such plane in BAT 4.0)
F1M2_P 6dof NEW vspeed
F2A2
Fokker_DXXIII 6dof NEW
FokkerCX 6dof NEW
FokkerG1 6dof NEW
Hawk_3 6dof NEW
He45 6dof NEW (seems to be no such plane in BAT 4.0)
I_15Bis
I_16TYPE5 6dof NEW
I_16TYPE6 6dof NEW (in BAT 4.0 has a reflector sight!)
KI_27KO 6dof NEW vspeed
KI_27OTSU 6dof NEW vspeed
KI_43 6dof NEW vspeed
KI_44_II_ko 6dof NEW vspeed
KI_51_I vspeed
Ki10 6dof NEW vspeed
Ki30A 6dof NEW vspeed
Ki51 6dof NEW vspeed
Koolhoven_FK51 6dof NEW
M33 6dof NEW (seems to be no such plane in BAT 4.0)
M33_F 6dof NEW (seems to be no such plane in BAT 4.0)
M33_F_Front 6dof NEW (seems to be no such plane in BAT 4.0)
[Me_410_Tubesight] not present due not being altered
Naka_A2N 6dof NEW vspeed
OS2U 6dof NEW
P_26 6dof NEW
P26 6dof NEW
PWS_10 6dof NEW
R_5 6dof NEW not sure if modded class being read
R_5_SKIS 6dof NEW not sure if modded class being read
R_10 6dof NEW
SB2U 6dof NEW
SBD3 6dof NEW vspeed made a bit less slow
Shavrov_2 6dof NEW (seems to be no such plane in BAT 4.0)
TBD1
VildebeestL 6dof NEW
VildebeestLIII 6dof NEW
VildebeestLIV 6dof NEW
VildebeestS 6dof NEW
NOTE! The F2A2 cockpit version here is, naturally, the original that has the basic tube sight. If you prefer to use my "New F2A-2 Tube Sight Mod" (available at
https://www.sas1946.com/main/index.php/topic,65876.0.html), here are the 4 cockpit classfiles you MUST disable/remove here for CockpitF2A2.class:
2A53A980634FCFE6
03EF6498B75EE724
5ED691C890D2BF50
AC47259A93F4E89A
As always, this work is offered for use by any and all, for any purpose, without restriction.
WxTech
Dec 17, 2021