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

FSXA Is It Possible to Switch Hanger States

Messages
945
Country
us-northcarolina
I am creating the KCCO airport for FSX and have IMHO a beautiful hanger with a photo texsture I was given by the owner with the door open and aircraft, tools etc inside. It looks great! At night though, the hanger is closed and everyone goes home until morning the next day. I want to be able to do that with SODE if possible. I have two models of the hanger: one with the door open for daytime and the other for night or Sundays.. Can this be done? I know that GMAX or Blender etc will animate the door. That is not what I want to do. I just want one open and one closed at the proper time. Presently the open one has been converted in MDCx into a bgl and on the airport in ADEx.
 
Messages
264
Country
germany
Should be feasible.

For this, both 3D models (with open and closed gate) are needed as MDL file for SODE.
Then you can always make one model visible at a certain time/date.
This is then specified in the associated XML code.
 
Messages
945
Country
us-northcarolina
I will try and post here if it works. I know someone who wanted to do something like this with a season change.
 
Messages
264
Country
germany
I know someone who wanted to do something like this with a season change.
This is very easy to do with SODE.
Many users fail with the XML code which then implements the whole thing.

The most important requirement here is the SODE SDK and understanding how SODE works.

The SODE objects are treated by FSX like AI aircraft in terms of CBU processing power.
So if you create a whole forest of single 3D trees with SODE, the whole thing makes little sense.


To help them, I need specific questions.
 
Messages
945
Country
us-northcarolina
He did not want to change the seasonal vegetation, autogen can do that. He wanted to create the Rheinbeck Aerodrome aircraft hangers. Open like mine is with ai aircraft and then have all those aircraft parked inside the hangers during the winter months when they do not fly. If mine works, then his should work too I feel. I am going to swee what happens right now. I created the SODE folders with the open and the closed hanger last night. Now its time to see if I did it correctly.
 
Messages
945
Country
us-northcarolina
I have been trying this past couple of hours but with no luck so there is probably something I DID wrong. I have packed it up. When you get a chance would you please take a look and see what is the matter? Thank you for helping. I am doing great with flags and windsocks at a lot of airports with your help in the past.


It was too large to attach directly.

Richard
 
Messages
264
Country
germany
The first thing I notice....
Your 3D model is the same for both hangars (open and closed).

You also need a model where the hangar door is closed.

I will see the rest tomorrow.
 
Messages
945
Country
us-northcarolina
And your SODE XML doesn't say what it should say.
Can you please correct it for me. I DO have two models. I believe that I caught that mistake after I sent you the files. I also renamed them without the "KCCO" so they match but that still didn't make a difference. I will wait for your reply with the corrections please. Once I see how it is supposed to be done, I can learn. Like I said you did a great job of teaching me flags and windsocks.
 
Messages
945
Country
us-northcarolina
I ran the xml code through an xml checker and it showed me the error that I have fixed. Then I further examined the code and saw where there was a mismatch of the Title, model and fixed that. I finally made the closed and open simobjects different as they should be and it works. NOW I am tweaking its position in FSX. I am pleased that I found the errors and it works as it should now.
 
Messages
945
Country
us-northcarolina
No matter what coordinates I put in the xml using Slewmaster in FSX, the hanger doesn't move from the position it is not centered on the correct spot. Any idea why? It is in FSX at the correct airport but NOT exactly positioned. I even moved it way out to a different position and it STILL did not relocate to that position.l
 
Last edited:
Messages
264
Country
germany
The xml code should look like this:
XML:
<SODE>   

<!-- Time based switching of 3D-Model -->
<!-- Hangar -->
    <SimObject Name="SODE_Oasis_Garmin_Hangar">
            <Placement Lat="33.31717236" Lon="-84.77129327" Alt="0#AGL" Hdg="347.0"/>
        <Model SimTitle="Oasis_Garmin_Open">
        <ConditionalVisibility Variable="Time" Value="0800-1800LT"/>
        </Model>
        <Model SimTitle="Oasis_Garmin_Closed">
        <ConditionalVisibility Variable="Time" Value="1800-0800LT"/>
        </Model>
    </SimObject>
    
</SODE>

For this code, the Data Probe section is not needed and should be removed.
Furthermore, make sure that both models are together in one xml and use the same coordinates and the same variables.
See my xml-code...
 
Messages
945
Country
us-northcarolina
Thank you for taking the time to help again. I will redo my xml and then will have these where they belong on the airport. Was the Data Probe section messing up the location perhaps?
 
Messages
264
Country
germany
Was the Data Probe section messing up the location perhaps?
His depends on what the xml-code used looked like.

Maybe you can write down the used code here.
I would like to have a look at it.

