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

P3D v5 Instrument panel has visible=1 but not showing up in the sim

Messages
31
Country
ca-britishcolumbia
Hello,

I have added an instrument panel window to the panel.cfg of an aircraft but it's not showing up in the sim. The window entry has both the visible=1 and the always_visible=1 flags but still not showing up. I tried restarting, reloading the scenario, reloading the aircraft and it's still not showing up. Does anyone know why it might not show up?

Panel.cfg window entry:
Code:
[Window01]
Background_color=0,0,0
size_mm=100,50
visible=1
window_size_ratio=0.10
always_visible=1
ident=RADIO_RIGHT
position=8
gauge00=comm-gauge!comm-gauge,0,0,100,50
3DP_CAMERA_TRANSFORM_REFERENCE=ORIGIN
3DP_SIZE=0.18,0.12 //x (width), y(height) **USE THIS TO CHANGE PANEL SIZE**
3DP_WORLDSPACE_POS_OFFSET=0.42,1.269,5.45 //x/y/z, x (left/right), y(up/down), z(forward/back)
3DP_PBH_OFFSET=0,0,0


Regards
 
The entry for ident= is not a valid ident according to the SDK. Also, if you're loading a saved flight it will have the current open panels saved in it as well. I also am not sure that visible= means it will absolutely always display. I say this because it's default value (as in if you don't even add this line) is visible=1 according to the SDK. The always_visible= only ensures that if the panel is open then it will remain visible even if you change the active view.
 
The entry for ident= is not a valid ident according to the SDK. Also, if you're loading a saved flight it will have the current open panels saved in it as well. I also am not sure that visible= means it will absolutely always display. I say this because it's default value (as in if you don't even add this line) is visible=1 according to the SDK. The always_visible= only ensures that if the panel is open then it will remain visible even if you change the active view.
What is wrong regarding the ident?
 
The entry for ident= is not a valid ident according to the SDK. Also, if you're loading a saved flight it will have the current open panels saved in it as well. I also am not sure that visible= means it will absolutely always display. I say this because it's default value (as in if you don't even add this line) is visible=1 according to the SDK. The always_visible= only ensures that if the panel is open then it will remain visible even if you change the active view.
I just checked the SDK and there are valid names and also numbers. What I don't understand is that I tried this in different airplane and it does show up (without checking the IDENT). I tried 10000 like the SDK says and it still did not show up.
 
What SDK did you check? I'm looking at the Prepar3D v5 SDK on their website and see no reference to RADIO_RIGHT in the documentation, nor is it defined in the GaugeDefines.h file which has a definition for the known panel IDs that the sim is aware of. I ask because if you're using info that isn't on their website (or it's not clearly locatable)... well, we need to make certain other developers know where this is at.

As for why isn't it showing... it's going to be aircraft specific (the issue). I asked prior, but I'll ask again... are you using a saved flight to load this? Can you open this window using SHIFT-2? Is this window defined in your panel.cfg's window titles section?
 
It's possible that should be RADIO_STACK_PANEL. As Ed says, there is no IDENT_RADIO_RIGHT in P3D and no RADIO_RIGHT in MSFS2020.
 
I wonder... Is your RADIO_RIGHT aliased in code? e.g.
Code:
// ********************************************************************
// Window IDs. Makes changing the toggle codes in one place only
// ********************************************************************
int forward_view = 10001;
int pilot_throttles = 10002;
int tscan_panel = 10004;
int centre_panel = 10005;
(etc..)
If the relevant window ident in the panel.cfg file is changed to match the code definition e.g.
Code:
// T-scan Popout
[Window02]
file=b314_tscan.bmp
size_mm=285,265
window_pos=0.072,0.53
visible=0
ident=tscan_panel
zorder=1
nomenu=1
- then the following code will toggle the tscan on and off:
Code:
//**************************************************************************
// Toggle the selected panel
//**************************************************************************l[
void togglePanel(int window)
{
    if(is_panel_window_visible_ident(window))panel_window_close_ident(window);
    else if(!is_panel_window_visible_ident(window))panel_window_open_ident(window);
    return;
}
where the (int window) parameter is the panel ident - 'tscan_panel' in this example.
 
Back
Top