Skip to content

Fix remaining network message overflows#1935

Open
VReaperV wants to merge 1 commit intofor-0.56.0/syncfrom
fix-net-overflow
Open

Fix remaining network message overflows#1935
VReaperV wants to merge 1 commit intofor-0.56.0/syncfrom
fix-net-overflow

Conversation

@VReaperV
Copy link
Copy Markdown
Contributor

Same as #1427 but works for snapshots and a few other things too. Can be tested on plat23 with layout https://users.unvanquished.net/~reaper/maps/layouts/plat23/test.dat - build an armoury near the eggs and spam firebombs at them. On 0.56 this causes a crash, on this branch there's no crash (albeit it results in some rubber-banding while there's still a lot of fire, but it's better than crashing).

Comment thread src/engine/client/cl_main.cpp Outdated
Comment thread src/engine/server/sv_snapshot.cpp Outdated
Comment thread src/engine/server/sv_client.cpp Outdated
@illwieckz
Copy link
Copy Markdown
Member

What's the status on this? @VReaperV @slipher

@slipher
Copy link
Copy Markdown
Member

slipher commented Apr 30, 2026

Something that should be tested is whether the partial gamestates behave correctly with packet loss. In case the client does not receive a gamestate it is supposed to indicate somehow that the server needs to resend it but I'm not sure exactly how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants