yukieiji / UnityExplorer

An in-game UI for exploring, debugging and modifying IL2CPP and Mono Unity games.
GNU General Public License v3.0
242 stars 16 forks source link

[Bug]: CarX Street crashes after loading the plugin #22

Closed Andryshik345 closed 2 months ago

Andryshik345 commented 2 months ago

Are you on the latest version of UnityExplorer?

Which release are you using?

MelonLoader IL2CPP CoreCLR

Which game did this occur on?

CarX Street

Describe the issue.

This is a copy-paste issue from https://github.com/originalnicodr/CinematicUnityExplorer/issues/89, since it has the same symptoms. MelonLoader crashes almost immediately after loading the plugin, on Initialized UnityCrashPrevention for: Canvas.get_renderingDisplaySize. Tried both MelonLoader 0.5.7 and 0.6.4, also tried general IL2CPP and IL2CPP CoreCLR versions, also tried release and nightly builds - crash moment is the same (well, on 0.5.7 it complains about some missing dependencies). Also tried BepInEx 6 with no luck. And If to be precise, on melonloader 0.5.7, even if ignoring that warning about dependencies, UE just won't load (no any new logs in Mods directory). Unity Version: 2022.3.19f1

Relevant log output

[08:25:20.717] ------------------------------
[08:25:20.762] MelonLoader v0.6.4 Open-Beta
[08:25:20.763] OS: Windows 10
[08:25:20.763] Hash Code: 57EE1B42E1FB9958A6BA7AB968E66098D05A9C82A5236075512B7E61BC7C2A65
[08:25:20.764] ------------------------------
[08:25:20.764] Game Type: Il2cpp
[08:25:20.764] Game Arch: x64
[08:25:20.764] ------------------------------
[08:25:20.765] Core::BasePath = E:\Games\CarX Street
[08:25:20.765] Game::BasePath = E:\Games\CarX Street
[08:25:20.765] Game::DataPath = E:\Games\CarX Street\CarX Street_Data
[08:25:20.765] Game::ApplicationPath = E:\Games\CarX Street\CarX Street.exe
[08:25:20.766] Runtime Type: net6
[08:25:21.195] ------------------------------
[08:25:21.195] Game Name: CarX Street
[08:25:21.196] Game Developer: CarX Technologies
[08:25:21.197] Unity Version: 2022.3.19f1
[08:25:21.197] Game Version: UNKNOWN
[08:25:21.197] ------------------------------

[08:25:22.243] Preferences Loaded!

[08:25:22.791] Loading UserLibss from 'E:\Games\CarX Street\UserLibs'...
[08:25:22.792] ------------------------------
[08:25:22.803] Melon Assembly loaded: '.\UserLibs\UniverseLib.ML.IL2CPP.Interop.dll'
[08:25:22.803] SHA256 Hash: '135371863c803bcec2d83c26f95d3942677bd7b2687fc33db0f376bc651e89c9'