Maybe you also used two xml-code.
One for the closed hangar and one for the open hangar.
 
Messages
945
Country
us-northcarolina
I DID use two xml code one for the open and one for the closed and if that is not right then that IS probably why it was messed up. Do the sim objects still have two separate folders like I sent but with correct mdl's
 
Messages
945
Country
us-northcarolina
This is the old code I was using

<SODE>

<SimObject Name="EDP_KCCO">
<Placement Lat="33.320200993414" Lon="-84.7869873046875" Alt="970" Hdg="0.0"/>
<Model SimTitle="12bPilot_SODE_Environmental_Data_Probe">
<EnvironmentalDataProbe ClientList="Oasis_Garmin_Open"/>
</Model>
</SimObject>

<SimObject Name="Oasis_Garmin_Open">
<Placement Lat="33.31674484" Lon="-84.77016289" Alt="0#AGL" Hdg="142.0"/>
<Model SimTitle="Oasis_Garmin_Open">
<ConditionalVisibility LogicExpression="A$">
<Condition ID="A" Variable="Time" Value="0800-1800LT"/>
</ConditionalVisibility>
</Model>
</SimObject>


</SODE>
 
Messages
264
Country
germany
I DID use two xml code one for the open and one for the closed and if that is not right then that IS probably why it was messed up. Do the sim objects still have two separate folders like I sent but with correct mdl's
Two xml-codes is already a mistake.

Furthermore...
In SODE SimObjects create/use a folder e.g. SODE_Oasis_Garmin_Hangar.

In this folder belong then the model and texture folders, as well as the sim.cfg...
sode_ordner.JPG

And this is how the sim.cfg should look like...

Code:
[General]
Category=Viewer
Module=SODE

[fltsim.0]
title=Oasis_Garmin_Open
model=oasis_garmin_open
texture=

[fltsim.1]
title=Oasis_Garmin_Closed
model=oasis_garmin_closed
texture=
 
Messages
945
Country
us-northcarolina
This is exactly what I have just done. The hanger appears perfec;tly but NOT where its lat/long coordinates are and still as before changing the coordinates with Slewmaster postioning does not move it to a new location. I used the example of BJP windsocks to see how the sim object folder was set up as well as the sim.cfg I have not yet tried to SODE position a windsock and may try that right now and see what happens there.
 
Messages
264
Country
germany
Now about your xml-code...

<SODE>

<SimObject Name="EDP_KCCO">
<Placement Lat="33.320200993414" Lon="-84.7869873046875" Alt="970" Hdg="0.0"/>
<Model SimTitle="12bPilot_SODE_Environmental_Data_Probe">
<EnvironmentalDataProbe ClientList="Oasis_Garmin_Open"/>
</Model>
</SimObject>
<---------------------The red section up to here is the Data Prob section and is not needed here.

<SimObject Name="Oasis_Garmin_Open">
<Placement Lat="33.31674484" Lon="-84.77016289" Alt="0#AGL" Hdg="142.0"/>
<Model SimTitle="Oasis_Garmin_Open">
<ConditionalVisibility LogicExpression="A$">
<Condition ID="A" Variable="Time" Value="0800-1800LT"/>
<---------------------The green section of the contitions is used this way only if you want to use several contitions together.
</ConditionalVisibility>
</Model>
</SimObject>


</SODE>

And the second model entry is missing.
 
Messages
945
Country
us-northcarolina
Now about your xml-code...

<SODE>

<SimObject Name="EDP_KCCO">
<Placement Lat="33.320200993414" Lon="-84.7869873046875" Alt="970" Hdg="0.0"/>
<Model SimTitle="12bPilot_SODE_Environmental_Data_Probe">
<EnvironmentalDataProbe ClientList="Oasis_Garmin_Open"/>
</Model>
</SimObject>
<---------------------The red section up to here is the Data Prob section and is not needed here.

<SimObject Name="Oasis_Garmin_Open">
<Placement Lat="33.31674484" Lon="-84.77016289" Alt="0#AGL" Hdg="142.0"/>
<Model SimTitle="Oasis_Garmin_Open">
<ConditionalVisibility LogicExpression="A$">
<Condition ID="A" Variable="Time" Value="0800-1800LT"/>
<---------------------The green section of the contitions is used this way only if you want to use several contitions together.
</ConditionalVisibility>
</Model>
</SimObject>


</SODE>

And the second model entry is missing.
This the OLD code not what I am using. I am using the code you furnished and have setup the sim object exactly as you show it including the sim.cfg and still it doesn't locate exactly where it belongs and every time that I try and use Slewmaster I get a different lat/long value. I may try using FSX coordinates instead and see what happens there. Thank you for staying up late working on this with me.
 
Top