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

Custom engine starter

I copied your code to modeldef make a bit adjustment, it animated, but have same rotation speed. what I want is going faster.
I can't keep value 0 when (A:ENG N1 RPM:1, percent) lower than 0.01 Percent.

this my code
Code:
(A:ENG N1 RPM:1, percent) 0.01 >
if{ (L:Prop0_still_rate,enum) 1 + (>L:Prop0_still_rate,enum) }
 els{ (L:Prop0_still_rate,enum) 1 - (>L:Prop0_still_rate,enum) }
          
(L:Prop0_still_rate,enum) 0 >
if{ (L:Prop0_still,enum) (L:Prop0_still_rate,enum) + 100 % (>L:Prop0_still,enum)}
els{ (L:Prop0_still,enum) (>L:Prop0_still,enum) }
          
(L:Prop0_still_rate,enum) d 0 < r 100 > or if{ (>L:Prop0_still_rate,enum) }
 
To keep a bit more control on the rate (L:Prop0_still_rate), you better put this in a 2D XML gauge. Because this variable will increase with 1 every frame, when in the modeldef.xml. When put in a 2D gauge, it will increase every x seconds: by default 18 times per second, but if you define an Update Frequency, it will do it slower.

In your lowest line, you define: if something then (>L:Prop0_still_rate,enum) but there is no value in front of this variable. Probably there should be a value.
 
so I must have 2D gauge?
maybe if must use 2D gauge I will control it using C++ gauge.
 
That will work fine too. As long as it spits out a variable which can be read by the animation (you should still drive the animation by the variable).
 
Creating and using a 2D XML gauge as a controller is much simpler to script, and easier (read: faster) to test quickly, since you can instantly reload the aircraft without having to shut down the sim, replace your C++ gauge, then reload the sim.
 
Creating and using a 2D XML gauge as a controller is much simpler to script, and easier (read: faster) to test quickly, since you can instantly reload the aircraft without having to shut down the sim, replace your C++ gauge, then reload the sim.

Yes, you're right Bill. C++ script take longer than XML script to test
but Visual Studio has Debug mode that can I use for fast test and I no need to Shutdown the sim. it same as when scripting 2D xml.
but debug has number limitation for how many to freeze/unfreeze the sim. If out of number and to reload C++ again, no need to shutdown the sim, just change to another aircraft, replace C++ than load aircraft again(has our C++ script), that faster than shutdown the sim.
 
That is absolute true, providing that you are running both on your local computer. However, since I 'code' on my dev computer here in my office and test on my sim computer in the library (next room over), I cannot use the Debug mode of Visual Studio across the network.
 
Full tanks, fuel valves are open (else autostart wouldn't be working), fuel pumps on, no start...

SOLVED: I had to increase the starter torque in the aircraft.cfg file:

normalized_starter_torque= 0.235 // was 0.035
Hi Bill,
is there any way to make starter have longer time? default piston engine starter in around 3 second reset back to 0 value.
 
I just keep sending the command when the switch is thrown, until either engine combustion becomes true or the switch is turned off.
 
In FSX, the starter will only need to be engaged once. If the engine fires up too quickly, one may keep the mixture at cutoff or the fuel valve closed for a few seconds.
 
I just keep sending the command when the switch is thrown, until either engine combustion becomes true or the switch is turned off.
then the "sound start" will repeated too. I want give couple propeller turn before engine running.
there some different between auto start (CTRL+E) and manual starter. auto start have longer starter time. with lower value on "normalized_starter_torque" that manual starter can't start, by using auto starter engine always get started.

In FSX, the starter will only need to be engaged once. If the engine fires up too quickly, one may keep the mixture at cutoff or the fuel valve closed for a few seconds.
yes that can be done, the problem is manual starter is too short when active.

I can combine both suggestion, keep sending command and add extra condition before engine start, plus I need extra sound start too...
 
Back
Top