-
Notifications
You must be signed in to change notification settings - Fork 20
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
Compatibility Issue: ConfigNodePerf patch & SCON/EPL #98
Comments
Can you get me a minimal reproduction of this? I've never touched SCON (or knew it existed). |
I hope this is what you meant by a minimal reproduction ...? With only SCON installed: (Youtube)
With both SCON and KSPCF installed: (Youtube)
Not all craft are created equal: (Youtube)
[Edited to add the third video] |
What I mean is:
Videos of you encountering the problem don't really help in this case because, well, I already believe you that you are encountering it. ;) What I need is a way to reproduce the problem under development conditions, so I can figure out what's going wrong. |
Let's try this again then: Completely clean "Fresh from Steam" copy of KSP with only latest versions of Module Manager (CKAN), Simple Construction (CurseForge), Harmony (CKAN), and KSP Community Fixes (CKAN) are installed. Using sandbox mode to make sure parts are available (but can reproduce bug in my normal save in career mode). Create the "Builder"
Create Simple Crafts to build.
Attempt to build
I've observed that Simple 1 & 3 produce the bug in question. Simple 2 & 4 does not. |
Awesome, thank you! I'll work on this as soon as I have time. :) |
@NathanKell Note that the likely root trigger for this issue is in EPL (ExtraPlanetaryLaunchpads), SCON is just a set of alternative configs repackaging EPL. I think the place where this is happening is in string text = File.ReadAllText(craftfilename);
ConfigNode configNode = ConfigNode.Parse(text); I didn't found any difference when round-tripping that ConfigNode back to a string with and without the ConfigNodePerf patch. Then EPL load the node in a new |
So, gave a look at this because having a bug in the config parser isn't something that we should let fly. So, as far as EPL is concerned, this is because it calls The issue is in the KSPCF |
…ir when parsing a node-less, values only input
Fixed in 1.27.0 |
Ugh, thank you got. Sorry I dropped the ball on this. |
Posted this issue in the Github for SCON first, but since I'm not sure which mod actually causes the incompatibility or how, posting it here as well.
With both KSPCF and SCON installed, resource requirements (Rocketparts & Electric Charge, etc) occasionally don't show when opening the in-flight crafting menu. Additionally, for the craft that shows no requirements, when attempting to build it, it will build instantly with no resources used.
Tested on an install with only these two mods to verify. Works as expected without KSPCF, works as above with KSPCF. Set all modules in KSPCF to "false" in the settings file to try to narrow down the issue; the issue persists with all "false" settings.
Issue is not quite random, does not affect all craft builds but once I found a craft that it affects, it is reproducible even after quitting, and reloading (to include installing/uninstalling SCON and/or KSPCF) but I cannot figure out what about the craft causes this.
Log attached: KSP.log
KSP and both mods are latest versions (KSP 1.12.3, KSPCF 1.22.2, SCON 4.0.99.30-prerelease) KSPCF downloaded via CKAN, SCON via CurseForge.
The text was updated successfully, but these errors were encountered: