spearmint icon indicating copy to clipboard operation
spearmint copied to clipboard

Error when disconnecting to download pk3 file from server.

Open mecwerks opened this issue 6 years ago • 2 comments

When the client disconnects from the server to download a missing pk3 file it fails and gives this error:

ERROR: cgame needs to call trap_SetNetFields

Downloading works fine if not using sv_dlURL or if sv_allowDownload is set to 8. Which disables disconnecting the client to download the file.

Tested on Spearmint b7d2d58 and mint-arena 21d91ce

mecwerks avatar May 29 '19 01:05 mecwerks

I added a workaround for Spearmint 1.0.x in 2d511401cc08ccabfbe396d2e6a085b046128a74, thanks. A proper fix requires changing the network protocol to allow running server commands without parsing snapshots. Leaving issue open for a proper fix in Spearmint 1.1.0.

zturtleman avatar May 31 '19 02:05 zturtleman

Added notice to Spearmint website for 1.0.x: Servers using sv_dlUrl for HTTP downloads need to set sv_allowDownload to 9 for UDP/HTTP or 8 for HTTP only to avoid a client error.

zturtleman avatar May 31 '19 03:05 zturtleman