-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestFlightFailure_IgnitionFail never occurs #163
Comments
Changes to IgnitionFail cannot be tested due to KSP-RO#163.
I've tracked down the problem: Unfortunately, I have a very limited understanding of TestFlight configurations, so I'm not sure how to proceed. Does |
The query system is.. complicated... and I can barely remember all the intricacies. As I recall though while at one time the "configuration" property was optional, it is now required. It should default to the kspPartName though according to this commit f9b4da1:
Maybe try explicitly setting it in the config and see if it makes a difference? Maybe the default handling of a blank property is broken? |
Oh dear, TestFlightEnabled is a catch-22. Configuring as follows (abridged for clarity):
lets
can find the |
You want to alias it. Set up an alias in the core, then use that alias in the other modules. For some reason that doesn't seem to be in the docs however, so let me see if I can find it. |
Isn't that my second example? It fails because |
Yeah it is sorry didn't look at it right.. Getting late here. |
Your second example looks correct to me and the system is universal across modules, so it seems odd it would be breaking in just this one module. Maybe it isn't binding to the engine? |
I think the binding is fine -- It almost makes sense that only this module breaks. EDIT: weirdness confirmed. In So if I modify |
The performance loss, thrust loss, and shutdown modules are all good and work regularly. So I would use them as a basis to determine. Its possible IgnitionFail never got updated to the newer system. |
O"k looking at those other three, none of them override anything in the specific failure. They leave the Enabled check to the base engine module. so it looks like the overriding of that check in ignition fail is old and needs to be removed. Basically make it work the same as the other three failure modules. |
Hmm actually might be more complicated than what I just said. I need to look into it a bit more. IgnitionFail is kind of a special failure as it isn't a called failure that can occur at any time based on reliability rolls. It is instead a triggered failure that can only occur at specific times, IE when you go to ignite the engine. That is why it is set up differently. |
So try this. Remove the override of TestFlightEnabled that is in TestFlightFailure_IgnitionFail and see how that works. It should be that simple really. |
That change alone doesn't fix it; it |
That doesn't make sense because all the other engine related failures work fine and they use the one in the engine module. |
No, they don't. I verified with debug statements that the normal failure checks call |
Aha, |
Looks like something may still be broken after the fix. I get ignition failures now, but well over 3/4 of my attempted launches of an Aerobee result in ignition failures, which feels way too high to me. |
While I have seen all other engine/gimbal failures at least once in testing, I'm unable to trigger an ignition failure.
The bug can be reproduced in KSP 1.2.2, with ModuleManager 2.7.6, TestFlight 1.8.0.1, and this config file instead of the default stock ones. Small changes to the config, such as adding/removing a
weight
forIgnitionFail
(it should be absent, right?), fleshing outbaseIgnitionChance
, or reducing the ignition chance to 0.1, do not change the behavior. I started a sandbox game, cheated the Orbiter 1A into orbit, and alternated between full and zero throttle at various intervals. Eventually an engine would shut down, but they never failed to ignite.I see no IgnitionFail output in the log, even with debug logging enabled, so from comparison to
TestFlightFailure_IgnitionFail.cs
I suspect TestFlight is not detecting the ignitions in the first place.The text was updated successfully, but these errors were encountered: