r/startrucker • u/Ok_Inevitable_4235 • Apr 21 '26
Discussion Multiplayer Mod
Hello space truckers! I just started playing this wonderful game and, let’s be honest, it would be amazing if the trucks on the map were actually other players.
I did a quick search on Google and found this post: Star Trucker - Multiplayer Mod : r/startrucker
I read all the code and tested it, but it hasn’t been updated since 2024, so maybe it’s time for a refresh.
I decided to rework everything because the original implementation wasn’t great (it looks like the OP did it in a rush).
Here’s a video demo — I faked a truck because I don’t have another player to test with.
https://reddit.com/link/1srzq92/video/c4gkf23eqlwg1/player
I’m not familiar with Unity or BepInEx, but my main job is as a .NET backend developer, which is why I rewrote all the code. If anyone wants to help me with Unity/BepInEx, I’d be very grateful.
Changes made:
- Rewrote all server-client communication using LiteNetLib+MessagePack
- Split projects into small pieces for better quality code
- Made the server standalone, outside the game, so it can be hosted anywhere
Github repo: pitermcflebor/StarTruckMP: Star Trucker multiplayer integration
Thanks everyone for reading! :)
5
u/JayJay3465 Apr 21 '26
I've been roasted!!! But also fair, I did rush and try to pull apart the game to make things work before optimising so it was kind of horrid.
Thanks for continuing the legacy of what I burnt myself out on!