OhScrap! (OHS) by severedsolo

OhScrap! (OHS) by severedsolo

3.6k Downloads

sampleTime for rockets

zer0Kerbal opened this issue ยท 0 comments

commented

ConfigNode cn = ConfigNode.Load(KSPUtil.ApplicationRootPath + "/GameData/OhScrap/PluginData/DefaultSettings.cfg");

@zer0Kerbal - I think I may have found the cause of @uglyduckling81's issue, and he's right. It's failing too much.

Noticed myself that the failure rate seemed a little high, but couldn't put my finger on why - then I noticed that debug mode was reporting that the sampleTime for rockets in atmosphere was 5 minutes. The cfg says it's supposed to be 2.

Here's your culprit.

ConfigNode cn = ConfigNode.Load(KSPUtil.ApplicationRootPath + "/GameData/OhScrap/PluginData/DefaultSettings.cfg");

It's trying to read /GameData/OhScrap/PluginData/DefaultSettings.cfg but the file is actually at /GameData/OhScrap/Plugins/PluginData/DefaultSettings.cfg

Also - and this one is my fault but never got picked up because the cfg was being read before. The hardcoded default settings are way too aggressive. Plane mode is checking every 10 seconds.