Godot server project for the Snow Ball Fight game.
- Clone the repository.
- Download the Godot Engine 4.3 if you haven't already.
- Run a new instance of the Godot Engine.
- Import and run the cloned project in the Godot Project Manager.
- Run the server with the Play button.
- Install the Export Templates from the Editor menu if you haven't already by going to Editor/Manage Export Templates... then clicking Install.
- Export the project as .pck file from the Linux Export Preset with the name of your choice eg. snow_ball_fight_server.pck.
- Open exports template folder by going to Editor/Manage Export Templates then clicking Open Folder.
- Copy the export template file which represents the platform and architecture of your export, assuming the exported pck file was for Linux platform with .x86_64 architecture with debug option on so select linux_debug.x86_64 file.
- Copy and paste the file to the folder of exported pck file.
- Rename the linux_debug.x86_64 file to match the name of the pck file excluding the file extension, something like this snow_ball_fight_server.x86_64
- Setup your Linux server either by yourself on a local machine with static IP address or by purchasing a suitable plan from a VPS provider such as Linode.
- After your Linux server is ready, take a note of your IP address using
ip addr
command if you have set it up on a local machine or by using your VPS provider's dashboard if you have set it up using a VPS provider such as Linode. - Copy those two selected files and paste them to your server, you can use FileZilla to transfer files to your server.
- SSH into your server, you can use PuTTY to do that.
- Update permissions on the snow_ball_fight_server.x86_64 to make it executable using
chmod +x snow_ball_fight_server.x86_64
command. - Run the snow_ball_fight_server.x86_64 file with
./snow_ball_fight_server.x86_64 --headless
- You can then create a systemd service for the server to keep it running, read more here.
- Follow Deploying Custom Server section from SnowBallFight repository.