satisfactorymodding / satisfactorymodding/SatisfactoryModLoader

Error upon launching game with any mod, no matter what it is.

Open
#131 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cantfix
Dominant language
C++
Stars
344
Forks
225
PR merge metrics
No merged PRs in 30d

Description

here are the logs:

"Fatal error: [File:C:/ar-sml/_work/SatisfactoryModLoader/SatisfactoryModLoader/SML/Plugins/SML/Source/SML/Private/Patching/NativeHookManager.cpp] [Line: 44]
Hooking function UCheatManager::Ghost failed: funchook failed: Failed to execute VirtualQuery (addr=0x7fffffff0000, error=87(The parameter is incorrect.))

0x00007ff8c7e6474c KERNELBASE.dll!UnknownFunction []
0x00007ff80127e076 FactoryGame-Core-Win64-Shipping.dll!ReportAssert() [D:\ws\SB-lowprio\UE4\Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformCrashContext.cpp:1623]
0x00007ff801280806 FactoryGame-Core-Win64-Shipping.dll!FWindowsErrorOutputDevice::Serialize() [D:\ws\SB-lowprio\UE4\Engine\Source\Runtime\Core\Private\Windows\WindowsErrorOutputDevice.cpp:78]
0x00007ff8011f939d FactoryGame-Core-Win64-Shipping.dll!FOutputDevice::LogfImpl() [D:\ws\SB-lowprio\UE4\Engine\Source\Runtime\Core\Private\Misc\OutputDevice.cpp:61]
0x00007fffefbb263b FactoryGame-SML-Win64-Shipping.dll!FNativeHookManagerInternal::RegisterHookFunction() [C:\ar-sml_work\SatisfactoryModLoader\SatisfactoryModLoader\SML\Plugins\SML\Source\SML\Private\Patching\NativeHookManager.cpp:78]
0x00007fffefbb4b3c FactoryGame-SML-Win64-Shipping.dll!FCheatManagerPatch::RegisterPatch() [C:\ar-sml_work\SatisfactoryModLoader\SatisfactoryModLoader\SML\Plugins\SML\Source\SML\Private\Patching\Patch\CheatManagerPatch.cpp:52]
0x00007fffefba3134 FactoryGame-SML-Win64-Shipping.dll!FSatisfactoryModLoader::InitializeModLoading() [C:\ar-sml_work\SatisfactoryModLoader\SatisfactoryModLoader\SML\Plugins\SML\Source\SML\Private\SatisfactoryModLoader.cpp:175]
0x00007fffefb94c27 FactoryGame-SML-Win64-Shipping.dll!TBaseStaticDelegateInstance<void __cdecl(void),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [C:\ar-sml_work\SatisfactoryModLoader\SatisfactoryModLoader\ue4\lb\win\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:731]
0x00007ff65cf356ad FactoryGame-Win64-Shipping.exe!TMulticastDelegate<void __cdecl(void),FDefaultDelegateUserPolicy>::Broadcast() [D:\ws\SB-lowprio\UE4\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:955]
0x00007ff65cf31dbd FactoryGame-Win64-Shipping.exe!FEngineLoop::Init() [D:\ws\SB-lowprio\UE4\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4015]
0x00007ff65cf38c95 FactoryGame-Win64-Shipping.exe!GuardedMain() [D:\ws\SB-lowprio\UE4\Engine\Source\Runtime\Launch\Private\Launch.cpp:155]
0x00007ff65cf38daa FactoryGame-Win64-Shipping.exe!GuardedMainWrapper() [D:\ws\SB-lowprio\UE4\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
0x00007ff65cf43ae7 FactoryGame-Win64-Shipping.exe!WinMain() [D:\ws\SB-lowprio\UE4\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
0x00007ff65cf4450e FactoryGame-Win64-Shipping.exe!__scrt_common_main_seh() [d:\agent_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
0x00007ff8c8d954e0 KERNEL32.DLL!UnknownFunction []
0x00007ff8ca54485b ntdll.dll!UnknownFunction []"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in SML/Plugins/SML/Source/SML/Private/Patching/NativeHookManager.cpp at the reported failure around lines 44 and 78, then trace the call from Patch/CheatManagerPatch.cpp line 52 and SatisfactoryModLoader.cpp line 175. Reproduce the launch failure with a mod and determine why funchook's VirtualQuery call fails; done means modded game startup no longer aborts at this hook registration.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, unreal-engine
Domain
game-dev, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.