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

Simple Heading Tape

Messages
20
Country
us-indiana
I’m just trying to make a simple heading tape to then use for other elements of an pfd I’m designing. I have tried editing every part of the compass gauge and can get it to line up with msfs but I need it to move the correct direction. The code for the wet compass is so simple but I can’t get it to reverse direction to then follow a heading tape using same elements with an edited PNG picture.

I’ve seen others use enormous long tapes in hopes it doesn’t repeat but I know there has to be some dumb easy thing to just link the edges together I’m missing. I can get it to move the tape along the lines but can’t get the looping to work.

Also what does nil, nil, nil mean at the end of the code. That seems to make a difference but my lack of programming is blatantly obvious).
 
NIL means nothing.. literally. I strongly urge you to read both the SDK and take the time to read Dai Griffith's Gauge Tutorial. As for the image needed, it needs to be the full compass in size, plus however many degrees would be exposed to the outer side of the end... say if when at 360* you can visually see the compass markings 30* to the left and 30* to the right, then you will need a slightly larger than 30* overlap that fills in the area beyond the compass limits. This gives the illusion of it wrapping around and the sim's code does the rest.

FYI, if you are seeking help with code... no one can help you without seeing the code.
 
I see the 'MSFS' in your question. Download the P3D SDK and look at the whiskey compass sample - you should be able to transfer the code from that to MSFS. If you're using XML then it won't help as it's purely for C/C++ coding.
 
I see the 'MSFS' in your question. Download the P3D SDK and look at the whiskey compass sample - you should be able to transfer the code from that to MSFS. If you're using XML then it won't help as it's purely for C/C++ coding.
It’s lua code on air manager. The whiskey compass works perfectly but issue is that whiskey compass rotates opposite of a heading tape. No matter where I put a negative it will always rotate the same way.
I’ve seen other ways by making a png that’s like 2700x60 and just hoping you don’t spin around enough times one direction without it reversing but there has to be something I’m missing to allow it to “loop” to other side of the drum gauge.
 
NIL means nothing.. literally. I strongly urge you to read both the SDK and take the time to read Dai Griffith's Gauge Tutorial. As for the image needed, it needs to be the full compass in size, plus however many degrees would be exposed to the outer side of the end... say if when at 360* you can visually see the compass markings 30* to the left and 30* to the right, then you will need a slightly larger than 30* overlap that fills in the area beyond the compass limits. This gives the illusion of it wrapping around and the sim's code does the rest.

FYI, if you are seeking help with code... no one can help you without seeing the code.
I’ll upload it later thank you. I just wonder why there are nil, nil, nil at the end of the draw lua code for the movement command.
 
Your tape you're using (image) needs to be reversed for things to work correctly.
 
Your tape you're using (image) needs to be reversed for things to work correctly.
That doesn’t solve the fact that it moves the wrong direction. If I could even just flip the entire gauge and edit the png that’s would work perfectly.
 
Ok, well... you're asking for support regarding a third-party product... and to be honest this isn't really a support forum for other products.. not because we hate them... we really like things that are great for our sim(s)... but we only support actual development of products, be they freeware, shareware, payware or whatever...

I am not versed in making instruments using Air Manager. Have you tried asking the makers of Air Manager how to get their product to do what you desire?
 
Ok, well... you're asking for support regarding a third-party product... and to be honest this isn't really a support forum for other products.. not because we hate them... we really like things that are great for our sim(s)... but we only support actual development of products, be they freeware, shareware, payware or whatever...

I am not versed in making instruments using Air Manager. Have you tried asking the makers of Air Manager how to get their product to do what you desire?
You’re right, not sure why I jumped on here for it. Figured somebody had a hint on lua script for sliding drum gauge face. I’ll give them a shout over there
 
Back
Top