Jump to content

Ala13_Kokakolo

Members
  • Content Count

    14
  • Donations

    $0.00 
  • Joined

  • Last visited

Everything posted by Ala13_Kokakolo

  1. Thak you for the response. I think the problem is the case of the operator. i was aware operators come after the operands, but tt was a bit of despertion. Thanks also for the suggestion of using the RPN edittor in AAO, i do not know how does it work, but I will give it a try. All these is very new to me and i have very basic notions in programming (a bit of actionscript 2 and some java for beginners, that's all) Thanks again. IT WORKED!!! It was the lower/upper case thing. Also, thanks to checking the documentation i have managed to find out it is possible to align text left or right with with <HorizontalAlign>right</HorizontalAlign/>. Very useful. Thanks. PS. I cannot work out how can I use the RPN editor to text my code. I will keep trying and reading.
  2. It was a typo when I was copy pasting from original into the post. That is not the issue. Both vars are the same. One reads the value one second before the other, so it knows if the temp is going up or down, but it does not matter wich of the two I use. When I was copy pasting the code to post it here I took it from two diferent files, but it is the same. I have just corrected it the original post so is clear.
  3. I am programming a FIP that display an image when the temperature of the cabin is an specific range. I can program the image to be visible when the temp is higher than a value and also when is lower than another value, but i cannot do both at the same time. I can do this: <Visible> (L: CabinTemp, celsius) 27.5 &gt;= </Visible> Or this: <Visible> (L: CabinTemp, celsius) 35 &lt; </Visible> But the programme does not work if I try <Visible> (L: CabinTemp, celsius) 27.5 &gt;= AND (L: CabinTemp, celsius) 35 &lt;</Visible> <Visible> (L: CabinTemp, celsius) 27.5 &gt;= (L: CabinTemp, celsius) 35 &lt; AND</Visible> <Visible> (L: CabinTemp, celsius) 27.5 &gt;= AND 35 &lt;</Visible> <Visible> (L: CabinTemp, celsius) 27.5 &gt;= 35 &lt; AND</Visible> I tryed all those posibilities and none works. As soon as i try any of those lines, the image is there all the time, without restrictions. What amd I doing wrong?
  4. I am at work now (procastinating). I will do it as soon as I go back home. Cheers.
  5. Hi and thanks for your response. I will try those suggestions. What I meant in the explanation is, yes, create an "if{}" within the %...%!...!, so far all my attemps where unsuccessful. But I will follow your suggestions and try again, I did not know there was possible to declare a Local Variable in the XML, i will try that as well (I have not seen that in any script of any example gauge or any other i downloaded from internet).
  6. In realation to he 2d gauges and the XML files, I read the documentation provided and I realised it is very simple. Basically you can: Place an image and link it to an aircraft variable to make it visible or not and rotate it or not (even linearly). Create some text box also with the posibility of make it visible or not linked to a aircraft variable. This information can be string, can be a number or the result of a calculation of one or more variables. Create a mouse area (only detects wheel move up or down (both independently) and left click single events and link the events to one single acction in the plane. You cannot deactivate dinamically the mouse areas. What you cannot do, and it will be tremendously useful, is use an if{} function in any of the previous three to link actions in the script. For example to create a button in the gauge to display in the same box different info or change the info from one format to another (Celsius to farenheit for example). Are there plans to add all this posibilities to the script?
  7. Will be possible to also add right and left click events for the mouse? Cheers
  8. I have created a ADF Radio gauge and I have uploaded here: https://flightsim.to/file/31332/aao-adf-radio-gauge Thanks.
  9. Thanks for the response. Is there anywhere I can read the documentation about this XML dialect? It would be very useful to know what is and what is not available.
  10. Hi all, I bought AAO recently and I am starting to programme my first gauges using the XML code. Y am learning throgh reading the XML code in the gauges suplied by AAO, so my knowledge is somehow limited. I am doing a gauge that reads the ADF freq and displays it on a screen, and I have several buttons to change the individual digits. My idea is using the gauge with planes wich have no ADF (like the new B247 by wing42). The gauge also recognise if the plane has a stanby freq and in that case shows it as well. I almost finish the programming part but i found a little problem I want to fix. When there is an available STBY ADF, it also shows a button to swap both freqs, I manage to not shown it when there is no STBY ADF available, but the click area is there and it is active. I do not know if there is a way to make the area NOT active in the same way I made the button not visible. That instructiion does not work with mouse areas: When i do not want the button to be shown I do this: <Element> <Visible>(A:ADF STANDBY AVAILABLE, Bool) 1 == </Visible> <Position X="196" Y="180"/> <Image Name="SwapKnob.png" ImageSizes="64,64,64,64" > <Axis X="32" Y="32" /> </Image> </Element> And the area of that knob is <Area> <Position X="196" Y="180"/> <Size X="64" Y="64"/> <Click Event= "ADF1_RADIO_SWAP"/> </Area> But there is no way of making the area (visible / not visible as I made the knob with the line in bold. Does anyone know the way of doing it????
  11. Thank you. I have discover the problem with my tanks is because of the lack of cold start. I explain: What I did in order to have the plane in cold start was load a plane in that state and then load the metro. It seems the plane I have used had one tank shut, and this particularity is also "exported" when I load the metro. It is fixed now. I will try your mod tonight. Thanks for the work!!
  12. Hi all, I have been following this thread with interest. I have a couple of questions. First and most important, How does the fuel system works? It seems the metro is only using one tank. When I fly only one is being emptied and when it does get completely empty both engines shut down. Second. When I select an ILS in the Nav one i have to change to GP2 because GP1 gets ILS in Nav 2 and viceversa. It seems to me this is a bug or a problem in my install. Third. The nose up/down in the autopilot does not work. Does the mods fix any of this? Thanks.
×
×
  • Create New...