Cities: Skylines

Cities: Skylines

Ragnarok - More disaster controls
Asser  [developer] 3 Dec, 2016 @ 12:26pm
Bug report thread
If you encounter any bugs related to this mod then please post them here and I'll address them as soon as possible.

Help me help you
It would be great if you could do the following when reporting a bug:
  • Paste the content of the log "Ragnarok.log" to sites like pastebin.com and link it here. The file can be found at
    %LOCALAPPDATA%\Colosal Order\Cities_Skylines\Logs\Ragnarok.log
    (see below on how to find %LOCALAPPDATA%)
  • If the log file is empty or missing then please do the above step with the output_log.txt instead. It's located in your games folder. Usually
    C:\SteamLibrary\steamapps\common\Cities_Skylines\Cities_Data\output_log.txt
  • A list of your currently installed and active mods
  • Other data that you think could be relevant
This will help making debugging a lot easier for me

How to find %LOCALAPPDATA%
  • On Windows it's
    c:\Users\<USERNAME>\AppData\Local
    - OR press [WIN]+[R] and type %LOCALAPPDATA% and hit enter. It should open the folder for you
  • On Mac it's
    /Users/<USERNAME>/Library/Application Support
  • On Linux it's
    /home/<USERNAME>/.local/share
< >
Showing 1-15 of 51 comments
Knight 13 Dec, 2016 @ 12:21pm 
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





Ragnorok.log pastebin http://pastebin.com/r3nKxcBN

Output log peastebin http://pastebin.com/3vYz6kEJ

Mods I use: automatic bulldoze, one way street arrows, precision engineering, steamy, unlock all, 25 spaces, better bulldoze tool, environmen changer, traffic manager, network extensions 2, infinite oil/ore, extra landscaping tools.

Problems I've experienced: Can't disable the "disable diasters over x intensity" on earthquakes. I can toggle all settings as normal for other diasters including enabling/disabling earthquakes as a whole. I logged off, came back on. Got that error message.

The issue with my game is that when I click "options" in the content manager menu it goes to the pause menu but doesn't show your mod listed with other mods that have settings.
Asser  [developer] 13 Dec, 2016 @ 2:19pm 
Thanks for this and sorry about the issue.

This seems related to how the mod saves and loads it's configs. Could you perhaps also post the config file? It's in %LOCALAPPDATA%\Colossal Order\Cities_Skylines\Configs\Ragnarok\Ragnarok.xml ?

I'll look into this issue tomorrow :-)
Knight 13 Dec, 2016 @ 6:03pm 
I ended up deleting the logs and configs afer I unsubscribed, resubbed to the mod and now it works flawlessly.

Sorry man, but thank you for this mod!
Aknar 18 Dec, 2016 @ 8:50am 
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>
Last edited by Aknar; 18 Dec, 2016 @ 9:04am
Asser  [developer] 19 Dec, 2016 @ 2:20am 
Originally posted by Aknar:
I had the same problem:
[...]

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.

I may have found the issue. I'll test my hypothesis and make a fix when I get home from work later today. Thanks for helping me with your data :)

Edit: Added issue on github[github.com]
Last edited by Asser; 19 Dec, 2016 @ 2:26am
After your last update this mod prevent's the entire game from starting up. Since only you mod got updated the culprit was easily found.
Solved this issue by uninstalling your mod.
Asser  [developer] 4 Jan, 2017 @ 11:00am 
Originally posted by Imparja:
After your last update this mod prevent's the entire game from starting up. Since only you mod got updated the culprit was easily found.
Solved this issue by uninstalling your mod.
Odd.

Could you send me your output_log.txt using pastebin.com or some other servicelike that? Also which mods are you using besides this?
Avanya 4 Jan, 2017 @ 11:40am 
Seems I have the same problem. Get to the Paradox logo and then the game shuts down. Log says something about a stack overflow.

Output log here[www.dropbox.com]
Ragnarok log here[www.dropbox.com]
Asser  [developer] 4 Jan, 2017 @ 11:46am 
I think I found the cause of the error. Working on a hotfix now.
Avanya 4 Jan, 2017 @ 11:54am 
Awesome! :steamhappy:
Asser  [developer] 4 Jan, 2017 @ 12:06pm 
Hotfix published. Let me know if it worked or not please :-)
Asser  [developer] 4 Jan, 2017 @ 12:15pm 
It doesn't seem like you have the hotfix installed. Try unsubbing and resubbing to the mod to trigger a new download.
Avanya 4 Jan, 2017 @ 12:26pm 
Looks to be fixed - game starts up no problem. Just loading a save to be sure. :) Ty for the quick fix! :steamhappy:
Asser  [developer] 4 Jan, 2017 @ 12:31pm 
Good to hear :)
< >
Showing 1-15 of 51 comments
Per page: 1530 50