当我尝试启动用 lgsm 制作的方舟服务器时,它显示以下错误:
arkserver@ark-HP-Compaq-Elite-8300-SFF:~$ ./arkserver start
/home/arkserver/lgsm/config-lgsm/arkserver/arkserver.cfg: line 15: unexpected EOF while looking for matching `"'
/home/arkserver/lgsm/config-lgsm/arkserver/arkserver.cfg: line 17: syntax error: unexpected end of file
[ .... ] Starting arkserver: LinuxGSM./arkserver: eval: line 494: unexpected EOF while looking for matching `}'
./arkserver: eval: line 495: syntax error: unexpected end of file
[ OK ] Starting arkserver: LinuxGSM
arkserver@ark-HP-Compaq-Elite-8300-SFF:~$
这是cfg文件:
##################################
####### Instance Settings ########
##################################
# PLACE INSTANCE SETTINGS HERE
## These settings will apply to a specific instance.
port="7777"
queryport="27015"
# Default Map: TheIsland, Scorched Earth_P, Aberration_P, Extinction, Genesis, TheCenter, Ragnarok, CrystalIsles, Valguero_P, Fjordur
instancename="ETA-Season-1"
defaultmap="Fjordur"
maxplayers="4"
## Server Start Command
fn_parms(){
parms="\"${defaultmap}?AltSaveDirectoryName=${instancename}?listen?MultiHome=${ip}?MaxPlayers=${maxplayers}?QueryPort=${queryport)?RCONPort=${rconport}?Port=${port} -automanagedmods -exclusivejoin -NoBattlEye -usecache -insecure -noantispeedhack \""
}
我尝试更改第 15 行周围的引号,但它只是给了我同样的错误。
将第 15 行中的
queryport)
更改为 queryport}
。
这为我解决了问题。