PDA

View Full Version : Native FSX Mitsubishi F-2A and F-2B test release



kbt
January 7th, 2018, 22:14
This model reads VC of IRIS F - 16D Fighting Falcon depending on configuration. Therefore IRIS F - 16D Fighting Falcon is required.
However, there is a description text of the installation that does not require IRIS F - 16D Fighting Falcon.

Please try to display according to various conditions on PC and FS you are using.

Also, it is a test of whether you can understand with the mysterious explanation of English written by me :ghost:.


https://www.youtube.com/watch?v=JUdlQxSZui4


Download
https://1drv.ms/u/s!AqRutmRwyd-jvhZOPlD42wvy9GD5 (https://1drv.ms/u/s!AqRutmRwyd-jvhZOPlD42wvy9GD5)

OR

https://drive.google.com/file/d/1cm4d75ZyEjJGSwYYtabZXVPVMNejIxDu/view?usp=sharing

Tool
January 8th, 2018, 01:51
Nice! I was stationed at Misawa 2 years ago. I miss F-2.

thunder100
January 8th, 2018, 02:01
Overhere we have no access right to the download-any alternative solution?

Thanks a lot

Roland

Bjoern
January 8th, 2018, 02:33
Download works for me.

MrZippy
January 8th, 2018, 03:39
Google Drive download worked!

thunder100
January 8th, 2018, 03:50
Thanks 2nd Link worked well

Roland

Ferry_vO
January 8th, 2018, 03:50
Thanks, will have to try the Aerosoft F-16 pit with this one.

georges-andre
January 8th, 2018, 07:39
what a great new, they looks good in flight but i have a question, why don't use the default sound of the F2A for fs2004 for people who have not the IRIS F16.
I hope for a real good 3d cockpit.
Have a nice flight and happy new year for all

Victory103
January 8th, 2018, 08:48
Very nice job on the jet and glad I still keep the IRIS D around. Any plans for Tacpack integration?

MDIvey
January 8th, 2018, 09:13
Thanks KBT

Been Looking forward to these

Matt

Ferry_vO
January 8th, 2018, 10:57
Well it seems Aerosoft have a form of protection against using their VC with another model; shame as I don't have the Iris F-16.

menef
January 8th, 2018, 11:19
FSX Gold - Windows7-64 bit - IRIS F16D installed
When I try to load the aircraft Fsx crashes and says : 'IMPOSSIBLE TO LOAD THE AIRCRAFT'

MrZippy
January 8th, 2018, 12:04
FSX Gold - Windows7-64 bit - IRIS F16D installed
When I try to load the aircraft Fsx crashes and says : 'IMPOSSIBLE TO LOAD THE AIRCRAFT'

Ah, thought I was the only one that happened to. I clicked on the OK and the aircraft showed in the window. I hit either "Fly Now' or tried to load a flight plan and the got the CTD. I did not install the IRIS F-16D, I just changed the aircraft.cfg.

http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=56902&stc=1

Hit close....it shows! But hit FLY NOW= CTD

http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=56903&stc=1

menef
January 8th, 2018, 12:40
Ah, thought I was the only one that happened to. I clicked on the OK and the aircraft showed in the window. I hit either "Fly Now' or tried to load a flight plan and the got the CTD. I did not install the IRIS F-16D, I just changed the aircraft.cfg.

http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=56902&stc=1

Hit close....it shows! But hit FLY NOW= CTD

http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=56903&stc=1

Exactly the same!

kbt
January 8th, 2018, 19:13
Most of the people who installed F-2 are not successful in viewing?
My Iris 16d and your iris 16d have different folder configurations?



Excerpts from the readme file, just in case.


About the case without IRIS F-16D

First, add "//" to the description of all model configs as follows.



[models]
normal=f-2a_adtw_asm
//interior=..\..\IRIS F-16D Fighting Falcon CL\model.cl\F16D-VC-CL


This will invalidate IRIS F - 16D.


