gurrenm3 / BTD-Mod-Helper

A powerful and easy to use API for modding BTD6, BATTD, and other Ninja Kiwi games.
https://gurrenm3.github.io/BTD-Mod-Helper/
GNU General Public License v3.0
170 stars 117 forks source link

Crashes after pressing play at main menu #10

Closed Hirashi3630 closed 2 years ago

Hirashi3630 commented 2 years ago

using:

here's the log

[21:53:30.936] ------------------------------
[21:53:30.937] Name: BloonsTD6
[21:53:30.937] Developer: Ninja Kiwi
[21:53:30.938] Unity Version: 2020.3.18
[21:53:30.938] Game Type: Il2Cpp
[21:53:30.941] Game Arch: x64
[21:53:30.942] ------------------------------
[21:53:30.943] Core::BasePath = C:\Program Files (x86)\Steam\steamapps\common\BloonsTD6
[21:53:30.944] Game::BasePath = C:\Program Files (x86)\Steam\steamapps\common\BloonsTD6
[21:53:30.944] Game::DataPath = C:\Program Files (x86)\Steam\steamapps\common\BloonsTD6\BloonsTD6_Data
[21:53:30.945] Game::ApplicationPath = C:\Program Files (x86)\Steam\steamapps\common\BloonsTD6\BloonsTD6.exe

[21:53:32.156] Preferences Loaded!
[21:53:32.230] Loading Plugins...

[21:53:32.243] ------------------------------
[21:53:32.243] No Plugins Loaded!
[21:53:32.244] ------------------------------

[21:53:33.184] Loading MelonStartScreen...
[21:53:33.529] User32::SetTimer original: 0x7FFC2B914070
[21:53:33.530] Applying USER32.dll::SetTimer Hook at 0x7FFC2B914070
[21:53:33.531] Creating delegate for original USER32.dll::SetTimer (0x7FFBECAD0360)
[21:53:33.532] Applied USER32.dll::SetTimer patch
[21:53:33.697] Loading Il2CppAssemblyGenerator...
[21:53:33.857] Contacting RemoteAPI...
[21:53:34.177] RemoteAPI.DumperVersion = 2021.5.3
[21:53:34.178] RemoteAPI.UnhollowerVersion = null
[21:53:34.180] RemoteAPI.ObfuscationRegex = null
[21:53:34.183] RemoteAPI.MappingURL = null
[21:53:34.185] RemoteAPI.MappingFileSHA512 = null
[21:53:34.188] Using Dumper Version: 2021.5.3
[21:53:34.192] Using Il2CppAssemblyUnhollower Version = 0.4.16.2
[21:53:34.194] Using Unity Dependencies Version = 2020.3.18
[21:53:34.195] Cpp2IL is up to date. No Download Needed.
[21:53:34.199] Il2CppAssemblyUnhollower is up to date. No Download Needed.
[21:53:34.201] Unity Dependencies are up to date. No Download Needed.
[21:53:34.202] Checking GameAssembly...
[21:53:34.473] Assembly is up to date. No Generation Needed.
[21:53:34.502] Game Version: 29.2

[21:53:34.740] Loading Mods...

[21:53:34.829] ------------------------------
[21:53:34.836] 1 Mod Loaded
[21:53:34.845] ------------------------------
[21:53:34.846] BloonsTD6 Mod Helper v2.3.1
[21:53:34.850] by Gurrenm4 and Doombubbles
[21:53:34.866] SHA256 Hash: e883eabf58c4a81f46bc3d54ccc8559416ccc4a30ca30b8fb233ac0315b48775
[21:53:34.868] ------------------------------
[21:53:36.289] [BloonsTD6_Mod_Helper] Mod has finished loading
[21:53:36.290] [BloonsTD6_Mod_Helper] Checking for updates...
[21:53:44.018] [BloonsTD6_Mod_Helper] Starting to initiate profile AutoSaving...
[21:53:44.022] [BloonsTD6_Mod_Helper] Successfully initiated profile AutoSaving
[21:54:48.939] [ERROR] Exception in Harmony patch of method void Assets.Scripts.Models.Profile.ProfileModel::Validate(Il2CppSystem.Runtime.Serialization.StreamingContext context):
System.NullReferenceException: Object reference not set to an instance of an object

  at BTD_Mod_Helper.Api.ProfileManagement.CleanProfile (Assets.Scripts.Models.Profile.ProfileModel profile, System.Collections.Generic.IReadOnlyCollection`1[T] towers, System.Collections.Generic.IReadOnlyCollection`1[T] upgrades, System.Collections.Generic.IReadOnlyCollection`1[T] heroes, System.Boolean current) [0x00063] in <06bfe9623e174f469623bcf7148f71eb>:0 

  at BTD_Mod_Helper.Api.ProfileManagement.CleanPastProfile (Assets.Scripts.Models.Profile.ProfileModel profile) [0x000c3] in <06bfe9623e174f469623bcf7148f71eb>:0 

  at BTD_Mod_Helper.Patches.ProfileModel_Validate.Prefix (Assets.Scripts.Models.Profile.ProfileModel __instance) [0x00000] in <06bfe9623e174f469623bcf7148f71eb>:0 

  at (wrapper dynamic-method) Assets.Scripts.Models.Profile.ProfileModel.DMD<Assets.Scripts.Models.Profile.ProfileModel::Validate>(Assets.Scripts.Models.Profile.ProfileModel,Il2CppSystem.Runtime.Serialization.StreamingContext)

  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.DMD<Assets.Scripts.Models.Profile.ProfileModel::Validate>_il2cpp(intptr,intptr)
[21:54:49.188] Preferences Saved!
Hirashi3630 commented 2 years ago

it seems that facec8a fixed this issue