#Unable to set custom connection ID
1 messages ยท Page 1 of 1 (latest)
this is the script that AMP uses to lauch the game
xvfbpid=""
ckpid=""
installdir="$(dirname -- "$0";)"
exepath="$installdir/CoreKeeperServer"
function kill_corekeeperserver {
if [[ ! -z "$ckpid" ]]; then
kill $ckpid
wait $ckpid
fi
if [[ ! -z "$xvfbpid" ]]; then
kill $xvfbpid
wait $xvfbpid
fi
}
trap kill_corekeeperserver EXIT
if ! (dpkg -l xvfb >/dev/null) ; then
echo "Installing xvfb dependency..."
sleep 1
sudo apt-get update -yy && sudo apt-get install xvfb -yy
fi
set -m
rm -f /tmp/.X99-lock
Xvfb :99 -screen 0 1x1x24 -nolisten tcp &
xvfbpid=$!
rm -f GameID.txt
chmod +x "$exepath"
DISPLAY=:99 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$installdir/../Steamworks SDK Redist/linux64/" \
"$exepath" -batchmode -logfile CoreKeeperServerLog.txt "$@" &
ckpid=$!
echo "Started server process with pid $ckpid"
while [ ! -f GameID.txt ]; do
sleep 0.1
done
echo "Game ID: $(cat GameID.txt)"
wait $ckpid
ckpid=""
do i edit the serverconfig.json?
"$exepath" -batchmode -gameid "gameidhere1234567890123" -logfile CoreKeeperServerLog.txt "$@" &
i dont understand what that means, is this an instruction
yea lol change the "$exepath" line to match what I put
sorry I shoulda said, working on multiple things
xvfbpid=""
ckpid=""
installdir="$(dirname -- "$0";)"
exepath="$installdir/CoreKeeperServer"
function kill_corekeeperserver {
if [[ ! -z "$ckpid" ]]; then
kill $ckpid
wait $ckpid
fi
if [[ ! -z "$xvfbpid" ]]; then
kill $xvfbpid
wait $xvfbpid
fi
}
trap kill_corekeeperserver EXIT
if ! (dpkg -l xvfb >/dev/null) ; then
echo "Installing xvfb dependency..."
sleep 1
sudo apt-get update -yy && sudo apt-get install xvfb -yy
fi
set -m
rm -f /tmp/.X99-lock
Xvfb :99 -screen 0 1x1x24 -nolisten tcp &
xvfbpid=$!
rm -f GameID.txt
chmod +x "$exepath"
DISPLAY=:99 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$installdir/../Steamworks SDK Redist/linux64/" \
"$exepath" -batchmode -gameid "gameidhere1234567890123" -logfile CoreKeeperServerLog.txt "$@" &
ckpid=$!
echo "Started server process with pid $ckpid"
while [ ! -f GameID.txt ]; do
sleep 0.1
done
echo "Game ID: $(cat GameID.txt)"
wait $ckpid
ckpid=""```
like that
also hecker off Dyno
oh i see youve added a line in the middle
what exactly did you enter and where
and why
greeniesgamecorekeepermap1
this is the id i want to use
lets see if it sticks after i restart
So you'd replace gameidhere1234567890123 with greeniesgamecorekeepermap1
nope didnt work; Started session with Game ID h6alidGSfMr3B2Xffi8V8pAK1QXA
๐ fr
yup didnt work
Well that certainly should have
do i have to change the serverconfig.json too
You could try editing it there and putting the launch file back to normal
text file is just the output from the server
oh okay, well i tried that too
does the key have to be exactly 23 letters long?
mine is 26
At least 23 afaik
then i dont know what to do next ay
ohhhhh
I think
Game ID to use for the server. Need to be at least 23 characters and alphanumeric, excluding Y,y,x,0,O.
excluding 0 and o
no maybe not? I just tried and it said it launched with that code
you launched with my code i wanted to use? thats a good sign
my code doesnt use any of these
innnteeresting
[10:35:42.170] [UnityExplorer] [Unity] Started session with Game ID greeniesgamecOrekeepermap1
idk anymore
#help!
Cuz this is how my arguments line is setup $CoreKeeperArguments = @("-batchmode", "-gameid", "greeniesgamecorekeepermap1", "-logfile", "CoreKeeperServerLog.txt")
"$exepath" -batchmode -gameid "gameidhere1234567890123" -logfile CoreKeeperServerLog.txt "$@" & is yours
so i use your line instead?
oh ok
Maybe try removing the quotes around gameid?
That might be the issue
my dumb brain just assumed it was needed
"$exepath" -batchmode -gameid greeniesgamecorekeepermap1 -logfile CoreKeeperServerLog.txt "$@" &
?
Started session with Game ID wFrlKNNEDIttPTLULQ7CnqgEgFiL
nope
๐ lmao
gr8
well i submitted a bug report
i have another 2 that have not been replied to yet
ngl getting irritated with the system
These things take time, some (or maybe all) of mine still aren't addressed either lol. I never asked for contact tho
eh, i think its still naff. make a technical assistance channel so people who need technical help arnt swamped with other chit chat about what colour to make their floors
a beg report cannot be the only place where communication take places about technical issues
ill keep asking, maybe a dev or admin will see and help
Or someone who actually hosts a linux server lol
Yea no worries, sorry we couldn't figure it out lol
no worries - ill keep hunting hopefully i can work it out
out of curiosity is https://github.com/CubeCoders/AMPTemplates/blob/main/core-keeper.kvp what you're using?
if so I see that also has the launch options in it App.CommandLineArgs={{$PlatformArgs}} -datapath "{{$FullBaseDir}}DedicatedServer" {{$FormattedArgs}} -batchmode -logfile -
this must be what im using, i create a new instance by creating a pull request from AMP for their most recent configuration
these args dont look like they directly effect the settings we are wanting to change
yea I've no idea how Amp works any more lol
I just saw that in their github and thought it could possibly help
I've updated the template. It's in the experimental branch. The ports system on CK is still a bit wonky tho it seems, based on some testing
The updated template adds the ability to set your own GameID and also adds the worldmode. With the GameID, you might need both upper and lower case letters?
template for amp?
this sounds like positive information but im not how i action it into something
Yeah, can take the chat to the AMP server if you want