• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Big_Mayor_Fat

Recruit
3 Badges
Apr 19, 2024
3
4
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines - Mass Transit

Information​

When reporting a crash, stability or performance problems, please use the Report a Crash button on the earlier screen​

[CLICK] I understand

Required​

Summary​

NullReferenceException: Object reference not set to an instance of an object

Steps to reproduce​

Its when I launch the game, after the loading screen, the error appear

Expected Result​

Launching the game without problem

Actual Result​

[object Object]
NullReferenceException: Object reference not set to an instance of an object
at Colossal.IO.AssetDatabase.PrefabAsset+PrefabReferenceResolver.TryResolveReference (System.String id, System.Object& value) [0x00052] in <7fd057c87c1c4e79877a7ca742818d3f>:0
at Colossal.OdinSerializer.DeserializationContext.GetExternalObject (System.String id) [0x00033] in <d9cab27576e9499db8aa70c41ecc0a40>:0
at Colossal.OdinSerializer.AnySerializer.ReadValueWeak (Colossal.OdinSerializer.IDataReader reader) [0x006df] in <d9cab27576e9499db8aa70c41ecc0a40>:0
at Colossal.OdinSerializer.ReflectionFormatter`1[T].DeserializeImplementation (T& value, Colossal.OdinSerializer.IDataReader reader) [0x0013d] in <d9cab27576e9499db8aa70c41ecc0a40>:0
Colossal.Logging.CustomLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Colossal.OdinSerializer.CustomLogger:LogException(Exception)
Colossal.OdinSerializer.DebugContext:LogException(Exception)
Colossal.OdinSerializer.ReflectionFormatter`1:DeserializeImplementation(NetSubObjectInfo&, IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Deserialize(IDataReader)
Colossal.OdinSerializer.ComplexTypeSerializer`1:ReadValue(IDataReader)
Colossal.OdinSerializer.ArrayFormatter`1:DeserializeImplementation(NetSubObjectInfo[]&, IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Deserialize(IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Colossal.OdinSerializer.IFormatter.Deserialize(IDataReader)
Colossal.OdinSerializer.AnySerializer:ReadValueWeak(IDataReader)
Colossal.OdinSerializer.ReflectionFormatter`1:DeserializeImplementation(NetSubObjects&, IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Deserialize(IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Colossal.OdinSerializer.IFormatter.Deserialize(IDataReader)
Colossal.OdinSerializer.ComplexTypeSerializer`1:ReadValue(IDataReader)
Colossal.OdinSerializer.ListFormatter`1:DeserializeImplementation(List`1&, IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Deserialize(IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Colossal.OdinSerializer.IFormatter.Deserialize(IDataReader)
Colossal.OdinSerializer.AnySerializer:ReadValueWeak(IDataReader)
Colossal.OdinSerializer.ReflectionFormatter`1:DeserializeImplementation(RoadPrefab&, IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Deserialize(IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Colossal.OdinSerializer.IFormatter.Deserialize(IDataReader)
Colossal.OdinSerializer.AnySerializer:ReadValueWeak(IDataReader)
Colossal.OdinSerializer.SerializationUtility:DeserializeValueWeak(IDataReader)
Colossal.OdinSerializer.SerializationUtility:DeserializeValueWeak(Stream, DataFormat, DeserializationContext)
Colossal.IO.AssetDatabase.PrefabAsset:Load()
Game.SceneFlow.GameManager:LoadPrefabs()
Game.SceneFlow.<Initialize>d__60:MoveNext()
System.Runtime.CompilerServices.MoveNextRunner:InvokeMoveNext(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Runtime.CompilerServices.MoveNextRunner:Run()
System.Threading.Tasks.<>c:<.cctor>b__7_0(Object)
UnityEngine.WorkRequest:Invoke()
UnityEngine.UnitySynchronizationContext:Exec()
UnityEngine.UnitySynchronizationContext:ExecuteTasks()

Game Version​

1.1.1f1

Affected Feature​

  • Crash
  • Gameplay
  • Graphics
  • Map
  • Save
  • User Experience

Platform​

  • Steam

Additional Information​

Additional Information​

I unsubscribed from all mods on the paradox mods and reinstalled the game without that fixing the problem. I've checked the integrity of the game files on steam, and everything is correct on this side. When I start a game, the roads are absent, but that's it.

Save Game​



Other Attachments​



 
  • 2Like
  • 1
Reactions:
I have the same problem, i've reinstalled the game twice, right now I don't have any mod installed, but anything fix this, and the problem was after installing the mod " "Mio Road Assets Pack", and the map "The Summer Isles", that works with that mod.

Hope Paradox could fix this
 
Entre no diretório onde o jogo está instalado, ex: C:\Program Files (x86)\Steam\steamapps\common\Cities Skylines II

Deixe apenas os arquivos em anexo, os demais devem ser deletados.
 

Attachments

  • Captura de tela 2024-04-20 223555.png
    Captura de tela 2024-04-20 223555.png
    8,5 KB · Views: 0
  • Captura de tela 2024-04-20 223729.png
    Captura de tela 2024-04-20 223729.png
    78,3 KB · Views: 0
I have the same problem, i've reinstalled the game twice, right now I don't have any mod installed, but anything fix this, and the problem was after installing the mod " "Mio Road Assets Pack", and the map "The Summer Isles", that works with that mod.

Hope Paradox could fix this
Yeah. Mine was after installing that mod too.
 
It looks like I found how to fix this! For steam, under the Cities Skylines II folder, there is a folder called 'custom assets'. Deleting the contents of this 'custom assets' folder made the game run normally for me. I also unsubscribed from all mods related to assets, including the new asset loader mod.
 
  • 2
  • 1Like
Reactions:
It looks like I found how to fix this! For steam, under the Cities Skylines II folder, there is a folder called 'custom assets'. Deleting the contents of this 'custom assets' folder made the game run normally for me. I also unsubscribed from all mods related to assets, including the new asset loader mod.
This works just a little
 
Last edited:
Fix:

On your search bar on your computer type: %appdata% and press enter

There were three folders on appdata I was able to find it through LocalLow, - Colossal Order -- Cities Skylines 2 --

Delete CustomAssets folder and, if you have any other mods that are stuck delete the mods in the mod folders.
 
Non, of this option can fix this issue for me. Cant find any asset folder, also deleting files didn't work and deinstaling is no solution.
@Paradox please fix it soon. I can not play the game since a week and this would not be the case if mods would be on steam workshop :-(
1713984364985.png
 
Non, of this option can fix this issue for me. Cant find any asset folder, also deleting files didn't work and deinstaling is no solution.
@Paradox please fix it soon. I can not play the game since a week and this would not be the case if mods would be on steam workshop :-(
View attachment 1123503

The same thing is happening to me. I have to close around 20 error messages after loading the game before I can reach the buttons to load my saved games and when I load the game All my roads have disappeared, and the game eventually crashes. Imposible to play anything.
 
1714683695501.png


[object Object]
NullReferenceException: Object reference not set to an instance of an object
at Colossal.IO.AssetDatabase.PrefabAsset+PrefabReferenceResolver.TryResolveReference (System.String id, System.Object& value) [0x00052] in <c71d4bbec51f4de78a3a8aeff6667a0c>:0
at Colossal.OdinSerializer.DeserializationContext.GetExternalObject (System.String id) [0x00033] in <741f38e97dbe4c1dbef06060704d4e2e>:0
at Colossal.OdinSerializer.AnySerializer.ReadValueWeak (Colossal.OdinSerializer.IDataReader reader) [0x006df] in <741f38e97dbe4c1dbef06060704d4e2e>:0
at Colossal.OdinSerializer.ReflectionFormatter`1[T].DeserializeImplementation (T& value, Colossal.OdinSerializer.IDataReader reader) [0x0013d] in <741f38e97dbe4c1dbef06060704d4e2e>:0
Colossal.Logging.CustomLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Colossal.OdinSerializer.CustomLogger:LogException(Exception)
Colossal.OdinSerializer.DebugContext:LogException(Exception)
Colossal.OdinSerializer.ReflectionFormatter`1:DeserializeImplementation(NetSubObjectInfo&, IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Deserialize(IDataReader)
Colossal.OdinSerializer.ComplexTypeSerializer`1:ReadValue(IDataReader)
Colossal.OdinSerializer.ArrayFormatter`1:DeserializeImplementation(NetSubObjectInfo[]&, IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Deserialize(IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Colossal.OdinSerializer.IFormatter.Deserialize(IDataReader)
Colossal.OdinSerializer.AnySerializer:ReadValueWeak(IDataReader)
Colossal.OdinSerializer.ReflectionFormatter`1:DeserializeImplementation(NetSubObjects&, IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Deserialize(IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Colossal.OdinSerializer.IFormatter.Deserialize(IDataReader)
Colossal.OdinSerializer.ComplexTypeSerializer`1:ReadValue(IDataReader)
Colossal.OdinSerializer.ListFormatter`1:DeserializeImplementation(List`1&, IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Deserialize(IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Colossal.OdinSerializer.IFormatter.Deserialize(IDataReader)
Colossal.OdinSerializer.AnySerializer:ReadValueWeak(IDataReader)
Colossal.OdinSerializer.ReflectionFormatter`1:DeserializeImplementation(RoadPrefab&, IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Deserialize(IDataReader)
Colossal.OdinSerializer.BaseFormatter`1:Colossal.OdinSerializer.IFormatter.Deserialize(IDataReader)
Colossal.OdinSerializer.AnySerializer:ReadValueWeak(IDataReader)
Colossal.OdinSerializer.SerializationUtility:DeserializeValueWeak(IDataReader)
Colossal.OdinSerializer.SerializationUtility:DeserializeValueWeak(Stream, DataFormat, DeserializationContext)
Colossal.IO.AssetDatabase.PrefabAsset:Load()
Game.SceneFlow.GameManager:LoadPrefabs()
Game.SceneFlow.<Initialize>d__60:MoveNext()
System.Runtime.CompilerServices.MoveNextRunner:InvokeMoveNext(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Runtime.CompilerServices.MoveNextRunner:Run()
System.Threading.Tasks.<>c:<.cctor>b__7_0(Object)
UnityEngine.WorkRequest:Invoke()
UnityEngine.UnitySynchronizationContext:Exec()
UnityEngine.UnitySynchronizationContext:ExecuteTasks()
 
I finally found a solution for me. I dont know what i did exactly but these steps helped me.
1. Do what @Luiz Gabriel did earlier in this thread (deleting everything unnecessary from your game files)
2. Do what @Lukas171105 did also earlier (deleting every mod data from your %appdata% game files. I didnt delete the folder custom assets but everything that was in it.
I also cleared the 'Mods' and 'ModsData' folder)
3. In a stream CityPlannerPlays mentioned that he had problems with the same mods, but he deleted the first two folders in the %appdata% game files ('.cache' and '.pdxsdk') so i did that aswell

I really dont have a clue what each of these steps does excatly and i think the order in which you do them doesnt matter. My game only works after i did all three.

Thanks for all the tips and i hope i could help someone aswell. Its a real shame how little paradox cares about their players.
 
  • 1Like
Reactions:
I had the same problem. I unsubscribed from all mods. I went to This computer and searched for "Custom Assets" and then deleted everything. The problem disappeared. There is only one problem. The game saves are also gone, so before doing so, save all your cities in the Mincrosoft cloud.
 
I FOUND THe FIX. found it on a github thread about this problem!! Go in you file and type in the adress bar at thhe top: C:\Users\%username%\AppData\LocalLow\Colossal Order\Cities Skylines II. Then go to .cache\Mods and then mods_subscribed. DELETE THE mods_subscribed fodler. You would have to then redownload the mods you had, but you would now be able to launch the game with 0 errors. I am on steam, think this also fixes the probelm on xbox launcher. Tell me if this works for you guys :)
 
  • 2Like
  • 1
Reactions:
I FOUND THe FIX. found it on a github thread about this problem!! Go in you file and type in the adress bar at thhe top: C:\Users\%username%\AppData\LocalLow\Colossal Order\Cities Skylines II. Then go to .cache\Mods and then mods_subscribed. DELETE THE mods_subscribed fodler. You would have to then redownload the mods you had, but you would now be able to launch the game with 0 errors. I am on steam, think this also fixes the probelm on xbox launcher. Tell me if this works for you guys :)
Worked for me. Thanks!