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

P3D v4 Showing hard winter objects only from 1 - 15 January

Messages
777
Country
germany
Forgive me if there is any comparable thread with this contents, but I haven't found it so far.

I would like to reduce my shown hard winter objects from entire January to only 1 - 15. I use SODE and inside xml I use following lines to let them show up for the entire month:

</Model>
<Model SimTitle="ETUR_MOUNDS_HW">
<ConditionalVisibility Variable="MonthOfYear" Value="JAN;"/>
</Model>
</SimObject>

So how is it possible to add a command line / which command line is needed to let the mounds only appear from 1 to 15th of January, please?
 
Messages
3,274
Country
germany
Not at my computer, Manfred. But there is another variable like DayOfMonth if I am not mistaken. I will check later if you have not received a better answer.

From mobile hence short
 
Messages
777
Country
germany
Thanks a lot, guys.
Yes, that sounds good, but am I able to only let the selection show within only January and not all others months too? I know about using this variable (I used it in my detuner section as well...), but doing this, DayOfMonth or DayOfYear will let the selection appear also all other months, innit?
 
Messages
212
Country
germany
Hi Manfred,

DayOfMonth goes from 1 to 31...
You still have to set the month.

DayOfYear goes from 1 to 356 and shows you the respective day in the year.
Here 1 to 31 would be January and 325 to 356 would be December.
 
Messages
212
Country
germany
Small update to the variable DayOfMonth...

this variable is used without a definition of the month,
the action/visibility of the object will be repeated every month on the defined days.
 
Messages
777
Country
germany
Okay, that's what I might have known it. Thank you for clarification. I will try Mike's DayOfYear option. That sounds reasonable. Will report back....
 
Messages
777
Country
germany
Okay, I have added the lines as follows, but due to my luck it doesn't work so far:

<Model SimTitle="ETUR_MOUNDS_HW">
<ConditionalVisibility LogicExpression="A$B">
<Condition ID="A" Variable="MonthOfYear" Value="JAN;"/>
<Condition ID="B" Variable="MonthOfYear" Value="1-15"/>
</ConditionalVisibility>
</Model>
</SimObject>
</SODE>

Would be really happy if anybody can direct me to the right channels...
 
Messages
212
Country
germany
Martin is absolutely right about that.

To exclude such errors, I would make your SODE entry as follows...

<Model SimTitle="ETUR_MOUNDS_HW">
<ConditionalVisibility Variable="DayOfYear" Value="1-15"/>
</Model>
</SimObject>
</SODE>

This entry would mean...
Day 1 to 15 of 356 days each year the object would be visible.
 
Messages
777
Country
germany
@ Martin: For sure, how stupid :banghead:
But still no success after using your suggestion unfortunately.

@mike: Good idea, I did it as follows:

<SimObject Name="ETUR_MOUNDS">
<Placement Lat="51.200012" Lon="6.1335295" Alt="0#AGL" Hdg="354.5"/>
<Model SimTitle="ETUR_MOUNDS_SU">
<ConditionalVisibility Variable="MonthOfYear" Value="FEB;MAR;APR;MAY"/>
</Model>
<Model SimTitle="ETUR_MOUNDS_SU">
<ConditionalVisibility Variable="MonthOfYear" Value="JUN;JUL;AUG"/>
</Model>
<Model SimTitle="ETUR_MOUNDS_FA">
<ConditionalVisibility Variable="MonthOfYear" Value="SEP;OCT;NOV"/>
</Model>
<Model SimTitle="ETUR_MOUNDS_FA">
<ConditionalVisibility Variable="MonthOfYear" Value="DEC;JAN"/>
</Model>
<Model SimTitle="ETUR_MOUNDS_HW">
<ConditionalVisibility Variable="DayOfYear" Value="1-15"/>
</Model>
</SimObject>
</SODE>

Unfortunately, now P3D ignores the HW lines and shows green mounds in 1-15 as well.
I am convinced that I need the entries as follows, but I am not sure which character is responsible for seeing the HW mounds in January and also only from 1-15th...Is it the $?

<Model SimTitle="ETUR_MOUNDS_HW">
<ConditionalVisibility LogicExpression="A$B">
<Condition ID="A" Variable="MonthOfYear" Value="JAN;"/>
<Condition ID="B" Variable="MonthOfYear" Value="1-15"/>
</ConditionalVisibility>
</Model>
</SimObject>
</SODE>
 
Messages
212
Country
germany
I didn't know the rest of your variable entries, unfortunately.
So you have to decide...
Either to work with MonthOfYear and DayOfMonth...

Then the xml-code should look like this:

<SimObject Name="ETUR_MOUNDS">
<Placement Lat="51.200012" Lon="6.1335295" Alt="0#AGL" Hdg="354.5"/>
<Model SimTitle="ETUR_MOUNDS_SU">
<ConditionalVisibility Variable="MonthOfYear" Value="FEB;MAR;APR;MAY;JUN;JUL;AUG"/>
</Model>
<Model SimTitle="ETUR_MOUNDS_FA">
<ConditionalVisibility LogicExpression="(A$B)|C">
<Condition ID="A" Variable="MonthOfYear" Value="JAN"/>
<Condition ID="B" Variable="DayOfMonth" Value="16-31"/>
<Condition ID="C" Variable="MonthOfYear" Value="SEP;OCT;NOV;DEC"/>
</ConditionalVisibility>
</Model>
<Model SimTitle="ETUR_MOUNDS_HW">
<ConditionalVisibility LogicExpression="A$B">
<Condition ID="A" Variable="MonthOfYear" Value="JAN"/>
<Condition ID="B" Variable="DayOfMonth" Value="1-15"/>
</ConditionalVisibility>
</Model>
</SimObject>
</SODE>


Or to use only DayOfYear.

XML-code without warranty, i didn't test it...

Edit:
Past and coppy is not always good...
I have fixed my errors in the xml-code...

Edit, Edit:
Now i have come to test.
Unfortunately this xml-code does not work in this version.
 
Last edited:
Messages
777
Country
germany
Thanks a lot for effort, Michael! I will try this, but you for sure wanted to use "DayOfMonth" on Variable B :D :D :D, innit?

Will report back asap....
 
Messages
212
Country
germany
You need the extra variable C at FA because only JAN is represented with the days 16-31...
But the other months are fully represented...
 
Messages
777
Country
germany
Okay, even with this settings, my mounds show hard winter textures from 16-31 January also until 1st of February.

Anyway - I do not earn money with it and I think it will no matter if half of the January some of the objects stay with white textures. Lots of freeware addons comes with only summer season. I am no master in designing, so the heck with it...

Thank you very much for your suggestions and effort, I appreciate this very much!
 
Messages
212
Country
germany
Then try the variable DayOfYear ...

The XML-code would look like this:

<SimObject Name="ETUR_MOUNDS">
<Placement Lat="51.200012" Lon="6.1335295" Alt="0#AGL" Hdg="354.5"/>
<Model SimTitle="ETUR_MOUNDS_SU">
<ConditionalVisibility Variable="DayOfYear" Value="32-233"/>
</Model>
<Model SimTitle="ETUR_MOUNDS_FA">
<ConditionalVisibility Variable="DayOfYear" Value="16-31;234-356"/>
</Model>
<Model SimTitle="ETUR_MOUNDS_HW">
<ConditionalVisibility Variable="DayOfYear" Value="1-15"/>
</Model>
</SimObject>
</SODE>
 
Messages
212
Country
germany
Or another XML code notation...

<SimObject Name="ETUR_MOUNDS">
<Placement Lat="51.200012" Lon="6.1335295" Alt="0#AGL" Hdg="354.5"/>
<Model SimTitle="ETUR_MOUNDS_SU">
<ConditionalVisibility Variable="MonthOfYear" Value="FEB-AUG"/>
</Model>
<Model SimTitle="ETUR_MOUNDS_FA">
<ConditionalVisibility Variable="MonthOfYear" Value="SEP-DEC"/>
</Model>
<Model SimTitle="ETUR_MOUNDS_FA">
<ConditionalVisibility Variable="DayOfYear" Value="16-31"/>
</Model>
<Model SimTitle="ETUR_MOUNDS_HW">
<ConditionalVisibility Variable="DayOfYear" Value="1-15"/>
</Model>
</SimObject>
</SODE>
 
Messages
777
Country
germany
MICHAEL - that did work finally!!!!! What a massive support, so grateful because I am a dimwit in coding! Thank you very much.

Here the proof of your work:

December 31



January 1 - 15



...and 16 ongoing



Now I will try to add these valuably lines to my other walls like blastwalls or bunkers. Really happy about it!
 
Messages
212
Country
germany
Hi Manfred,
Mike not Michael ;)

Which version of the xml code did you choose?

Only DayOfYear or the combination MonthOfYear / DayOfYear?
 
Top