zturtleman/spearmint

Error when disconnecting to download pk3 file from server.

mecwerks opened this issue · 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

I added a workaround for Spearmint 1.0.x in 2d51140, 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.

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.