SmartlyDressedGames / Unturned-Docs

Documentation for Unturned's modding features.
135 stars 49 forks source link

Unturned server protocol #283

Closed juls0730 closed 11 months ago

juls0730 commented 11 months ago

Hi SDG,

I hope this message finds you well. I've been working on building a custom Unturned server in Rust, So that I can learn a little about networking and learn a little more about how Unturned works under the hood. So far, I have successfully implemented a query server using the Server queries documentation provided by Valve.

Now that I'm progressing to build the actual game server, I'm facing a challenge: I can't seem to find any documentation on the protocol utilized by Unturned. But, I can't seem to find any information or leads as to how the game server works. Could you please point me in the right direction or provide some insights into the protocol?

Your assistance would be immensely appreciated. Thank you so much for your time and support.

Kind regards, juls0730

SDGNelson commented 11 months ago

Thanks for your nicely written message, but sorry to say the Unturned server isn't designed to be externally reimplemented. i.e., the layout of network messages may be changed at any time without backwards compatibility. I'm not sure Unturned's network code is a particularly good point of reference if you're interested in learning about game networking because I had no prior experience when writing it. That being said, there is this repo with all of the network code: https://github.com/Unturned-Datamining/Unturned-Datamining

juls0730 commented 11 months ago

Thanks!