• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Multiple conditions

Messages
67
Country
switzerland
Good evening


Once more I could need your help :)

I found this thread (http://www.fsdeveloper.com/forum/showthread.php?t=1401) about multiple conditions.
As MDLTweaker couldn't tweak our models, I tried to tweak the lights manually in asm. Everything worked fine until now, but my collegue has some requests I couldn't achieve.

Code:
    IFIN1 viewdis, 33Bh, 1500, 10000
    IFIN1 nodaylight, tod, 2, 4
    IFIN1 nav1_10, 7C0h, 0985h, 0985h
    BGL_JUMP_32 show
    nav1_10 label word
    IFIN1 nav2_10, 7C2h, 0985h, 0985h
    BGL_JUMP_32 notshow
    show label BGLCODE
    SEPARATION_PLANE OneSide, -32588, 0, 3425, 32767
    BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 00012a63fh, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb)
    nav2_10 label word
    notshow label BGLCODE
    BGL_JUMP_32 OneSide_end
    OneSide label word
    BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 000680000h, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb)
    OneSide_end label word
    nodaylight label word
    viewdis label word
    BGL_RETURN

The lights work only when NAV1 is active on 109.85 (and the distance is more than 1500m of course). I know there are a lot of IFIN-Commands and I actually got confused by so many of them ;)

I would like to have the green lights showing up, when either NAV1 or NAV2 is active on frequency 109.85. If not, red lights should be shown (haven't added this part yet). From the other side, it should be always red.

I'm still learning to tweak and I'm not yet able to do such a complex code.

Hope you can make me happy again :D


Best Regards

Marc Läderach
 
Hi Marc,

According to your description it should show for both NAV1 and NAV2, so there was a wrong jump there. I would try it like this:

Code:
IFIN1 viewdis, 33Bh, 1500, 10000
    IFIN1 nodaylight, tod, 2, 4
    IFIN1 nav1_10, 7C0h, 0985h, 0985h
    BGL_JUMP_32 show
    nav1_10 label word
    IFIN1 nav2_10, 7C2h, 0985h, 0985h
    ;BGL_JUMP_32 show
    show label BGLCODE
    SEPARATION_PLANE OneSide, -32588, 0, 3425, 32767
    BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 00012a63fh, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb)   ; green light
    BGL_JUMP_32 OneSide_end
    nav2_10 label word
    OneSide label word
    BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 000680000h, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb)  ; red light
    OneSide_end label word
    nodaylight label word
    viewdis label word
    BGL_RETURN
 
Back
Top