Cities: Skylines

Cities: Skylines

Ultimate Eyecandy v1.5.2
codemonkee 14. mar. 2020 kl. 17:28
On enable [1.5.2] "A Mod caused an error" due to missing/invalid configuration file
Cities Skylines: 1.12.3-f2 with Ultimate Eyecandy 1.5.2 - Possible issue/solution

A Mod caused an error [System.Exception] Details: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object at UltimateEyecandy.DebugUtils.LogException (System.Exception e) [0x00000] in <filename unknown>:0 at UltimateEyecandy.Mod.OnSettingsUI (UIHelperBase helper) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception

Within the installation directory (root) found CSL_UltimateEyecandy.xml to be an empty text file along with CSL_UltimateEyecandy.xml.bak created a few weeks earlier.

Renaming the .bak file allowed the mod to be enabled again.


Contents of config file
<?xml version="1.0" encoding="utf-8"?> <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <version>1.5.2</version> <keyboardShortcut>0</keyboardShortcut> <buttonPos> <x>-9999</x> <y>-9999</y> <z>-9999</z> </buttonPos> <loadLastPresetOnStart>false</loadLastPresetOnStart> <enableSimulationControl>true</enableSimulationControl> <outputDebug>false</outputDebug> <Presets /> </Configuration>