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

MSFS 2024 Struggling with New Gauge Tutorial

Messages
8
Country
unitedkingdom
Hi, I'm new to MSFS 2024 development but I'm okay with HTML/JS, etc. I want to create a new gauge so I'm following Creating JS Instrument Tutorial but it doesn't seem to match reality, and ultimately it doesn't work for me. I feel it's very close but I'm just missing some key point. Here's what's happened.
  1. Installed the DA62 from the Samples menu in DevMode.
  2. Manually Copied the DA62 folder to a my development folder V2 (The tutorial says Save..As, that doesn't work)
  3. Opened the V2\DA62 project and built it
  4. Started a free flight and selected the "DA62 SDK" plane. Everything looked correct
  5. Followed the Tutorial and created the TestGauge HelloWorldDisplay which results in HTML, JS, CSS files
  6. Set the Pack order hint (not in the Tutorial) to 'Instrument Patch' (other options are Custom Instrument, Custom Instrument Patch)
  7. Changed the output path in the project inspector to 'html_ui\Pages\VCockpit\Instruments\HelloWorldDisplay\'
  8. Built the project, also Build All in project, weirdly says "0 of 10 errors" in the console but no sign of any errors - even with toggling the filters
  9. I change the Panel.cfg and panel.xml in PackageSource to use the same ID as in the HTML/JS
  10. Start a flight and all the instrument panels and black/dead.
    1757577784065.png
  11. I look at Coherent GT Debugger and I can see the ID for the new gauge element is missing!
    1757577927591.png
  12. If I select the console for that element
    1757577971600.png
As I say, it looks to be ALMOST there. I've run out of ideas about how to track the problem. I'm guessing it's a path problem or a build/copy issue, but I don't know what. Any thoughts would be most welcome.
 
Found it! The tutorial has a bug in it...I knew it was something dumb :)
JavaScript:
registerInstrument("simple- glass-cockpit-sample", HelloWorldDisplay);
There's a space in the instrument reg'
 
Be aware that the SDK is still somewhat -erm- incomplete and buggy even after eight or more years of development. The chances of us getting an SDK v1.0 still appear to be vanishingly small.
 
Back
Top