How do you get this to work on Linux/Steam Deck? I installed this manually but it doesn't look like the screenshots at all, seems like the dll isn't being loaded.
I'm having the same problem. I did get it to at least try to load the dll and output a log file by renaming the dll to dinput8.dll and adding WINEDLLOVERRIDES="dinput8=n,b" to the launch options, but then the game just crashes for me.
You have to start the game with the .bat file but if you're running the game through Steam there's no apparent way to do it. However the launch option for games can run commands that modify how the game is launched. For example for this mod we can change the launch option to this echo "%command%" | sed 's/DarkSoulsRemastered.exe/launchmod_darksoulsremastered.bat/' | WINEDLLOVERRIDES="dinput8.dll=n,b" sh It will replace the Dark Souls exe with the bat file when running the game through Steam (and Proton) and should load the mod.
Unfortunately that's not really the problem. You can also add the .bat file as a non-Steam game to get it to launch with that. Neither way works because the version of modengine2 this mod uses isn't compatible with Linux. There are versions of modengine2 that are compatible with Linux, but they aren't compatible with DSR, so that doesn't help.
That's okay though, because you can just overwrite the shaders and params in the game files with the ones from the mod, then you just have to load the dll. I tried doing that with a dll override, but wine didn't want to load it, so I tried renaming it to something I know wine will load, but that just resulted in my game crashing on startup. That actually had the same output in the dsr-lighting.log file that DevourerPi had in another comment here, so I also tried downgrading to 1.3.0 since that seems to have helped him. Didn't work for me though. Still getting the same crash with the same log output.
IIRC that's how I could get it working though. Maybe I'm not remembering it correctly then if it's not working. I stopped using this mod as the lighting doesn't work correctly in Duke's Archives.
I believe I have successfully launched the game with ModEngine2. Here is its log: [2024-04-14 22:33:36.470] [modengine] [info] Attempting to load global config at D:\ModEngine2\config.toml [2024-04-14 22:33:36.471] [modengine] [info] Global config loaded [2024-04-14 22:33:36.471] [modengine] [info] ModEngine version 2.2.0-76690e95d5022ba6f8d1bc24faea1f1bfde2ec6d initializing for Dark Souls Remastered [2024-04-14 22:33:36.471] [modengine] [info] Local settings loaded: false, Global settings loaded: true [2024-04-14 22:33:36.471] [modengine] [info] Main thread ID: 3196 [2024-04-14 22:33:36.474] [modengine] [info] Loaded external DLL mod/dsr-lighting.dll [2024-04-14 22:33:36.474] [modengine] [warning] External dll mod/dsr-lighting.dll at base address 0x7ffd5a880000 is not a modengine extension [2024-04-14 22:33:36.474] [modengine] [info] Enabling extension base [2024-04-14 22:33:36.474] [modengine] [info] Enabled extension base [2024-04-14 22:33:36.474] [modengine] [info] Enabling extension mod_loader [2024-04-14 22:33:36.474] [modengine] [info] Installing mod location mod [2024-04-14 22:33:36.474] [modengine] [info] Resolved mod path to mod [2024-04-14 22:33:36.474] [modengine] [info] Enabled extension mod_loader [2024-04-14 22:33:36.474] [modengine] [info] Applied 2 hooks [2024-04-14 22:33:36.475] [modengine] [info] Starting worker thread
But apparently the game window didn't appear, and the problem seemed to be the dsr-lighting.dll, when I just deleted the DLL and kept the other mods, the game started up normally via ModEngine2. Mod seems to have been applied successfully, and the game became very dark.
I followed the instructions and when I run "ModEngine2/launchmod_darksoulsremastered.bat", it only briefly shows me a cmd window without the game starting.
I've been trying to get this to work for hours to no avail. I'm using a cracked version of the game and Modengine2 refuses to load, at first I thought it was because I was playing on 1.01 so I downloaded the latest version of the game but it still didn't open, so I decided to try installing it manually since the author said it was possible, but the game looks way darker than it should and it seemed like the lighting in general was broken, except for the sky. I attributed this to a faulty dll injection but I've tried various dll injection programs like DLL Injector, DLL injector hacker, lordPE and even InjectorCLI which actually comes with the files for modengine2 inside the mod download (modengine2/tools/scyllahidenot/InjectorCLIx64.exe) and not a single one of them has worked, I even tried the method of creating a fake .acf file on steamapps to trick modengine2 into thinking the game is legit but the result is the same, it won't even open. I then tried an old version of the mod before it required the dll and it just works but it doesn't look anywhere near as good as the current version.
The mod looks amazing and I'd be really grateful if anyone would be able to help me get it to work. Here are some screenshots of how my game looks when I try to run it: https://imgur.com/a/sFoPddg
If you use manual dll injector, you must not only inject dsr-lighting.dll. Copy folders "param" and "shader" from "modengine2\dsr-lighting" to DSR game folder (make backup). Game will be darker, just increase brightness in game settings.
I ran the bat file in a Terminal and it shows [stderr] [error] Couldn't create process: 2I'm playing on a crack version game though, so it could just be my problem. Also ModEngine2 finds your game through steam's library config files. So if your game is not on steam, you need to edit the bat file by adding a snippet of code so it ends up like below./modengine2_launcher.exe -t dsr -c .\config_darksoulsremastered.toml -p "<Full Path to Darksouls Remastered>\DarkSoulsRemastered.exe" I can actually use a third party DLL injector to inject the DLL but I don't now if this will work as intended. Okay I made a comparison and I think it actually worked. The most obvious effect is that the image becomes brighter in Firelink Shrine.
Yes, you can run without ModEngine2 by replacing the original shaderbnd and injecting the dll through any other means. It needs to be injected before going in-game for the lighting parameters to be correct.
77 comments
Looking forwards to seeing if it receives any more updates in the future!
echo "%command%" | sed 's/DarkSoulsRemastered.exe/launchmod_darksoulsremastered.bat/' | WINEDLLOVERRIDES="dinput8.dll=n,b" sh
It will replace the Dark Souls exe with the bat file when running the game through Steam (and Proton) and should load the mod.That's okay though, because you can just overwrite the shaders and params in the game files with the ones from the mod, then you just have to load the dll. I tried doing that with a dll override, but wine didn't want to load it, so I tried renaming it to something I know wine will load, but that just resulted in my game crashing on startup. That actually had the same output in the dsr-lighting.log file that DevourerPi had in another comment here, so I also tried downgrading to 1.3.0 since that seems to have helped him. Didn't work for me though. Still getting the same crash with the same log output.
Here is its log:
[2024-04-14 22:33:36.470] [modengine] [info] Attempting to load global config at D:\ModEngine2\config.toml
[2024-04-14 22:33:36.471] [modengine] [info] Global config loaded
[2024-04-14 22:33:36.471] [modengine] [info] ModEngine version 2.2.0-76690e95d5022ba6f8d1bc24faea1f1bfde2ec6d initializing for Dark Souls Remastered
[2024-04-14 22:33:36.471] [modengine] [info] Local settings loaded: false, Global settings loaded: true
[2024-04-14 22:33:36.471] [modengine] [info] Main thread ID: 3196
[2024-04-14 22:33:36.474] [modengine] [info] Loaded external DLL mod/dsr-lighting.dll
[2024-04-14 22:33:36.474] [modengine] [warning] External dll mod/dsr-lighting.dll at base address 0x7ffd5a880000 is not a modengine extension
[2024-04-14 22:33:36.474] [modengine] [info] Enabling extension base
[2024-04-14 22:33:36.474] [modengine] [info] Enabled extension base
[2024-04-14 22:33:36.474] [modengine] [info] Enabling extension mod_loader
[2024-04-14 22:33:36.474] [modengine] [info] Installing mod location mod
[2024-04-14 22:33:36.474] [modengine] [info] Resolved mod path to mod
[2024-04-14 22:33:36.474] [modengine] [info] Enabled extension mod_loader
[2024-04-14 22:33:36.474] [modengine] [info] Applied 2 hooks
[2024-04-14 22:33:36.475] [modengine] [info] Starting worker thread
But apparently the game window didn't appear,
and the problem seemed to be the dsr-lighting.dll,
when I just deleted the DLL and kept the other mods,
the game started up normally via ModEngine2.
Mod seems to have been applied successfully, and the game became very dark.
This is dsr-lighting.log:
deferred.cpp:47: Sigscan result: 00000001401F7047
deferred.cpp:56: Sigscan result: 00000001402CFD6A
lighting_params.cpp:21: Sigscan result: 00000001401C69C8
lighting_params.cpp:30: Sigscan result: 00000001401C6A69
lighting_params.cpp:39: Sigscan result: 00000001401C6B89
lighting_params.cpp:48: Sigscan result: 0000000140564510
Nothing happens when I run launchmod_darksoulsremastered.bat.
Ran it in cmd, it gave me the following:
C:\Program Files (x86)\Steam\steamapps\common\DARK SOULS REMASTERED\ModEngine2>chcp 65001
Active code page: 65001
C:\Program Files (x86)\Steam\steamapps\common\DARK SOULS REMASTERED\ModEngine2>.\modengine2_launcher.exe -t dsr -c .\config_darksoulsremastered.toml
[2024-04-09 13:56:50.548] [stderr] [error] Couldn't create process: 2e4
C:\Program Files (x86)\Steam\steamapps\common\DARK SOULS REMASTERED\ModEngine2>
What do I do to make it run?
Couldn't create process: 2e4
I attributed this to a faulty dll injection but I've tried various dll injection programs like DLL Injector, DLL injector hacker, lordPE and even InjectorCLI which actually comes with the files for modengine2 inside the mod download (modengine2/tools/scyllahidenot/InjectorCLIx64.exe) and not a single one of them has worked, I even tried the method of creating a fake .acf file on steamapps to trick modengine2 into thinking the game is legit but the result is the same, it won't even open.
I then tried an old version of the mod before it required the dll and it just works but it doesn't look anywhere near as good as the current version.
The mod looks amazing and I'd be really grateful if anyone would be able to help me get it to work. Here are some screenshots of how my game looks when I try to run it: https://imgur.com/a/sFoPddg
Game will be darker, just increase brightness in game settings.
[stderr] [error] Couldn't create process: 2
I'm playing on a crack version game though, so it could just be my problem.Also ModEngine2 finds your game through steam's library config files. So if your game is not on steam, you need to edit the bat file by adding a snippet of code so it ends up like below
./modengine2_launcher.exe -t dsr -c .\config_darksoulsremastered.toml -p "<Full Path to Darksouls Remastered>\DarkSoulsRemastered.exe"
I can actually use a third party DLL injector to inject the DLL but I don't now if this will work as intended.Okay I made a comparison and I think it actually worked. The most obvious effect is that the image becomes brighter in Firelink Shrine.