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

A Quick Question

Messages
383
Country
unitedkingdom
Hi,

Arno, Is it possible to have an object show depending on the direction of the wind.

At the moment I have two Mobile towers at each end of my RAF base runway. In real life there is only one that moves from one end of the runway to the other depending which runway is in use.

so I wondered if its possible to have one show in the scenery, when for example the wind is blowing from 270 - 090 then the one at the other end showing, when the wind is 090 - 270.

Or if its not possible, does anyone have any other ideas how I can acheive this. Could a seperation plane be a possibility? or does this only work with lights. I know this wouldnt work with wind but could work depending on which rwy you are flying toward. Which would'nt be the best solution

Cheers

Stevo ;)
 
Last edited:
Hi Stevo,

Yes, that should be possible very well. Just use the wind direction variable in your condition. The range of this variable is not 0-360, but 0-645536 (see the nice help feature in the condition window as well for this :)). After that it should work, but I think you need to have multiple objects again, just like with the windsocks.
 
Hi

I'll see if I can get it to work.

In your new alpha MDLT2, are the textures supposed to show in the preview window, i seem to have just a white model with no texture.

Thanks

Stevo ;)
 
You need 2 models to be able to do this...for example

1st model has the wind condition lets say from 0-180 degrees when tweeked

2nd model has the wind condition from 181-359 degrees when tweeked.

Then say your wind is set to 90 degrees in fs, only the first model will show

If the wind is set to 200 degrees, only the second model will show.

Just remember when tweeking your models that the values are not 0-360 as mentioned by Arno above.

I did this with windsocks using Arno's first mdl tweeker and worked fine but havent used the new version but assume would work just fine as well.

Dave
 
Hi

Thanks for that info Ablitos.

I keep getting a 'run time error 6' with both the old and new mdl tweaker.

Please tell me if I'm doing this right

In MDLT2,

I select the model I want, then click 'Add Object Condition'

Select 'Between' then 'Wind Heading'

Enter the Variable of 0C74

Now for the Min & Max value I want one model to show between 120 - 299 degree's and the other 300 - 119 degree's

So.... for 120 I put, min 21844.992 hex then max 54430.4384 hex for 299 degrees.

When I click 'Add Condition' I get the run time error

I've also tried Decimal, and get the same crash

:confused:

Similar with MDLT

Select the MDL

Tick 'Condition 1'

Select 'Wind Heading'

Enter the same variables as above, Click 'Apply'

I then get the same Error Message.

I'm probably not working out the correct variables to enter.

I've divided 65535 by 360, which gave me 182.0416. I then multiplied 182.0416 by the amount of degree's.

182.0416 x 120 = 21844.992

and

182.0416 x 299 = 54430.4384

Does this look right?

Stevo ;)
 
Hey stevo,

Im not sure about the runtime error, almost sounds as if your missing a file of some sort but hopefully Arno could give a better answer for you but i would just try creating a simple box and adding a tweek to it just to make sure that its not your orginal object causing the error. If it still is, then like i said it seems like a file is missing of some sort.

Dave
 
stevo said:
In your new alpha MDLT2, are the textures supposed to show in the preview window, i seem to have just a white model with no texture.

They are supposed to show, if MDL Tweaker can find the files (there are no paths stored in the MDL file). So it looks around for a texture folder. Depending on where you store them it might find them or it might not. This should probably be improved a bit more.
 
Hi Stevo,

What is the text that comes with the runtime error? I tried it here and it seems to work fine.

Btw, you don't have to enter decimal values, only integer ones are allowed.
 
Hi Arno

Its a Run Time Error 6, Overflow

Thats all it say's

But on a good note, when I posted the above reply, I didnt try the old MDLT with DEC select, it worked?. But the varibles from 300 - 119 degress didnt work.

So what eventually did was have 4 models, one for each 90 degrees.

The Values where like this (this is for a runway of 04 - 22)

Model 1 rwy 04 = Min 49152, Max 65535 this is for 271 - 360 degrees
Model 2 rwy 04 = Min 00001, Max 16383 for 1 - 90 degrees
Model 3 rwy 22 = Min 16384, Max 32767 for 91 - 180 degrees
Model 4 rwy 22 = Min 32768, Max 49151 for 181 - 270

Also Arno, all these are definately with DEC selected, I get the error if I use Hex

It works great appart from it not showing when FS is started until you reset the weather, is there a way around this?

oh, and the strange thing is the numbers for Models 2 & 3 do now work in MDLT2 but the numbers for models 1 and 4 makes it crash. But in the old MDLT it works perfectly.

Stevo ;)
 
Last edited:
Hi Stevo,

Of course that explains it :). If you want to enter the values like this, you must set the radio button to dec (from decimal). If you leave it to hex you must enter the values as hexadecimal values. In hex the wind heading range is from 0 to 9999.
 
Back
Top