• 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 v4 Gauge not rendering.

Messages
6
Country
unitedkingdom
I am having issues with my C++ gauge refusing to render in sim. Code for sub gauge:
C++:
char attidude_indicatorVC_no_bezel_gauge_name[] = GAUGE_NAME;
extern PELEMENT_HEADER attidude_indicatorVC_no_bezel_list;
extern MOUSERECT attitude_inicatorVC_no_bezel_mouse_rect[];
GAUGE_HEADER_FS700(GAUGE_W, attidude_indicatorVC_no_bezel_gauge_name, &attidude_indicatorVC_no_bezel_list, attitude_inicatorVC_no_bezel_mouse_rect, 0, 0, 0, 0);

MOUSE_BEGIN(attitude_inicatorVC_no_bezel_mouse_rect, 0, 0, 0)
MOUSE_END

FAILURE_RECORD attitude_indicatorVC_no_bezel_fail[] =
{
    {FAIL_SYSTEM_ELECTRICAL_AVIONICS, FAIL_ACTION_NO_DRAW},
    {FAIL_NONE, FAIL_ACTION_NONE}
};

MAKE_SPRITE(efisSkyGround,
    EFIS_SKY_GROUND,
    NULL,
    attitude_indicatorVC_no_bezel_fail,
    IMAGE_USE_TRANSPARENCY | IMAGE_USE_ERASE,
    0,
    0, 0,
    160, 120,
    1, 1,
    MODULE_VAR_NONE, NULL, 0,
    ATTITUDE_INDICATOR_PITCH_DEGREES, NULL, 1.0000000,
    ATTITUDE_INDICATOR_BANK_DEGREES, NULL, 1.0000000
)

PELEMENT_HEADER g5_att_sky_ground_list[] =
{
    &efisSkyGround.header,
    NULL
};

MAKE_STATIC(G5AttStaticBG,
    G5_ATT_BACKGROUND,
    g5_att_sky_ground_list,
    attitude_indicatorVC_no_bezel_fail,
    IMAGE_USE_TRANSPARENCY,
    0,
    0, 0
)

    PELEMENT_HEADER attidude_indicatorVC_no_bezel_list = &G5AttStaticBG.header;
I am unsure why the gauge is not rendering in the sim. i.e. it is a black box in the sim.
 
I am no expert in gauge code but does it matter that you have spelt ATTITUDE as ATTIDUDE twice in the code?

Sent from my SM-G935F using Tapatalk
 
Back
Top