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

Adjust Payload - using number instead of pounds

Messages
78
Country
unitedstates
Here's a question:

I was playing with payload adjustments yesterday. The SDK allows you to enter values with up to 3 decimal places. However, I've found that only 1 decimal place registers on the aircraft. More specifically:

I set up extra stationpoints in the aircraft.cfg to be used as monitors of certain parameters. Whenever one of my triggers fires, I want a value to be added to a specific point. When I use pounds as the unit, I can add units no smaller than 0.1. I tried using number as the unit but this added 0.2 for every trigger fire. Curious.

Anyway, I was hoping to set up each point for a maximum of 1.0 pounds so that I could add values in increments of 0.01 for a max of 100 points each. As I'm going to have some 30 extra stationpoints, if I'm stuck adding no smaller than 0.1 that would mean max weight at 10.0 each and a potential weight gain of 3,000 pounds which could then impact performance, especially on smaller aircraft.

So, the question is, does anyone know how to get the Adjust Payload Action to recognize smaller values (0.01)? I'm guessing that it probably isn't going to be possible as the FLT that I save always has X.X as the format no matter what the weight is.
 
Last edited:
Well, this is an interesting approach. I think I cannot help you on it but may I ask why you don't use counters for your enquieries?
Is there something you can do with those fake stations rather than with counter triggers?
 
Is there something you can do with those fake stations rather than with counter triggers?

Well, I'm trying to avoid SimConnect if at all possible first, because I don't want to take the time to learn another language and second, because I want an easily updatable thing, for when MS changes things around for the next version. ;)

Basically, I'm recording things in the sim during the flight as values in stationpoints. After a flight, you save it and my external program then parses the payload string and gets the numbers out of there. For example, if my trigger for tailstrike on departure fires, it will add a point to the proper station. After the data is parsed, it reads that station as 0.1 and determines that there was a tailstrike on takeoff (defined by altitude and pitch parameters depending on the aircraft in question).

For things like turbulence (using GF here), there is a reset (timer trigger for about 2-5 seconds) which will reactivate a one-shot trigger and continue to add points up to the maximum so you can determine the level of turbulence experienced. 0.4 might be a few bumps while 9.3 would be a rough flight (9.3 translates to 93 GF triggers of that level). These will all be used for various purposes by the external program.

I realize that setting it all up with SimConnect might be the way to go but again, I'm almost done coding the whole external thing and don't want to start over besides having to learn C#. Then there's the possibility that MS will rearrange everything for FS11. This way, it should be easy to remap things rather than recode everything.
 
Last edited:
Sounds interesting, though I don't like the idea that the user's aircraft.cfg is edited this way.

But if you're successful with this let me know. Would interest me how it works in the end. :)
 
Actually, it already does work. I did a simple test with a "taxi overspeed check" so that when you exceed 25 knots, a point is added, you get a 2 second reset and the trigger is turned back on.

The only things done to the aircraft.cfg are the staionpoints and the fuel tanks data (as everything I'm doing is standardized so every stationpoint.0 = Pilot, etc). The original aircraft.cfg is saved first as aircraft.bak, in case they wish to revert.

I just finished a full set of flight monitors last night which I have yet to test but there are some 30 stationpoints now that will track all this stuff. I hope I don't have any issues, as I did the whole thing using notepad (manual xml file editing) and we all know what that could mean if I misplaced/mis-labeled even one item.
 
Okay, I need to work on my math skills. 10x30 = 300 not 3,000! :rolleyes: So, at best I'm only looking at a 300 pound increase for all these additions. I can kind of live with that but, I'd still prefer the smaller increments.
 
Back
Top