#Unable to set custom connection ID

1 messages ยท Page 1 of 1 (latest)

neon plover
#

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?

fickle acorn
#

"$exepath" -batchmode -gameid "gameidhere1234567890123" -logfile CoreKeeperServerLog.txt "$@" &

neon plover
fickle acorn
#

yea lol change the "$exepath" line to match what I put

#

sorry I shoulda said, working on multiple things

neon plover
#

im afraid this isnt clear, do you want me to add this line in?

#

what did you 'put'?

fickle acorn
#

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

neon plover
#

oh i see youve added a line in the middle

#

what exactly did you enter and where

#

and why

fickle acorn
#

That should work

#

on the "$exepath" line I added one more option for GameID

neon plover
#

greeniesgamecorekeepermap1

#

this is the id i want to use

#

lets see if it sticks after i restart

fickle acorn
#

So you'd replace gameidhere1234567890123 with greeniesgamecorekeepermap1

neon plover
#

nope didnt work; Started session with Game ID h6alidGSfMr3B2Xffi8V8pAK1QXA

fickle acorn
#

๐Ÿ˜ fr

neon plover
#

yup didnt work

fickle acorn
#

Well that certainly should have

neon plover
#

do i have to change the serverconfig.json too

fickle acorn
#

You could try editing it there and putting the launch file back to normal

neon plover
#

ive done that, didnt work

#

same with editing json and the txt file with the gameid

fickle acorn
#

text file is just the output from the server

neon plover
#

oh okay, well i tried that too

#

does the key have to be exactly 23 letters long?

#

mine is 26

fickle acorn
#

At least 23 afaik

neon plover
#

then i dont know what to do next ay

fickle acorn
#

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

neon plover
#

you launched with my code i wanted to use? thats a good sign

neon plover
fickle acorn
#

I'm not sure if it's just capital o tho

#

probably

neon plover
#

innnteeresting

fickle acorn
#

[10:35:42.170] [UnityExplorer] [Unity] Started session with Game ID greeniesgamecOrekeepermap1

#

idk anymore

neon plover
#

#help!

fickle acorn
#

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

neon plover
#

so i use your line instead?

fickle acorn
#

no

#

linux vs windows

neon plover
#

oh ok

fickle acorn
#

Maybe try removing the quotes around gameid?

#

That might be the issue

#

my dumb brain just assumed it was needed

neon plover
#

"$exepath" -batchmode -gameid greeniesgamecorekeepermap1 -logfile CoreKeeperServerLog.txt "$@" &

#

?

#

Started session with Game ID wFrlKNNEDIttPTLULQ7CnqgEgFiL

#

nope

fickle acorn
#

๐Ÿ˜ lmao

neon plover
#

gr8

#

well i submitted a bug report

#

i have another 2 that have not been replied to yet

#

ngl getting irritated with the system

fickle acorn
#

These things take time, some (or maybe all) of mine still aren't addressed either lol. I never asked for contact tho

neon plover
#

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

fickle acorn
#

Or someone who actually hosts a linux server lol

neon plover
#

anything would be nice

#

thanks for your help

#

i appreciate it

fickle acorn
#

Yea no worries, sorry we couldn't figure it out lol

neon plover
#

no worries - ill keep hunting hopefully i can work it out

fickle acorn
#

if so I see that also has the launch options in it App.CommandLineArgs={{$PlatformArgs}} -datapath "{{$FullBaseDir}}DedicatedServer" {{$FormattedArgs}} -batchmode -logfile -

neon plover
#

these args dont look like they directly effect the settings we are wanting to change

fickle acorn
#

yea I've no idea how Amp works any more lol

#

I just saw that in their github and thought it could possibly help

hollow needle
#

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

hollow needle
#

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?

neon plover
hollow needle
#

Yeah, can take the chat to the AMP server if you want

neon plover
#

but i dont know what im taking there xD

#

so youve updated the AMP template for core keeper?