peterhaneve / ONIMods

Peter Han's mods for Oxygen Not Included
Other
316 stars 64 forks source link

Mod Updater (released on 20200506) not working, nor local downloaded copied #46

Closed Guinaro closed 4 years ago

Guinaro commented 4 years ago

The Mod Updater crashes, and cannot be enabled on Version AP-408920-D even when I am using the Steam version or Local Downloaded version

Expected Behavior

That is works as expected

Current Behavior

Crashing with a version specifically released for Version AP-408920

Mod Versions

I tried both local and steam version version 1.5.0.0

Steps to Reproduce

  1. Subscribe to mod
  2. Restart
  3. Enable Mod
  4. Restart and Crash

Output Log

Initialize engine version: 2018.4.14f1 (05119b33d0b7) GfxDevice: creating device client; threaded=1 Direct3D: Version: Direct3D 11.0 [level 11.1] Renderer: NVIDIA GeForce GTX 1080 (ID=0x1b80) Vendor:
VRAM: 8079 MB Driver: 26.21.14.3200 Begin MonoManager ReloadAssembly

Input initialized. Initialized touch support. UnloadTime: 0.693300 ms [22:23:23.060] [1] [INFO] KProfiler: Start [22:23:23.186] [1] [INFO] Applying resolution 3440x1440 @120hz (fullscreen: True) [22:23:23.188] [1] [INFO] Low Res Textures? No [22:23:23.191] [1] [INFO] release Build: AP-408920 SYSTEM INFO: Platform=WindowsPlayer OSname=Windows 10 (10.0.0) 64bit OSversion=10.0.18362.0 CPUmodel=MS-7917 (MSI) CPUdeviceType=Desktop CPUarch=AMD64 ProcBits=64 CPUcount=4 CPUtype=Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz SystemMemoryMegs=32716 GPUgraphicsDeviceID=7040 GPUname=NVIDIA GeForce GTX 1080 GPUgraphicsDeviceType=Direct3D11 GPUgraphicsDeviceVendor=NVIDIA GPUgraphicsDeviceVendorID=4318 GPUgraphicsDeviceVersion=Direct3D 11.0 [level 11.1] GPUmemoryMegs=8079 GPUgraphicsMultiThreaded=False GPUgraphicsShaderLevel=50 GPUmaxTextureSize=16384 GPUnpotSupport=Full GPUsupportedRenderTargetCount=8 GPUsupports2DArrayTextures=True GPUsupports3DTextures=True GPUsupportsComputeShaders=True GPUsupportsImageEffects=True GPUsupportsInstancing=True GPUsupportsRenderToCubemap=True GPUsupportsShadows=True GPUsupportsSparseTextures=True System Language=Dutch [22:23:24.126] [1] [INFO] Initializing at 2020-05-06 22:23:24.126 [22:23:24.127] [1] [INFO] Save path: C:\Users\Jurgen\Documents\Klei\OxygenNotIncluded [22:23:24.569] [1] [INFO] Using builtin mod system. [22:23:24.570] [1] [INFO] Loading mod content DLL [Mod Updater:2018291283] (provides DLL) [22:23:24.572] [1] [INFO] Loading MOD dll: ModUpdateDate.dll [22:23:24.939] [1] [INFO] [PLibPatches] Candidate version 3.7.0.0 from ModUpdateDate [22:23:24.939] [1] [INFO] [PLib] Mod ModUpdateDate initialized, version 1.5.0.0 [22:23:24.942] [1] [INFO] [PLib/ModUpdateDate] Registered mod options class ModUpdateInfo for ModUpdateDate [22:23:25.052] [1] [INFO] Localization.Initialize! [22:23:25.058] [1] [INFO] Subscribe to mod ModUpdater-Local [22:23:25.077] [1] [INFO] Subscribe to mod PipedInputs [22:23:25.081] [1] [INFO] Test Data Location / docs / C:\Users\Jurgen\Documents\Klei\OxygenNotIncluded [22:23:25.081] [1] [INFO] Test Data Location / local / C:\Users\Jurgen\AppData\Local\Klei\OxygenNotIncluded [22:23:25.085] [1] [INFO] Test Data Locations / C:\Users\Jurgen\Documents\Klei\OxygenNotIncluded\test / write True / read True / removed True [22:23:25.085] [1] [INFO] Test Data Locations / C:\Users\Jurgen\AppData\Local\Klei\OxygenNotIncluded\test / write True / read True / removed True [22:23:25.091] [1] [INFO] [PLibPatches] Using version 3.7.0.0 [22:23:25.224] [1] [INFO] [PLibPatches] PLib patches applied [22:23:27.624] [1] [ERROR] GameAssets(Clone) Error in GameAssets(Clone).Assets.OnPrefabInit System.InvalidOperationException: Building table not loaded at PeterHan.PLib.Buildings.PBuilding.AddAllTechs () [0x00007] in <2ccf1828d8b84288b4a87e8e48d63117>:0 at PeterHan.PLib.PLibPatches.Initialize_Prefix () [0x00000] in <2ccf1828d8b84288b4a87e8e48d63117>:0 at (wrapper dynamic-method) Db.Initialize_Patch2(object) at Db.Get () [0x0001c] in :0 at BuildingDef.PostProcess () [0x000b3] in :0 at BuildingConfigManager.RegisterBuilding (IBuildingConfig config) [0x0012b] in :0 at GeneratedBuildings.LoadGeneratedBuildings (System.Collections.Generic.List`1[T] types) [0x00072] in :0 at LegacyModMain.LoadBuildings (System.Collections.Generic.List`1[T] types) [0x00050] in :0 at LegacyModMain.Load () [0x00042] in :0 at Assets.CreatePrefabs () [0x00000] in :0 at Assets.OnPrefabInit () [0x0031c] in :0 at KMonoBehaviour.InitializeComponent () [0x00068] in :0 Error in GameAssets(Clone).Assets.OnPrefabInit System.InvalidOperationException: Building table not loaded at PeterHan.PLib.Buildings.PBuilding.AddAllTechs () [0x00007] in <2ccf1828d8b84288b4a87e8e48d63117>:0 at PeterHan.PLib.PLibPatches.Initialize_Prefix () [0x00000] in <2ccf1828d8b84288b4a87e8e48d63117>:0 at (wrapper dynamic-method) Db.Initialize_Patch2(object) at Db.Get () [0x0001c] in :0 at BuildingDef.PostProcess () [0x000b3] in :0 at BuildingConfigManager.RegisterBuilding (IBuildingConfig config) [0x0012b] in :0 at GeneratedBuildings.LoadGeneratedBuildings (System.Collections.Generic.List`1[T] types) [0x00072] in :0 at LegacyModMain.LoadBuildings (System.Collections.Generic.List`1[T] types) [0x00050] in :0 at LegacyModMain.Load () [0x00042] in :0 at Assets.CreatePrefabs () [0x00000] in :0 at Assets.OnPrefabInit () [0x0031c] in :0 at KMonoBehaviour.InitializeComponent () [0x00068] in :0 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45) Unloading 5 Unused Serialized files (Serialized files now loaded: 0) Unloading 861 unused Assets to reduce memory usage. Loaded Objects now: 18848. Total: 47.307200 ms (FindLiveObjects: 0.807500 ms CreateObjectMapping: 1.002800 ms MarkObjects: 44.108400 ms DeleteObjects: 1.388000 ms) Unloading 3 Unused Serialized files (Serialized files now loaded: 0) UnloadTime: 3.285600 ms [22:23:28.223] [1] [INFO] Mod Updater's assembly declared the method PeterHan.PLib.Buildings.PBuilding:AddAllTechs in the stack trace, adding to referenced mods list Unloading 3 unused Assets to reduce memory usage. Loaded Objects now: 20921. Total: 55.998100 ms (FindLiveObjects: 0.864500 ms CreateObjectMapping: 0.761300 ms MarkObjects: 54.310300 ms DeleteObjects: 0.061600 ms) NullReferenceException: Object reference not set to an instance of an object at UIDupeRandomizer.GetNewBody (System.Int32 minion_idx) [0x00006] in :0 at UIDupeRandomizer.Start () [0x00034] in :0 at FrontEndBackground.Start () [0x00011] in :0 (Filename: Line: 0) [22:23:28.321] [1] [INFO] -- MAIN MENU -- NullReferenceException: Object reference not set to an instance of an object at FrontEndBackground.UpdateDrecko () [0x0000d] in :0 at FrontEndBackground.Update () [0x00006] in :0 (Filename: Line: 0) [22:23:28.503] [1] [INFO] Screen resolution updated, saving values to prefs: 3440x1440 @ 120, fullscreen: True NullReferenceException: Object reference not set to an instance of an object at FrontEndBackground.UpdateDrecko () [0x0000d] in :0 at FrontEndBackground.Update () [0x00006] in :0 (Filename: Line: 0) NullReferenceException: Object reference not set to an instance of an object at FrontEndBackground.UpdateDrecko () [0x0000d] in :0 at FrontEndBackground.Update () [0x00006] in :0 (Filename: Line: 0) [22:23:28.563] [1] [INFO] publishing mod Enable All Mods Button [22:23:28.572] [1] [INFO] publishing mod Mod Updater [22:23:28.595] [1] [INFO] Subscribe to mod Enable All Mods Button [22:23:28.598] [1] [INFO] Subscribe to mod Mod Updater NullReferenceException: Object reference not set to an instance of an object at FrontEndBackground.UpdateDrecko () [0x0000d] in :0 at FrontEndBackground.Update () [0x00006] in :0 (Filename: Line: 0) NullReferenceException: Object reference not set to an instance of an object at FrontEndBackground.UpdateDrecko () [0x0000d] in :0 at FrontEndBackground.Update () [0x00006] in :0 (Filename: Line: 0) NullReferenceException: Object reference not set to an instance of an object at FrontEndBackground.UpdateDrecko () [0x0000d] in :0 at FrontEndBackground.Update () [0x00006] in :0 (Filename: Line: 0) NullReferenceException: Object reference not set to an instance of an object at FrontEndBackground.UpdateDrecko () [0x0000d] in :0 at FrontEndBackground.Update () [0x00006] in :0 (Filename: Line: 0) NullReferenceException: Object reference not set to an instance of an object at FrontEndBackground.UpdateDrecko () [0x0000d] in :0 at FrontEndBackground.Update () [0x00006] in :0 (Filename: Line: 0) Continues for quite a while further with same type of errors.
Guinaro commented 4 years ago

Fixed by version 1.6.0.0. Anecdotal it is funny I need to use the local version as Steam refuses to provide the latest. I subscribe to version of steam again. Restart indicates it needs to force an update. After update, renable the steam version, disable local version, restart. And the forced update version indicates that it is an older version again, which needs to forced updated again. Too funny. Thanks for this great mod. It is sorely needed to get your head around why some mods are crashing, without knowing you aren't running the latest version. A real must have mod.