STEAM GROUP
Conan Exiles: Admins United ConanAdmins
STEAM GROUP
Conan Exiles: Admins United ConanAdmins
15
IN-GAME
211
ONLINE
Founded
February 6, 2017
All Discussions > Scripts > Topic Details
Viix Feb 13, 2017 @ 4:28pm
Installing Mods (via Linux)
Just figured I would share a quick and dirty script I am using to install mods. I run this from my linux box that has the ConanSandbox cifs share mounted:


#!/bin/bash
#
# 861402455 (Even Better Bark)
#
appid="440900"
modlist="861402455"
listfile="modlist.txt"

# download mods
for mod in $modlist
do
/opt/steamcmd/steamcmd.sh +@NoPromptForPassword 1 +login anonymous +workshop_download_item $appid $mod +quit
cp /opt/steamcmd/steamapps/workshop/content/$appid/$mod/*pak .
done


# build modlist.txt
> $listfile
for modname in `ls *pak`
do
echo "*$modname" >> $listfile
done

A few assumptions/details:
1. this script lives in ConanSandbox/Mods dir on my mounted cifs share
2. You have steamcmd installed in /opt/steamcmd on your linux box
3. Due to windows file locking, this can only be run when the server is offline

modlist is space delimited list of the workshop modids... i only have a single mod at the moment, i suspect it will work fine with multiple mods. this will dynamically build the modlist.txt file.

Enjoy and let me know if you find any issues.
Last edited by Viix; Feb 13, 2017 @ 4:38pm
All Discussions > Scripts > Topic Details