[08:25:22.809] Loading Plugins from 'E:\Games\CarX Street\Plugins'...
[08:25:22.811] 0 Plugins loaded.
[08:25:23.871] Loading Il2CppAssemblyGenerator...
[08:25:23.891] [Il2CppAssemblyGenerator] Contacting RemoteAPI...
[08:25:24.141] [Il2CppAssemblyGenerator] Game Not Found on RemoteAPI Host (https://api.melonloader.com/api/v1/game/carx-street)
[08:25:24.141] [Il2CppAssemblyGenerator] RemoteAPI.DumperVersion = null
[08:25:24.142] [Il2CppAssemblyGenerator] RemoteAPI.ObfuscationRegex = null
[08:25:24.142] [Il2CppAssemblyGenerator] RemoteAPI.MappingURL = null
[08:25:24.143] [Il2CppAssemblyGenerator] RemoteAPI.MappingFileSHA512 = null
[08:25:24.271] [Il2CppAssemblyGenerator] Using Dumper Version: 2022.1.0-pre-release.15
[08:25:24.271] [Il2CppAssemblyGenerator] Using Il2CppInterop Version = 1.4.6-ci.433+45e22c2cb80a9586114a1815d77cc20104fd896c
[08:25:24.272] [Il2CppAssemblyGenerator] Using Unity Dependencies Version = 2022.3.19
[08:25:24.273] [Il2CppAssemblyGenerator] Using Deobfuscation Regex = null
[08:25:24.273] [Il2CppAssemblyGenerator] Downloading Cpp2IL...
[08:25:24.274] [Il2CppAssemblyGenerator] Downloading https://github.com/SamboyCoding/Cpp2IL/releases/download/2022.1.0-pre-release.15/Cpp2IL-2022.1.0-pre-release.15-Windows-Netframework472.zip to E:\Games\CarX Street\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL_2022.1.0-pre-release.15.zip
[08:25:25.835] [Il2CppAssemblyGenerator] Processing Cpp2IL...
[08:25:25.837] [Il2CppAssemblyGenerator] Creating Directory E:\Games\CarX Street\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL
[08:25:25.837] [Il2CppAssemblyGenerator] Extracting E:\Games\CarX Street\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL_2022.1.0-pre-release.15.zip to E:\Games\CarX Street\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL
[08:25:25.886] [Il2CppAssemblyGenerator] Downloading UnityDependencies...
[08:25:25.894] [Il2CppAssemblyGenerator] Downloading https://github.com/LavaGang/Unity-Runtime-Libraries/raw/master/2022.3.19.zip to E:\Games\CarX Street\MelonLoader\Dependencies\Il2CppAssemblyGenerator\UnityDependencies_2022.3.19.zip
[08:25:27.467] [Il2CppAssemblyGenerator] Processing UnityDependencies...
[08:25:27.467] [Il2CppAssemblyGenerator] Creating Directory E:\Games\CarX Street\MelonLoader\Dependencies\Il2CppAssemblyGenerator\UnityDependencies
[08:25:27.468] [Il2CppAssemblyGenerator] Extracting E:\Games\CarX Street\MelonLoader\Dependencies\Il2CppAssemblyGenerator\UnityDependencies_2022.3.19.zip to E:\Games\CarX Street\MelonLoader\Dependencies\Il2CppAssemblyGenerator\UnityDependencies
[08:25:27.538] [Il2CppAssemblyGenerator] Checking GameAssembly...
[08:25:27.885] [Il2CppAssemblyGenerator] Assembly Generation Needed!
[08:25:27.895] [Il2CppAssemblyGenerator] Executing Cpp2IL...
[08:25:27.896] [Il2CppAssemblyGenerator] "E:\Games\CarX Street\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\Cpp2IL.exe" --game-path "E:\Games\CarX Street" --exe-name "CarX Street" --use-processor attributeinjector --output-as dummydll
[08:25:27.993] TODO: SetProcessId(16848)
[08:25:28.043] [Il2CppAssemblyGenerator] ===Cpp2IL by Samboy063===
[08:25:28.043] [Il2CppAssemblyGenerator] A Tool to Reverse Unity's "il2cpp" Build Process.
[08:25:28.044] [Il2CppAssemblyGenerator] Version 2022.1.0-pre-release.15+138e379f3c4de502b8067b9a49c4bb60bab7a158
[08:25:28.044] [Il2CppAssemblyGenerator] 
[08:25:28.053] [Il2CppAssemblyGenerator] [Warn] [Program] NO_COLOR set, disabling ANSI color codes as you requested.
[08:25:28.054] [Il2CppAssemblyGenerator] [Info] [Program] Running on Win32NT
[08:25:28.122] [Il2CppAssemblyGenerator] [Info] [Plugins] Loading plugins from E:\Games\CarX Street\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\Plugins...
[08:25:28.132] [Il2CppAssemblyGenerator] [Info] [Plugins] Using Plugin: Cpp2IL Built-In
[08:25:28.142] [Il2CppAssemblyGenerator] [Info] [Program] Determined game's unity version to be 2022.3.19a0
[08:25:28.206] [Il2CppAssemblyGenerator] [Info] [Library] Initializing Metadata...
[08:25:28.207] [Il2CppAssemblyGenerator] [Info] [Library]   Using actual IL2CPP Metadata version 29,1
[08:25:28.393] [Il2CppAssemblyGenerator] [Info] [Library] Initialized Metadata in 187ms
[08:25:28.394] [Il2CppAssemblyGenerator] [Info] [Library] Using binary type Portable Executable (from LibCpp2IL)
[08:25:28.394] [Il2CppAssemblyGenerator] [Info] [Library] Searching Binary for Required Data...
[08:25:29.151] [Il2CppAssemblyGenerator] [Info] [Library] Got Binary codereg: 0x185D74470, metareg: 0x186BE7110 in 757ms.
[08:25:29.151] [Il2CppAssemblyGenerator] [Info] [Library] Initializing Binary...
[08:25:29.355] [Il2CppAssemblyGenerator] [Info] [Library] Initialized Binary in 203ms
[08:25:29.481] [Il2CppAssemblyGenerator] [Info] [Library] Mapping pointers to Il2CppMethodDefinitions...Processed 198677 OK (127ms)
[08:25:29.497] [Il2CppAssemblyGenerator] [Info] [Program] Creating application model...
[08:25:32.744] [Il2CppAssemblyGenerator] [Info] [Program] Application model created in 3246,522ms
[08:25:32.744] [Il2CppAssemblyGenerator] [Info] [Program] Pre-processing processing layers...
[08:25:32.748] [Il2CppAssemblyGenerator] [Info] [Program]     Attribute Injector...
[08:25:32.748] [Il2CppAssemblyGenerator] [Info] [Program]     Attribute Injector finished in 0ms
[08:25:32.748] [Il2CppAssemblyGenerator] [Info] [Program] Invoking processing layers...
[08:25:32.749] [Il2CppAssemblyGenerator] [Info] [Program]     Attribute Injector...
[08:25:33.252] [Il2CppAssemblyGenerator] [Info] [Program]     Attribute Injector finished in 504,1678ms
[08:25:33.252] [Il2CppAssemblyGenerator] [Info] [Program] Outputting as DLL output format for backwards compatibility. to E:\Games\CarX Street\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\cpp2il_out...
[08:25:38.039] [Il2CppAssemblyGenerator] [Info] [Program] Finished outputting in 4787,4234ms
[08:25:38.042] [Il2CppAssemblyGenerator] [Info] [Program] Done. Total execution time: 9890,2909ms
[08:25:38.315] TODO: SetProcessId(0)
[08:25:38.316] [Il2CppAssemblyGenerator] Reading dumped assemblies for interop generation...
[08:25:38.356] [Il2CppAssemblyGenerator] Generating Interop Assemblies...
[08:25:38.363] [Il2CppAssemblyGenerator] Reading assemblies...
[08:25:38.417] [Il2CppAssemblyGenerator] Done in 00:00:00.0531395
[08:25:38.417] [Il2CppAssemblyGenerator] Reading unity assemblies...
[08:25:38.617] [Il2CppAssemblyGenerator] Done in 00:00:00.1985308
[08:25:38.617] [Il2CppAssemblyGenerator] Creating rewrite assemblies...
[08:25:38.629] [Il2CppAssemblyGenerator] Done in 00:00:00.0101831
[08:25:38.629] [Il2CppAssemblyGenerator] Computing renames...
[08:25:38.697] [Il2CppAssemblyGenerator] Done in 00:00:00.0672149
[08:25:38.697] [Il2CppAssemblyGenerator] Creating typedefs...
[08:25:38.784] [Il2CppAssemblyGenerator] Done in 00:00:00.0859257
[08:25:38.784] [Il2CppAssemblyGenerator] Computing struct blittability...
[08:25:38.935] [Il2CppAssemblyGenerator] Done in 00:00:00.1503420
[08:25:38.936] [Il2CppAssemblyGenerator] Filling typedefs...
[08:25:38.990] [Il2CppAssemblyGenerator] Done in 00:00:00.0537780
[08:25:38.991] [Il2CppAssemblyGenerator] Filling generic constraints...
[08:25:38.998] [Il2CppAssemblyGenerator] Done in 00:00:00.0070756
[08:25:38.999] [Il2CppAssemblyGenerator] Creating members...
[08:25:41.013] [Il2CppAssemblyGenerator] Done in 00:00:02.0131288
[08:25:41.013] [Il2CppAssemblyGenerator] Scanning method cross-references...
[08:25:42.254] [Il2CppAssemblyGenerator] Done in 00:00:01.2398417
[08:25:42.254] [Il2CppAssemblyGenerator] Finalizing method declarations...
[08:25:45.047] [Il2CppAssemblyGenerator] Done in 00:00:02.7913350
[08:25:45.047] [Il2CppAssemblyGenerator] 359 total potentially dead methods
[08:25:45.048] [Il2CppAssemblyGenerator] Filling method parameters...
[08:25:45.685] [Il2CppAssemblyGenerator] Done in 00:00:00.6366763
[08:25:45.686] [Il2CppAssemblyGenerator] Creating static constructors...
[08:25:46.538] [Il2CppAssemblyGenerator] Done in 00:00:00.8512046
[08:25:46.538] [Il2CppAssemblyGenerator] Creating value type fields...
[08:25:46.635] [Il2CppAssemblyGenerator] Done in 00:00:00.0959732
[08:25:46.635] [Il2CppAssemblyGenerator] Creating enums...
[08:25:46.702] [Il2CppAssemblyGenerator] Done in 00:00:00.0656289
[08:25:46.702] [Il2CppAssemblyGenerator] Creating IntPtr constructors...
[08:25:47.419] [Il2CppAssemblyGenerator] Done in 00:00:00.7157094
[08:25:47.419] [Il2CppAssemblyGenerator] Creating non-blittable struct constructors...
[08:25:47.539] [Il2CppAssemblyGenerator] Done in 00:00:00.1195548
[08:25:47.539] [Il2CppAssemblyGenerator] Creating generic method static constructors...
[08:25:47.716] [Il2CppAssemblyGenerator] Done in 00:00:00.1757553
[08:25:47.716] [Il2CppAssemblyGenerator] Creating field accessors...
[08:25:48.985] [Il2CppAssemblyGenerator] Done in 00:00:01.2676785
[08:25:48.985] [Il2CppAssemblyGenerator] Filling methods...
[08:25:52.755] [Il2CppAssemblyGenerator] Done in 00:00:03.7686809
[08:25:52.755] [Il2CppAssemblyGenerator] Generating implicit conversions...
[08:25:52.813] [Il2CppAssemblyGenerator] Done in 00:00:00.0566334
[08:25:52.813] [Il2CppAssemblyGenerator] Creating properties...
[08:25:53.108] [Il2CppAssemblyGenerator] Done in 00:00:00.2936427
[08:25:53.108] [Il2CppAssemblyGenerator] Unstripping types...
[08:25:53.174] [Il2CppAssemblyGenerator] Done in 00:00:00.0653105
[08:25:53.174] [Il2CppAssemblyGenerator] Unstripping fields...
[08:25:53.183] [Il2CppAssemblyGenerator] Restored 446 fields
[08:25:53.183] [Il2CppAssemblyGenerator] Failed to restore 0 fields
[08:25:53.184] [Il2CppAssemblyGenerator] Done in 00:00:00.0082512
[08:25:53.184] [Il2CppAssemblyGenerator] Unstripping methods...
[08:25:53.520] [Il2CppAssemblyGenerator] Restored 13739 methods
[08:25:53.520] [Il2CppAssemblyGenerator] Failed to restore 814 methods
[08:25:53.521] [Il2CppAssemblyGenerator] Done in 00:00:00.3363372
[08:25:53.522] [Il2CppAssemblyGenerator] Unstripping method bodies...
[08:25:53.865] [Il2CppAssemblyGenerator] IL unstrip statistics: 7155 successful, 1771 failed
[08:25:53.865] [Il2CppAssemblyGenerator] Done in 00:00:00.3426629
[08:25:53.866] [Il2CppAssemblyGenerator] Writing xref cache...
[08:25:55.864] [Il2CppAssemblyGenerator] Done in 00:00:01.9972372
[08:25:55.864] [Il2CppAssemblyGenerator] Writing assemblies...
[08:25:57.967] [Il2CppAssemblyGenerator] Done in 00:00:02.1019001
[08:25:57.967] [Il2CppAssemblyGenerator] Writing method pointer map...
[08:25:58.022] [Il2CppAssemblyGenerator] Done in 00:00:00.0541287
[08:25:58.023] [Il2CppAssemblyGenerator] Done!
[08:25:58.028] [Il2CppAssemblyGenerator] Cleaning up...
[08:25:58.029] [Il2CppAssemblyGenerator] Interop Generation Complete!
[08:25:58.030] [Il2CppAssemblyGenerator] Moving Assembly-CSharp-firstpass.dll
[08:25:58.031] [Il2CppAssemblyGenerator] Moving Assembly-CSharp.dll
[08:25:58.031] [Il2CppAssemblyGenerator] Moving Il2CppACTk.Examples.Genuine.Runtime.dll
[08:25:58.032] [Il2CppAssemblyGenerator] Moving Il2CppACTk.Examples.Runtime.dll
[08:25:58.033] [Il2CppAssemblyGenerator] Moving Il2CppACTk.Runtime.dll
[08:25:58.033] [Il2CppAssemblyGenerator] Moving Il2CppAssetCore.Animation.dll
[08:25:58.033] [Il2CppAssemblyGenerator] Moving Il2CppAssetCore.Decals.dll
[08:25:58.034] [Il2CppAssemblyGenerator] Moving Il2CppAssetCore.Foundation.dll
[08:25:58.034] [Il2CppAssemblyGenerator] Moving Il2CppAssetCore.Rendering.dll
[08:25:58.035] [Il2CppAssemblyGenerator] Moving Il2CppAssetCore.Scene.dll
[08:25:58.035] [Il2CppAssemblyGenerator] Moving Il2CppAssetCore.Streaming.dll
[08:25:58.035] [Il2CppAssemblyGenerator] Moving Il2CppCarSystems.Runtime.dll
[08:25:58.036] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Common.dll
[08:25:58.036] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Common.InputEffectsModule.dll
[08:25:58.036] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Common.InputEffectsModule.Tests.dll
[08:25:58.037] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Common.InputEffectsModule.Utilities.dll
[08:25:58.037] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Common.InputModule.dll
[08:25:58.038] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Common.InputModule.Tests.dll
[08:25:58.038] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Extras.Surface.dll
[08:25:58.038] [Il2CppAssemblyGenerator] Moving Il2CppCarX.GraphLib.dll
[08:25:58.039] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Graphy.Extension.Runtime.dll
[08:25:58.039] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Platform.dll
[08:25:58.040] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Platform.Public.dll
[08:25:58.040] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Platform.Steam.dll
[08:25:58.040] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Plugins.Core.dll
[08:25:58.041] [Il2CppAssemblyGenerator] Moving Il2CppCarX.Street.dll
[08:25:58.043] [Il2CppAssemblyGenerator] Moving Il2CppCinemachine.dll
[08:25:58.043] [Il2CppAssemblyGenerator] Moving Il2CppCoffee.UIParticle.dll
[08:25:58.043] [Il2CppAssemblyGenerator] Moving Il2CppDebugMenu.Runtime.dll
[08:25:58.044] [Il2CppAssemblyGenerator] Moving Il2CppDOTween.dll
[08:25:58.044] [Il2CppAssemblyGenerator] Moving Il2CppDOTween.Modules.dll
[08:25:58.045] [Il2CppAssemblyGenerator] Moving Il2CppDOTweenPro.dll
[08:25:58.045] [Il2CppAssemblyGenerator] Moving Il2CppDOTweenPro.Scripts.dll
[08:25:58.045] [Il2CppAssemblyGenerator] Moving Il2CppFacepunch.Steamworks.Win64.dll
[08:25:58.046] [Il2CppAssemblyGenerator] Moving Il2CppFMODUnity.dll
[08:25:58.046] [Il2CppAssemblyGenerator] Moving Il2CppFMODUnityResonance.dll
[08:25:58.046] [Il2CppAssemblyGenerator] Moving Il2CppFramework.Core.dll
[08:25:58.047] [Il2CppAssemblyGenerator] Moving Il2CppFramework.Models.Cars.dll
[08:25:58.047] [Il2CppAssemblyGenerator] Moving Il2CppFramework.Models.dll
[08:25:58.048] [Il2CppAssemblyGenerator] Moving Il2CppFramework.Models.NavMeshes.dll
[08:25:58.048] [Il2CppAssemblyGenerator] Moving Il2CppFramework.Models.Races.dll
[08:25:58.048] [Il2CppAssemblyGenerator] Moving Il2CppFramework.Models.SimplePhysics.dll
[08:25:58.049] [Il2CppAssemblyGenerator] Moving Il2CppFramework.Models.Street.dll
[08:25:58.049] [Il2CppAssemblyGenerator] Moving Il2CppFramework.Views.Cars.dll
[08:25:58.050] [Il2CppAssemblyGenerator] Moving Il2CppHavok.Physics.dll
[08:25:58.050] [Il2CppAssemblyGenerator] Moving Il2CppMackySoft.SerializeReferenceExtensions.dll
[08:25:58.050] [Il2CppAssemblyGenerator] Moving Il2CppMono.Security.dll
[08:25:58.051] [Il2CppAssemblyGenerator] Moving Il2Cppmscorlib.dll
[08:25:58.053] [Il2CppAssemblyGenerator] Moving Il2CppNewtonsoft.Json.dll
[08:25:58.053] [Il2CppAssemblyGenerator] Moving Il2CppNSubstitute.dll
[08:25:58.054] [Il2CppAssemblyGenerator] Moving Il2CppOPS.Obfuscator.dll
[08:25:58.054] [Il2CppAssemblyGenerator] Moving Il2CppPlayFab.dll
[08:25:58.055] [Il2CppAssemblyGenerator] Moving Il2CppPools.dll
[08:25:58.055] [Il2CppAssemblyGenerator] Moving Il2CppRenderCore.Runtime.dll
[08:25:58.055] [Il2CppAssemblyGenerator] Moving Il2CppRenderCore.ShaderLibrary.dll
[08:25:58.056] [Il2CppAssemblyGenerator] Moving Il2CppSmartFox2X.dll
[08:25:58.056] [Il2CppAssemblyGenerator] Moving Il2CppStompyRobot.SRDebugger.dll
[08:25:58.057] [Il2CppAssemblyGenerator] Moving Il2CppStompyRobot.SRF.dll
[08:25:58.057] [Il2CppAssemblyGenerator] Moving Il2CppSystem.Configuration.dll
[08:25:58.057] [Il2CppAssemblyGenerator] Moving Il2CppSystem.Core.dll
[08:25:58.058] [Il2CppAssemblyGenerator] Moving Il2CppSystem.Data.dll
[08:25:58.058] [Il2CppAssemblyGenerator] Moving Il2CppSystem.dll
[08:25:58.058] [Il2CppAssemblyGenerator] Moving Il2CppSystem.IO.Compression.dll
[08:25:58.059] [Il2CppAssemblyGenerator] Moving Il2CppSystem.IO.Compression.FileSystem.dll
[08:25:58.059] [Il2CppAssemblyGenerator] Moving Il2CppSystem.Net.Http.dll
[08:25:58.060] [Il2CppAssemblyGenerator] Moving Il2CppSystem.Numerics.dll
[08:25:58.060] [Il2CppAssemblyGenerator] Moving Il2CppSystem.Runtime.Serialization.dll
[08:25:58.060] [Il2CppAssemblyGenerator] Moving Il2CppSystem.ServiceModel.dll
[08:25:58.061] [Il2CppAssemblyGenerator] Moving Il2CppSystem.Xml.dll
[08:25:58.063] [Il2CppAssemblyGenerator] Moving Il2CppSystem.Xml.Linq.dll
[08:25:58.063] [Il2CppAssemblyGenerator] Moving Il2CppTayx.Graphy.dll
[08:25:58.064] [Il2CppAssemblyGenerator] Moving Il2CppTayx.Graphy.FMODGraphy.dll
[08:25:58.064] [Il2CppAssemblyGenerator] Moving Il2CppTimers.dll
[08:25:58.064] [Il2CppAssemblyGenerator] Moving Il2CppTraffic.Runtime.dll
[08:25:58.065] [Il2CppAssemblyGenerator] Moving Il2CppTraffic.Runtime.NetCode.dll
[08:25:58.065] [Il2CppAssemblyGenerator] Moving Il2CppUniRx.dll
[08:25:58.065] [Il2CppAssemblyGenerator] Moving Il2CppUniTask.Addressables.dll
[08:25:58.066] [Il2CppAssemblyGenerator] Moving Il2CppUniTask.dll
[08:25:58.066] [Il2CppAssemblyGenerator] Moving Il2CppUniTask.DOTween.dll
[08:25:58.067] [Il2CppAssemblyGenerator] Moving Il2CppVContainer.dll
[08:25:58.067] [Il2CppAssemblyGenerator] Moving Il2CppVContainerExtension.dll
[08:25:58.067] [Il2CppAssemblyGenerator] Moving Il2Cpp__Generated.dll
[08:25:58.068] [Il2CppAssemblyGenerator] Moving MethodAddressToToken.db
[08:25:58.068] [Il2CppAssemblyGenerator] Moving MethodXrefScanCache.db
[08:25:58.069] [Il2CppAssemblyGenerator] Moving Unity.Addressables.dll
[08:25:58.069] [Il2CppAssemblyGenerator] Moving Unity.Burst.dll
[08:25:58.069] [Il2CppAssemblyGenerator] Moving Unity.Burst.Unsafe.dll
[08:25:58.070] [Il2CppAssemblyGenerator] Moving Unity.Collections.dll
[08:25:58.070] [Il2CppAssemblyGenerator] Moving Unity.Collections.LowLevel.ILSupport.dll
[08:25:58.071] [Il2CppAssemblyGenerator] Moving Unity.Deformations.dll
[08:25:58.073] [Il2CppAssemblyGenerator] Moving Unity.Entities.dll
[08:25:58.074] [Il2CppAssemblyGenerator] Moving Unity.Entities.Graphics.dll
[08:25:58.074] [Il2CppAssemblyGenerator] Moving Unity.Entities.Hybrid.dll
[08:25:58.075] [Il2CppAssemblyGenerator] Moving Unity.Entities.Hybrid.HybridComponents.dll
[08:25:58.075] [Il2CppAssemblyGenerator] Moving Unity.InputSystem.dll
[08:25:58.075] [Il2CppAssemblyGenerator] Moving Unity.InputSystem.ForUI.dll
[08:25:58.076] [Il2CppAssemblyGenerator] Moving Unity.Localization.dll
[08:25:58.076] [Il2CppAssemblyGenerator] Moving Unity.Mathematics.dll
[08:25:58.077] [Il2CppAssemblyGenerator] Moving Unity.Mathematics.Extensions.dll
[08:25:58.077] [Il2CppAssemblyGenerator] Moving Unity.Mathematics.Extensions.Hybrid.dll
[08:25:58.077] [Il2CppAssemblyGenerator] Moving Unity.Physics.Custom.dll
[08:25:58.078] [Il2CppAssemblyGenerator] Moving Unity.Physics.dll
[08:25:58.078] [Il2CppAssemblyGenerator] Moving Unity.Physics.Hybrid.dll
[08:25:58.079] [Il2CppAssemblyGenerator] Moving Unity.Profiling.Core.dll
[08:25:58.079] [Il2CppAssemblyGenerator] Moving Unity.RenderPipelines.Core.Runtime.dll
[08:25:58.079] [Il2CppAssemblyGenerator] Moving Unity.ResourceManager.dll
[08:25:58.080] [Il2CppAssemblyGenerator] Moving Unity.Serialization.dll
[08:25:58.080] [Il2CppAssemblyGenerator] Moving Unity.TextMeshPro.dll
[08:25:58.080] [Il2CppAssemblyGenerator] Moving Unity.Timeline.dll
[08:25:58.081] [Il2CppAssemblyGenerator] Moving Unity.Transforms.dll
[08:25:58.084] [Il2CppAssemblyGenerator] Moving Unity.Transforms.Hybrid.dll
[08:25:58.084] [Il2CppAssemblyGenerator] Moving UnityEngine.AccessibilityModule.dll
[08:25:58.084] [Il2CppAssemblyGenerator] Moving UnityEngine.AIModule.dll
[08:25:58.085] [Il2CppAssemblyGenerator] Moving UnityEngine.AndroidJNIModule.dll
[08:25:58.085] [Il2CppAssemblyGenerator] Moving UnityEngine.AnimationModule.dll
[08:25:58.086] [Il2CppAssemblyGenerator] Moving UnityEngine.ARModule.dll
[08:25:58.086] [Il2CppAssemblyGenerator] Moving UnityEngine.AssetBundleModule.dll
[08:25:58.086] [Il2CppAssemblyGenerator] Moving UnityEngine.AudioModule.dll
[08:25:58.087] [Il2CppAssemblyGenerator] Moving UnityEngine.ClothModule.dll
[08:25:58.087] [Il2CppAssemblyGenerator] Moving UnityEngine.ClusterInputModule.dll
[08:25:58.087] [Il2CppAssemblyGenerator] Moving UnityEngine.ClusterRendererModule.dll
[08:25:58.088] [Il2CppAssemblyGenerator] Moving UnityEngine.ContentLoadModule.dll
[08:25:58.088] [Il2CppAssemblyGenerator] Moving UnityEngine.CoreModule.dll
[08:25:58.089] [Il2CppAssemblyGenerator] Moving UnityEngine.CrashReportingModule.dll
[08:25:58.089] [Il2CppAssemblyGenerator] Moving UnityEngine.DirectorModule.dll
[08:25:58.089] [Il2CppAssemblyGenerator] Moving UnityEngine.dll
[08:25:58.090] [Il2CppAssemblyGenerator] Moving UnityEngine.DSPGraphModule.dll
[08:25:58.090] [Il2CppAssemblyGenerator] Moving UnityEngine.GameCenterModule.dll
[08:25:58.091] [Il2CppAssemblyGenerator] Moving UnityEngine.GIModule.dll
[08:25:58.091] [Il2CppAssemblyGenerator] Moving UnityEngine.GridModule.dll
[08:25:58.091] [Il2CppAssemblyGenerator] Moving UnityEngine.HotReloadModule.dll
[08:25:58.092] [Il2CppAssemblyGenerator] Moving UnityEngine.ImageConversionModule.dll
[08:25:58.094] [Il2CppAssemblyGenerator] Moving UnityEngine.IMGUIModule.dll
[08:25:58.094] [Il2CppAssemblyGenerator] Moving UnityEngine.InputLegacyModule.dll
[08:25:58.094] [Il2CppAssemblyGenerator] Moving UnityEngine.InputModule.dll
[08:25:58.095] [Il2CppAssemblyGenerator] Moving UnityEngine.JSONSerializeModule.dll
[08:25:58.095] [Il2CppAssemblyGenerator] Moving UnityEngine.LocalizationModule.dll
[08:25:58.096] [Il2CppAssemblyGenerator] Moving UnityEngine.NVIDIAModule.dll
[08:25:58.096] [Il2CppAssemblyGenerator] Moving UnityEngine.ParticleSystemModule.dll
[08:25:58.096] [Il2CppAssemblyGenerator] Moving UnityEngine.PerformanceReportingModule.dll
[08:25:58.097] [Il2CppAssemblyGenerator] Moving UnityEngine.Physics2DModule.dll
[08:25:58.097] [Il2CppAssemblyGenerator] Moving UnityEngine.PhysicsModule.dll
[08:25:58.098] [Il2CppAssemblyGenerator] Moving UnityEngine.ProfilerModule.dll
[08:25:58.098] [Il2CppAssemblyGenerator] Moving UnityEngine.PropertiesModule.dll
[08:25:58.099] [Il2CppAssemblyGenerator] Moving UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll
[08:25:58.099] [Il2CppAssemblyGenerator] Moving UnityEngine.ScreenCaptureModule.dll
[08:25:58.100] [Il2CppAssemblyGenerator] Moving UnityEngine.SharedInternalsModule.dll
[08:25:58.100] [Il2CppAssemblyGenerator] Moving UnityEngine.SpriteMaskModule.dll
[08:25:58.100] [Il2CppAssemblyGenerator] Moving UnityEngine.SpriteShapeModule.dll
[08:25:58.101] [Il2CppAssemblyGenerator] Moving UnityEngine.StreamingModule.dll
[08:25:58.101] [Il2CppAssemblyGenerator] Moving UnityEngine.SubstanceModule.dll
[08:25:58.102] [Il2CppAssemblyGenerator] Moving UnityEngine.SubsystemsModule.dll
[08:25:58.103] [Il2CppAssemblyGenerator] Moving UnityEngine.TerrainModule.dll
[08:25:58.104] [Il2CppAssemblyGenerator] Moving UnityEngine.TerrainPhysicsModule.dll
[08:25:58.104] [Il2CppAssemblyGenerator] Moving UnityEngine.TextCoreFontEngineModule.dll
[08:25:58.105] [Il2CppAssemblyGenerator] Moving UnityEngine.TextCoreTextEngineModule.dll
[08:25:58.105] [Il2CppAssemblyGenerator] Moving UnityEngine.TextRenderingModule.dll
[08:25:58.105] [Il2CppAssemblyGenerator] Moving UnityEngine.TilemapModule.dll
[08:25:58.106] [Il2CppAssemblyGenerator] Moving UnityEngine.TLSModule.dll
[08:25:58.106] [Il2CppAssemblyGenerator] Moving UnityEngine.UI.dll
[08:25:58.107] [Il2CppAssemblyGenerator] Moving UnityEngine.UIElementsModule.dll
[08:25:58.107] [Il2CppAssemblyGenerator] Moving UnityEngine.UIModule.dll
[08:25:58.107] [Il2CppAssemblyGenerator] Moving UnityEngine.UmbraModule.dll
[08:25:58.108] [Il2CppAssemblyGenerator] Moving UnityEngine.UnityAnalyticsCommonModule.dll
[08:25:58.108] [Il2CppAssemblyGenerator] Moving UnityEngine.UnityAnalyticsModule.dll
[08:25:58.109] [Il2CppAssemblyGenerator] Moving UnityEngine.UnityConnectModule.dll
[08:25:58.109] [Il2CppAssemblyGenerator] Moving UnityEngine.UnityCurlModule.dll
[08:25:58.109] [Il2CppAssemblyGenerator] Moving UnityEngine.UnityTestProtocolModule.dll
[08:25:58.110] [Il2CppAssemblyGenerator] Moving UnityEngine.UnityWebRequestAssetBundleModule.dll
[08:25:58.110] [Il2CppAssemblyGenerator] Moving UnityEngine.UnityWebRequestAudioModule.dll
[08:25:58.110] [Il2CppAssemblyGenerator] Moving UnityEngine.UnityWebRequestModule.dll
[08:25:58.111] [Il2CppAssemblyGenerator] Moving UnityEngine.UnityWebRequestTextureModule.dll
[08:25:58.111] [Il2CppAssemblyGenerator] Moving UnityEngine.UnityWebRequestWWWModule.dll
[08:25:58.112] [Il2CppAssemblyGenerator] Moving UnityEngine.VehiclesModule.dll
[08:25:58.114] [Il2CppAssemblyGenerator] Moving UnityEngine.VFXModule.dll
[08:25:58.114] [Il2CppAssemblyGenerator] Moving UnityEngine.VideoModule.dll
[08:25:58.114] [Il2CppAssemblyGenerator] Moving UnityEngine.VirtualTexturingModule.dll
[08:25:58.115] [Il2CppAssemblyGenerator] Moving UnityEngine.VRModule.dll
[08:25:58.115] [Il2CppAssemblyGenerator] Moving UnityEngine.WindModule.dll
[08:25:58.116] [Il2CppAssemblyGenerator] Moving UnityEngine.XRModule.dll
[08:25:58.120] [Il2CppAssemblyGenerator] Assembly Generation Successful!

[08:25:58.129] Loading Mods from 'E:\Games\CarX Street\Mods'...
[08:25:58.130] ------------------------------
[08:25:58.139] Melon Assembly loaded: '.\Mods\UnityExplorer.ML.IL2CPP.CoreCLR.dll'
[08:25:58.139] SHA256 Hash: 'f96b10145dc280b0e4a7152db73b49142127b943a6ad642bf5add3a340ec9409'

[08:25:58.316] ------------------------------
[08:25:58.316] UnityExplorer v4.12.1
[08:25:58.316] by Sinai, yukieiji
[08:25:58.317] Assembly: UnityExplorer.ML.IL2CPP.CoreCLR.dll
[08:25:58.318] ------------------------------
[08:25:58.319] ------------------------------
[08:25:58.320] 1 Mod loaded.

[08:25:59.226] Class::Init signatures have been exhausted, using a substitute!
[08:25:59.471] Registered mono type Il2CppInterop.Runtime.DelegateSupport+Il2CppToMonoDelegateReference in il2cpp domain
[08:25:59.495] Registered mono type MelonLoader.Support.MonoEnumeratorWrapper in il2cpp domain
[08:25:59.496] Registered mono type MelonLoader.Support.SM_Component in il2cpp domain
[08:25:59.504] Support Module Loaded: E:\Games\CarX Street\MelonLoader\Dependencies\SupportModules\Il2Cpp.dll
[08:25:59.528] [UnityExplorer] UnityExplorer 4.12.1 initializing...
[08:25:59.545] [UnityExplorer] [UniverseLib] UniverseLib 1.5.6 initializing...
[08:25:59.547] Registered mono type UniverseLib.UniversalBehaviour in il2cpp domain
[08:25:59.815] Registered mono type UniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumerator in il2cpp domain
[08:25:59.879] [UnityExplorer] [UniverseLib] Finished UniverseLib initial setup.
[08:25:59.888] Registered mono type UnityExplorer.ExplorerBehaviour in il2cpp domain
[08:25:59.972] [UnityExplorer] Initialized UnityCrashPrevention for: Canvas.get_renderingDisplaySize
Andryshik345 commented 2 months ago

Log on 0.5.7 Melonloader.

Latest_057.log

yukieiji commented 2 months ago

I have a few questions.

Andryshik345 commented 2 months ago

Will other mods work?

Well, I only tried two forks of UnityExplorer so far, I wasn't aware if there are any other mods but I'll look into it.

are there any anti-cheats

I'm not 100% sure, but there's no any DRM so far and I didn't see any folders or dlls like EAC.

Andryshik345 commented 2 months ago

I just tried RuntimeGraphicsSettings mod from https://github.com/knah/ML-UniversalMods repo and it seem work fine (though idk how to change the settings)

yukieiji commented 2 months ago

Not mods that change settings, but does a mod that accesses the game's objects work?

yukieiji commented 2 months ago

I'm not 100% sure, but there's no any DRM so far and I didn't see any folders or dlls like EAC.

It may be designed to monitor dlls etc. loaded without EAC etc. and crash if they contain tools related to the mod.

Andryshik345 commented 2 months ago

does a mod that accesses the game's objects work?

It probably game-specific then? Then there are no any other mods for that title yet. Maybe you can provide some sample?

It may be designed to monitor dlls etc. loaded without EAC

Then I think it will crash with pure MelonLoader install as well?

yukieiji commented 2 months ago

It probably game-specific then? Then there are no any other mods for that title yet. Maybe you can provide some sample?

Mods that reference in-game objects anyway, even if they are not game-specific. For example, GameObject.Find (“Hoge”) after the game starts.

Then I think it will crash with pure MelonLoader install as well?

Does it start correctly with only MelonLoader installed?

My personal opinion is that the game is crashing without error, so I suspect that there is some kind of protection on the game() side, rather than a problem with UE itself. Looking at the UE code, it appears that after that log, the UE itself has completed starting up.

Andryshik345 commented 2 months ago

Does it start correctly with only MelonLoader installed?

Yes. I'll try to write and compile a tiny mod with such funcs then. Also, the game itself also saves quite detailed logs, so I'll check it for anything useful too.

Andryshik345 commented 2 months ago
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)

~   This Game has been MODIFIED using MelonLoader. DO NOT report any issues to the Game Developers!   ~
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)

-------------------------------------------------------------------------------------------------------
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)

UnloadTime: 6.142700 ms

Wow, it actually detects ML... But it is still boots just fine without any mods loaded.

Andryshik345 commented 2 months ago

Ok, so I tried to write a tiny mod. It works, but now after the first intro video (when world loading occurs) game crashes. No errors again, though. But while researching assembles, I found some classes regarding to anticheat(?), so maybe it kills the process after all. изображение

Code of the mod:

Spoiler ``` using MelonLoader; using TinyGameObjectTest; using UnityEngine; [assembly: MelonGame] [assembly: MelonInfo(typeof(TinyGameObjectTestMod), "Mod Name", "ModVersion", "Mod Author Name")] namespace TinyGameObjectTest { public class TinyGameObjectTestMod : MelonMod { public override void OnInitializeMelon() { base.OnInitializeMelon(); } public override void OnUpdate() // In unity, OnUpdate() runs every frame. { base.OnUpdate(); if (GameObject.Find("IntroVideo")) { LoggerInstance.Msg($"Game object found!"); } else { LoggerInstance.Msg($"Game object not found!"); } } } } ```

Though it never finds that object :)

yukieiji commented 2 months ago

Ok, so I tried to write a tiny mod. It works, but now after the first intro video (when world loading occurs) game crashes. No errors again, though. But while researching assembles, I found some classes regarding to anticheat(?), so maybe it kills the process after all.

Then this would not be a UE issue, but a issue with the game itself.

May I close it?

Andryshik345 commented 2 months ago

I guess so...