Then rename aircraft_no_iris_f16.cfg to aircraft.cfg. The description in this has already read Panel.no_iris.





http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=56912&stc=1



The other thing that I care about is that "¥" is converted to "\". Please try rewriting the corresponding letters with your keyboard.
http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=56917&stc=1

strykerpsg
January 8th, 2018, 19:39
Beautiful work! Too bad I no longer have the Iris F-16D files to merge into this beauty. I will live virtually and vicariously through your forthcoming great screen shots so please don't be stingy! :very_drunk:

DaveWG
January 8th, 2018, 23:06
No problems with the merge here. Works fine in P3d v4.
Thanks for a great model. :encouragement:

kbt
January 9th, 2018, 03:46
I found a lot of problems, so I will reconfirm the model and config. I will also consider original VC.

I appreciate your cooperation.

We will delete the link once.

kbt
January 9th, 2018, 03:49
[QUOTE=kbt;1120286]This model reads VC of IRIS F - 16D Fighting Falcon depending on configuration. Therefore IRIS F - 16D Fighting Falcon is required.
However, there is a description text of the installation that does not require IRIS F - 16D Fighting Falcon.

Please try to display according to various conditions on PC and FS you are using.

Also, it is a test of whether you can understand with the mysterious explanation of English written by me :ghost:.


https://www.youtube.com/watch?v=JUdlQxSZui4


Download
(https://1drv.ms/u/s!AqRutmRwyd-jvhZOPlD42wvy9GD5)
Distribution ends once.

menef
January 9th, 2018, 04:03
???

http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=56924&stc=1

:mixed-smiley-010:

kbt
January 9th, 2018, 04:04
No problems with the merge here. Works fine in P3d v4.
Thanks for a great model. :encouragement:


:applause::applause::applause:

Penz
January 9th, 2018, 05:45
The merge version worked fine here as well (FSX and P3DV4), thank you Team FS KBT! :applause:

It is probably not 100% clear for everybody (from your explanation) that you want the user to extract the IRIS "666-F16D.CAB" file to the "IRIS F-16D Marge\Panel\666-F16D" folder.

- JP

https://imgur.com/sfd4s7Z.jpg

(The aircraft is much more responsive to control input than the IRIS F-16, I had to adapt quickly or die, haha!).

Victory103
January 9th, 2018, 08:43
I think that's it Penz.

@kbt I am sure many on SOH forums would be happy to offer assistance with the translation for future versions, at least compile it for the the English reading/speaking sim users.

Naruto-kun
January 9th, 2018, 09:13
@kbt Did you have any manuals of the real aircraft that you worked from for the FS9 version? If so, would you be able to share them?

Naismith
January 9th, 2018, 10:53
Google Drive download worked!
and is super fast!

How certain FSim sites retain speeds from the 90's befuddles me..... I'm looking at you SimV & FS.com - both have ads. :biggrin-new:

Jafo
January 9th, 2018, 14:17
Bird with VC worked painlessly for me [FSX-A] ....looks good, too...;)

strykerpsg
January 9th, 2018, 14:23
Any chance this might work with the F-16 that comes with P3D? I want to say it's Aerosoft, but could be Iris.

DaveWG
January 9th, 2018, 23:38
The P3d F-16 is the Aerosoft one.
It should be possible to merge it, but it would need different files copied and some cfg editing.

Ferry_vO
January 10th, 2018, 00:04
The P3d F-16 is the Aerosoft one.
It should be possible to merge it, but it would need different files copied and some cfg editing.

Tried it with the fsx version, but it gives an "oops wrong model!" error so I think aerosoft has done some form of protection build in.

strykerpsg
January 10th, 2018, 00:04
The P3d F-16 is the Aerosoft one.
It should be possible to merge it, but it would need different files copied and some cfg editing.

Thanks Dave. Much appreciated advice

kbt
January 10th, 2018, 00:45
Tried it with the fsx version, but it gives an "oops wrong model!" error so I think aerosoft has done some form of protection build in.

I also tried AEROSOFT. It was shown as well as you.

DaveWG
January 10th, 2018, 10:59
Tried a quick merge with the Aerosoft / Default P3d F-16 VC. Had to edit a few cfg's and stuff, but works fine.

http://daveg.cbfsim.org/screens/F2_F16_Merge.jpg

strykerpsg
January 10th, 2018, 14:42
Tried a quick merge with the Aerosoft / Default P3d F-16 VC. Had to edit a few cfg's and stuff, but works fine.

http://daveg.cbfsim.org/screens/F2_F16_Merge.jpg

Care to share your modified cfg's? You would be my best friend for the week....:ernaehrung004:

DaveWG
January 10th, 2018, 21:44
Hi Matt, that was a quick hack, and probably not the best way of doing it. I'll sort out some proper instructions etc tonight.

strykerpsg
January 11th, 2018, 00:00
Hi Matt, that was a quick hack, and probably not the best way of doing it. I'll sort out some proper instructions etc tonight.

Thanks indeed. Looking forward to your details of how to get her into a native LM virtually supported bird, since I lost the Iris F-16 a while back.

kbt
January 11th, 2018, 06:57
We will make efforts to make installation easier so that you can display F - 2 correctly. Please wait.

http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=56955&stc=1
This VC is the model exported for FSX.
It is an image that seems to have already been completed, but time is still necessary before completion.

Naruto-kun
January 11th, 2018, 07:04
@kbt Did you have any manuals of the real aircraft that you worked from for the FS9 version? If so, would you be able to share them?

@kbt did you see this?

kbt
January 11th, 2018, 07:21
@kbt Did you have any manuals of the real aircraft that you worked from for the FS9 version? If so, would you be able to share them?

I'm sorry. I have forgotten.
There is a manual of F2 model for FS 9.
I do not have a flight manual of a real aircraft.

DaveWG
January 11th, 2018, 10:41
Thanks indeed. Looking forward to your details of how to get her into a native LM virtually supported bird, since I lost the Iris F-16 a while back.

Hi Matt,

Would you like to try these files: http://daveg.cbfsim.org/files/F2_F16_ModFiles.zip

It's set up for the default P3d F16. Instructions included in the zip. Should be fairly straightforward. Any questions, just shout.

strykerpsg
January 11th, 2018, 14:18
Hi Matt,

Would you like to try these files: http://daveg.cbfsim.org/files/F2_F16_ModFiles.zip

It's set up for the default P3d F16. Instructions included in the zip. Should be fairly straightforward. Any questions, just shout.

Currently at work, but will give it a run down tonight when I get home and, if the Ms. permits, tweak with it a bit on our weekend time. I will certainly let you know soonest. Thanks so much Dave.

thunder100
January 14th, 2018, 04:28
To KBT

First of all thank you for all that perfect models and the devotion to them

Really thank you

Roland

Second-->question no critisism or so

Will we get the old VC as internal FSX/ P3D model as well?
Why ?It was closer to a real F-2 as far as i recall

http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=57045&stc=1http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=57046&stc=1

Still need to repair again the HUD

kbt
January 14th, 2018, 06:15
To KBT

First of all thank you for all that perfect models and the devotion to them

Really thank you

Roland

Second-->question no critisism or so

Will we get the old VC as internal FSX/ P3D model as well?
Why ?It was closer to a real F-2 as far as i recall

http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=57045&stc=1http://www.sim-outhouse.com/sohforums/attachment.php?attachmentid=57046&stc=1

Still need to repair again the HUD




VC will be added in the next version.
The immediate problem.
Creation of HUD in FSX.
Create a switch with integrated landing light and taxing light.
Creation of these is a series of failures. It will take time to complete.

thunder100
January 14th, 2018, 08:36
thank you

HUD yes difficult
switch-sounds easy--->XML?

Roland

Daube
January 14th, 2018, 20:40
The original F-2 HUD as quite nice. It just needs to be collimated but I guess it's easier said than done...
This topic brought nice memories about the original version of this plane. I used to fly it quite often back in my FSX days, it was probably one of the nicest freeware jets I had at that time. :applause:

http://sapdaube.free.fr/fsx/daube_image1001.jpg

DennyA
January 14th, 2018, 22:54
Cool to hear a VC is coming! The Iris F-16D hasn't been available for sale for 3-4 years and I don't think it was ever re-released by anyone else, or I'd have just considered grabbing it!

kbt
January 15th, 2018, 00:16
thank you

HUD yes difficult
switch-sounds easy--->XML?

Roland

Yes, HUD is difficult. Moreover, the XML of the lighting switch with the top, middle and lower positions is also difficult. (The top is the landing light, the middle is OFF, the lower position is the taxi light)

kbt
January 15th, 2018, 00:19
The original F-2 HUD as quite nice. It just needs to be collimated but I guess it's easier said than done...
This topic brought nice memories about the original version of this plane. I used to fly it quite often back in my FSX days, it was probably one of the nicest freeware jets I had at that time. :applause:

http://sapdaube.free.fr/fsx/daube_image1001.jpg



Is this image FS9?

kbt
January 15th, 2018, 00:26
Cool to hear a VC is coming! The Iris F-16D hasn't been available for sale for 3-4 years and I don't think it was ever re-released by anyone else, or I'd have just considered grabbing it!


Apparently it seems so.

Bjoern
January 15th, 2018, 04:11
Yes, HUD is difficult. Moreover, the XML of the lighting switch with the top, middle and lower positions is also difficult. (The top is the landing light, the middle is OFF, the lower position is the taxi light)

Animation: Keyframe 0 = down (Taxi), 25 = middle (Off), 50 = up (Landing)



<Animation name="F-2_TaxiLdg_Light_Switch" guid="0aef10f5-4c5d-47c3-8e2e-5ae63e0474d9" length="50" type="Sim" typeParam2="F-2_TaxiLdg_Light_Switch" typeParam="AutoPlay" />

<PartInfo>
<Name>F-2_TaxiLdg_Light_Switch</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>(L:F-2 Taxi Landing Light Switch, number) 25 * 25 +</Code>
<Lag>100</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Landing/Taxi Light Switch (%((L:F-2 Taxi Landing Light Switch, number))%{case}%{:-1}Taxi Light On%{:0}Off%{:1}Landing Light On%{end})</TooltipText>
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 == (L:F-2 Taxi Landing Light Switch, number) 0 == and if{ 1 (>L:F-2 Taxi Landing Light Switch, number) }

(M:Event) 'LeftSingle' scmp 0 == (M:Event) 'RightSingle' scmp 0 == or (L:F-2 Taxi Landing Light Switch, number) 0 != and if{ 0 (>L:F-2 Taxi Landing Light Switch, number) }

(M:Event) 'RightSingle' scmp 0 == (L:F-2 Taxi Landing Light Switch, number) 0 == and if{ -1 (>L:F-2 Taxi Landing Light Switch, number) }

(L:F-2 Taxi Landing Light Switch, number) 1 == (A:LIGHT LANDING, bool) ! and if{ (>K:LANDING_LIGHTS_TOGGLE) }
(L:F-2 Taxi Landing Light Switch, number) -1 == (A:LIGHT TAXI, bool) ! and if{ (>K:TOGGLE_TAXI_LIGHTS) }

(L:F-2 Taxi Landing Light Switch, number) 0 == (A:LIGHT LANDING, bool) and if{ (>K:LANDING_LIGHTS_TOGGLE) }
(L:F-2 Taxi Landing Light Switch, number) 0 == (A:LIGHT TAXI, bool) and if{ (>K:TOGGLE_TAXI_LIGHTS) }
</CallbackCode>
</MouseRect>
</PartInfo>


That should work.

kbt
January 15th, 2018, 06:36
Animation: Keyframe 0 = down (Taxi), 25 = middle (Off), 50 = up (Landing)



<Animation name="F-2_TaxiLdg_Light_Switch" guid="0aef10f5-4c5d-47c3-8e2e-5ae63e0474d9" length="50" type="Sim" typeParam2="F-2_TaxiLdg_Light_Switch" typeParam="AutoPlay" />

<PartInfo>
<Name>F-2_TaxiLdg_Light_Switch</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>(L:F-2 Taxi Landing Light Switch, number) 25 * 25 +</Code>
<Lag>100</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Landing/Taxi Light Switch (%((L:F-2 Taxi Landing Light Switch, number))%{case}%{:-1}Taxi Light On%{:0}Off%{:1}Landing Light On%{end}</TooltipText>
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 == (L:F-2 Taxi Landing Light Switch, number) 0 == and if{ 1 (>L:F-2 Taxi Landing Light Switch, number) }

(M:Event) 'LeftSingle' scmp 0 == (M:Event) 'RightSingle' scmp 0 == or (L:F-2 Taxi Landing Light Switch, number) 0 != and if{ 0 (>L:F-2 Taxi Landing Light Switch, number) }

(M:Event) 'RightSingle' scmp 0 == (L:F-2 Taxi Landing Light Switch, number) 0 == and if{ -1 (>L:F-2 Taxi Landing Light Switch, number) }

(L:F-2 Taxi Landing Light Switch, number) 1 == (A:LIGHT LANDING, bool) ! and if{ (>K:LANDING_LIGHTS_TOGGLE) }
(L:F-2 Taxi Landing Light Switch, number) 1 == (A:LIGHT TAXI, bool) ! and if{ (>K:TOGGLE_TAXI_LIGHTS) }

(L:F-2 Taxi Landing Light Switch, number) 0 == (A:LIGHT LANDING, bool) and if{ (>K:LANDING_LIGHTS_TOGGLE) }
(L:F-2 Taxi Landing Light Switch, number) 0 == (A:LIGHT TAXI, bool) and if{ (>K:TOGGLE_TAXI_LIGHTS) }
</CallbackCode>
</MouseRect>
</PartInfo>


That should work.

Thank you for writing very helpful XML. However, I do not have the skill to correct this notation to the perfect Reverse Polish Notation.
The result at FS, the light did not turn on, the switch was only up and down movement.

Bjoern
January 15th, 2018, 06:44
Thank you for writing very helpful XML. However, I do not have the skill to correct this notation to the perfect Reverse Polish Notation.
The result at FS, the light did not turn on, the switch was only up and down movement.

Check that there is electrical power for the aircraft. Battery or engine+generator.

I have also corrected a bug in the script. See my last post above.

kbt
January 16th, 2018, 00:55
Check that there is electrical power for the aircraft. Battery or engine+generator.

I have also corrected a bug in the script. See my last post above.


https://youtu.be/iq01LD6UAzw

Thank you very much for your help.
Only taxi lights will be on. The switch remained in motion only up and down.

Bjoern
January 16th, 2018, 03:31
You can left or right click the switch.

kbt
January 16th, 2018, 04:23
You can left or right click the switch.


Left click to move up (middle, off), right click to move down (taxi light on). However, it does not move to the landing light (top).

Bjoern
January 16th, 2018, 06:14
Ah, I see where things might go wrong now.




<Animation name="F-2_TaxiLdg_Light_Switch" guid="0aef10f5-4c5d-47c3-8e2e-5ae63e0474d9" length="50" type="Sim" typeParam2="F-2_TaxiLdg_Light_Switch" typeParam="AutoPlay" />

<PartInfo>
<Name>F-2_TaxiLdg_Light_Switch</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>(L:F-2 Taxi Landing Light Switch, number) 25 * 25 +</Code>
<Lag>100</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Landing/Taxi Light Switch (%((L:F-2 Taxi Landing Light Switch, number))%{case}%{:-1}Taxi Light On - LMB/RMB: Switch Off%{:0}Off - LMB: Landing Light, RMB: Taxi Light%{:1}Landing Light On - LMB/RMB: Switch Off%{end})</TooltipText>
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 == (M:Event) 'RightSingle' scmp 0 == or (L:F-2 Taxi Landing Light Switch, number) 0 != and if{ 0 (>L:F-2 Taxi Landing Light Switch, number) }

(M:Event) 'LeftSingle' scmp 0 == (L:F-2 Taxi Landing Light Switch, number) 0 == and if{ 1 (>L:F-2 Taxi Landing Light Switch, number) }

(M:Event) 'RightSingle' scmp 0 == (L:F-2 Taxi Landing Light Switch, number) 0 == and if{ -1 (>L:F-2 Taxi Landing Light Switch, number) }

(L:F-2 Taxi Landing Light Switch, number) 1 == (A:LIGHT LANDING, bool) ! and if{ (>K:LANDING_LIGHTS_TOGGLE) }
(L:F-2 Taxi Landing Light Switch, number) -1 == (A:LIGHT TAXI, bool) ! and if{ (>K:TOGGLE_TAXI_LIGHTS) }

(L:F-2 Taxi Landing Light Switch, number) 0 == (A:LIGHT LANDING, bool) and if{ (>K:LANDING_LIGHTS_TOGGLE) }
(L:F-2 Taxi Landing Light Switch, number) 0 == (A:LIGHT TAXI, bool) and if{ (>K:TOGGLE_TAXI_LIGHTS) }
</CallbackCode>
</MouseRect>
</PartInfo>


In the old switch code, the code line for resetting the switch to the middle position when the left or right mouse button was pressed and the switch was NOT in the middle was executed after the code line for the landing lights. This immediately reset the switch to the middle position when clicking it for landing lights because the left mouse button was pressed and the switch variable was first zero and then one, which activated the condition to reset the switch.
The taxi light switch worked because the code line was executed after the line for resetting the switch.
Switching the line positions is an easy solution, because the code is always read from top to bottom, so if the switch is in the middle, the first condition to reset the switch will not activate.

Also note the improvement to the tooltip, which will now indicate which mouse button must be pressed to change the switch position.

Hope this is understandable.

kbt
January 17th, 2018, 03:15
Ah, I see where things might go wrong now.




<Animation name="F-2_TaxiLdg_Light_Switch" guid="0aef10f5-4c5d-47c3-8e2e-5ae63e0474d9" length="50" type="Sim" typeParam2="F-2_TaxiLdg_Light_Switch" typeParam="AutoPlay" />

<PartInfo>
<Name>F-2_TaxiLdg_Light_Switch</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>(L:F-2 Taxi Landing Light Switch, number) 25 * 25 +</Code>
<Lag>100</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Landing/Taxi Light Switch (%((L:F-2 Taxi Landing Light Switch, number))%{case}%{:-1}Taxi Light On - LMB/RMB: Switch Off%{:0}Off - LMB: Landing Light, RMB: Taxi Light%{:1}Landing Light On - LMB/RMB: Switch Off%{end})</TooltipText>
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 == (M:Event) 'RightSingle' scmp 0 == or (L:F-2 Taxi Landing Light Switch, number) 0 != and if{ 0 (>L:F-2 Taxi Landing Light Switch, number) }

(M:Event) 'LeftSingle' scmp 0 == (L:F-2 Taxi Landing Light Switch, number) 0 == and if{ 1 (>L:F-2 Taxi Landing Light Switch, number) }

(M:Event) 'RightSingle' scmp 0 == (L:F-2 Taxi Landing Light Switch, number) 0 == and if{ -1 (>L:F-2 Taxi Landing Light Switch, number) }

(L:F-2 Taxi Landing Light Switch, number) 1 == (A:LIGHT LANDING, bool) ! and if{ (>K:LANDING_LIGHTS_TOGGLE) }
(L:F-2 Taxi Landing Light Switch, number) -1 == (A:LIGHT TAXI, bool) ! and if{ (>K:TOGGLE_TAXI_LIGHTS) }

(L:F-2 Taxi Landing Light Switch, number) 0 == (A:LIGHT LANDING, bool) and if{ (>K:LANDING_LIGHTS_TOGGLE) }
(L:F-2 Taxi Landing Light Switch, number) 0 == (A:LIGHT TAXI, bool) and if{ (>K:TOGGLE_TAXI_LIGHTS) }
</CallbackCode>
</MouseRect>
</PartInfo>


In the old switch code, the code line for resetting the switch to the middle position when the left or right mouse button was pressed and the switch was NOT in the middle was executed after the code line for the landing lights. This immediately reset the switch to the middle position when clicking it for landing lights because the left mouse button was pressed and the switch variable was first zero and then one, which activated the condition to reset the switch.
The taxi light switch worked because the code line was executed after the line for resetting the switch.
Switching the line positions is an easy solution, because the code is always read from top to bottom, so if the switch is in the middle, the first condition to reset the switch will not activate.

Also note the improvement to the tooltip, which will now indicate which mouse button must be pressed to change the switch position.

Hope this is understandable.



In the script of this time the lighting switch moved from the OFF position to the taxi light and the landing light. However, except for the first click, it will be invalid and the switch will not work. When reselecting an aircraft or loading from a saved flight, it is reset and clicking becomes possible again, and only the first click, the switch shows a reaction and moves.

Bjoern
January 17th, 2018, 12:07
This is my last attempt. If does not work, you will have to ask somebody else or try to fix the code yourself.



<Animation name="F-2_TaxiLdg_Light_Switch" guid="0aef10f5-4c5d-47c3-8e2e-5ae63e0474d9" length="50" type="Sim" typeParam2="F-2_TaxiLdg_Light_Switch" typeParam="AutoPlay" />

<PartInfo>
<Name>F-2_TaxiLdg_Light_Switch</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>(L:F-2 Taxi Landing Light Switch, number) 25 * 25 +</Code>
<Lag>100</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Landing/Taxi Light Switch (%((L:F-2 Taxi Landing Light Switch, number))%{case}%{:-1}Taxi Light On - LMB/RMB: Switch Off%{:0}Off - LMB: Landing Light, RMB: Taxi Light%{:1}Landing Light On - LMB/RMB: Switch Off%{end})</TooltipText>
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ (L:F-2 Taxi Landing Light Switch, number) 0 == if{ 1 (>L:F-2 Taxi Landing Light Switch, number) } els{ 0 (>L:F-2 Taxi Landing Light Switch, number) } }

(M:Event) 'RightSingle' scmp 0 ==
if{ (L:F-2 Taxi Landing Light Switch, number) 0 == if{ -1 (>L:F-2 Taxi Landing Light Switch, number) } els{ 0 (>L:F-2 Taxi Landing Light Switch, number) } }

(L:F-2 Taxi Landing Light Switch, number) 1 == (A:LIGHT LANDING, bool) ! and if{ (>K:LANDING_LIGHTS_TOGGLE) }
(L:F-2 Taxi Landing Light Switch, number) -1 == (A:LIGHT TAXI, bool) ! and if{ (>K:TOGGLE_TAXI_LIGHTS) }
(L:F-2 Taxi Landing Light Switch, number) 0 == if{ (A:LIGHT LANDING, bool) if{ (>K:LANDING_LIGHTS_TOGGLE) } (A:LIGHT TAXI, bool) if{ (>K:TOGGLE_TAXI_LIGHTS) } }
</CallbackCode>
</MouseRect>
</PartInfo>

kbt
January 18th, 2018, 00:11
I appreciate that you cooperated with your precious time.
Arigato gozaimasu!


This script is perfect. Thank you again.

Bjoern
January 18th, 2018, 07:40
No problem. :ernaehrung004:

Rukato07
September 14th, 2022, 09:09
Any way to get the HUD to show up in P3DV4? Or is there a switch I am missing?