Newbie -conditional visibility

Home Forums Support Newbie -conditional visibility

Topic Resolution: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2124
    capablanca
    Participant

    Hello, I am a “fiddler” with FSX scenery and aircraft etc (yawn).
    I am trying to display 2 cruise ships in Naples Bay (italy)-only “MAY-SEP”

    The ships are there(so i assume everything else is in place) but stay there all year – here is my code in “SODE xml” folder.
    I have made numerous changes to try based on the examples but have got nowhere. I would be grateful for a pointer.
    ————————————————————————————–
    <SODE>

    <!– Data Probe serving its clients –>
    <SimObject Name=”EDP NAPLES”>
    <Placement Lat=”40.6705″ Lon=”14.3825″ Alt=”0#AGL” Hdg=”0.0″/>
    <Model SimTitle=”12bPilot_SODE_Environmental_Data_Probe”>
    <EnvironmentalDataProbe ClientList=”VEH_water_cruiseship1_sm;cruise_linerA_sm”/>
    </Model>
    </SimObject>

    <!– cruiseship1 –>
    <SimObject Name=”VEH_water_cruiseship1_sm”>
    <Placement Lat=”40.670514″ Lon=”14.382502″ Alt=”0#AGL” Hdg=”090″/>
    <Model SimTitle=”VEH_water_cruiseship1_sm”/>
    <ConditionalVisibility Variable=”MonthOfYear” Value=”MAY-SEP” />

    </SimObject>

    <!– cruiselinerA –>
    <SimObject Name=”cruise_linerA_sm”>
    <Placement Lat=”40.718108″ Lon=”14.236513″ Alt=”0#AGL” Hdg=”180″/>
    <Model SimTitle=”cruise_linerA_sm”/>
    <ConditionalVisibility Variable=”MonthOfYear” Value=”MAY-SEP” />

    </SimObject>

    </SODE>

    #2125
    12bPilot
    Keymaster

    XML syntax error…you have a closed (Model/) tag before the (ConditionalVisibility) tag!
    The ConditionalVisibility must be nested within the Model tag

    Example:

    <!– cruiseship1 –>
    <SimObject Name=”VEH_water_cruiseship1_sm”>
      <Placement Lat=”40.670514″ Lon=”14.382502″ Alt=”0#AGL” Hdg=”090″/>
      <Model SimTitle=”VEH_water_cruiseship1_sm”>
        <ConditionalVisibility Variable=”MonthOfYear” Value=”MAY-SEP” />
      </Model>
    </SimObject>
    #2126
    capablanca
    Participant

    Thank you oh so much, I had added the </Model> at the end of both entries in my trials to no avail, had not noticed the sly “/” hiding!!

    Always the case, thank you again. All working as intended 🙂

    John

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.