Skip to content

Instantly share code, notes, and snippets.

@OnniSaarni
Last active June 12, 2024 08:59
Show Gist options
  • Save OnniSaarni/a3f840cef63335212ae085a3c6c10d5c to your computer and use it in GitHub Desktop.
Save OnniSaarni/a3f840cef63335212ae085a3c6c10d5c to your computer and use it in GitHub Desktop.
SPT MPT/Fika Server With Docker Ubuntu/Debian/Raspberry Pi

Setting up Fika SPT server with docker for Ubuntu/Debian/Raspberry Pi

This guide has now moved to here https://github.com/OnniSaarni/SPT-Fika-Docker-Guide

This gist can still be used for discussion if you'd like.

Feel free to make an issue or a pull request if you'd like to contribute by expanding some sections or just otherwise contributing something to the guide.

Scripts and automated tools are welcome too if you wish to have them in the repo.

@B0d4
Copy link

B0d4 commented Jun 1, 2024

@OnniSaarni Thanks for the answer, I created a thread on discord but it wasn't exhausted as much as I wanted. I understand everything, but how to make the server with data remain on the VPS to make progress in the cloud, but when I connect with a friend to a joint raid, how can I add it so that the game is redirected to me, but after the end we are on the VPS in the cloud? When I use this VPN, do I also open port 25565 or does it remain intact due to the VPN but the Windows firewall has been unblocked?

@OnniSaarni
Copy link
Author

@OnniSaarni Thanks for the answer, I created a thread on discord but it wasn't exhausted as much as I wanted. I understand everything, but how to make the server with data remain on the VPS to make progress in the cloud, but when I connect with a friend to a joint raid, how can I add it so that the game is redirected to me, but after the end we are on the VPS in the cloud? When I use this VPN, do I also open port 25565 or does it remain intact due to the VPN but the Windows firewall has been unblocked?

So when starting the game you set the launcher URL to your vps ip and then you're connected to the server. Now if you want to host a raid you either port forward 25565 or use a VPN like radmin and connect to your friend trough that. You also have to change your ip in the F12 Fika setting force ip to the raid hosts ip. I would recommend using the firewall fixer tool in the discord if you already haven't.

The server on the VPS handles only your hideout and stash stuff. As long as you start your game trough the launcher with the VPS ip as the URL you should be connected to the VPS server. The raids on the other hand are handled by your pc.

This is not a problem with this guide or your VPS setup if you can start the game with the url as the vps ip. For further support please go to the discord. This is a common problem among players and you'll find a solution by just doing some searching or making a support post.

@lommy7
Copy link

lommy7 commented Jun 1, 2024

@HectorLeeYE I haven't ran into issues with the 3 user limit (but only 3 people currently play on my server anyways). I will say I don't think the user limit applies for this case as hosting via tailscale is just sharing the one device from your tailnet out to your friends but I could be wrong.

@B0d4
Copy link

B0d4 commented Jun 2, 2024

@OnniSaarni I had the opportunity to test everything works very well, VPS and stores in the cloud save and the rally runs the host. Beautiful job! Now we are waiting for the entire Linux server to be able to put 🤞🏻

@HectorLeeYE
Copy link

Sorry for those who helped answer my Raspberry PI questions but I couldn't use a raspberry pi in the end as I couldn't find a coupon to get a discount on a raspberry pi from a shop in my country (Singapore) 😅

With that said, for anyone who is googling this, I can confirm that this works on a Linux VPS. That said, as I've stated (and checked by others), this server is a HTTP server. It's not that lightweight (meaning that the cheapest VPS will not allow you to get away), but the second VPS should be fine.

I've kindly attached an image to show how much RAM you generally need (You do this by running free -h in terminal. Note: If you're using a windows VPS, you might need to RDP inside as I am very sure that this command does not work inside windows cmd
** I am running a few server side mods (AI Spawning, bot brains)
NeedRamGithub

Perhaps @OnniSaarni could add a small section to your github docker repo page detailing that you'll need 1GB Minimum, and that this isn't really recommended because there could be a spike? I'll edit this comment again if there are any issues with spikes since I honestly have not tested system scalability stats according to number of players connecting

@OnniSaarni
Copy link
Author

@HectorLeeYE I would consider it pretty lightweight if it only uses 1gb of ram. Other game servers use a lot more resources. I'll probably add some minimum system requirements on the page soon. Thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment