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

Add workaround for Elden Ring multiplayer for players that don't own the DLC #87

Merged
merged 4 commits into from
Jul 3, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions gamefixes-steam/1245620.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Game fix for Elden Ring: Manually create the DLC.bdt file to work around the "Inappropriate activity detected" error for players that don't own the DLC"""

import pathlib
R1kaB3rN marked this conversation as resolved.
Show resolved Hide resolved
from protonfixes import util

def main():
if not pathlib.Path(f"{util.get_game_install_path()}/Game/DLC.bdt").exists():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After import Path, would prefer either:
Path(f"{util.get_game_install_path()}/Game/DLC.bdt")
or
Path(f"{util.get_game_install_path()}", "Game", "DLC.bdt")

# Create the DLC.bdt file if it doesn't already exist, which is known to fix Easy AntiCheat not working for players that don't own the DLC
# A blank file is enough to get multiplayer working
open(f"{util.get_game_install_path()}/Game/DLC.bdt", 'w').close()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer either:
Path(f"{util.get_game_install_path()}/Game/DLC.bdt").write_text()
or
Path(f"{util.get_game_install_path()}", "Game", "DLC.bdt").write_text()

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. I meant using Path.touch().

Loading