slyh / Cities2-TrafficLightsEnhancement

Advanced traffic lights for Cities: Skylines II
206 stars 20 forks source link

Error Pop-Up in Game #48

Closed joe445a closed 9 months ago

joe445a commented 10 months ago

Has anyone gotten a missing field exception? I started getting this after the CS2 update on 12/1. Still getting it with the v0.2.3-alpha version of the mod. I've disabled all but this one mod. No issue when loading vanilla game. Since nobody else has mentioned it, it's probably just me. But I thought I'd check and see. It pops up right away when the city is done loading.

Field not found: int Game.Prefabs.ObjectRequirementElement.m_Group Due to: Could not find field in class MissingFieldException: Field not found: int Game.Prefabs.ObjectRequirementElement.m_Group Due to: Could not find field in class at Game.Net.PatchedLaneSystem+UpdateLanesJob.CreateObjectLane (System.Int32 jobIndex, Unity.Mathematics.Random& random, Unity.Entities.Entity owner, Unity.Entities.Entity original, Game.Net.PatchedLaneSystem+LaneBuffer laneBuffer, Game.Objects.Transform transform, Game.Prefabs.SubLane prefabSubLane, System.Int32 laneIndex, System.Boolean sampleTerrain, System.Boolean cutForTraffic, System.Boolean isTemp, Game.Tools.Temp ownerTemp, Unity.Collections.NativeList1[T] clearAreas) [0x00123] in <80daac9e029943a8a8007acac0f66bcf>:0 at Game.Net.PatchedLaneSystem+UpdateLanesJob.UpdateLanes (Unity.Entities.ArchetypeChunk chunk, System.Int32 chunkIndex) [0x007cd] in <80daac9e029943a8a8007acac0f66bcf>:0 at Game.Net.PatchedLaneSystem+UpdateLanesJob.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) [0x0001c] in <80daac9e029943a8a8007acac0f66bcf>:0 at Game.Net.PatchedLaneSystem+UpdateLanesJob.Unity.Entities.IJobChunk.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) [0x00000] in <80daac9e029943a8a8007acac0f66bcf>:0 at Unity.Entities.JobChunkExtensions+JobChunkProducer1[T].ExecuteInternal (Unity.Entities.JobChunkExtensions+JobChunkWrapper1[T]& jobWrapper, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) [0x000b5] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at Unity.Entities.JobChunkExtensions+JobChunkProducer1[T].Execute (Unity.Entities.JobChunkExtensions+JobChunkWrapper1[T]& jobWrapper, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) [0x00000] in <9a7e91fb1c0a42bdb40b67eb2c0b13bb>:0 at (wrapper delegate-invoke) Unity.Entities.JobChunkExtensions+JobChunkProducer1+ExecuteJobFunction[Game.Net.PatchedLaneSystem+UpdateLanesJob].invoke_void_JobChunkExtensions/JobChunkWrapper1<T>&_intptr_intptr_JobRanges&_int(Unity.Entities.JobChunkExtensions/JobChunkWrapper1<Game.Net.PatchedLaneSystem/UpdateLanesJob>&,intptr,intptr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,int) Colossal.Logging.CustomLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

Koll3g commented 10 months ago

I have the same problem, no other mod installed and I get the same error

pikachukaki commented 10 months ago

update to latest version

WaelBrome commented 10 months ago

I have the same issue too. I deleted BepInEx and all the mod files, verified game files integrity, reinstalled BepInEx and the latest version of the mod. Still getting the issue. Any recommendation or help would be appreciated!

slyh commented 10 months ago

Could everyone experiencing this issue please upload your log file here?

If you are using Thunderstore, you can find it at C:\Users\<Your Windows Username>\AppData\Roaming\Thunderstore Mod Manager\DataFolder\CitiesSkylines2\profiles\Default\BepInEx\LogOutput.log.

If you installed the mod manually, you can find it at C:\Program Files (x86)\Steam\steamapps\common\Cities Skylines II\BepInEx\LogOutput.log.

Koll3g commented 10 months ago

update to latest version

Not really helpful - which version are you talking about? I'm using following versions Mod: v0.2.3-alpha BepInEx: v5.4.22 Game: 1.0.15f1

Koll3g commented 10 months ago

Could everyone experiencing this issue please upload your log file here?

If you are using Thunderstore, you can find it at C:\Users\<Your Windows Username>\AppData\Roaming\Thunderstore Mod Manager\DataFolder\CitiesSkylines2\profiles\Default\BepInEx\LogOutput.log.

If you installed the mod manually, you can find it at C:\Program Files (x86)\Steam\steamapps\common\Cities Skylines II\BepInEx\LogOutput.log.

Thank you Sam - here is the log file: LogOutput.log

I've installed the mod manually

felipexlr50 commented 10 months ago

LogOutput.log

joe445a commented 10 months ago

LogOutput.log

felipexlr50 commented 10 months ago

I think I know what happened, at least was my case here, when I downloaded the mod, and then apply the files to the plugins files, it was actually the old version of the mod file, Chrome is deleting the mod as suspicious file when downloading.

Try to download again and check if chrome is blocking the download

image

slyh commented 10 months ago

I have reviewed all the submitted logs, and they all show that an older version of the mod is being used. Please reinstall the mod using the latest release.

After installing the latest v0.2.3-alpha release, you should see the following in the log.

[Info   :   BepInEx] Loading [C2VM.CommonLibraries.LaneSystem 0.0.3]
[Info   :C2VM.CommonLibraries.LaneSystem] Plugin C2VM.CommonLibraries.LaneSystem 0.0.3 is loaded!
[Info   :   BepInEx] Loading [C2VM.TrafficLightsEnhancement 0.2.3]
[Info   :C2VM.TrafficLightsEnhancement] Plugin C2VM.TrafficLightsEnhancement 0.2.3 is loaded!
joe445a commented 10 months ago

Chrome did indeed block the download of the latest version (very sneakily at that). My city is back up and running. Great mod btw

slyh commented 10 months ago

Happy to hear the cause has been found.

I'll leave it open for a few days to ease confusion.

Oliver123G commented 10 months ago

I didn't re-input the ZIP into thunderstore... I assumed overwriting the ZIP in storage would do it. LOL

tofra commented 10 months ago

After upgrading to version 0.2.3-alpha it works fine