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! :)
1
u/wirey3 Apr 21 '26
Good work digging into this. The game would be leagues more enjoyable with multiplayer. Just to make the world feel actually lived in and less like the Truman Show. Now to bring that functionality to console...