Skip to content

UE4SS Path Issue for Wine/Proton #1189

Description

@CyrixJD115

I've been digging into UE4SS on Wine/Proton over the past few days and noticed a pretty big difference in how DLLs get loaded compared to Windows.

On Windows, UE4SS can dynamically scan and load DLLs even when they’re in different folders. For example:

  • dwmapi.dll can sit in:
    ./Pal/Binaries/Win64/
  • UE4SS.dll can be in:
    ./Pal/Binaries/Win64/ue4ss/

Windows handles this just fine.


Problem on Wine/Proton

On Wine/Proton, DLL loading is way more strict. I actually managed to get it to scan the files while keeping the same folder structure as Windows, but as soon as Palworld starts hosting a server, it crashes if the standard Windows-style paths are used.

Because of this, both dwmapi.dll and UE4SS.dll basically have to be in the same directory, which forces me to move everything from ./ue4ss/ into:

./Pal/Binaries/Win64/

This messes up the expected folder structure and ends up breaking UE4SS mods.


Example Impact

Using the PalZones mod as an example:

  • UE4SS console commands still work in-game.
  • But none of the mod files actually load, which I’m assuming is due to the path resolution issue under Wine/Proton.

Also, if I try installing PalSchema inside Wine, the launcher gets stuck in a loop and Palworld won’t boot at all. So anything relying on that installer seems to fail completely on Wine/Proton.

This all makes it seem like UE4SS handles paths differently (or incorrectly) under Wine/Proton, and mods won’t load unless all DLLs are placed in one folder.


If I'm doing something wrong in my setup, please feel free to point it out. Here's the startup script I'm currently using (Palworld + UE4SS under Wine/Proton):

Startup script:
https://pastebin.com/L8bmWNnz

Just let me know if there's something I should change or if there's a better way to handle this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions