Skip to content

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

Open

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 theissue type on Nov 21, 2026
  6. 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.

  7. 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.

  8. 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).

  9. 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.

  10. 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.

  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.

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

  12. 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. ^^

  13. Chaosyr commented on Nov 22, 2026

    @Chaosyr
    Collaborator

    Also, if you can try this version, we've made a couple dozen changes over the last 2 months, wonder if something in that woulda helped

    https://nightly.link/InscryptionModding/InscryptionAPI/actions/artifacts/14675251954.zip

  14. ffcc114514 commented on Nov 22, 2026

    @ffcc114514
    Author

    Two more data points, both negative - but they narrow it down a lot.

    1) Nightly 2.24.2: identical behaviour.

    I swapped the API in the profile for the artifact you linked (manifest confirms version_number: 2.24.2, InscryptionAPI.dll 8155.5 KB vs 8071.7 KB for 2.24.1):

    fallback data-*.dll count : 1353      (2.24.1 was 1341)
    Inserted N dialogue       : never appears
    deltaTimeCalls            : 0
    

    Whatever changed in the last 2 months did not affect this.

    2) Gale Mod Manager: installed, and the launch path splits into two different behaviours.

    Gale 1.24.0 installed, Inscryption profile created, and these installed through Gale:

    • BepInEx-BepInExPack_Inscryption-5.4.2306
    • BepInEx-MonoMod_Loader_Inscryption-1.0.0
    • API_dev-API (nightly 2.24.2)
    • WhistleWind-WhistleWind_Lobotomy_Mod-2.1.2 (+ Abnormal Sigils, New Spell Card Toolkit as deps)

    Gale's own launch button does NOT inject BepInEx at all. Its log:

    launching game=inscryption command="E:\s\steam.exe" "-applaunch" "1092790"
      "--doorstop-enabled" "true"
      "--doorstop-target-assembly" "...\Gale\inscryption\profiles\Default\BepInEx\core\BepInEx.Preloader.dll"
    

    The game starts and runs, but Player.log contains zero BepInEx/Doorstop lines - it is vanilla.

    But running Inscryption.exe directly, with doorstop_config.ini's target_assembly pointed at the Gale profile, DOES inject:

    [Info   :   BepInEx] Loading [WhistleWind Lobotomy Mod 2.1.2]
    [Debug  :WhistleWind Lobotomy Mod] Loading dialogue...
    [Debug  :WhistleWind Lobotomy Mod] Loading abilities...
    [Debug  :WhistleWind Lobotomy Mod] Loading cards...
    [Info   :WhistleWind Lobotomy Mod] Plugin loaded! Let's get to work manager!
    [Message:   BepInEx] Chainloader startup complete
    

    ...though deltaTimeCalls is still 0 after that.

    So this rules out:

    • API version - 2.24.1 and nightly 2.24.2 behave identically
    • manual install layout - a Gale-generated profile behaves the same
    • the mod files themselves - Lobotomy loads and initialises fine

    What remains: Harmony's detour never applies on this machine, and separately Doorstop only engages when the exe is started directly rather than through Steam's -applaunch.

    One question: is steam.exe -applaunch <appid> --doorstop-enabled --doorstop-target-assembly expected to work for Steam Inscryption? If yes, then that is a second, independent problem on this machine and I'll dig into why winhttp.dll is not being picked up on that path.

  15. HumabHatterZed commented on Nov 22, 2026

    @HumabHatterZed
    Collaborator

    I would assume so, but I haven't verified it myself.

    In case you haven't looked already, this lists some common BepInEx issues and possible solutions to try. If that's unhelpful, feel free to dump the directory listing and I'll see how it compares to my system.

  16. ffcc114514 commented on Nov 22, 2026

    @ffcc114514
    Author

    Here's the full picture. Current state: running from a Gale-managed profile, with doorstop_config.ini in the game root pointing at it. BepInEx injects and Lobotomy loads, but Harmony detours still never fire.

    Key observation up front: version.dll is x64 (26624 B) while winhttp.dll is x86 (22528 B) and the game is x86. You said both being present is fine because Windows picks the loadable one - but if Doorstop's entry point is actually version.dll on this path, it would explain the steam.exe -applaunch case not injecting at all.

    ### 1. Game root (E:\s\steamapps\common\Inscryption) - top level only
      .doorstop_version                           5 B  
      Inscryption.exe                        640000 B  
      ModdedSaveFile.gwsave                   88704 B  
      SaveFile-Backup.gwsave                 101425 B  
      SaveFile.gwsave                        101425 B  
      UnityCrashHandler32.exe                921600 B  
      UnityPlayer.dll                      20148736 B  x86
      doorstop_config.ini                      1539 B  
      doorstop_config.ini.bak-gale             1460 B  
      run_bepinex.sh                          11694 B  
      steam_autocloud.vdf                        52 B  
      version.dll                             26624 B  x64
      winhttp.dll                             22528 B  x86
    
    ### 2. doorstop_config.ini (game root)
      [General]
      enabled = true
      target_assembly=C:\Users\admin\AppData\Roaming\com.kesomannen.gale\inscryption\profiles\Default\BepInEx\core\BepInEx.Preloader.dll
      redirect_output_log = false
      boot_config_override =
      ignore_disable_switch = false
      [UnityMono]
      dll_search_path_override =
      debug_enabled = false
      debug_address = 127.0.0.1:10000
      debug_suspend = false
    
    ### 3. Gale profile being launched (C:\Users\admin\AppData\Roaming\com.kesomannen.gale\inscryption\profiles\Default)
      (profile root)/
        .doorstop_version                                 5 B  
        doorstop_config.ini                            1460 B  
        run_bepinex.sh                                11694 B  
        version.dll                                   26624 B  x64
        winhttp.dll                                   22528 B  x86
        BepInEx/
          LogOutput.log                                  3193 B  
          cache/
            chainloader_typeloader.dat                     1883 B  
            harmony_interop_cache.dat                      1115 B  
          config/
            BepInEx.cfg                                    5529 B  
            community.inscryption.patch.cfg                3921 B  
            cyantist.inscryption.api.cfg                   1605 B  
            whistlewind.inscryption.abnormalsigils.cfg        871 B  
            whistlewind.inscryption.lobotomycorp.cfg       4782 B  
            zorro.inscryption.infiniscryption.spells.cfg        590 B  
          core/
            0Harmony.dll                                 204800 B  x86
            0Harmony.xml                                 267107 B  
            0Harmony20.dll                               112640 B  x86
            BepInEx.Harmony.dll                            6656 B  x86
            BepInEx.Harmony.xml                            4056 B  
            BepInEx.Preloader.dll                         46592 B  x86
            BepInEx.Preloader.xml                         10230 B  
            BepInEx.dll                                  129024 B  x86
            BepInEx.xml                                   89835 B  
            HarmonyXInterop.dll                           23552 B  x86
            Mono.Cecil.Mdb.dll                            43008 B  x86
            Mono.Cecil.Pdb.dll                            86528 B  x86
            Mono.Cecil.Rocks.dll                          27648 B  x86
            Mono.Cecil.dll                               339456 B  x86
            MonoMod.RuntimeDetour.dll                    105984 B  x86
            MonoMod.RuntimeDetour.xml                      9414 B  
            MonoMod.Utils.dll                            187904 B  x86
            MonoMod.Utils.xml                             78973 B  
          monomod/
            Assembly-CSharp.APIPatcher.mm.dll              6656 B  x86
            InscryptionAPI.dll                          8351232 B  x86
            InscryptionCommunityPatch.dll                495104 B  x86
            API_dev-API/
              Assembly-CSharp.APIPatcher.mm.dll              5632 B  x86
          patchers/
            BepInEx-MonoMod_Loader_Inscryption/
              BepInEx.MonoMod.Loader.dll                     9216 B  x86
              MonoMod.dll                                   66048 B  x86
          plugins/
            API_dev-API/
              !!INSTALLATION!!.txt                            217 B  
              CHANGELOG.md                                  45292 B  
              InscryptionAPI.dll                          8351232 B  x86
              InscryptionAPI.xml                          1043466 B  
              InscryptionCommunityPatch.dll                495104 B  x86
              README.md                                     15438 B  
              icon.png                                       2011 B  
              manifest.json                                   433 B  
            BepInEx-MonoMod_Loader_Inscryption/
              README.md                                      1297 B  
              icon.png                                       5105 B  
              manifest.json                                   282 B  
            WhistleWind-New_Spell_Card_Toolkit/
              CHANGELOG.md                                   4350 B  
              Infiniscryption.Spells.dll                   141824 B  x86
              README.md                                     11977 B  
              icon.png                                     103508 B  
              manifest.json                                   335 B  
            WhistleWind-WhistleWind_Abnormal_Sigils/
              CHANGELOG.md                                   9035 B  
              README.md                                     13674 B  
              WhistleWind.AbnormalSigils.dll               604672 B  x86
              icon.png                                       7848 B  
              manifest.json                                   364 B  
            WhistleWind-WhistleWind_Lobotomy_Mod/
              CHANGELOG.md                                  34873 B  
              README.md                                     21094 B  
              WhistleWindLobotomyMod.dll                  4629504 B  x86
              icon.png                                      34020 B  
              manifest.json                                   508 B  
        doorstop_libs/
          libdoorstop_universal.dylib                  120368 B  
          libdoorstop_x64.so                            31392 B  
          libdoorstop_x86.so                            34496 B  
    

    Things that might differ from your setup:

    1. version.dll x64 vs winhttp.dll x86 in the same folder
    2. BepInEx/monomod/ contains three dlls plus an API_dev-API/ subfolder with a second copy of the patcher - that subfolder is probably wrong, should I remove it?
    3. doorstop_config.ini has an absolute target_assembly path pointing into AppData (I did that to force it to load the Gale profile; the Gale original uses a relative BepInEx\core\BepInEx.Preloader.dll)
    4. 0Harmony.dll in BepInEx/core is 204800 B (HarmonyX 2.9.0)

    If anything looks different from your working install, that would be the most useful lead.

  17. HumabHatterZed commented on Nov 22, 2026

    @HumabHatterZed
    Collaborator

    You only need Assembly-CSharp.APIPatcher.mm.dll in the monomods/ folder; the duplicate API and community patch files can be removed.

    Another difference I see is the doorstop_libs doesn't have the .dylib file for x64 and x86; just the universal. May mean nothing but I'll bring it up anyways.

    If you haven't already, try renaming winhttp to version and see if that fixes anything (taken from the BepInEx troubleshooting page). I don't know if that'd do anything different than deleting the x64 version.dll, but no harm in trying.

  18. HumabHatterZed commented on Nov 22, 2026

    @HumabHatterZed
    Collaborator

    Also the duplicate APIPatcher file can be removed as well; to clarify, there should only be one file in monomods/.

  19. Chaosyr commented on Nov 22, 2026

    @Chaosyr
    Collaborator

    You only need Assembly-CSharp.APIPatcher.mm.dll in the monomods/ folder; the duplicate API and community patch files can be removed.

    Another difference I see is the doorstop_libs doesn't have the .dylib file for x64 and x86; just the universal. May mean nothing but I'll bring it up anyways.

    If you haven't already, try renaming winhttp to version and see if that fixes anything (taken from the BepInEx troubleshooting page). I don't know if that'd do anything different than deleting the x64 version.dll, but no harm in trying.

    BIE devs made mac use the same doorstop dylib, so it doesnt matter here ^^

  20. 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?

  21. 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.

  22. 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.

  23. 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.

  24. 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.

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions