Closed n00mkrad closed 2 years ago
Hey,
are you running this from within steam or directly from a terminal?
I'm asking because the error is the same as one from a comment on another issue https://github.com/gurrgur/er-patcher/issues/3#issuecomment-1079392040. The error occurs because the proton part is missing from the launch command so the script tries to launch "eldenring.exe" directly. This fails of course because "eldenring.exe" is not marked as executable.
I'll try with Steam. But not sure if I can get a console output that way.
That's what the konsole -e
part is for. It spawns a terminal window so you can see what the program prints out. The -i
flag for python enables interactive mode so the window won't close in case the patcher crashes or the game stops running.
That's what the
konsole -e
part is for. It spawns a terminal window so you can see what the program prints out. The-i
flag for python enables interactive mode so the window won't close in case the patcher crashes or the game stops running.
But konsole is a native Linux application, I can't use Proton with that, right?
It will work, at least when you run steam in desktop mode. The reason is that proton is run within konsole and not the other way round ;)
Edit: Just to clarify, I mean these launch options: konsole -e python -i er-patcher --all -- %command%
ERROR: ld.so: object '/home/deck/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/usr/bin/python: can't open file '/home/deck/.local/share/Steam/er-patcher': [Errno 2] No such file or directory
Well I need an absolute path here, one sec
Are you running Elden Ring from steam with the launch options above when you get that output? When doing that, absolute paths shouldn't be needed. On a regular desktop steam automatically sets the working dir to the "Game" folder.
Are you running Elden Ring from steam with the launch options above when you get that output? When doing that, absolute paths shouldn't be needed. On a regular desktop steam automatically sets the working dir to the "Game" folder.
Well I'm starting Konsole from Steam, let me try using that in the ER launch opts
That works. Let my try Desktop Mode but without the konsole/python args
Yep - to recap:
konsole -e python -i er-patcher --all -- %command%
WORKS
./er-patcher --all -- %command%
DOES NOT WORK
Does python er-patcher --all -- %command%
work in deck mode?
The problem might be caused by the python shebang not working for some reason.
Edit: Or it could be caused by missing execution permissions in which case running chmod +x er-patcher
once would do the trick (not as launch option, just spawn a terminal in the game directory).
Does
python er-patcher --all -- %command%
work in deck mode? The problem might be caused by the python shebang not working for some reason.Edit: Or it could be caused by missing execution permissions in which case running
chmod +x er-patcher
once would do the trick (not as launch option, just spawn a terminal in the game directory).
It is a bit buggy in Game Mode because Gamescope keeps switching between the Konsole and ER windows (optimally for Game Mode there should only be a single window) but it seems like it stops glitching once the main menu has loaded. So yeah that works.
Try this one, it should behave like the one which spawns konsole except it doesn't spawn konsole:
python er-patcher --all -- %command%
I just removed the konsole -e
part and the -i
flag for python.
Okay, doing chmod +x er-patcher
seems to have worked!
It now runs fine in Game Mode without konsole using ./er-patcher --all -- %command%
Try this one, it should behave like the one which spawns konsole except it doesn't spawn konsole:
python er-patcher --all -- %command%
I just removed the
konsole -e
part and the-i
flag for python.
This also works. Might be the preferred method for most people since this avoids having to chmod anything and works completely in Game Mode as long as the files are installed.
Alright cool and thanks for helping debug this! I'll update the readme and replace all mentions of "./er-patcher" with "python er-patcher". I suppose we can close this issue then :)
Thanks for the support and this patcher! Makes for a great experience on the Deck.
Running via Game Mode does not do anything, game won't launch.
If I try
konsole -e python -i er-patcher --all -- %command%
on Desktop Mode, I get the following:Maybe I need to do chmod?