You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running your image of CS2 in a docker I would like to add metamod. Following the instructions to install Metamod it says to copy the addons folder over and then edit the gameinfo.gi (instructions here https://cs2major.com/article.php?id=22) file in the /game/csgo directory. When I open the file and search for "Game_LowViolence" I don't find it. Also, there is a remark saying "DO NOT EDIT THIS FILE DIRECTLY - YOU PROBABLY WANT TO EDIT CSGO_CORE/GAMEINFO.GI"
Any suggestions for getting metamod working?
The text was updated successfully, but these errors were encountered:
#add metamod
FILE="$CS2_DIR/game/csgo/gameinfo.gi"
LINE="Game csgo/addons/metamod"
chmod u=rwx,g=rwx,o=r "${FILE}"
echo "Checking if line exists in the file"
if grep -q "$LINE" "$FILE"
then
echo "Line found in the file."
else
echo "Line NOT found in the file. Adding now."
awk -v n="$LINE" 'BEGIN{p=1}/[[:space:]]*Game[[:space:]]*csgo/ {if(p) {print n; p=0}} {print}' $FILE > tmpfile && mv tmpfile $FILE
# Проверяем, была ли линия успешно добавлена
if grep -q "$LINE" "$FILE"
then
echo "Line successfully added."
else
echo "Failed to add line. Please check file permissions."
fi
fi
I've been planning to add the possibility to opt-in to metamod. But I just haven't been involved in any events lately, so I haven't prioritized it. But if that's something you would find helpful, I can look into it.
I am running your image of CS2 in a docker I would like to add metamod. Following the instructions to install Metamod it says to copy the addons folder over and then edit the gameinfo.gi (instructions here https://cs2major.com/article.php?id=22) file in the /game/csgo directory. When I open the file and search for "Game_LowViolence" I don't find it. Also, there is a remark saying "DO NOT EDIT THIS FILE DIRECTLY - YOU PROBABLY WANT TO EDIT CSGO_CORE/GAMEINFO.GI"
Any suggestions for getting metamod working?
The text was updated successfully, but these errors were encountered: