Jump to content

Alba

Frozen-Inactivity
  • Content Count

    165
  • Donations

    $0.00 
  • Joined

  • Last visited

Everything posted by Alba

  1. Ha,Ha. That worked a treat. I changed the one to a zero to disable the standby freq. and now the active freq. works just fine.Thanks. Although there is a strange effect with my radio display which I will start a new thread for.Cheers...Kenny
  2. Hello again Microlight.Okay, I see it now. For some strange reason the panel that I am working on has not got a color section section at the end of it. I looked at the default a/c and see the section you mean.I will copy and paste a section from an a/c that looks right at night and then play around with the numbers as per the tutorial you linked to me.Thanks also for the xml tip.Regards...Kenny
  3. Hello Folks.Yes, well spotted. I should have said that my display is using the active freq. Like you said, I saw that it was updating the standby freq. in the a/c original radio stack. I will disable it in the cfg and see what happens.Regards...Kenny
  4. Hi Folks.This code for my COM1 radio knob works fine:-Com1 Freq Inc/DecThis 'same' code for the NAV1 radio knob does not, I can't see why.NAV1 Freq Inc/DecThe bmp's are both 19x19. It is the same bmp with a different name. I thought this code would work for both COM and NAV radio knobs. I have the ADF radio knob working fine. Can anyone see what I cannot?Regards...Kenny
  5. Hello again Folks,Yes, I am using a saved flight of my a/c parked on a ramp. I am using it all the time when I test my work. Right,I have just had a thought!! I have now reloaded my a/c which makes the MFD blank like I said earlier, then saved it. Restarted FS and the a/c loaded with a blank display.I apologise for any head scratching I have inadvertently caused. It never twigged with me regarding the effect of a saved flight. Although I see it now. OOPS.Thanks all for your efforts on my behalf. I can hear all your groans from here.Regards from a suitably self chastised Kenny.
  6. Hello Bill,As you know my knowledge of XML and more importantly, it's operating sequences are limited. I have made a popup window with Eric's a/c radar gauge on it. This also displays on the MFD screen via a toggle. Is it possible that the code for this toggle being in an 'off' state is prompting the L variable for the Fuel window toggle to go to an 'on' state? What I mean is, will FS recognise the L var. in different toggle switches at the same time? If one switch is toggled off will it prompt the L var. in another switch to toggle on?Here's my code for the radar window :-(L:Radar,bool)Aircraft radar(L:Radar,bool) ! (>L:Radar,bool) 80 (>K:PANEL_ID_TOGGLE)Regards...Kenny
  7. Jan, thanks for taking the time to show me this. I appreciate it.It's a bit late at night now here so I will try this tomorrow. I am finding out from you chaps that there are a lot more options for XML than what the Tutorials are showing me.I have managed to make COM and NAV radios work using mouse selection points on a knob. So I am progressing Thanks again...Kenny
  8. Hello Microlight, thanks for coming in.Some of the gauges I am using are .gau type and I do not know how to access the C coding. I do not have a knowledge of C++ so it would make no difference if I could access the code I know that the 2002 config files let you modify the RGB numbers but so far I do not know if I can access these numbers in FS9.Do you mean for me to enter the RGB numbers into my XML code and if so where do I enter it?Cheers...Kenny
  9. Jan, thanks for the code.I will read up to see what the '{' brackets do. Also, if you don't mind, where do I place your new code in relation to my switch on/off bmp code ie my lines. I am assuming that the part will be a replacement section. I will try it out for myself as well because that is a good way to learn.I hope that I am making sense to you. As you know I am just beginning with XML and am still unsure of the structure.Cheers...Kenny
  10. Hello again Folks.I am getting the hang of my basic XML so far but I am confused as to why this is happening.At first startup and a/c selection in FS my Fuel Display popup window is showing in my MFD screen. At present I have not used an electrics 'on' function for simplicity and the toggle switch is in the 'off' position. It should only popup when I press the toggle switch for that window. There is also a Radar popup which works fine. I have checked to make that 'Visible at startup' in Panel Studio is unticked.When I select another a/c and then reselect 'my' a/c the display is blank and the window toggles on and off no problem after that.I am confused why it always shows on startup. Here's my code if someone wouldn't mind taking a look to check if I have something in the wrong sequence. (L:Fuel,bool)Fuel Stats(L:Fuel,bool) ! (>L:Fuel,bool) 90 (>K:PANEL_ID_TOGGLE)Regards...Kenny
  11. Hi airfin.Thanks for the posting the link. I'll have another go at it. The gear lever I am using glows a nice pink colour at night!! Not all that authentic but maybe it is inbuilt into the lever gauge.Regards...Kenny
  12. Hi Folks.Douglas, thanks for doing that for me. It made me think about using different ways to use the code rather than sticking slavishly to the tut. Also Bill and Ed, same applies, I am seeing the code in a different light now. I have the Com1 freq. inc/dec working fine now. I will go on now and work on the others.Regards...Kenny
  13. Hi ED,I really don't know. My XML knowledge is not advanced enough yet. I am still using snippets from the FS2X tutorial verbatum, plus of course what the folks here advise me with.Here's the part from the tut. There is a lot more of course, regarding swapping the standby freq. etc. but this is the bit I thought would apply.I can't seem to copy and paste it. I have placed it as an attachment.
  14. Hello again Folks.At the risk of appearing dense, I am confused a wee bit here.I have a radio display which shows all the radio frequencies on a grid, like the default Lear 45 in FS9. I will INC/DEC the freqs. by the use of a knob at the side of each freq. in the grid. Using selectable mouse areas.Here's the rub. I have read through the FS2X tutorial and decided that this code is what I need but I have a feeling that I should have a K var. assigned somewhere but I gather from the tutorial that the Click Event should do the job on it's own.But it doesn't!! Remember that I'm a newbie at this, so could someone please show me the error of my ways. Here's the code:-Regards...Kenny
  15. Roger Bill, thanks for that.However, looking at the Token Vars. doc. it looks like I will be unable to display the fuel weight for each tank in pounds. The variables are like you say in gallons or percent. There is a parameter for converting gallons to pounds I see but at present level I am unable to make it work.I will change my readouts to gallons and percentage figures.Edited a few mins. later....Bill, this is working out fine. I am getting the readouts as expected and corresponding to the a/c fuel figures. I assume the readouts will change as the a/c uses fuel. Also, I am making a new section for each tank. Is that the best way? I have not as yet made a gauge using large amounts of code, although I see that the GPS sample is very complex with large sections of code. Regards...Kenny
  16. Folks, thanks for the input.Ed, I am still at the very basic stages of XML and the SDK is still a bit mysterious to me. I can grasp the Key Events and the Variables not too badly but converting them into XML is where I need the help.Bill, my display is intended to work like a PFD where it will show various windows toggled by switches. This is perhaps not the best way to work it but it's where I am right now in my learning curve. I would like a pop up window showing, at the top, the total fuel in pounds and percentage. Then a series of Data lines down the display showing the load and percentage of the various tanks. If I understand your reply correctly, will the Token Variables that you posted earlier work okay for the individual tanks without the calculation that's needed for the total loading?Cheers...Kenny
  17. Hi Folks.Further to Bill's reply to my original Fuel Percent post, my Fuel Stats gauge has these few lines of code. I will be expanding it to include all the tanks. This code is my starting point to show a list of the tanks in a window. This is just the Total Fuel Load to start with.Alas, the second String part returns a figure of 447. I expected to see 100 as all tanks are filled. The poundage figure is correct as that corresponds to the fuel loading. The a/c Fuel and payload window shows all tanks at 100% Could someone check and if possible explain the workings of the percent variable.Thanks.Here's the code:-%((A:FUEL TOTAL QUANTITY WEIGHT, lbs))%!08.2f!%((A:FUEL TOTAL QUANTITY WEIGHT, percent))%!03d!Cheers...Kenny
  18. WWWOOYYYY, boy that code in the forum link looks to be beyond my current level of knowledge. Jan, it make me appreciate all the more the fact that you guys help out with my baby stuff.I will read it through several times and then try it out but I will probably have no idea as to what's happening and why!!I am still learning from the FS2X Tutorial so it will be a while before I am ready for more complex coding. I am about to attempt a Radio gauge using a rotary knob to change the frequencies as per the tutorial.Regards...Kenny
  19. Hello Folks.I have used the Concorde gauge AP windows in my own AP and it works fine. In my panel the readouts are white during daylight hours and red at night. I am unsure if that is the gauge doing that or the sim night lighting effect.I have thought that I would use this same effect in the fuel and radio gauges I am making. This would ensure continuity of colours throughout the panel.Is there a snippet of XML which changes the colour of the numbers with regard to hours of the day? If so, how do I determine the change from white to red and vice versa? What I mean is, how do I know when the sim decides it is night and day?Regards...Kenny
  20. Thanks for the info Bill. I did not think it would be as straightforward as that.Regards...Kenny
  21. Hi Folks.I can show the Total Fuel Quantity in pounds and will likely be able now to show the individual tank quantities in pounds also now with what I have been shown previously.I would like also to be able to show the tank fuel quantity as a percentage figure alongside the lbs figure.I have looked at the SDK for guidance but cannot figure out what it means. The Parameters doc just gives a line of text and the Token Var. doc mentions the figures 0.0...1.0I am not savvy enough yet to put that into xml. Would someone please show me what is needed to get the percentage fuel figure?Cheers...Kenny
  22. Hello again Bob.Right, I did not comprehend that the help IDs were limited to the SDK ones. I will use a tooltip instead. Re. the bmp not showing, I had moved the switch with Panel Studio and must have inadvertently resized it during the move. I removed the size part of the xml and it shows now. Another lesson learned.Cheers...Kenny
  23. Hello again Folks.I seem to have got myself confused again!! The rocker switch toggles the pop up window ok but the ON bmp does not show. Also the Help ID shows 'Thrust Levers' instead of 'Fuel Stats'. This has got me stumped.I am comparing the xml with code for the Radar popup which works fine. I have also checked the window ID's and there are no conflicts. I have also checked the panel in FS Panel Studio and there are no underlying transparent icons etc for Thrust Levers. I do not know where the Help ID text is coming from.Here is my code :-(L:Fuel,bool)(L:Fuel,bool) ! (>L:Fuel,bool) 90 (>K:PANEL_ID_TOGGLE)Do the OFF and ON switch bmps need to be renamed for every switch or is it possible to share the same bmps between different switches. At present I have made copies and renamed them as per the relevant popup window, ie. Radar on/off Fuel on/off even though it is the same bmp.All help appreciated.Regards...Kenny
  24. Ted, that was the one that did it. Thanks for coming in to help out. Thanks also to all the folks who chipped in with advice. This has been a learning curve for me. I really need to pay more attention to detail!!I will go on now and code the individual tank levels.Thanks again for all the help. Although no doubt as Arnie said "I'll be back" Regards...Kenny
  25. Hello again folks.I have tried various adjustments to this code. Here is the latest :-%((A:FUEL TOTAL QUANTITY WEIGHT, lbs))%!08,2f!This displays 2f! in white on the window, this is part of the String line. At least I am now getting something but I still cannot figure out what is wrong. The A variable is taken from the SDK but without more experience I am simply assuming that it is the correct one to use.There are eight digits in the C-130 fuel display including the decimal point. The Text X="200" should be plenty pixels to box 8 digits, I think.Any more help will be much appreciated.Regards...Kenny
×
×
  • Create New...