Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VotV] DLL in external mod folder not being accessed or loaded by shimloader and UE4SS using --mod-dir #4

Open
modestimpala opened this issue Sep 8, 2024 · 0 comments

Comments

@modestimpala
Copy link

Issue Description

I'm trying to use a custom DLL for Voices of the Void, using unreal-shimloader and UE4SS. However, the DLL is never being accessed or loaded. The shimloader appears to be working for other files, but not for the DLL. It does report rerouting the dlls folder but does not reroute main.dll

Environment

  • Game: Voices of the Void 0.8e
  • unreal-shimloader version: latest
  • UE4SS version: v3.0.0 Beta #0 - Git SHA #5319a0e
  • From VotV Thunderstore
  • Operating System: Windows 11

I also tested this from my Windows 11 laptop with the same environment and got the same results.

Mod Structure

shimloader\mod\Unknown-testing\dlls\main.dll
image

Current Behavior

  • The game runs with the shimloader and UE4SS
  • Other mod files (like Lua scripts) appear to be loaded correctly, even from the same folder
    image
  • The main.dll file is never accessed or loaded
    image

When placed manually in Win64/Mods/Unknown-testing/dlls/main.dll, the dll loads as expected.
image

This suggests it may be a shimloader problem rather than UE4SS. From research, error code: 0x7e can indicate irregularities with UE4SS builds, but the .dll is built on the proper commit and copying over the UE4SS version the dll is built from results in the same problem.

Expected Behavior

The main.dll file should be accessed and loaded as part of the mod initialization process using hook reroutes.

Logs and Debugging Information

Shimloader logs show successful rerouting for other files, but no attempts to access the DLL:

[2024-09-08 05:50:10.528 DEBUG src\hooks.rs:294] [getfileattributesexw_detour] "C:\\Users\\user\\OneDrive\\Desktop\\votv\\pa08_0017\\WindowsNoEditor\\VotV\\Binaries\\Win64\\Mods\\Unknown-testing\\dlls" to "C:\\Users\\user\\AppData\\Roaming\\r2modmanPlus-local\\VotV\\profiles\\Default\\shimloader\\mod\\Unknown-testing\\dlls"
[2024-09-08 05:50:10.528 DEBUG src\hooks.rs:311] "Ǩ\0"
[2024-09-08 05:50:10.528 DEBUG src\hooks.rs:312] -> 1
[2024-09-08 05:50:10.528 DEBUG src\hooks.rs:294] [getfileattributesexw_detour] "C:\\Users\\user\\OneDrive\\Desktop\\votv\\pa08_0017\\WindowsNoEditor\\VotV\\Binaries\\Win64\\Mods\\Unknown-testing\\dlls" to "C:\\Users\\user\\AppData\\Roaming\\r2modmanPlus-local\\VotV\\profiles\\Default\\shimloader\\mod\\Unknown-testing\\dlls"
[2024-09-08 05:50:10.528 DEBUG src\hooks.rs:311] "\0"
[2024-09-08 05:50:10.528 DEBUG src\hooks.rs:312] -> 1

[2024-09-08 05:50:10.528 DEBUG src\hooks.rs:294] [getfileattributesexw_detour] "C:\\Users\\user\\OneDrive\\Desktop\\votv\\pa08_0017\\WindowsNoEditor\\VotV\\Binaries\\Win64\\Mods\\Unknown-testing\\scripts" to "C:\\Users\\user\\AppData\\Roaming\\r2modmanPlus-local\\VotV\\profiles\\Default\\shimloader\\mod\\Unknown-testing\\scripts"
[2024-09-08 05:50:10.528 DEBUG src\hooks.rs:311] "\0"
[2024-09-08 05:50:10.528 DEBUG src\hooks.rs:312] -> 1
[2024-09-08 05:50:11.582 DEBUG src\hooks.rs:220] [ntcreatefile_detour] "C:\\Users\\user\\OneDrive\\Desktop\\votv\\pa08_0017\\WindowsNoEditor\\VotV\\Binaries\\Win64\\Mods\\Unknown-testing\\scripts\\main.lua" to "C:\\Users\\user\\AppData\\Roaming\\r2modmanPlus-local\\VotV\\profiles\\Default\\shimloader\\mod\\Unknown-testing\\scripts\\main.lua"

There is no ntcreatefile_detour for main.dll.

UE4SS logs:

[13:03:59] Setting up mods...
[13:03:59] Failed to load dll <C:\Users\user\OneDrive\Desktop\votv\pa08_0017\WindowsNoEditor\VotV\Binaries\Win64\Mods\Unknown-testing\dlls\main.dll> for mod Unknown-testing, error code: 0x7e

Process Monitor shows no attempts to access the DLL file.
image

Steps to Reproduce

  1. Install the game
  2. Set up the unreal-shimloader from r2modman, which includes UE4SS
  3. Install provided r2.zip from "Import local mod"
  4. Launch the game with r2modman
    r2.zip

Additional Context

  • The shimloader is launched with the following arguments:

--mod-dir "C:\Users\user\AppData\Roaming\r2modmanPlus-local\VotV\profiles\Default\shimloader\mod" --pak-dir "C:\Users\user\AppData\Roaming\r2modmanPlus-local\VotV\profiles\Default\shimloader\pak" --cfg-dir "C:\Users\user\AppData\Roaming\r2modmanPlus-local\VotV\profiles\Default\shimloader\cfg"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant