| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #!/bin/bash
- # command_dev_query_raw.sh function
- # Author: Daniel Gibbs
- # Website: https://linuxgsm.com
- # Description: Raw gamedig output of the server.
- local commandname="QUERY-RAW"
- local commandaction="QUERY-RAW"
- local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
- echo "================================="
- echo "Gamedig Raw Output"
- echo "================================="
- echo""
- if [ ! "$(command -v gamedig 2>/dev/null)" ]; then
- fn_print_failure_nl "gamedig not installed"
- fi
- if [ ! "$(command -v jq 2>/dev/null)" ]; then
- fn_print_failure_nl "jq not installed"
- fi
- check.sh
- info_config.sh
- info_parms.sh
- if [ "${engine}" == "idtech3_ql" ]; then
- local engine="quakelive"
- elif [ "${gamename}" == "Killing Floor 2" ]; then
- local engine="unreal4"
- fi
- query_gamedig.sh
- echo "gamedig --type \"${gamedigengine}\" --host \"${ip}\" --query_port \"${queryport}\"|jq"
- echo""
- echo "${gamedigraw}" | jq
- echo""
- echo "================================="
- echo "gsquery Raw Output"
- echo "================================="
- echo""
- echo "./query_gsquery.py -a \"${ip}\" -p \"${queryport}\" -e \"${engine}\""
- if [ ! -f "${functionsdir}/query_gsquery.py" ]; then
- fn_fetch_file_github "lgsm/functions" "query_gsquery.py" "${functionsdir}" "chmodx" "norun" "noforce" "nomd5"
- fi
- "${functionsdir}"/query_gsquery.py -a "${ip}" -p "${queryport}" -e "${engine}"
|