AyrA / DVRailDriverMod

Derail Valley Rail Driver Integration
GNU Affero General Public License v3.0
4 stars 0 forks source link

Raildriver mod fails to load with .NET exception #1

Open paul-pavlinovich opened 11 months ago

paul-pavlinovich commented 11 months ago

This fails to load under Windows 11 with .NET 4,6 and 7 installed - this is the log that gets spat out by UMM Mono path[0] = 'C:/Steam/steamapps/common/Derail Valley/DerailValley_Data/Managed' Mono config path = 'C:/Steam/steamapps/common/Derail Valley/MonoBleedingEdge/etc' Initialize engine version: 2019.4.40f1 (ffc62b691db5) [Subsystems] Discovering subsystems at path C:/Steam/steamapps/common/Derail Valley/DerailValley_Data/UnitySubsystems GfxDevice: creating device client; threaded=1 Direct3D: Version: Direct3D 11.0 [level 11.1] Renderer: NVIDIA GeForce RTX 4080 (ID=0x2704) Vendor:
VRAM: 16064 MB Driver: 31.0.15.3667 Begin MonoManager ReloadAssembly

[Manager] Injection... [Manager] Initialize. [Manager] Version: 0.27.5.0. [Manager] OS: Microsoft Windows NT 10.0.22621.0 AMD64. [Manager] Net Framework: 4.0.30319.42000. [Manager] Unity Engine: 2019.4.401. [Manager] Game: Derail Valley. [Manager] IsSupportOnSessionStart: True. [Manager] IsSupportOnSessionStop: False. [Manager] Mods path: C:\Steam\steamapps\common\Derail Valley\Mods. Fallback handler could not load library C:/Steam/steamapps/common/Derail Valley/DerailValley_Data/Mono/data-000001F4645490C0.dll Fallback handler could not load library C:/Steam/steamapps/common/Derail Valley/DerailValley_Data/Mono/data-000001F464375840.dll [Manager] Injection successful.

UnloadTime: 0.331800 ms [Globals] fetching default config from resources (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Manager] Starting. [Manager] Parsing mods. [Manager] Reading file 'C:\Steam\steamapps\common\Derail Valley\Mods\DVRailDriver\Info.json'. [Manager] Sorting mods. [Manager] Loading mods. [AyrA.DVRailDriverMod] Version '2.0.0'. Loading. [DVRailDriverMod] Called Load on DVRailDriverMod.Main (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[AyrA.DVRailDriverMod] [Exception] OnToggle: TypeLoadException - Could not load type of field 'DVRailDriverMod.RailDriverAdapter:currentLoco' (0) due to: Could not resolve type with token 01000019 (from typeref, class/assembly LocoControllerBase, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null) assembly:Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null type:LocoControllerBase member:(null) signature: System.TypeLoadException: Could not load type of field 'DVRailDriverMod.RailDriverAdapter:currentLoco' (0) due to: Could not resolve type with token 01000019 (from typeref, class/assembly LocoControllerBase, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null) assembly:Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null type:LocoControllerBase member:(null) signature: at UnityModManagerNet.UnityModManager+ModEntry.set_Active (System.Boolean value) [0x0006a] in <772bb2f5fdf44bc79cbd8a5ffbeb1b3b>:0 [AyrA.DVRailDriverMod] Loading time 0.01 s. [Manager] FINISH. SUCCESSFUL LOADED 1/1 MODS.

Failed to load types in assembly 'DVRailDriverMod, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown. at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool) at System.Reflection.Assembly.GetTypes () [0x00000] in :0 at Ludiq.TypeUtility+d__35.MoveNext () [0x00017] in :0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Initializing console (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Creating UnloadWatcher singleton instance '[UnloadWatcher]' automatically (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Build version: Build #95 Build destination: steam Build timestamp: 2023-07-21 15:50:07.407289 UTC Build number: build1047 Build type: release Build GUID: 9550eb492884d434da3e1b5325cf5a3c App version: 0.95 App identifier: Build tags: OS: Windows 11 (10.0.22621) 64bit CPU: 13th Gen Intel(R) Core(TM) i9-13900K CPU freq: 2995 RAM: 32537 GPU: NVIDIA GeForce RTX 4080 GPU vendor: NVIDIA GPU memory: 16064 Log timestamp: 2023-08-06 11:10:35 UTC (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Command line args: C:\Steam\steamapps\common\Derail Valley\DerailValley.exe -nonvr (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[bootstrap] Non-VR mode requested (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[bootstrap] Skipping entitlement check, switching to next scene (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[SceneSwitcher] bootstrapping to next scene with index 1 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Unloading 6 Unused Serialized files (Serialized files now loaded: 0) Uploading Crash Report ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown. at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool) at System.Reflection.Assembly.GetTypes () [0x00000] in :0 at CommandTerminal.CommandShell.RegisterCommands () [0x00108] in <1d7210a2c88b41788149adcd3b8afb4e>:0 at CommandTerminal.Terminal.Start () [0x0008b] in <1d7210a2c88b41788149adcd3b8afb4e>:0

(Filename: Line: 0)

DV.DopplerEffects.ADopplerListener doesn't implement AllowAutoCreate method, assuming 'false' (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

UnloadTime: 0.698700 ms

Unloading 67 unused Assets to reduce memory usage. Loaded Objects now: 123797. Total: 42.844100 ms (FindLiveObjects: 2.561900 ms CreateObjectMapping: 2.757100 ms MarkObjects: 37.362700 ms DeleteObjects: 0.162100 ms)

C:\Steam\steamapps\common\Derail Valley\localization (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[LocalizationLoader] Ingesting localization from C:\Steam\steamapps\common\Derail Valley\localization (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[LocalizationLoader] didn't find dir 'C:\Steam\steamapps\common\Derail Valley\localization', will not ingest new localizations (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[SceneSwitcher] bootstrapping to next scene with index 2 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Unloading 4 Unused Serialized files (Serialized files now loaded: 0) UnloadTime: 1.925500 ms [SceneSwitcher] no queued scene, switching to next scene with index 3 (nextSceneToLoad was -1) (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 123796. Total: 42.811200 ms (FindLiveObjects: 2.440800 ms CreateObjectMapping: 2.953800 ms MarkObjects: 37.325600 ms DeleteObjects: 0.090500 ms)

Unloading 5 Unused Serialized files (Serialized files now loaded: 0) UnloadTime: 0.663300 ms DV.UserManagement.UserManager doesn't implement AllowAutoCreate method, assuming 'false' (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[UserManagerInstantiator] instantiating a new UserManager (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Checking for save imports... (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

No new save imports for tsd (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Save importing phase done. (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Wrote key bindings configuration: C:\Users\paulp\AppData\LocalLow\Altfuture\Derail Valley\Preferences\000_Player.ini (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Wrote game preferences configuration: C:\Users\paulp\AppData\LocalLow\Altfuture\Derail Valley\Preferences\000_Player.ini (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Wrote game preferences configuration: C:\Users\paulp\AppData\LocalLow\Altfuture\Derail Valley\Preferences\000_Player.ini (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Wrote game preferences configuration: C:\Users\paulp\AppData\LocalLow\Altfuture\Derail Valley\Preferences\000_Player.ini (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Using ScenarioCRUD path 'C:/Users/paulp/AppData/LocalLow/Altfuture/Derail Valley/Users/000_Player/GameData/assets' (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Check for unsaved difficulties... (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Unsaved difficulties phase done. (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

ManualDataLoader: Manual data loaded for language: 'english'. (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

SaveLoadController session is null (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

RefreshData fallback to empty lists (gameMode: '', userProfileProvider null?: True, scenariosProvider null?: True) (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

RefreshData fallback to empty lists (gameMode: '', userProfileProvider null?: True, scenariosProvider null?: True) (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 151506. Total: 63.060400 ms (FindLiveObjects: 3.251400 ms CreateObjectMapping: 2.236100 ms MarkObjects: 57.417700 ms DeleteObjects: 0.154700 ms)

VR is not enabled, destroying MainMenuVREnabler (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Supported resolutions: 800 x 600 1024 x 768 1152 x 864 1176 x 664 1280 x 720 1280 x 768 1280 x 800 1280 x 960 1280 x 1024 1360 x 768 1366 x 768 1440 x 900 1440 x 1080 1600 x 900 1600 x 1024 1600 x 1200 1680 x 1050 1920 x 1080 1920 x 1200 1920 x 1440 2560 x 1080 2560 x 1440 3840 x 1080 5120 x 1440 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

SaveLoadController session is null (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Creating UnlockablesManager singleton instance '[UnlockablesManager]' automatically (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Recalculating DVObjectModel caches (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

User was changed, game mode 'FreeRoam' has no sessions (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Creating DV.Telemetry.TelemetryCentral singleton instance '[TelemetryCentral]' automatically (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

UIMenuController proceeding with switching the menu to index 0 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Unloading 2 Unused Serialized files (Serialized files now loaded: 0) [Manager] Spawning. WorldStreamingInit doesn't implement AllowAutoCreate method, assuming 'false' (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

[Manager] Checking updates.

Unloading 276 unused Assets to reduce memory usage. Loaded Objects now: 153188. Total: 66.905900 ms (FindLiveObjects: 3.531200 ms CreateObjectMapping: 2.377400 ms MarkObjects: 60.105300 ms DeleteObjects: 0.891600 ms)

AyrA commented 11 months ago

It looks like you're trying to load this into DV Simulator. The Mod has not yet been updated to support that

paul-pavlinovich commented 11 months ago

Thanks, do you have plans to make that update? The game would be so much better with Raildriver.

On Sun, 6 Aug 2023 at 21:26, AyrA @.***> wrote:

It looks like you're trying to load this into DV Simulator. The Mod has not yet been updated to support that

— Reply to this email directly, view it on GitHub https://github.com/AyrA/DVRailDriverMod/issues/1#issuecomment-1666823209, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBYACLVV27PKJUP5VCP4KWLXT55OPANCNFSM6AAAAAA3F3DIRE . You are receiving this because you authored the thread.Message ID: @.***>

AyrA commented 11 months ago

Yes, but it may be a while. The entire system of how mods are done now has changed, and I need to reimplement all the locomotive interactions so they work properly with the new locos.

paul-pavlinovich commented 11 months ago

Cool. It would be good to mention that in your guide document. I used quite a bit of time to make it all work only to find it didn't.

On Sun, 6 Aug 2023, 11:30 pm AyrA, @.***> wrote:

Yes, but it may be a while. The entire system of how mods are done now has changed, and I need to reimplement all the locomotive interactions so they work properly with the new locos.

— Reply to this email directly, view it on GitHub https://github.com/AyrA/DVRailDriverMod/issues/1#issuecomment-1666861182, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBYACLWMXXUPM5HYFSHOMYLXT6MAPANCNFSM6AAAAAA3F3DIRE . You are receiving this because you authored the thread.Message ID: @.***>

SGR92 commented 4 months ago

Hi, was just wondering if you have had any joy updating this mod for the new Simulator update? Really miss being able to use the RailDriver with DV. Thanks for your effort with this mod btw, it was great to use.