space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.56k stars 3.17k forks source link

Device linking needs prediction #25042

Open metalgearsloth opened 7 months ago

metalgearsloth commented 7 months ago

Title, flipping levers / opening linked doors feels bad.

deltanedas commented 7 months ago

a lot/all packet handling is serverside so this would be big

Bixkitts commented 7 months ago

New to networking in SS, so I'll give this a go to figure it out. What I've gathered so far:

So imma try move InvokePort() and whatever it calls into Shared and auto replicate DeviceLinkSinkComponent as a starting point. (edit: looked at comp replication code, AutoGen is pretty chill)

Bixkitts commented 5 months ago

Read like all existing net replication code, made hundreds of lines of changes before noticing I forgor to build the new branch to begin with so LSP was broken and I rage quit. If another newer person wants to take a shot at this, feel free but not obligated to hmu for a team up.