Page 1 of 1
Allowing for shutdown at end of scenario?

Posted:
Tue Mar 11, 2014 6:53 pm
by OldProf
Now that we're getting engines with complex and supposedly realistic start-up and shut-down procedures, I'm wondering how to build them in to scenarios. The start-up sequence is just a matter of allowing "enough" time for all of the various steps, although with each potential driver taking a different amount of time to go through them AI timing will be even more difficult. How about allowing for shut-down sequence at the end of the scenario, fully or partially? In order to run successfully, a standard scenario must have an end marker and when that marker is reached, the scenario ends and vanishes, without allowing for any shut-down procedures. Ideas, fellow scenario writers?
Re: Allowing for shutdown at end of scenario?

Posted:
Tue Mar 11, 2014 10:26 pm
by robbit
just add a message trigger at the end and change the time after the last action for 30 seconds or however much time you need it to hold the scenario open for
Re: Allowing for shutdown at end of scenario?

Posted:
Tue Mar 11, 2014 10:39 pm
by PapaXpress
In the case of the GP40 the shutdown is done by switching mandatory breaker off, or by pressing the shutdown button, but under the hood we are hooking into the standard RW control 'Startup'. The GP20 and SD45 do the same thing (though the buttons maybe different). If you script your LUA to wait for the engine to have its Startup value set at -1 (1 is started) then you should be able to do what you want.
Re: Allowing for shutdown at end of scenario?

Posted:
Tue Mar 11, 2014 11:22 pm
by Chacal
The scenario lua script?
Re: Allowing for shutdown at end of scenario?

Posted:
Tue Mar 11, 2014 11:38 pm
by PapaXpress
Yes. You can script scenarios. You can start, stop, and do any number of things against an engine. I am sure you can do even more than that.
Re: Allowing for shutdown at end of scenario?

Posted:
Wed Mar 12, 2014 8:52 am
by artimrj
Yeah the cinemtaic deal stops you from doing anything with the controls while you are flying around. It has a command for that and a command for giving control back to you. If we only had a list of all the things it could do.
Re: Allowing for shutdown at end of scenario?

Posted:
Wed Mar 12, 2014 9:01 am
by mrennie
Another way to do it is to put a call like this in your engine script, a certain time after the shutdown:
SysCall(“ScenarioManager:TriggerScenarioComplete”, "Engine shutdown complete")
You can also end a scenario when there's an engine failure:
SysCall(“ScenarioManager:TriggerScenarioFailure”, "You blew up the engine")
Re: Allowing for shutdown at end of scenario?

Posted:
Wed Mar 12, 2014 12:58 pm
by PapaXpress
Re: Allowing for shutdown at end of scenario?

Posted:
Wed Mar 12, 2014 3:01 pm
by mrennie
Yep, that's the one I've got

Re: Allowing for shutdown at end of scenario?

Posted:
Wed Mar 12, 2014 4:14 pm
by OldProf
robbit wrote:just add a message trigger at the end and change the time after the last action for 30 seconds or however much time you need it to hold the scenario open for
That sounds like what I'm after . . . thanks!
As to the scripting suggestions, well, I just don't LUA. Maybe someday, but not yet.
Re: Allowing for shutdown at end of scenario?

Posted:
Wed Mar 12, 2014 4:20 pm
by PapaXpress
Honestly from what I have seen from our scenarios for the GP40 its not as complex as one you would write for a model.
Re: Allowing for shutdown at end of scenario?

Posted:
Wed Mar 12, 2014 5:31 pm
by robbit
You're welcome!
Re: Allowing for shutdown at end of scenario?

Posted:
Wed Apr 02, 2014 9:15 pm
by dogrokket
mrennie wrote:Yep, that's the one I've got

NICE! That's a helpful link.
