CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
563 stars 85 forks source link

Vehicles glitching through back and forth on the roads #1667

Closed elson96 closed 1 year ago

elson96 commented 1 year ago

Describe the problem

When I open my save game the following error appears:

"Object reference not set to an instance of an object [System.NullReferenceException]

Details: No details"

It spams a million times before it eventually disappears after pressing esc and enter continuously (not even sure if it disappears by itself or if i had done something right spamming esc and enter buttons)

Steps to reproduce

  1. Open save game.
  2. Vehicles start sliding through back and forth on the roads Above message appears a million times
  3. Above message appears a million times
  4. Vehicles eventually stops and the message disappears

I dont have the courage to progress on my save game because I'm afraid this error will corrupt my files in the future

Log files

[] (https://ufile.io/q5pickdb)

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) Simulation error: Object reference not set to an instance of an object at (wrapper delegate-invoke) TrafficManager.Patch._CitizenAI._ResidentAI.Connection.GetElectricCarProbabilityResidentDelegate.invoke_int__this___ResidentAI_uint16_CitizenInstance&_Citizen/AgePhase (ResidentAI,uint16,CitizenInstance&,Citizen/AgePhase) <0x00098> at TrafficManager.Manager.Impl.ExtVehicleManager.ShouldUseElectricCar (Citizen&,CitizenInstance&) <0x0011a> at TrafficManager.Manager.Impl.AdvancedParkingManager.OnCitizenPathFindSuccess_Default (uint16,CitizenInstance,Citizen&,TrafficManager.API.Traffic.Data.ExtCitizenInstance&,TrafficManager.API.Traffic.Data.ExtCitizen&,bool,bool,uint16,TrafficManager.API.Manager.IExtBuildingManager,bool) <0x0025b> at TrafficManager.Manager.Impl.AdvancedParkingManager.OnCitizenPathFindSuccess (uint16,CitizenInstance&,TrafficManager.API.Traffic.Data.ExtCitizenInstance&,TrafficManager.API.Traffic.Data.ExtCitizen&,Citizen&) <0x00503> at TrafficManager.Manager.Impl.AdvancedParkingManager.UpdateCitizenPathState (uint16,CitizenInstance&,TrafficManager.API.Traffic.Data.ExtCitizenInstance&,TrafficManager.API.Traffic.Data.ExtCitizen&,Citizen&,TrafficManager.API.Traffic.Enums.ExtPathState) <0x00190> at TrafficManager.Patch._CitizenAI._HumanAI.SimulationStepPatch.Prefix (HumanAI,uint16,CitizenInstance&,UnityEngine.Vector3) <0x00223> at (wrapper dynamic-method) HumanAI.HumanAI.SimulationStep_Patch1 (HumanAI,uint16,CitizenInstance&,UnityEngine.Vector3) <0x00050> at (wrapper dynamic-method) CitizenManager.CitizenManager.SimulationStepImpl_Patch1 (CitizenManager,int) <0x0049b> at SimulationManagerBase`2.SimulationStep (int) <0x0004c> at CitizenManager.ISimulationManager.SimulationStep (int) <0x00024> at SimulationManager.SimulationStep () <0x00693> at SimulationManager.SimulationThread () <0x0018a> [Core]

Savegame?

https://steamcommunity.com/sharedfiles/filedetails/?id=2872332119 ### Screenshots?

Notes or questions? Where can I join Discord?

Thank you for your hard work.

breed4me22 commented 1 year ago

I have this same issue. I am attaching my output and tmpe logs. For me, I can play the game for several hours and then all of a sudden this error will appear. If I can get access to the TMPE dashboard, I can resolve the issue by clearing all traffic. TMPE.log

breed4me22 commented 1 year ago

Doesnt look like that worked right: TMPE.log output_log.txt

krzychu124 commented 1 year ago

There are no errors in your logs. Most likely you either have broken vehicle asset or some dependency mod is missing e.g: Vehicle Effects so once "broken" vehicle spawns it will start spamming with errors