Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.
mirror-instance-demo
throughout.us-central1 (Iowa)
and the zone us-central1-a
throughout.N1
for seriesf1-micro
for machine type10gb standard persistent disk
with Debian GNU/Linux 9 (stretch)
for this tutorial.Note: The monthly estimate should be shown at the top right next toName
Management, security, disks, networking, solo tenancy
section, then click on the Networking
tab.mirror-demo
as the tagdefault
and it will bring up a config menuCreate IP address
mirror-demo-ip
mirror-demo-rule
mirror-demo
note tcp and port 7777 is default settings for telepathy, if you are using a different transport you will need to find out what settings that uses.If KCP is on your NetworkManager, unblock UDP, not TCP.
screen
and unzip
screen
allows you to have multiple terminals, allows you do do other stuff while your game is runningunzip
unzips can be used to extract files from a ZIP file after you upload it to the instanceLinux
and Server Build tickedNote: the destination will be/home/username
where username should be the cloud account you are logged into.
screen -d -m
will create the new terminal in detached mode-S mirrorServer
name of the screen./mirror-demo.x86_64
your game server file-logfile ~/server.log
unity argument for log file location, this will create a log file in the home directorystart.sh
screen
screen -ls
-S
when creating the screen, for this tutorial it was mirrorServer
CTRL A + D
CTRL + C
to stop the process, this will stop your game and close the screen-logfile ~/path/to/log.log
argument for Unity when starting your game server. This will cause the logs to be written to a file instead of to the terminal. This will means recent logs wont show up in screen -r
.tail
command to view the the end of the log file-n
argument to set how many lines to show-f
argument follow the end of the file stream showing you any new logs that are written to the file in real time. You will need to press CTRL + C
to exit follow mode