sexyfishhorse / citiesskylines-ragnarok Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Aknar:
I had the same problem:
A Mod caused an error [System.Exception]
Details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Cannot cast from source type to destination type.
at SexyFishHorse.CitiesSkylines.Infrastructure.Configuration.ConfigurationManager.GetSetting[Byte] (System.String settingKey) [0x00000] in <filename unknown>:0
at SexyFishHorse.CitiesSkylines.Ragnarok.OptionsPanelManager.AddMaxIntensitySlider (SexyFishHorse.CitiesSkylines.Infrastructure.UI.StronglyTypedUiHelper group, System.String impactSettingKey, System.String toggleImpactSettingKey) [0x00000] in <filename unknown>:0
at SexyFishHorse.CitiesSkylines.Ragnarok.OptionsPanelManager.ConfigureOptionsPanel (IStronglyTypedUiHelper uiHelper) [0x00000] in <filename unknown>:0
at SexyFishHorse.CitiesSkylines.Infrastructure.UserModBase.ConfigureOptionsPanel (IStronglyTypedUiHelper uiHelper) [0x00000] in <filename unknown>:0
at SexyFishHorse.CitiesSkylines.Infrastructure.UserModBase.OnSettingsUI (UIHelperBase uiHelperBase) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception
The error poped up after changing the options and i couldn't acess the options window after that. I noticed i couldn't unmark "disable disasters over" checkboxes. Maybe is it linked?
Anyway, here is the config file so you may take a look at it. Until this is resolved, i'll do the same as Knight I guess.
<?xml version="1.0" encoding="utf-8"?>
<ModConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Settings>
<Setting>
<Key>MaxIntensityEarthquakes</Key>
<Value xsi:type="xsd:int">55</Value>
</Setting>
<Setting>
<Key>DisableForesFires</Key>
<Value xsi:type="xsd:boolean">false</Value>
</Setting>
<Setting>
<Key>ToggleMaxIntensityForesFires</Key>
<Value xsi:type="xsd:boolean">false</Value>
</Setting>
<Setting>
<Key>ToggleMaxIntensityEarthquakes</Key>
<Value xsi:type="xsd:boolean">true</Value>
</Setting>
<Setting>
<Key>MaxIntensityForesFires</Key>
<Value xsi:type="xsd:unsignedByte">100</Value>
</Setting>
<Setting>
<Key>DisableAutofocusDisaster</Key>
<Value xsi:type="xsd:boolean">true</Value>
</Setting>
<Setting>
<Key>AutoEvacuateEarthquakes</Key>
<Value xsi:type="xsd:int">2</Value>
</Setting>
<Setting>
<Key>AutoEvacuateForesFires</Key>
<Value xsi:type="xsd:int">2</Value>
</Setting>
<Setting>
<Key>AutoEvacuateMeteors</Key>
<Value xsi:type="xsd:int">2</Value>
</Setting>
<Setting>
<Key>DisableMeteors</Key>
<Value xsi:type="xsd:boolean">true</Value>
</Setting>
<Setting>
<Key>ToggleMaxIntensitySinkholes</Key>
<Value xsi:type="xsd:boolean">true</Value>
</Setting>
<Setting>
<Key>MaxIntensitySinkholes</Key>
<Value xsi:type="xsd:int">55</Value>
</Setting>
<Setting>
<Key>ToggleMaxIntensityStructureCollapses</Key>
<Value xsi:type="xsd:boolean">true</Value>
</Setting>
<Setting>
<Key>MaxIntensityStructureCollapses</Key>
<Value xsi:type="xsd:unsignedByte">100</Value>
</Setting>
<Setting>
<Key>AutoEvacuateSinkholes</Key>
<Value xsi:type="xsd:int">2</Value>
</Setting>
<Setting>
<Key>AutoEvacuateStructureCollapses</Key>
<Value xsi:type="xsd:int">2</Value>
</Setting>
<Setting>
<Key>AutoEvacuateStructureFires</Key>
<Value xsi:type="xsd:int">2</Value>
</Setting>
<Setting>
<Key>MaxIntensityStructureFires</Key>
<Value xsi:type="xsd:unsignedByte">100</Value>
</Setting>
<Setting>
<Key>ToggleMaxIntensityStructureFires</Key>
<Value xsi:type="xsd:boolean">true</Value>
</Setting>
<Setting>
<Key>MaxIntensityThunderstorms</Key>
<Value xsi:type="xsd:unsignedByte">100</Value>
</Setting>
<Setting>
<Key>ToggleMaxIntensityThunderstorms</Key>
<Value xsi:type="xsd:boolean">true</Value>
</Setting>
<Setting>
<Key>AutoEvacuateThunderstorms</Key>
<Value xsi:type="xsd:int">2</Value>
</Setting>
<Setting>
<Key>ToggleMaxIntensityTornadoes</Key>
<Value xsi:type="xsd:boolean">true</Value>
</Setting>
<Setting>
<Key>MaxIntensityTornadoes</Key>
<Value xsi:type="xsd:int">55</Value>
</Setting>
<Setting>
<Key>AutoEvacuateTornadoes</Key>
<Value xsi:type="xsd:int">2</Value>
</Setting>
<Setting>
<Key>ToggleMaxIntensityTsunamis</Key>
<Value xsi:type="xsd:boolean">true</Value>
</Setting>
<Setting>
<Key>MaxIntensityTsunamis</Key>
<Value xsi:type="xsd:int">55</Value>
</Setting>
<Setting>
<Key>AutoEvacuateTsunamis</Key>
<Value xsi:type="xsd:int">2</Value>
</Setting>
</Settings>
</ModConfiguration>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.