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

Advanced config for cleaner music/sound setup. #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rishooty
Copy link

@rishooty rishooty commented Nov 9, 2024

This is just about every method I could come up with for making sure you can set different configuration or command line params for other players.

Bonuses to make this more feasible

  • Some nice refactors of the main script here and there
  • Some fixes of benign bugs (like some mkdirs not having -p and throwing "directory already exists", etc).

This was all tested with Terraria and Tmodloader. It seems it ultimately wants it's own home dir, but steam DRM prevents it.

Still, I verified that options were being passed to the second player in the other methods as well. I also tested multiwindow and split. This will bring the project much more up to speed with Nucleus Co-Op

Random Side Note: Have you or the original maintainer (AhmedKJ) considered adding a license like GPL-3 etc?

@rishooty
Copy link
Author

rishooty commented Nov 9, 2024

Sample:

export WIDTH=2192
export HEIGHT=1233
export GAMERUN='/home/rishooty/.local/share/Steam/steamapps/common/Terraria/Terraria'

# Advanced Configuration - Choose ONE of these configuration approaches:

# Approach 1: Config Copy
# export CONFIG_APPROACH="copy"
# export GAME_CONFIG_SOURCE="$HOME/.config/game/config.json"
# export GAME_CONFIG_GUEST="/tmp/game_p2_config.json"
# export GAME_CONFIG_MODIFY_CMD='sed -i "s/volume=.*/volume=0/"'
# export GAME_CONFIG_PARAM="--config"

# Approach 2: Extra Arguments
# export CONFIG_APPROACH="args"
# export GAMERUN_EXTRA_ARGS="--disable-music"  # Example

# Approach 3: Separate Home - Note that this likely only works with DRM free games (GoG)
# export CONFIG_APPROACH="home"
# export GAME_HOME_DIR="/tmp/game_p2_home"
# mkdir -p "$GAME_HOME_DIR/.config/game"
# cp "$HOME/.config/game/config.json" "$GAME_HOME_DIR/.config/game/"
# sed -i 's/volume=.*/volume=0/' "$GAME_HOME_DIR/.config/game/config.json"

../Co-Op-On-Linux.sh

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

Successfully merging this pull request may close these issues.

1 participant