-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from sveken/main
Add initial automated modding support
- Loading branch information
Showing
7 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ STEAM_PASS=steampasswordhere | |
BETA_CODE=betacodehere | ||
STEAM_BRANCH=headless | ||
LOG_RETENTION=30 | ||
ENABLE_MODS=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,28 @@ | ||
#!/bin/sh | ||
|
||
HEADLESS_DIRECTORY="/home/container/Headless/net8.0" | ||
|
||
/home/container/steamcmd/steamcmd.sh +login ${STEAM_USER} ${STEAM_PASS} +force_install_dir /home/container +app_update 2519830 -beta ${STEAM_BRANCH} -betapassword ${BETA_CODE} +quit | ||
|
||
# Fix for issue with NVR.json migrations exploding | ||
ln -sf /home/container/Migrations /home/container/Headless/Migrations | ||
|
||
#Mod installation if ENABLE_MODS is true. Heavily inspired and pulled from work by Spex. Thank you | ||
if [ "${ENABLE_MODS}" = "true" ]; then | ||
|
||
# Create Libraries directory for RML to live in | ||
mkdir -p ${HEADLESS_DIRECTORY}/Libraries | ||
|
||
# Create RML directories on RML volume, mods and config will be stored in here. | ||
mkdir -p /RML/rml_mods /RML/rml_libs /RML/rml_config | ||
|
||
# Symlink rml_mods, rml_libs and rml_config to where Resonite will read them. | ||
ln -s /RML/rml_mods ${HEADLESS_DIRECTORY}/rml_mods | ||
ln -s /RML/rml_libs ${HEADLESS_DIRECTORY}/rml_libs | ||
ln -s /RML/rml_config ${HEADLESS_DIRECTORY}/rml_config | ||
|
||
# Download RML and 0harmony | ||
curl -SslL https://github.com/resonite-modding-group/ResoniteModLoader/releases/latest/download/0Harmony-Net8.dll -o ${HEADLESS_DIRECTORY}/rml_libs/0Harmony-Net8.dll | ||
curl -SslL https://github.com/resonite-modding-group/ResoniteModLoader/releases/latest/download/ResoniteModLoader.dll -o ${HEADLESS_DIRECTORY}/Libraries/ResoniteModLoader.dll | ||
|
||
fi |