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

Recent content by sal1800

  1. S

    Need help with code

    You have to use the event to set the potentiometer value (M: DragPercent) 100 * (>K:LIGHT_POTENTIOMETER_15_SET) or (M: DragPercent) 100 * 15 (>K:2:LIGHT_POTENTIOMETER_SET) The second version uses two parameters. Value and ID
  2. S

    Cockpit shadows

    There was something I read that described the shadow sphere but can't remember where. It has something to do with the shadow calculation where it's important to know where the eye point is. Like you would cast rays from the eyepoint and keep track of how close those pass the geometry. So a more...
  3. S

    MSFS20 Alpha material problems with Z-sorting

    Normally, you control the alpha stacking with the draw order parameter. The rendering should go from the lowest draw order to highest. But in your case, it's not a "stack" since depending on the direction, either one should render first. This is a tough one. Maybe keep the alpha texture version...
  4. S

    CSS background-image. What are the folder names?

    That's an interesting observation. The CSS spec allows for single or double quotes or in fact no quotes at all. But then the Coherent renderer may not exactly follow the spec. I always use the single quotes in JS and CSS but double quotes for HTML attributes but that's just a style thing.
  5. S

    CSS background-image. What are the folder names?

    I just tested this myself to see if there was any particular issue with using background images. I can certainly have any image as a background image. I used this in the CSS file where the image is located relative to that CSS file. multifunctionutilitygauge-element #primaryDisplay {...
  6. S

    is there a way not to get these speckly shadows on instrument dials?

    This has the appearance of the Shadow Sphere being in the incorrect location or not covering the entire cockpit. It should be in the cameras.cfg. This controls how the shadow maps are generated.
  7. S

    landing gear etc. variables

    Animating on the rudder is easy enough but doesn't follow the true castering movement of the tailwheel. But in practice, it's hard to really notice. <UseTemplate Name="ASOBO_GT_Anim"> <ANIM_NAME>Tailwheel_caster</ANIM_NAME> <ANIM_SIMVAR>RUDDER DEFLECTION PCT</ANIM_SIMVAR>...
  8. S

    MSFS20 The 'How-To' Basics of adding custom sounds to an existing Sound.XML stock Asobo file system

    This is a good topic because the sound system in MSFS seems complicated. I'll contribute the little progress I have discovered. You can certainly add .wav sounds in a sounds.xml file that is for an already built pck file. Just comment out the sections you want to override. You can also use a...
  9. S

    MSFS20 Fuel Selector logic

    I am glad this was useful for someone. At the time, I thought it would be a good example about how to use the case statement in RPN. Since then, I settled on a better implementation of the All, Left, Right, Both fuel selector. I now use four click spots, each covering a quadrant of the fuel...
  10. S

    MSFS20 How to create Switches and Handles in Cockpit

    It looks like you have done some research to try and figure out how the behaviors work, but you are missing a few details. I would suggest looking at more examples to try and understand how the templates work. I know the SDK documentation is not easy to understand, but the information is there...
  11. S

    MSFS20 Can I correct the pitch attitude of MODEL?

    As far as I can tell, Asobo expects the 3D model to be positioned and oriented correctly in the flight attitude. They have not added a provision to correct this in the config. It's not difficult to rotate the entire model and retain the animations in Blender. Just add a root empty object...
  12. S

    Blinking Warning Light code?

    Within a template or component, you can use the <Update Frequency="1">{CODE}</Update> definition to run code periodically. I believe the frequency parameter is in seconds. If all the conditions are satisfied, toggle another local var to control when the light is lit. It would be nice to have a...
  13. S

    Scenery / aircrafts models copyrights

    IP law allows entities to protect design features and trademarks. But these are also constrained to the areas those owners do business. Does a simulated digital product compete with the actual physical product? There is not a clear default answer to that. Only the legal system can truly answer...
  14. S

    Two Days of Frustration and still can't get this texture warping fixed...

    Maybe I'm missing something, but would that not fix itself by just remapping the UV with Project from View? You can pin the perimeter vertices to keep the island in the same place and let it remap the rest of the faces.
  15. S

    MSFS20 Event management in javascript

    Sorry, I misunderstood. The connectedCallback() is run only once, so that's a good place to call your init code. Otherwise, just test against the sim time. You can't count on any expected execution rate as the Coherent thread can get blocked by other sim code. But it's cheap to test a condition...
Back
Top