Skip to content

Steam mods load but never tick - Harmony patches registered yet Time.get_deltaTime postfix count is 0 #354

Closed

Description

@ffcc114514

Environment

  • Game: Inscryption, Steam, buildid 8988081 (2022-06-22), Unity 2019.4.24f1, 64-bit Mono
  • BepInEx 5.4.2306 (5.4.23.6) + MonoMod Loader 1.0.0 + InscryptionAPI 2.24.1
  • OS: Windows, RTX 5060, no Device Guard / HVCI, no process mitigation restrictions
  • Game files verified: deleted Assembly-CSharp.dll, Steam redownloaded it, SHA256 identical (D4C1559159F7A9F31011BD3EFE2D93C95F57294FDF3EFCF496D438D65F2B152A)
  • Mod files verified: all Thunderstore zips pass CRC; extracted dll CRCs match zip entries

Symptom

All plugins load and every .cfg is generated (Awake runs), but no mod content appears in game. Kaycee's Mod shows only the vanilla 8 starter decks / 16 challenges. Probe output:

Awake              : called
OnEnable           : called
Start              : NEVER called
Update             : NEVER called
OnApplicationQuit  : called
OnDestroy          : called

The plugin GameObject is created and destroyed but never enters Unity's BehaviourManager (Start/Update are queued; Awake/OnEnable are synchronous from AddComponent; OnDestroy/Quit come from the destruction path).

Key evidence

1. Harmony patches registered but never fire

PATCHINFO DiskCardGame.AscensionMenuScreens::Start  postfixes=2
   postfix owner=cyantist.inscryption.api  method=AscensionChallengeScreenPatches::AddPaginatorSetupifierToMenuScreens
PATCH OK Time.get_deltaTime patched, postfixes=1

At exit:

LIFECYCLE OnApplicationQuit startCalls=0 updateCalls=0 onBeforeRender=0 onPreCull=0 deltaTimeCalls=0

deltaTimeCalls=0 is decisive: the game calls Time.deltaTime every frame, yet the patched get_deltaTime postfix never fires. The native detour layer is not working.

2. 1344 Mono P/Invoke fallback errors, only with BepInEx

Fallback handler could not load library .../Inscryption_Data/Mono/data-XXXX.dll
With BepInEx injected                                 : 1344
winhttp.dll renamed away (vanilla)                    : 0
entrypoint = Assembly-CSharp.dll (no injection)       : 0

Introduced by BepInEx injection. Inscryption_Data/Mono does not exist (only MonoBleedingEdge), so these are doomed lookups, but 1344 correlates with detour failure (Harmony uses VirtualProtect via P/Invoke).

3. Data layer is fine

ChallengeManager.AllChallenges = 36     (vanilla 16 + mod 20)
StarterDeckManager.AllDecks    = 9
AscensionSaveData.Data.activeChallenges = 0

Already tried (all no effect)

Clean reinstall + 13-package whitelist; EnableAssemblyCache=false + wiped cache; deleted 141 KB ModdedSaveFile (rebuilt 18727 B); HarmonyBackend=cecil; HideManagerGameObject=true; BepInEx core downgraded to 5.4.23.5; minimal plugin set (API+Lobotomy); full Windows reboot; LogLevels=All; GamepassSilencio entrypoint (Assembly=Assembly-CSharp.dll, Type=SceneLoader, Method=.cctor) -> no injection on Steam; Type=LoadingScreenManager/Method=Start -> no injection.

Why GamepassSilencio doesn't transfer to Steam

Cecil scan of Assembly-CSharp.dll:

  • SceneLoader exists but base type is Object; no .cctor, no Start, no Awake. GamepassSilencio relies on .cctor.
  • Only two types have .cctor: GBC.StarterDecks, DiskCardGame.SceneryData. Neither runs at startup.
  • Types with Start: DiskCardGame.LoadingScreenManager, DiskCardGame.GameFlowManager. Using them as entrypoint -> doorstop cannot find hook -> no injection.

Question

  1. Is there an equivalent entrypoint type for the Steam build that puts the BepInEx manager GameObject into Unity's update loop? What should [Preloader.Entrypoint] Assembly/Type/Method be on Steam V1.10?
  2. Has anyone seen Harmony GetPatchInfo reporting patches while get_deltaTime postfix never fires on Inscryption? Is the 1344-fallback correlation known? Can doorstop be made to stop breaking Mono's P/Invoke resolution?
  3. It worked once earlier today (16:12): mod challenges and pagination arrows appeared, then never again. Any known nondeterministic/JIT-ordering factor for a one-off success?

LogOutput.log (key lines, 52 of 178)
[Message:   BepInEx] BepInEx 5.4.23.6 - Inscryption (2026/10/3 0:41:36)
[Message:   BepInEx] Preloader started
[Info   :   BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.23.6]
[Info   :   BepInEx] Loaded 1 patcher method from [BepInEx.MonoMod.Loader 1.0.0.0]
[Info   :   BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader]
[Info   :   MonoMod] Collecting target assemblies from mods
[Info   :   BepInEx] Patching [Assembly-CSharp] with [BepInEx.MonoMod.Loader.Patcher]
[Message:   MonoMod] [Main] Scanning for mods in directory.
[Message:   MonoMod] [ReadMod] Loading mod dir: E:\s\steamapps\common\Inscryption\BepInEx\monomod
[Message:   MonoMod] [ReadMod] Loading mod: E:\s\steamapps\common\Inscryption\BepInEx\monomod\Assembly-CSharp.APIPatcher.mm.dll
[Message:   MonoMod] [Main] Found 1 mods
[Message:   MonoMod] [Main] mm.PatchRefs(); fixup pre-pass
[Message:   MonoMod] [Main] mm.AutoPatch();
[Message:   MonoMod] [AutoPatch] Parsing rules in loaded mods
[Message:   MonoMod] [AutoPatch] PrePatch pass
[Message:   MonoMod] [AutoPatch] Patch pass
[Message:   MonoMod] [AutoPatch] PatchRefs pass
[Message:   MonoMod] [PostProcessor] PostProcessor pass #1
[Message:   MonoMod] [Main] Done.
[Message:   BepInEx] Preloader finished
[Message:   BepInEx] Chainloader ready
[Message:   BepInEx] Chainloader started
[Info   :   BepInEx] Loading [InscryptionAPI 2.24.1]
[Info   :   BepInEx] Loading [Bitty45's Sigils 2.1.1]
[Warning: Singleton] Got null in Singleton<DiskCardGame.BoardManager>.FindInstance
[Info   :   BepInEx] Loading [Bitty's Challenges 6.1.1]
[Info   :   BepInEx] Loading [UnityExplorer 4.8.2]
[Info   :   BepInEx] Loading [InscryptionCommunityPatch 2.24.0]
[Info   :   BepInEx] Loading [Extended Maps KCM 1.0.0]
[Info   :   BepInEx] Loading [SimplifiedChineseLanguagePack 1.7.7]
[Warning: Unity Log] Ability None ?????info?????
[Warning: Unity Log] Ability SteelTrap ?????info?????
[Warning: Unity Log] Ability SquirrelOrbit ?????info?????
[Warning: Unity Log] Ability DropRubyOnDeath ?????info?????
[Warning: Unity Log] Ability GemsDraw ?????info?????
[Warning: Unity Log] Ability Sentry ?????info?????
[Warning: Unity Log] Ability DoubleDeath ?????info?????
[Warning: Unity Log] Ability ActivatedRandomPowerBone ?????info?????
[Warning: Unity Log] Ability SubmergeSquid ?????info?????
[Warning: Unity Log] Ability BloodGuzzler ?????info?????
[Warning: Unity Log] Ability NUM_ABILITIES ?????info?????
[Error  :   BepInEx] Could not load [P03KCMRareCardLabelFix 1.1.0] because it has missing dependencies: zorro.inscryption.infiniscryption.p03kayceerun
[Info   :   BepInEx] Loading [Onion QOL 0.1.2]
[Info   :   BepInEx] Loading [New Infiniscryption Spells 1.2.4]
[Info   :   BepInEx] Loading [Abnormal Sigils 1.1.3]
[Info   :   BepInEx] Loading [Infiniscryption Pack Manager 1.0]
[Info   :   BepInEx] Loading [Achievements Plugin 1.0]
[Warning:Achievements Plugin] Could not find a definition for achievement NUM_ACHIEVEMENTS
[Info   :   BepInEx] Loading [WhistleWind Lobotomy Mod 2.1.2]
[Info   :   BepInEx] Loading [Infiniscryption Curses 0.1]
[Message:   BepInEx] Chainloader startup complete
[Warning: Singleton] Got null in Singleton<DiskCardGame.UIManager>.FindInstance
LifeProbe.log (41 lines)
?[23:01:29.088] ======             LifeProbe start, pid=11880
[23:01:29.090] SELF/Awake         go=BepInEx_Manager | id=-84 | activeSelf=True | activeInHierarchy=True | enabled=True | isActiveAndEnabled=True | hideFlags=None | scene.valid=True | scene.name='DontDestroyOnLoad' | scene.isLoaded=True | scene.buildIndex=-1 | rootCount=4 | componentsOnGo=8 | timeScale=1 | frame=0 | isPlaying=True
[23:01:29.090] SCENES/Awake       [0]'Start' loaded=False roots=0;  | active='Start'
[23:01:29.092] HOOK               Application.onBeforeRender registered
[23:01:29.092] HOOK               Camera.onPreCull registered
[23:01:29.092] HOOK               SceneManager.sceneLoaded registered
[23:01:29.092] HOOK               Application.logMessageReceived registered
[23:01:29.093] HOOK               background heartbeat thread started
[23:01:29.093] PATCH              ????? = Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null / loc=E:\s\steamapps\common\Inscryption\Inscryption_Data\Managed\Assembly-CSharp.dll
[23:01:29.099] PATCH              OK DiskCardGame.AscensionMenuScreens::Awake
[23:01:29.102] PATCH              OK DiskCardGame.AscensionMenuScreens::Start
[23:01:29.107] PATCH              OK DiskCardGame.AscensionMenuScreens::TransitionToGame
[23:01:29.112] PATCH              OK DiskCardGame.AscensionChallengeScreen::Start
[23:01:29.117] PATCH              OK DiskCardGame.AscensionChallengeScreen::OnEnable
[23:01:29.121] PATCH              OK DiskCardGame.AscensionChooseStarterDeckScreen::Start
[23:01:29.126] PATCH              OK DiskCardGame.AscensionChooseStarterDeckScreen::OnEnable
[23:01:29.131] PATCH              OK DiskCardGame.AscensionCardsSummaryScreen::Start
[23:01:29.143] PATCH              OK InscryptionAPI.Ascension.StarterDeckPaginator::OnEnable  (?? postfix ?=1)
[23:01:29.160] PATCH              OK InscryptionAPI.Ascension.AscensionChallengePaginator::OnEnable  (?? postfix ?=1)
[23:01:29.171] PATCH              OK InscryptionAPI.Ascension.AscensionChallengePaginator::InstantiateArrowObjects  (?? postfix ?=1)
[23:01:29.179] PATCH              Time.get_deltaTime patched, postfixes=1
[23:01:29.179] PATCHINFO          DiskCardGame.AscensionMenuScreens::Start prefixes=0 postfixes=2 transpilers=0 finalizers=0
[23:01:29.179] PATCHINFO             postfix owner=cyantist.inscryption.api method=AscensionChallengeScreenPatches::AddPaginatorSetupifierToMenuScreens
[23:01:29.179] PATCHINFO             postfix owner=local.lifeprobe.harmony method=LifeProbePlugin::Postfix
[23:01:29.179] PATCHINFO          DiskCardGame.AscensionChallengeScreen::OnEnable prefixes=0 postfixes=1 transpilers=0 finalizers=0
[23:01:29.179] PATCHINFO             postfix owner=local.lifeprobe.harmony method=LifeProbePlugin::Postfix
[23:01:29.180] SELF/OnEnable      go=BepInEx_Manager | id=-84 | activeSelf=True | activeInHierarchy=True | enabled=True | isActiveAndEnabled=True | hideFlags=None | scene.valid=True | scene.name='DontDestroyOnLoad' | scene.isLoaded=True | scene.buildIndex=-1 | rootCount=4 | componentsOnGo=8 | timeScale=1 | frame=0 | isPlaying=True
[23:01:31.095] THREAD             alive t=2s  managedFrameSnapshot=0  onBeforeRender=0  onPreCull=0
[23:01:33.099] THREAD             alive t=4s  managedFrameSnapshot=0  onBeforeRender=0  onPreCull=0
[23:01:35.108] THREAD             alive t=6s  managedFrameSnapshot=0  onBeforeRender=0  onPreCull=0
[23:01:37.118] THREAD             alive t=8s  managedFrameSnapshot=0  onBeforeRender=0  onPreCull=0
[23:01:39.132] THREAD             alive t=10s  managedFrameSnapshot=0  onBeforeRender=0  onPreCull=0
[23:01:41.135] THREAD             alive t=12s  managedFrameSnapshot=0  onBeforeRender=0  onPreCull=0
[23:01:43.141] THREAD             alive t=14s  managedFrameSnapshot=0  onBeforeRender=0  onPreCull=0
[23:01:45.142] THREAD             alive t=16s  managedFrameSnapshot=0  onBeforeRender=0  onPreCull=0
[23:01:45.424] SCENE              sceneLoaded 'Start' mode=2 frame=0
[23:01:45.424] SCENES/afterLoad:Start [0]'Start' loaded=True roots=5;  | active='Start'
[23:01:45.456] LIFECYCLE          OnApplicationQuit  startCalls=0 updateCalls=0 onBeforeRender=0 onPreCull=0 deltaTimeCalls=0
[23:01:47.143] THREAD             alive t=18s  managedFrameSnapshot=0  onBeforeRender=0  onPreCull=0
[23:01:47.313] LIFECYCLE          OnDisable, enabled=True
[23:01:47.753] LIFECYCLE          OnDestroy
Player.log (key lines, 2 of 51 non-fallback)
[Debug  :Achievements Plugin] Scene loaded Start. Initializing achievement popup handler
[Info   :Achievements Plugin] System.NullReferenceException: Object reference not set to an instance of an object

Activity

  1. Chaosyr commented on Nov 21, 2026

    @Chaosyr
    Collaborator
    1. If your on steam, why are you using GamepassSilencio, this is meant specifically for x64 versions of the game (e.g. XBOX Gamepass), Steam uses x86 so it is not needed.
  2. Chaosyr commented on Nov 21, 2026

    @Chaosyr
    Collaborator
    [Preloader.Entrypoint]
    
    ## The local filename of the assembly to target.
    # Setting type: String
    # Default value: UnityEngine.CoreModule.dll
    Assembly = UnityEngine.CoreModule.dll
    
    ## The name of the type in the entrypoint assembly to search for the entrypoint method.
    # Setting type: String
    # Default value: Application
    Type = Application
    
    ## The name of the method in the specified entrypoint assembly and type to hook and load Chainloader from.
    # Setting type: String
    # Default value: .cctor
    Method = .cctor
    

    is how the config is meant to look in that area to be clear.

  3. ffcc114514 commented on Nov 21, 2026

    @ffcc114514
    Author

    Confirmed - my [Preloader.Entrypoint] block is exactly that (Assembly = UnityEngine.CoreModule.dll / Type = Application / Method = .cctor). I restored it after the diagnostic test. So the config is not the issue.

    Here is the problem reduced to one line:

    A patched Time.get_deltaTime postfix has postfixes=1 in GetPatchInfo, but after a full run deltaTimeCalls=0.

    Time.deltaTime is read by the game every frame. If the detour were installed and working, that counter could not be 0. So the patch is registered but the native detour is never actually installed/executed.

    Same for every other target I hooked (AscensionMenuScreens::Start, AscensionChallengeScreen::OnEnable, AscensionChooseStarterDeckScreen::Start/OnEnable, AscensionCardsSummaryScreen::Start): all report PATCH OK, none ever fire.

    And plugin GameObjects get Awake + OnEnable but never Start or Update - consistent with the manager object never entering Unity's BehaviourManager.

    Supporting fact: with BepInEx injected there are 1344 Fallback handler could not load library .../Inscryption_Data/Mono/data-XXXX.dll; with winhttp.dll renamed away it is 0.

    Also worth knowing: the BepInExPack ships version.dll as x64 while winhttp.dll is x86 (verified with PE headers: game exe and UnityPlayer.dll are both PE32/x86). I removed the 64-bit version.dll; issue unchanged.

    So my questions are:

    1. Is there a known condition where BepInEx 5.4.23.x + MonoMod Loader on x86 Inscryption registers Harmony patches but the detours never apply? (backend issue, MonoMod RuntimeDetour failing on x86, or HarmonyBackend needing a specific value?)
    2. Should I do a full clean reinstall of the BepInExPack (not just renaming files) after removing that 64-bit version.dll, in case the loader state was poisoned?
    3. Anything else you want me to capture? I can run any probe / dump.

    Note: HarmonyBackend = auto currently; I also tried cecil with no change.

  4. Chaosyr commented on Nov 21, 2026

    @Chaosyr
    Collaborator

    I have tested the BIE pack thoroughly both times I've had it updated, I'll forward the issues to whistle who might be able to figure out deeper as to where the issue derives. Honestly, this is the first time I've seen something like this, so im not of much help, if we get a fix it'll be apart of #339.

  5. added
    bug
    on Nov 21, 2026
  6. added theissue type on Nov 21, 2026
  7. HumabHatterZed commented on Nov 21, 2026

    @HumabHatterZed
    Collaborator

    I'd recommend re-installing BepInEx if you haven't already. I haven't heard of anything like this occurring before with Steam, so it's possible the loader state was poisoned as you said. I'd also suggest, until the issue is resolved, disabling most of the mods you have except the API and maybe one content mod just to eliminate any potential problem sources.

  8. ffcc114514 commented on Nov 21, 2026

    @ffcc114514
    Author

    Did the full clean reinstall + minimal set (only API + Lobotomy), and got a useful signal.

    A. Fully wiped BepInEx (deleted the whole tree), then extracted the BepInExPack zip exactly as shipped (no cherry-picking files), then installed only:

    • InscryptionAPI 2.24.1 (+ dll copy in monomod for relink)
    • WhistleWind Lobotomy Mod + Abnormal Sigils + New Spell Card Toolkit

    B. Result was identical - plugins load, Start/Update never fire, no mod content. So loader state poisoning is ruled out (and thanks for the suggestion).

    C. The interesting part: the fallback count scales with the number of patchers.

    patchers loaded : 1   (BepInEx.Preloader only, MonoMod Loader missing)
      -> Fallback handler .../Mono/data-*.dll count : 239
    
    patchers loaded : 2   (BepInEx.Preloader + BepInEx.MonoMod.Loader 1.0.0)
      -> Fallback handler .../Mono/data-*.dll count : 1341
    

    Installing just BepInEx/patchers/MonoMod.dll + BepInEx.MonoMod.Loader.dll adds ~1100 fallback errors. That component is exactly what applies Assembly-CSharp.APIPatcher.mm.dll, and it is also the component whose result is "patches registered but detours never fire".

    So it looks like MonoMod Loader's patch pass on this 32-bit Assembly-CSharp triggers a large number of P/Invoke resolution failures, and the detour layer never becomes functional afterwards.

    Question: is that expected on the x86 build? Does the API require a specific MonoMod Loader version (or a MonoMod version) other than 1.0.0 that behaves correctly on x86? Or is there a way to make MonoMod resolve these data-*.dll lookups without hammering P/Invoke (e.g. a config, or shipping the missing Inscryption_Data/Mono dir)?

    Happy to run any further probe - I can produce before/after logs for each patcher count on demand.

  9. HumabHatterZed commented on Nov 21, 2026

    @HumabHatterZed
    Collaborator

    Not aware of any specific monomod version that's needed, other than the one that's downloadable on Thunderstore. Not aware of monomod causing resolution failures, but I've never probed it. You mentioned having cherry-picked the files initially makes me curious about your current files. I assume you have both the BepInEx folder and all its sub-stuff as well as the doorstop_libs that come with the BepInEx install. In regards to the doorstop_libs folder, there is an x86 and x64 version of its files so maybe that's something to look into? I admit I'm grasping at straws here; this is not my area of expertise.

    Miscellaneous thing I want to confirm: when you run Inscryption, the console pops up and stays up right? I've found that running Inscryption before opening Steam causes it to only load vanilla (not what you're experiencing but I just want to mention it).

  10. ffcc114514 commented on Nov 22, 2026

    @ffcc114514
    Author

    Two answers to your questions.

    1) The console does pop up and stays up.

    Inscryption  ConsoleWindowClass  "BepInEx 5.4.23.6 - Inscryption"
    Inscryption  UnityWndClass       "Inscryption"
    

    Both windows are present, the game process stays alive and responsive.

    2) doorstop_libs contains only Linux/macOS files, so it cannot matter on Windows.

    libdoorstop_universal.dylib    (macOS)
    libdoorstop_x64.so             (Linux)
    libdoorstop_x86.so             (Linux)
    

    There is no Windows .dll in that folder - on Windows, Doorstop is the winhttp.dll (or version.dll) in the game root. So that lead is a dead end, no need to spend time on it.

    3) But while checking, I confirmed the 32/64-bit mismatch you were hinting at:

    Inscryption.exe   x86 (PE32)
    UnityPlayer.dll   x86 (PE32)
    winhttp.dll       x86 (PE32)     <- correct
    version.dll       x64 (PE32+)    <- MISMATCH
    .doorstop_version 4.6.0
    

    So the BepInExPack ships a 64-bit version.dll next to a 32-bit game. A 32-bit process cannot load it. I removed it (only winhttp.dll remains), and the symptom is unchanged - so it is not the trigger, but it does look like a packaging bug in the pack itself, and it means anyone who happens to load version.dll instead of winhttp.dll gets a broken Doorstop silently.

    Current state after the clean reinstall: 4 plugins (API + Lobotomy + Abnormal Sigils + Spell Toolkit), console up, game runs, but Start/Update still never fire and no mod content.

    If it helps, I can dump the full directory listing of the game root + BepInEx tree so you can diff it against a known-good install.

  11. Chaosyr commented on Nov 22, 2026

    @Chaosyr
    Collaborator

    Yeah no, its fine to have both version.dll and winhttp.dll, that's why both are included, don't worry about it. Windows already handles choosing the correct one, I already verified this with arrowmaster when I was setting up 5.4.23.05's pack.

  12. Chaosyr commented on Nov 22, 2026

    @Chaosyr
    Collaborator

    Yeah no, its fine to have both version.dll and winhttp.dll, that's why both are included, don't worry about it. Windows already handles choosing the correct one, I already verified this with arrowmaster when I was setting up 5.4.23.05's pack.

    Also this is legitly clarified on the Thunderstore package lol: https://thunderstore.io/c/inscryption/p/BepInEx/BepInExPack_Inscryption/

  13. Chaosyr commented on Nov 22, 2026

    @Chaosyr
    Collaborator

    Should also ask, are you using a Mod Manager or Manual install? If you haven't already done so, try a Mod Manager. ^^

  14. 7 remaining items

  15. ffcc114514 commented on Nov 22, 2026

    @ffcc114514
    Author

    Applied all three suggestions. One of them produced a real change.

    1) monomod/ now contains only the patcher

    monomod/
      Assembly-CSharp.APIPatcher.mm.dll   6656 B
    

    Removed the duplicate InscryptionAPI.dll and InscryptionCommunityPatch.dll.

    2) Copied winhttp.dll over version.dll so both are the same x86 binary

    Before: version.dll 26624 B x64, winhttp.dll 22528 B x86
    After: both 22528 B x86

    3) doorstop_libs - understood, dropping that lead, thanks.

    Result: the fallback storm is gone.

    Fallback handler could not load library .../Mono/data-*.dll
      before this change : 1353
      after              : 0
    

    So an x86 Doorstop entry point removed all 1353 of them. That was the direct trigger.

    But the main symptom is unchanged:

    • BepInEx injects, 2 patchers load, 5 plugins load
    • InscryptionAPI 2.24.2 + InscryptionCommunityPatch 2.24.2 + New Infiniscryption Spells 1.2.4 + Abnormal Sigils 1.1.3 + WhistleWind Lobotomy Mod 2.1.2 all load and report init success
    • Inserted N dialogue event(s) still never appears, with LogLevels = All on both [Logging] and [Logging.Disk]
    • In-game: still only the vanilla 8 starter decks, no mod content

    So the fallback storm and the dead detour are two separate problems. Fixing the fallbacks did not fix the detours.

    New question: with zero P/Invoke failures now, and Supports SRE: False, HarmonyX must fall back to MonoMod RuntimeDetour (BepInEx/core/MonoMod.RuntimeDetour.dll, x86, 105984 B). Is there any known case where that silently no-ops on a 32-bit Mono without reporting an error? Is there any diagnostic flag I can turn on in MonoMod to see it attempt (and fail) to install a detour?

  16. HumabHatterZed commented on Nov 22, 2026

    @HumabHatterZed
    Collaborator

    Once again, I'm unaware of any known cases of silent no-ops. As far as diagnostics go, the only thing I can suggest is setting the Harmony.Logger to show you everything, assuming you haven't set that already (I know you set standard logging and logging.disk, but didn't see you mention harmony). Whether that would provide any relevant information, I don't know. Going to futz around with my files and see if I can recreate your situation on my end.

  17. HumabHatterZed commented on Nov 22, 2026

    @HumabHatterZed
    Collaborator

    There is a mono debugger server option in doorstop_config.ini, but I don't see one anywhere else.

  18. ffcc114514 commented on Nov 22, 2026

    @ffcc114514
    Author

    Enabled Harmony logging as you suggested ([Harmony.Logger] LogChannels = Debug, Info, Warn, Error). The result is the strangest data point so far.

    Harmony reports complete success. Zero errors.

    log lines total      : 5034
    Warning              : 0
    Error                : 0
    Fatal                : 0
    "Running ILHook"     : 899 times
    "Writing prefixes"   : 233
    "Writing postfixes"  : 350
    

    Sample:

    [Info: HarmonyX] ### Harmony id=cyantist.inscryption.api, version=2.9.0.0,
      location=...\BepInEx\core\0Harmony.dll, env/clr=4.0.30319.17020,
      platform=Win32NT, ptrsize:runtime/env=4/Bits64, Windows
    [Info: HarmonyX] Patching void DiskCardGame.AscensionMenuScreens::TransitionToGame(bool newRun)
      with 1 prefixes, 0 postfixes, 0 transpilers, 0 finalizers
    [Info: HarmonyX] Running ILHook manipulator on void DiskCardGame.AscensionMenuScreens::TransitionToGame(bool newRun)
    [Info: HarmonyX] Writing prefixes
    

    So Harmony is not going through RuntimeDetour at all here - it uses ILHook (rewriting the IL body directly), and it reports writing the modifications.

    But none of them execute. 899 successful ILHooks, 583 method bodies rewritten, zero errors, zero effect.

    Also tried HarmonyBackend = cecil plus deleting the whole BepInEx/cache folder - identical (899 ILHooks, 0 errors, still nothing in game).

    One correlation worth noting - the fallback count tracks the cache, not the backend:

    with BepInEx/cache/*.dat present  : 0 fallback lines
    after deleting the cache folder   : 1353 fallback lines
    

    Main symptom identical either way, so the fallbacks are unrelated to the detour problem.

    My working theory: Mono JIT-compiles the affected Assembly-CSharp methods before Harmony's ILHooks land, and the rewritten IL never gets re-JITted. If that's what's happening - is there any way to force a re-JIT, or to make the patch land earlier? I know API does Harmony.PatchAll() in OnEnable - is that too late on this runtime?

    Any insight would help, especially if you manage to reproduce it on your side.

  19. HumabHatterZed commented on Nov 22, 2026

    @HumabHatterZed
    Collaborator

    Unsure if there's a way to force a re-JIT or make patches occur earlier (aside from messing with the preloader and - maybe - doorstop entrypoints). Since the patches are apparently being applied correctly, the patches being called in OnEnable shouldn't matter.

    I've been unsuccessful in recreating your issue so far. Haven't played around with doorstop's target assembly since I do manual and I assume wouldn't have any significant effect. Outside a breakthrough on my end or trying every possible HarmonyBackend somehow working, I'd say try looking for help in the BepInEx discord or github (though we use an older BepInEx version) since this isn't an Inscryption API issue and my expertise on BepInEx is minimal.

    You can try playing around with some of the BepInEx options like the chainloader or runtime patches, and I'll update you if I find anything else.

  20. OnHyex commented on Nov 22, 2026

    @OnHyex

    Time.deltaTime is a property with the Attribute [MethodImpl(MethodImplOptions.InternalCall)], this means that the get method is a stub method implemented in the clr, unity mono not in il. Patching this method through harmony, monomod or other il manipultion based methods will not work.

  21. ffcc114514 commented on Nov 22, 2026

    @ffcc114514
    Author

    Good catch on Time.deltaTime being InternalCall - that probe was invalid. deltaTimeCalls=0 proves nothing and I'm dropping it as evidence. Thanks OnHyex.

    Correcting the record: the "899 ILHooks, zero effect" claim was built on that bad probe, so treat it as unverified rather than as proof that patching fails.

    What still stands is independent of any patched method - it's about lifecycle dispatch:

    1. Every plugin's .cfg gets generated on first run, which means Awake executes (BepInEx writes config from the plugin's ConfigFile binding).
    2. Start() never runs. The strongest indicator: InscryptionAPI logs "Inserted N dialogue event(s)!" as the last line of its Start(), and that line never appears - even with [Logging] and [Logging.Disk] both at LogLevels = All.
    3. Update() never runs. Verified with a standalone mod that has no API dependency at all: Kopie-Freecam_mode starts a coroutine from Awake (visible in the log as GLOBALMOD.Plugin+<Awake>d__8::MoveNext()) and detects its hotkey in Update. Pressing x then z in a 3D scene does nothing.
    4. Meanwhile Awake, OnEnable, OnDestroy and OnApplicationQuit all fire normally (verified by a probe that logs each of them).

    So the narrowed question is:

    Why would Unity dispatch Awake/OnEnable on injected plugin GameObjects, but never dispatch Start, Update, or coroutines - on this machine only?

    Context that may matter:

    • Windows 11 26H2, Build 26300 (installed 2026-07-23)
    • Inscryption is a 32-bit Unity 2019.4.24f1 build (x86), Mono 4.0.30319.17020, Supports SRE: False
    • Reproduced across BepInEx 5.4.19.0 / 5.4.23.5 / 5.4.23.6, API 2.3.0 / 2.24.1 / 2.24.2, after a full Steam reinstall (hash-verified) with default configs and a cleared cache
    • Vanilla runs fine; only injected GameObjects are affected

    If anyone has seen "Awake fires but Start never does" on a modern Windows build, that is exactly the lead I need.

  22. Chaosyr commented on Nov 22, 2026

    @Chaosyr
    Collaborator

    Good catch on Time.deltaTime being InternalCall - that probe was invalid. deltaTimeCalls=0 proves nothing and I'm dropping it as evidence. Thanks OnHyex.

    Correcting the record: the "899 ILHooks, zero effect" claim was built on that bad probe, so treat it as unverified rather than as proof that patching fails.

    What still stands is independent of any patched method - it's about lifecycle dispatch:

    1. Every plugin's .cfg gets generated on first run, which means Awake executes (BepInEx writes config from the plugin's ConfigFile binding).
    2. Start() never runs. The strongest indicator: InscryptionAPI logs "Inserted N dialogue event(s)!" as the last line of its Start(), and that line never appears - even with [Logging] and [Logging.Disk] both at LogLevels = All.
    3. Update() never runs. Verified with a standalone mod that has no API dependency at all: Kopie-Freecam_mode starts a coroutine from Awake (visible in the log as GLOBALMOD.Plugin+<Awake>d__8::MoveNext()) and detects its hotkey in Update. Pressing x then z in a 3D scene does nothing.
    4. Meanwhile Awake, OnEnable, OnDestroy and OnApplicationQuit all fire normally (verified by a probe that logs each of them).

    So the narrowed question is:

    Why would Unity dispatch Awake/OnEnable on injected plugin GameObjects, but never dispatch Start, Update, or coroutines - on this machine only?

    Context that may matter:

    • Windows 11 26H2, Build 26300 (installed 2026-07-23)
    • Inscryption is a 32-bit Unity 2019.4.24f1 build (x86), Mono 4.0.30319.17020, Supports SRE: False
    • Reproduced across BepInEx 5.4.19.0 / 5.4.23.5 / 5.4.23.6, API 2.3.0 / 2.24.1 / 2.24.2, after a full Steam reinstall (hash-verified) with default configs and a cleared cache
    • Vanilla runs fine; only injected GameObjects are affected

    If anyone has seen "Awake fires but Start never does" on a modern Windows build, that is exactly the lead I need.

    Give this a try: BepInEx/BepInEx#1263

    Additionally FreeCam by kopie isnt good to test with (outdated), try Unity Explorer. ^^

  23. ffcc114514 commented on Nov 22, 2026

    @ffcc114514
    Author

    Tried UnityExplorer 4.8.2 - the modern, maintained option you suggested.

    Result: it initialises completely but its hotkey does nothing.

    [Info: BepInEx] Loading [UnityExplorer 4.8.2]
    [Message:UnityExplorer] UnityExplorer 4.8.2 initializing...
    [Message:UnityExplorer] [UniverseLib] UniverseLib 1.4.3 initializing...
    [Message:UnityExplorer] [UniverseLib] Finished UniverseLib initial setup.
    [Message:UnityExplorer] Initialized UnityCrashPrevention for: Canvas.get_renderingDisplaySize
    

    Config confirms UnityExplorer Toggle = F7. Pressed F7 with the game focused (verified via GetForegroundWindow) - no panel appears.

    UnityExplorer reads that toggle in Update, so this is the same class of failure as Freecam, but from a tool that is currently maintained.

    Also ruled out the #1263 theory. I disabled the BepInEx console ([Logging.Console] Enabled = false, verified no console window appears) and re-tested - identical result. So it is not the console buffer flush.

    What is left, stated as narrowly as I can:

    • Awake and OnEnable execute on injected plugin GameObjects (configs get written; UnityExplorer finishes UniverseLib setup)
    • Start, Update and coroutines never execute
    • OnDestroy / OnApplicationQuit execute on shutdown
    • Vanilla game runs perfectly; only injected GameObjects are affected
    • Reproduced across BepInEx 5.4.19.0 / .23.5 / .23.6, API 2.3.0 / 2.24.1 / 2.24.2, and after a hash-verified full Steam reinstall with default configs

    That is the whole picture. I do not have another probe idea that does not rely on a method Unity implements natively - if you have one, I will run it.

  24. xADDBx commented on Nov 22, 2026

    @xADDBx

    Start, Update and coroutines never execute

    I could be completely wrong; but BepInEx has a HideManagerGameObject config option. Setting this to true helped me fix a similar issue for another game in the past.

  25. Chaosyr commented on Nov 22, 2026

    @Chaosyr
    Collaborator

    might have a pinch of a lead: BepInEx/BepInEx#1393 which partly has to do with HideManagerGameObject as well. As mentioned by @xADDBx ^^

  26. ffcc114514 commented on Nov 22, 2026

    @ffcc114514
    Author

    Closing this - solved, and it was my mistake, not the API's.

    Root cause: steam_appid.txt was missing from the game directory.

    Inscryption is a Steamworks game. I was launching it via Start-Process Inscryption.exe instead of through Steam. Without steam_appid.txt in the game folder, Steamworks fails to initialise and the process exits silently (exit 0) before ever entering the main loop.

    Measured with a probe on the plugin's own GameObject, A/B (only difference = the appid file):

                                         without appid   with appid
    Awake / OnEnable                     run             run
    Start                                never           runs at frame 1
    Update                               never           840 frames in 25 s
    Time.frameCount                      stuck at 0      increments normally
    Application.onBeforeRender           0 calls         every frame
    SceneManager.sceneLoaded             fires once,     normal
                                         exits 25 ms later
    OnApplicationQuit / OnDestroy        run             run
    Player.log "GfxDevice: creating..."  MISSING         present
    Player.log "Received stats and ...  MISSING         present
                 achievements from Steam"
    

    Awake/OnEnable run regardless because Unity dispatches them synchronously from AddComponent. Start/Update/coroutines need the main loop. The game ran for zero frames - which produces exactly the "Awake fires, Start doesn't" pattern, and that is why it looked identical to #1393.

    Retractions - a lot of what I posted was noise

    • The Time.deltaTime argument was invalid (InternalCall, unpatchable). OnHyex was right, and the "899 ILHooks, zero effect" claim rested on it - both withdrawn.
    • #1393 was a red herring. Its symptom description matched perfectly and sent me down: entrypoint variations (MonoBehaviour, SceneManager, Debug, SceneLoader, LoadingScreenManager), BepInEx 5.4.19 / 5.4.23.5 / 5.4.23.6, API 2.3.0 / 2.24.1 / 2.24.2 + nightly, HideManagerGameObject, HarmonyBackend = cecil, console disabled (#1263), cache cleared, and a full hash-verified Steam reinstall. None of it was relevant - the game never started.
    • The 1344 fallback lines, the version.dll x64/x86 mismatch, the doorstop_libs question - all unrelated.
    • Type = MonoBehaviour really does fail on Unity 2019 (UnityEngine.MonoBehaviour has no .cctor - verified with Mono.Cecil), but that was answering a question that never needed asking.

    The lesson worth keeping

    For anyone landing here from "plugins load but Start/Update never run":

    1. Verify the host process actually reached its main loop before blaming the loader. Concretely: read Time.frameCount from a plugin's Awake, or check Player.log for GfxDevice: creating device client. If frameCount is stuck at 0, the game is not running and nothing else matters.
    2. "The process exists" is not "the game is running." Get-Process hands back a handle even for a process that is about to exit.
    3. For Steamworks games, check steam_appid.txt and how the game was launched before touching any BepInEx config.

    Sorry for the wasted attention - genuinely. And thanks to Chaosyr, HumabHatterZed, OnHyex and xADDBx for the patience.

  27. HumabHatterZed commented on Nov 22, 2026

    @HumabHatterZed
    Collaborator

    No worries, just glad you managed to resolve it. Happy modding!

  28. Chaosyr commented on Nov 22, 2026

    @Chaosyr
    Collaborator

    No worries, just glad you managed to resolve it. Happy modding!

    This ⤴️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions