Jump to content
Sign in to follow this  
Guest Mark McG

Gauge won't show in FS

Recommended Posts

Guest Mark McG

Hi,I can't get my VSI Gauge to show in FS.I have a bmp for the background, and one for the needle.I have written the code for it in XML using the Baron as a guide.I have converted the image to greyscale for the time being, I will post a colour Pic once I get it running in FS.What am I doing wrong?http://ftp.avsim.com/cgi-bin/dcforum/dcboa...4bc0b4f92ad.jpg

Share this post


Link to post
Share on other sites
Guest

Grey for the image your showing here only, or for the gauge images as well? I'm not sure how FS2002 handles grey scaled images. You should stick to 256 color bmp format only (at least for starters).Post the code also if we shoud be able to spot errors in the code.

Share this post


Link to post
Share on other sites
Guest

>Grey for the image your showing here only, or for the gauge >images as well? I'm not sure how FS2002 handles grey scaled >images. You should stick to 256 color bmp format only (at >least for starters). >>Post the code also if we shoud be able to spot errors in the >code. 8 bit indexed (256 color), 8, 16, and 24 bit RGB are supported.

Share this post


Link to post
Share on other sites
Guest Mark McG

Karl,BMP I am using on my HD is in colour.Once I have the gauge working I will show it in colour.Here's the code I have:- - - - (A:Vertical speed,feet per minute) 100 / - - - Thanks for your helpMark

Share this post


Link to post
Share on other sites
Guest Mark McG

Hi Bill,Here's the colour image Iam using.Just finding it a little tricky to display - 1st gauge I have programmed.Mark

Share this post


Link to post
Share on other sites
Guest

Try this instead:(A:Vertical speed,feet per minute) 100 /The problem was some missing "'s, i.e. at item value 30. I also removed some extra spaces, but I'm not sure it means anything. Lastly, I corrected some capital letters, and again I'm not sure it matters. My opinion is that during coding in any language, it is good practice to stick with one method of doing things (as far as possible).Especially in the beginning of trying out making xml gauges, always "verify" the gauge first with Internet Explorer. I copied your gauge code to a new xml-file, dragged this onto IE, and it immediately showed me where the mistake was. Xml is very picky on correct spelling, correct use of spaces, special characters, ampersands etc.Haven't tested the gauge if it shows up, but as long as IE has no complaints, you are "guaranteed" that the gauge at least will not crash FS2002, even if it contains some errors.

Share this post


Link to post
Share on other sites
Guest Mark McG

Karl,I now have the gauge showing in FS.Problem was I had a folder within the gauge folder for 1024 resolution but not for 680. moved everything to the main folder.Now I only need to get the needle moving correctly.Mark

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