GameServerManagers / GameServerManagers/LinuxGSM
Arma 3 Updater with mod support
- Dominant language
- Shell
- Stars
- 4.9k
- Forks
- 864
- PR merge metrics
- No merged PRs in 30d
Description
I haven't seen anything for support for mods, especially for Arma. So I've made a code that helps makes this work.
[PasteBin](https://pastebin.com/embed_js/gEyA4h9n)
This will require you to have your own repository so it doesn't get updated back to default on the Update LGMS command. (Maybe there is a way to retry this without it self updating under the functions.)
You'll also need to add a line into the file: command_update.sh
```Bash
elif [ "${gamename}" == "ARMA 3" ]; then
updateserver.sh
```
This will go before the else at the end. So it'll look like this:
```Bash
#!/bin/bash
# LinuxGSM command_update.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
# Description: Handles updating of servers.
local commandname="UPDATE"
local commandaction="Update"
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_print_dots ""
sleep 0.5
check.sh
logs.sh
if [ "${gamename}" == "TeamSpeak 3" ]; then
update_ts3.sh
elif [ "${engine}" == "lwjgl2" ]; then
update_minecraft.sh
elif [ "${gamename}" == "Mumble" ]; then
update_mumble.sh
elif [ "${gamename}" == "Factorio" ]; then
update_factorio.sh
elif [ "${gamename}" == "Multi Theft Auto" ]; then
update_mta.sh
elif [ "${gamename}" == "ARMA 3" ]; then
updateserver.sh
else
update_steamcmd.sh
fi
core_exit.sh
```
Contributor guide
Assessment
This issue has not been assessed yet.