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

FS2004 Magnetic Variation

Messages
206
Country
unitedkingdom
Hi,

Simple question: is (A:MAGVAR, degrees) broken in FS9 or have I done something stupid? All I get for that variable is zero...
If it /is/ broken, is there some way to get it by another means?

Cheers,
Geoff
 
Prepared for Take off in LOWG 35C
I get 2.4445 degrees.

Tested in FS9
Code:
      %A:MAGVAR,degree\t%((A:MAGVAR,degree))%!9.4f!\n

Edi
 
This is really odd. I still get zero everywhere, even using exactly your code.

What could be the problem here? Am I right in thinking that the magvar data comes from the /scenery/base/scenery/magvar.bgl ?
I have a modified version of this from a navdata update but tried extracting the original from the FS9 CDs and that does not change the problem. I also checked and it is not aircraft/panel specific and it is worldwide...

Any ideas?

Geoff
 
Hi,

There are some addon sceneries that can wipe out the magvar file's effect. Try putting that magvar BGL file into a scenery folder of its own and create a Scenery Layer for it in the Scenery Library at the very top of the list. That usually cures it.

Hope this helps,
 
Hi,

There are some addon sceneries that can wipe out the magvar file's effect. Try putting that magvar BGL file into a scenery folder of its own and create a Scenery Layer for it in the Scenery Library at the very top of the list. That usually cures it.

Hope this helps,

That did it! Thanks very much for the tip.

Cheers,
Geoff
 
Hi,

There are some addon sceneries that can wipe out the magvar file's effect. Try putting that magvar BGL file into a scenery folder of its own and create a Scenery Layer for it in the Scenery Library at the very top of the list. That usually cures it.

Hope this helps,

Wow... that's a really bad piece of scenery then! :(
 
Yes, pretty annoying. I have no idea how long the error has been present. I was just messing around with the MAG<->TRU heading button on my panel and realised it didn't work anymore. At some point I'll work through and find out which was the culprit... Just out of interest...

Geoff
 
Yes, I'm amazed that addon scenery can do that, but I've seen this problem before on the forums, and someone else came up with that fix. Glad it helped!
 
Can any scenery designers explain what causes it? I have a feeling it's the result of an unwanted side-effect somewhere in FS rather than an obvious scenery error.

The magdec.bgl file self seems no more than a table of scaled values (WORDs) covering the world from 0 to +359 deg of longitude and -90 to +90 degrees of latitude at 1 deg intervals.
 
It's possible that some addons have BGL files that are "replacements" for that magvar BGL file. If so (and they are corrupt in some way) then they would have priority and ruin the entire magvar system. Putting the default file on top cures that problem.
 
That is possible and could be checked by comparing file properties. My default magdec.bgl's size is 130,456 bytes and Date created/modified aew the same at 01/08/2006 23:09

I still wonder how many developers would try to change the magdec.bgl file in such a way as to corrupt it, given its simple structure.
 
Back
Top