Jump to content

Recommended Posts

Good evening every oneI've had a minor problem that has put me off for some time and was wondering if any of you guys could help?I moved from XML to C gauges to get more out of the system however I keep running into minor obstacles!at the beginning, Or when I switch the panel lights back on, it resets to the image belowcollins2.jpgThe blur! If I move in any headingcollins1.jpgLook forward to hearing for you guys soon!

Share this post


Link to post
Share on other sites

I'm not quite sure from the description, but is this a gauge you've built yourself? To me, it looks like it could be a mask problem.-Dai

Share this post


Link to post
Share on other sites

Hi Dai,I was looking at your manual to see if there was any thing wrong and why it may do this?Could it be the numbering in the .h file?

#define        BMP_collins_BACKGROUND            0x3300#define        BMP_collins_Rose                0x3400#define        BMP_collins_Rose_mask            0x3401

sorry for the lack of answering your question,yes the gauge has been built by myself, and has a mask layer as stated aboveI'll look further into that

Share this post


Link to post
Share on other sites

The numbering is okay. I'm racking my brains trying to remember when I last saw/came across this problem; if it blurs like that, it must be a drawing update problem (which is why I originally thought it might be a mask problem). If you're absolutely unable to solve it, post the entire gauge code as a zipfile here and let me know what you've done to try and figure the problem out.-Dai

Share this post


Link to post
Share on other sites

Thanks your time, and looking into this problem,I fixed the problem by changing it from Make_needle to Make_sprite as I was running the make needle from a PELEMENT_NEEDLE command, which I think was messing the gauge upThanks very much

Share this post


Link to post
Share on other sites

Speaking of gauge resource numbering, I'd urge you to read/print this Wiki article:http://www.fsdevelop...ource_NumberingFor a handful of gauges it might not become an issue, but there are some "gottchas" you really do need to be aware of and avoid......the most puzzling of which is the (fortunately rare) instance where under certain conditions, an entirely different bitmap will be displayed instead of the one you expect! ;)If you adopt and adhere to this systematic approach, such resource contention will never occur.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
I fixed the problem by changing it from Make_needle to Make_sprite as I was running the make needle from a PELEMENT_NEEDLE command, which I think was messing the gauge up
Needles don't use masks, so the other fix would have been to drop the mask. It's my preference to use needles for rotating dials whenever possible because I think that using a sprite is overkill most of the time. I'd give it another try, just to prove to yourself that it can be done.-Dai

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...