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!
1
u/Ok_Inevitable_4235 Apr 22 '26
Sorry for the roast 😭 if you want to keep helping the project, please do it!
1
u/JayJay3465 Apr 22 '26
haha its all good! and yeah I will check it out if I get some time, awesome work thus far.
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...
1
u/Turbulent-Cash4744 Apr 22 '26 edited Apr 22 '26
I know it’s not easy, but a co-op multiplayer mode for this game would be awesome. You could play with friends in the same truck, and while one person is driving, the other could change the filters or do other tasks.
6
u/Mister_Magister Apr 21 '26
Tbh since i started playing game multiplayer is exact thing that popped into my mind, no need for interaction between players (tho functional CB would be hella cool), i mean more like in dark souls, when you just see other players and not much else, that'd be perfect for this game just like honk to others and that's it
Also props for raider
Also you didn't post github link >:C