atmosphericbeats / atmosphericbeats_eveconfig_ksrss

EVE Volumetrics config, developed for KSRSS Reborn
GNU General Public License v3.0
8 stars 1 forks source link

Unable to parse code at GameData/AtmosphericBeats/EVE/clouds.cfg #10

Open ShadowWolfTJC opened 6 months ago

ShadowWolfTJC commented 6 months ago

Although this didn't result in the game crashing immediately, my recent .log file after my latest successful game session stated that the game wasn't able to parse the following code: `[LOG 15:28:46.983] [EVE TextureConfig]: Running Setup

[LOG 15:28:47.029] [EVE CloudsManager]: Running Setup

[LOG 15:28:47.090] [EVE CloudsManager]: Cleaning Clouds! [LOG 15:28:47.116] [EVE CloudsManager]: Unable to parse config node: OBJECT { name = Mars-dust-scattered body = Mars altitude = 8200 detailSpeed = 0,6,0 speed = 0,10,0 settings { _DetailTex = StockVolumetricClouds/Clouds/Textures/PluginData/detail1 _DetailScale = 30 _UVNoiseTex = StockVolumetricClouds/Clouds/Textures/PluginData/uvnoise1 _Color = 125, 76, 32 ,100 _UVNoiseAnimation = 0.200000006,0.100000003 _MainTex { value = StockVolumetricClouds/Clouds/Textures/PluginData/Duna/DustScatteredCoverage type = AlphaMap alphaMask = ALPHAMAP_R } _FlowMap { } } layerRaymarchedVolume { receivedShadowsDensity = 10 detailNoiseTiling = 0 upwardsCloudSpeed = 10 cloudTypeMap = StockVolumetricClouds/Clouds/Textures/PluginData/Kerbin/KerbinCloudTypeHigh scaledFadeStartAltitude = 15000 scaledFadeEndAltitude = 200000 sdfMap = StockVolumetricClouds/Clouds/Textures/PluginData/Duna/DustScatteredSDF color = 0.245, 0.13, 0.0625,1 skylightMultiplier = 0 noise { worley { octaves = 8 periods = 2 brightness = 1.5 contrast = 1 lift = 0.1 } } coverageMap { value = StockVolumetricClouds/Clouds/Textures/PluginData/Duna/DustScatteredCoverage type = AlphaMap alphaMask = ALPHAMAP_R } raymarchingSettings { adaptiveStepSizeFactor = 0.01 baseStepSize = 300 maxStepSize = 1000 lightMarchDistance = 0 lightMarchSteps = 0 } cloudTypes { Item { typeName = Dust minAltitude = -200 maxAltitude = 6500 interpolateCloudHeights = true detailNoiseStrength = 0.2 density = 0.001 ambientVolume = 2 baseNoiseTiling = 10000 coverageCurve { key = 0.00321579 1 -0.03297058 -0.03297058 key = 0.02634327 1 0.111055 0.111055 key = 0.3164966 0.7820052 -1.475057 -1.475057 key = 0.9935608 0.01082993 -0.0226933 -0.0226933 } } } ambientSound { soundName = StockVolumetricClouds/Clouds/Sounds/DesertWind } detailNoise { } particleField { particleFieldConfig = dust-Mars } lightVolumeSettings { } phaseFunctions { } } timeSettings { duration = 98280 repeatInterval = 209664 fadeTime = 15120 } layer2D { macroCloudMaterial { } } }

[LOG 15:28:47.117] EVEManager: Issue loading CloudsManager! Error: UnityEngine.UnityException: Unable to apply node! ---> UnityEngine.UnityException: Unable to parse "settings" in "OBJECT"! ---> UnityEngine.UnityException: Unable to parse "_MainTex" in "settings"! at Utils.ConfigHelper.LoadObjectFromConfig (System.Object obj, ConfigNode node) [0x000f1] in <934eaa8d78c34a628f1650964624e3e9>:0 at Utils.ConfigHelper.Parse (System.Reflection.FieldInfo field, System.Object& obj, System.String[] value, ConfigNode node) [0x003bd] in <934eaa8d78c34a628f1650964624e3e9>:0 at Utils.ConfigHelper.LoadObjectFromConfig (System.Object obj, ConfigNode node) [0x00062] in <934eaa8d78c34a628f1650964624e3e9>:0 --- End of inner exception stack trace --- at Utils.ConfigHelper.LoadObjectFromConfig (System.Object obj, ConfigNode node) [0x000a8] in <934eaa8d78c34a628f1650964624e3e9>:0 at Atmosphere.CloudsObject.LoadConfigNode (ConfigNode node) [0x00000] in :0 at Atmosphere.CloudsManager.ApplyConfigNode (ConfigNode node) [0x00030] in :0 at EVEManager.EVEManagerBase.Apply () [0x00032] in <3b56b8781a1e4904aed5b5961cbcdcc8>:0 --- End of inner exception stack trace --- at EVEManager.EVEManagerBase.Apply () [0x0005f] in <3b56b8781a1e4904aed5b5961cbcdcc8>:0 at EVEManager.EVEManagerBase.LoadConfig () [0x00062] in <3b56b8781a1e4904aed5b5961cbcdcc8>:0 at EVEManager.GenericEVEManager`1[T].Setup () [0x00016] in <3b56b8781a1e4904aed5b5961cbcdcc8>:0 at EVEManager.GlobalEVEManager.Setup (System.Boolean late) [0x0005c] in <3b56b8781a1e4904aed5b5961cbcdcc8>:0 [LOG 15:28:47.118] [EVE AtmosphereManager]: Running Setup

[LOG 15:28:47.129] [EVE AtmosphereManager]: Cleaning Atmosphere! `

I have reason to suspect that it's some kind of minor mistake, like, say, a comma and/or a space that's missing and/or in the wrong spot. However, it could be something else that's causing the issue that I'm unaware of.

ShadowWolfTJC commented 6 months ago

Update: I've experienced the same kind of error once more. I now suspect it's because of all of those underscores (_) in front of the variables, like, for instance, "_DetailTex".

Are those variables supposed to have underscores in front of them? If not, then perhaps they should be deleted?

The following .log file snippet will be provided below:

`[LOG 05:49:01.163] [Kopernicus]: StarLightSwitcher: Set active star => Sun [LOG 05:49:06.631] [MessageSystem] Reposition 0.02 320099 [LOG 05:49:06.631] [GenericAppFrame] Reposition 0.02 320099 [LOG 05:49:06.631] [GenericAppFrame] Reposition 0.02 320099 [LOG 05:49:06.637] [B9PW] unloading bundle [LOG 05:49:06.845] [MechJeb2] Loaded Shaders Bundles [LOG 05:49:06.866] [ShadowMan][Debug] Kopernicus.ShadowMan setup done [LOG 05:49:06.867] [EVE PQSManagerClass]: Running Setup [LOG 05:49:06.867] [EVE TextureConfig]: Running Setup [LOG 05:49:06.867] [EVE CloudsManager]: Running Setup

[LOG 05:49:06.879] [EVE CloudsManager]: Cleaning Clouds! [LOG 05:49:06.879] [EVE CloudsManager]: Removing 2D clouds... [LOG 05:49:06.881] [EVE CloudsManager]: PQS Applied [LOG 05:49:06.881] [EVE CloudsManager]: Applying 2D clouds... [LOG 05:49:07.013] [EVE CloudsManager]: Clouds2D is now SCALED [LOG 05:49:07.014] [EVE CloudsManager]: CloudsPQS: (EVE Clouds: Mars-dust-scattered) OnSphereInactive [LOG 05:49:07.024] [EVE CloudsManager]: Clouds2D is now SCALED [LOG 05:49:07.145] [EVE CloudsManager]: Cannot find Mars to apply to main Menu! [LOG 05:49:07.148] [EVE CloudsManager]: Unable to parse config node: OBJECT { name = Mars-duststorm-big body = Mars altitude = 8000 detailSpeed = 0,6,0 speed = 0,80,0 settings { _DetailTex = StockVolumetricClouds/Clouds/Textures/PluginData/detail1 _UVNoiseTex = StockVolumetricClouds/Clouds/Textures/PluginData/uvnoise1 _UVNoiseScale = 0.05 _UVNoiseStrength = 0.005 _UVNoiseAnimation = 0.05,0.02 _DetailScale = 20 _Color = 125,66,32,255 _MainTex { value = StockVolumetricClouds/Clouds/Textures/PluginData/Duna/DunaDuststormBigCoverage type = AlphaMap alphaMask = ALPHAMAP_R } _FlowMap { } } layerRaymarchedVolume { color = 0.205,0.13,0.0625,1 scaledFadeStartAltitude = 15000 scaledFadeEndAltitude = 200000 sdfMap = StockVolumetricClouds/Clouds/Textures/PluginData/Duna/DunaDuststormBigSDF upwardsCloudSpeed = 80 detailNoiseTiling = 5000 skylightMultiplier = 0 noise { worley { octaves = 8 periods = 3 contrast = 1 lift = 0.2 brightness = 0.9 } } raymarchingSettings { lightMarchDistance = 0 baseStepSize = 200 maxStepSize = 1000 adaptiveStepSizeFactor = 0.0052 lightMarchSteps = 0 } cloudTypes { Item { typeName = Wake baseNoiseTiling = 20000 detailNoiseStrength = 0.1 maxAltitude = 6000 density = 0.01 ambientVolume = 2 coverageCurve { key = -0.07454353 0.03224421 -0.03297058 -0.03297058 key = -0.05141604 0.9994748 0.111055 0.111055 key = 0.3164966 0.7820052 -1.475057 -1.475057 key = 0.9935608 0.01082993 -0.0226933 -0.0226933 } } Item { typeName = Front maxAltitude = 9000 baseNoiseTiling = 2000 detailNoiseStrength = 0.2 density = 0.02 ambientVolume = 3 coverageCurve { key = -0.07454353 0.03224421 -0.03297058 -0.03297058 key = -0.05141604 0.9994748 0.111055 0.111055 key = 0.3164966 0.7820052 -1.475057 -1.475057 key = 0.9935608 0.01082993 -0.0226933 -0.0226933 } } Item { typeName = Inverted Tornado bottom maxAltitude = 6000 ambientVolume = 3 density = 0.01 baseNoiseTiling = 4000 coverageCurve { key = -0.07454353 0.03224421 -0.03297058 -0.03297058 key = -0.05141604 0.9994748 0.111055 0.111055 key = 0.3164966 0.7820052 -1.475057 -1.475057 key = 0.9935608 0.01082993 -0.0226933 -0.0226933 } } Item { typeName = Inverted Tornado top maxAltitude = 10500 detailNoiseStrength = 1 baseNoiseTiling = 10000 coverageCurve { key = 0.00321579 0.01443481 -0.03297058 -0.03297058 key = 0.1155062 0.9816654 0.111055 0.111055 key = 0.7880079 0.4650057 -1.114864 -1.114864 key = 1.000996 -0.005535692 -3.133992 -3.133992 } } Item { typeName = Regular Tornado bottom maxAltitude = 8000 ambientVolume = 3 minAltitude = 0000 baseNoiseTiling = 10000 detailNoiseStrength = 1 density = 0.05 coverageCurve { key = 0.0007351086 0.001563072 7.031267 7.031267 key = 0.1003637 0.702078 1.599337 1.599337 key = 0.5008843 0.9020547 -0.005483016 -0.005483016 key = 0.9007242 0.6980332 -1.637476 -1.637476 key = 0.9992649 0.0002992153 -7.080667 -7.080667 } } Item { typeName = Regular Tornado top maxAltitude = 9000 baseNoiseTiling = 10000 detailNoiseStrength = 1 minAltitude = 4000 interpolateCloudHeights = False density = 0.01 coverageCurve { key = 0.0007351086 0.001563072 0.08586518 0.08586518 key = 0.8351406 0.9673332 3.409951 -6.293656 key = 0.9992649 0.0002992153 -0.7463663 -0.7463663 } } } coverageMap { value = StockVolumetricClouds/Clouds/Textures/PluginData/Duna/DunaDuststormBigCoverage type = AlphaMap alphaMask = ALPHAMAP_R } cloudTypeMap { value = StockVolumetricClouds/Clouds/Textures/PluginData/Duna/DunaDuststormBigCloudType } ambientSound { soundName = StockVolumetricClouds/Clouds/Sounds/WindStormLooped } particleField { particleFieldConfig = dust-Mars } detailNoise { } flowMap { displacement = 6000 speed = 0.1 texture { value = StockVolumetricClouds/Clouds/Textures/PluginData/Duna/DunaDuststormBigFlowMap } } lightVolumeSettings { } phaseFunctions { } } layer2D { macroCloudMaterial { } shadowMaterial { _ShadowFactor = 1 } } timeSettings { duration = 111384 repeatInterval = 838656 fadeTime = 15120 offset = 98280 } }

[LOG 05:49:07.149] EVEManager: Issue loading CloudsManager! Error: UnityEngine.UnityException: Unable to apply node! ---> UnityEngine.UnityException: Unable to parse "settings" in "OBJECT"! ---> UnityEngine.UnityException: Unable to parse "_MainTex" in "settings"! at Utils.ConfigHelper.LoadObjectFromConfig (System.Object obj, ConfigNode node) [0x000f1] in <934eaa8d78c34a628f1650964624e3e9>:0 at Utils.ConfigHelper.Parse (System.Reflection.FieldInfo field, System.Object& obj, System.String[] value, ConfigNode node) [0x003bd] in <934eaa8d78c34a628f1650964624e3e9>:0 at Utils.ConfigHelper.LoadObjectFromConfig (System.Object obj, ConfigNode node) [0x00062] in <934eaa8d78c34a628f1650964624e3e9>:0 --- End of inner exception stack trace --- at Utils.ConfigHelper.LoadObjectFromConfig (System.Object obj, ConfigNode node) [0x000a8] in <934eaa8d78c34a628f1650964624e3e9>:0 at Atmosphere.CloudsObject.LoadConfigNode (ConfigNode node) [0x00000] in :0 at Atmosphere.CloudsManager.ApplyConfigNode (ConfigNode node) [0x00030] in :0 at EVEManager.EVEManagerBase.Apply () [0x00032] in <3b56b8781a1e4904aed5b5961cbcdcc8>:0 --- End of inner exception stack trace --- at EVEManager.EVEManagerBase.Apply () [0x0005f] in <3b56b8781a1e4904aed5b5961cbcdcc8>:0 at EVEManager.EVEManagerBase.LoadConfig () [0x00062] in <3b56b8781a1e4904aed5b5961cbcdcc8>:0 at EVEManager.GenericEVEManager`1[T].Setup () [0x00016] in <3b56b8781a1e4904aed5b5961cbcdcc8>:0 at EVEManager.GlobalEVEManager.Setup (System.Boolean late) [0x0005c] in <3b56b8781a1e4904aed5b5961cbcdcc8>:0 [LOG 05:49:07.149] [EVE AtmosphereManager]: Running Setup

[LOG 05:49:07.161] [EVE AtmosphereManager]: Cleaning Atmosphere! [LOG 05:49:07.161] [EVE CityLightsManager]: Running Setup

[LOG 05:49:07.171] [EVE TerrainManager]: Running Setup

[LOG 05:49:07.182] [EVE ShadowManager]: Running Setup

[LOG 05:49:07.194] [EVE ShadowManager]: Removing Shadow obj [LOG 05:49:07.314] [EVE ShadowManager]: Applying to Moon [LOG 05:49:07.573] [Scatterer][Debug] mapping EVE clouds [LOG 05:49:07.672] [Scatterer][Debug] Eve assembly type found [LOG 05:49:07.672] [Scatterer][Debug] Eve assembly version: Atmosphere, Version=1.11.7.1, Culture=neutral, PublicKeyToken=null [LOG 05:49:07.672] [Scatterer][Info] Successfully grabbed EVE Instance [LOG 05:49:07.672] [Scatterer][Debug] layer2d not found for layer on planet :Mars [LOG 05:49:07.672] [Scatterer][Debug] Core setup done [ERR 05:50:45.825] [Scatterer][Error] Couldn't save pluginData System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Scatterer\config\PluginData\pluginData.cfg". at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <9577ac7a62ef43179789031239ba8798>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.Open (System.String path, System.IO.FileMode mode) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 at KSPCommunityFixes.Performance.ConfigNodePerf.ConfigNode_Save_Prefix (ConfigNode instance, System.String fileFullName, System.String header, System.Boolean& result) [0x0002c] in <3eabfe001b54477fa1107e2a2ab315ee>:0 at (wrapper dynamic-method) ConfigNode.ConfigNode.Save_Patch1(ConfigNode,string,string) at ConfigNode.Save (System.String fileFullName) [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 at scatterer.PluginDataReadWrite.savePluginData () [0x00015] in <684aa87c0d2345f8a9e4739403f4afff>:0

[LOG 05:50:45.839] [Scatterer][Debug] No changes to main config, skipping saving. [LOG 05:50:46.127] ScaleModList: listSize 123 maxListSize 1012 [LOG 05:50:47.197] ScaleModList: listSize 123 maxListSize 1012 [LOG 05:50:56.057] [Kopernicus] Writing out updated Kopernicus_Config.cfg [LOG 05:50:57.742] ScaleModList: listSize 123 maxListSize 1012 [LOG 05:50:57.842] ScaleModList: listSize 123 maxListSize 1012 `