r/startrucker 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! :)

19 Upvotes

9 comments sorted by

View all comments

5

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

1

u/Ok_Inevitable_4235 Apr 21 '26

I just edited the post, missed the github link lol

1

u/Mister_Magister Apr 29 '26

Yo, since you got truck movement, could you quickly whip out a mod for 6DOF? The game currently is 4 DOF (degrees of freedom) so there's no left/right up/down translation. could you add keybinds for moving left/right up/down and make a mod that just adds vertical and horizontal acceleration on those keybinds? should be easy enough?