AlphaGaming7780 / ExtendedRadio-BepInEx

This mod aims to add features and improve existing ones for the game's radio player.
MIT License
2 stars 0 forks source link

Upgrade to .5 causes CTD, downgrade back to .4 resolves CTD #3

Closed SPIKEYPUP closed 8 months ago

SPIKEYPUP commented 8 months ago

I just updated to the latest version, 0.5 and my game started to crash to desktop. I studied the log and discovered the error to be in Extended Radio, so I downgraded back to 0.4 and it started up fine. Here is the log data from the end of the log (too big to paste):

[Error : Unity Log] [SceneFlow] [FATAL] Method not found: void ExtendedRadio.ExtendedRadio.RegisterCustomRadioDirectory(string) System.MissingMethodException: Method not found: void ExtendedRadio.ExtendedRadio.RegisterCustomRadioDirectory(string) at (wrapper dynamic-method) Game.SceneFlow.GameManager.DMD(Game.SceneFlow.GameManager) at Game.SceneFlow.GameManager.Initialize () [0x004b5] in <7ab4274e1cc2465bbc2c96ec6c1205d4>:0 [Info : Unity Log] ExtendedTooltipUISystem destroyed. [Info : Unity Log] ExtendedHotkeysUISystem destroyed. [Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: Game.UI.UISystemBase.OnDestroy () (at <7ab4274e1cc2465bbc2c96ec6c1205d4>:0) Unity.Entities.ComponentSystemBase.OnDestroy_Internal () (at <224448285513494ebc067f20bf3354f6>:0) Unity.Entities.World.DestroyAllSystemsAndLogException () (at <224448285513494ebc067f20bf3354f6>:0) UnityEngine.DebugLogHandler:LogException(Exception, Object) Colossal.Logging.CustomLogHandler:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) Unity.Debug:LogException(Exception) Unity.Entities.World:DestroyAllSystemsAndLogException() Unity.Entities.World:Dispose() Unity.Entities.World:DisposeAllWorlds() Game.SceneFlow.GameManager:DestroyWorld() Game.SceneFlow.d65:MoveNext() System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start(d65&) Game.SceneFlow.GameManager:TerminateGame() Game.SceneFlow.GameManager:WantsToQuit() UnityEngine.Application:Internal_ApplicationWantsToQuit()

[Warning: Unity Log] Internal: JobTempAlloc has allocations that are more than the maximum lifespan of 4 frames old - this is not allowed and likely a leak [Warning: Unity Log] To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations. [Info : Unity Log] Game terminated successfully

AlphaGaming7780 commented 8 months ago

You have a Radio Mod that is using the old API, which is no longer supported. You can remove this radio mod to fix the issue.

Edit: To my knowledge, the only radio mod that hasn't been updated to the 0.4 is MasterPlannedRadio made by profesorabbott. If you don't use this mod, please send me a list of all your radio mods.

If you still want to have the radio in game, you can go inside the radio mod folder, in the mod folder it should have a folder name something, copy the content of this folder. Now you can go in your plugins folder find or create the ExtendedRadio_mods folder, go inside, and create a new folder in the ExtendedRadio_mods folder called CustomRadios, in this folder past the content you copy. You can now remove the mod that doesn't support the new API, since the radio hasn't been updated to the new version, some bugs can happen.

SPIKEYPUP commented 8 months ago

Thanks so much for the quick response! I have a lot of radio stations, didn't realize it could be connected to or isolated to a specific one, that's great, I do have Master Planned Radio, that must have been what it was. I'll disable it until they get it taken care of on their end. Thanks again!

SPIKEYPUP commented 8 months ago

Just removed the offending stations, updated to latest Extended Radio .5 and all is loading as expected. Thank you again for such a fast and excellently detailed response!