• 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 condit. jump + a small panel problem

Messages
2
Hello,
I've posted two simple questions at the flightsim.com Panel forum. The moderator over there recommended FSDeveloper.com. Now I'm here and here is that what I've asked.
-----------------***---------------
I'm modifying with permission the freeware 2D panel form Darrel Woodhouse for the icon A5. The reason for my mod was that in my opinion his 2D panel has left too less room for the scenery. And the scenery window is my first problem. The scenery window is not large enough, to see to the left and to the right at the border between the panel and the scenery window. I need to enlarge it a little but where is in defined, where it is to find?

I added a small radio altimeter between the airspeed and altitude gauge. It works but my problem is that it works all the time.


Code:
<Element>
	<Visible>(A:Electrical Master Battery,bool) </Visible>
		<Position X="97" Y="48"/>
		<Text X="32" Y="16" Length="4" Font="Arial" Bright="Yes" Luminous="Yes" FontSize="14" Color="#00FF00">	
	       	<String>%((A:Radio Height,feet))%!03d!</String>
 	        </Text>
</Element>

Sim on the ground is an A type variable and radio height is also one. It should be possible to do conditional branching like in this very Basic pseudo code.
Code:
If Sim_on_the_Ground
   Print "GND"
else 
   If Radio_height > 999
      Print "hhh"
   else
      Print Radio_height
   EndIf
EndIf

I fiddle now for three full days around with miserable documented scripting syntax. Examples I've found are full of graphics which I don't need. But the graphics scripting makes the code at least for me even more unreadable. Nothing did work, I need a little help! Perhaps someone could be so kind to complete the gauge coding according to the Basic code. I appreciate any help especially as I'm an old Basic dog. C is only the 3rd character in the alphabet...
-----------------***---------------
As I wrote above, I never got 'warm' with C style languages. Back in the golden eighties I did some professional work with QBacic PDF, Turbo Pascal and XBase languages. That's a half eternity ago and now I even have problems with the OOP approach. That text type Rad Alt gauge would be ideal not only for the Cabrio panel. I could it also use as a entry point to get more accustomed to that weird FS scripting way of conditional branching.

Thank you all!
Uli

Airport ID Mod7.jpg
 
Code:
If Sim_on_the_Ground
   Print "GND"
else 
   If Radio_height > 999
      Print "hhh"
   else
      Print Radio_height
   EndIf
EndIf

Try this:
Code:
<String>%((A:SIM ON GROUND,bool) 0 !=)%{if}GND%{else}%((A:Radio Height,feet) 999 >)%{if}hhh%{else}%((A:Radio Height,feet))%!03d!%{end}%{end}</String>

For scenery window find the [Default View] in the Panel.cfg, and increase value of SIZE_Y.
 
Last edited:
And there you go, Uli! Luka was kind enough to answer your question almost immediately...

You can also now see why I recommended coming here. Not only are there more knowledgable people who hang out here, the forum software is much, much more 'user friendly' than flightsim.com's system...

...often "simpler" is actually "better!" :D
 
Thank you, Luka, it works now as it should be! And I have a small working example to play with. It's the right season for that, long winter evenings and a lot of time. Anyhow I fear that I'll be a long time not good enough for posting here, aside of asking dump questions.
My next project after the Icon A5 2D 'Cabrio Mod' will be porting the fs9 tubp twinjet 2D panel to fsx. Hopefully I don't have to ask for help...
Greetings from Germany!
Uli
 
Back
Top