• 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.

Blender To FSX : Visibility issue...

Messages
230
Country
ecuador
Hello Felix @capt_x,

I continue to experiment Blender2FSX Toolset ...!

Today, I am faced with a problem of "Visibility". This code does not work:

Code:
 <Animation name="MoraneColdAndDark" guid="b4e5b630-43e4-44ca-0b1e-012074b472d9" length="75" type="Sim" typeParam2="MoraneColdAndDark" typeParam="AutoPlay"/>
 
    <PartInfo>
        <Name>MoraneColdAndDark</Name>
        <AnimLength>75</AnimLength>
        <Visibility>
            <Parameter>
                <Code>
                    (A:SIM ON GROUND, bool) 1 == (L:Cold) 0 == and
                        if{
                            1 (>K:MAGNETO1_OFF)
                            1 (>K:ENGINE_AUTO_SHUTDOWN)
                            50 (>K:ADD_FUEL_QUANTITY)
                            1 (>L:Cold)
                          }
                 </Code>
             </Parameter>
        </Visibility>
    </PartInfo>

The value of (L: Cold) is always 0 ... The code is absolutely not considered! :banghead:

I change my section <Visibility> to <Animation>, of course by changing the assignment of TAG in Blender as well:

Code:
 <Animation name="MoraneColdAndDark" guid="b4e5b630-43e4-44ca-0b1e-012074b472d9" length="75" type="Sim" typeParam2="MoraneColdAndDark" typeParam="AutoPlay"/>
  
    <PartInfo>
        <Name>MoraneColdAndDark</Name>
        <AnimLength>75</AnimLength>
        <Animation>
            <Parameter>
                <Code>
                    (A:SIM ON GROUND, bool) 1 == (L:Cold) 0 == and
                        if{
                            1 (>K:MAGNETO1_OFF)
                            1 (>K:ENGINE_AUTO_SHUTDOWN)
                            50 (>K:ADD_FUEL_QUANTITY)
                            1 (>L:Cold)
                          }
                 </Code>
             </Parameter>
        </Animation>
    </PartInfo>


... And everything works perfectly! :D

Why? :confused:

Thank you for all your wonderful work ...
 
We don't know what kind of a thing L:Cold is. Is it an enum, a percent, a bool?

XML and FSX want to know that too...

;)
 
Hey Daan,

You're absolutely right my friend! So I added the specification of the variable (bool) and it does not change anything to the problem:

<Visibility> does not work. <Animation> is working ...!

So my question is the same: Why?

Thank you for your help and sharing ... ;)
 
Getting deeper into your code... It seems to me that you're wanting to control Magneto, Engine auto shutdown and Add fuel quantity in your vis. section. In fact, the vis section should be something like this:

Code:
<PartInfo>
        <Name>Anything_vis</Name>
        <AnimLength>75</AnimLength>
        <Visibility>
            <Parameter>
                <Code>
                    (L:Some_condition, bool)
                        if{ 1 } els{ 0 }
                 </Code>
             </Parameter>
        </Visibility>
    </PartInfo>

The if{ 1 } els{ 0 } thing states that the object will be visible if the condition bool is true, the visibility will be 1 (so visible) and if the bool is anything unless true (so: false), the vis. will be 0 (so invisible).

What you're now doing, is controlling something in your vis section. This won't work. You can put it in either the animation section or some 2D gauge. What exactly do you want to happen with this vistag?

Regards ;)
 
In fact, with this code, I'm not trying to make an object visible ...! My goal is a "cold and dark". According to Bill Leaming, use a "Visibility" section on a hidden object is possible ... And this may be down very useful as a Cold and Dark. I just want my code to be read and interpreted by FSX.:rolleyes:

Thank you for everything
 
Back
Top