Commit graph

49 commits

Author SHA1 Message Date
James R
8bbd6e1b19 Make cv_advertise no by default, do not save 2020-09-12 18:54:44 -07:00
James R
d437bac34f Make cv_advertise NETVAR 2020-09-12 18:36:25 -07:00
James R
c0801c4413 Set masterserver to ms.kartkrew.org 2020-09-11 17:39:01 -07:00
James R
d3b31d1d76 When changing masterserver_update_rate, only update if elapsed time within the new rate 2020-09-11 06:50:31 -07:00
James R
3fc0c52599 Register/unregister server by changing cv_advertise 2020-09-11 06:49:41 -07:00
James R
7b1f974397 Basically, update master server code to v2
Removes rooms, replaced with cv_advertise and "Advertise" on the host menu.

According to the new API, SRB2APPLICATION is sent instead of MODID. A contact
field was added, but there is no means of accessing it or setting it.

As a slight change, the server list will be populated even on an outdated
version of the game. (The new API was designed with this in mind.) The update
alert is still presented first of course.
2020-09-11 06:11:41 -07:00
Sally Coolatta
54c487feff Merge branch 'next' into discord-rpc-support 2020-08-26 12:56:58 -04:00
Steel Titanium
d1d1b3aadf Screw you C90 2020-08-24 00:58:14 -04:00
Sally Coolatta
8c79d62b22 Merge remote-tracking branch 'public/next' into discord-rpc-support 2020-08-22 07:28:21 -04:00
Sally Coolatta
352449010e Display time elasped/time limit 2020-08-17 02:05:16 -04:00
James R
b681b6e9e6 Do not do master server things when NOCURL 2020-08-16 21:42:58 -07:00
Sally Coolatta
b5a378f850 Merge remote-tracking branch 'public/master' into discord-rpc-support 2020-08-16 22:12:36 -04:00
Sally Coolatta
632df264a3 Merge remote-tracking branch 'public/next' into discord-rpc-support 2020-08-16 20:57:31 -04:00
James R
44af4705bb masterserver_token is back 2020-06-12 23:47:08 -07:00
James R
42484ae5ca Set timeout on HMS connections 2020-05-15 13:20:40 -07:00
James R
5e0d79b833 Reset the masterserver address if the old one was set by the config 2020-05-12 19:22:30 -07:00
James R
67b226c801 Oops a debug condition snuck in there 2020-04-28 14:35:03 -07:00
James R
d1fb8f42f2 Fix switching the master server 2020-04-28 14:21:57 -07:00
James R
c5beebbd48 Fucking multithreading in the server registration
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2020-04-28 12:33:50 -07:00
James R
29bf51bc99 Make mod update, room list and server list multithreaded
This took fucking ages and it still fails sometimes in edge cases, but I
don't give a FUCK right now.
2020-04-26 19:46:35 -07:00
James R
ce4161d985 Compiler errors: won't stop, can't stop 2020-04-13 23:31:26 -07:00
James R
0e7678a5d5 masterserver_update_rate cvar determines wait between updates in minutes
The new default is 15 minutes as well. And if you think that's too long, I have
confirmed that the Master Server delists inactive servers after a whopping 40
minutes, at least.
2020-04-13 23:10:06 -07:00
James R
2a9ae68364 Don't try to update right after registering 2020-04-13 22:54:58 -07:00
James R
d15024482d Kill the old mserv, long live HMS! 2020-04-13 22:23:01 -07:00
James R
83464dbf1d Clean up header text 2020-04-13 21:20:29 -07:00
Sally Cochenour
53784f9940 No more modulo bullshit in VERSION
VERSION is the first number, SUBVERSION is the second number, and the third number burns in hell; we really don't need that precision

# Conflicts:
#	src/doomdef.h
2020-04-12 23:32:15 -05:00
James R
219d8c9380 HTTP update alert 2020-04-12 20:37:46 -07:00
James R
b9f5eaa739 Kill masterserver_token 2020-04-12 17:15:39 -07:00
James R
73a6c58325 masterserver_debug to set CURLOPT_VERBOSE 2020-03-01 11:39:27 -08:00
James R
5a7ee3f3d8 Don't show "All" room when hosting 2020-03-01 11:19:59 -08:00
James R
e099ba0118 The big bad HTTP master server
Cvars:

http_masterserver is the url to the master server's API.
masterserver_token may be an authentication token.
2020-03-01 02:36:56 -08:00
Sryder
3ee34f7518 Integer comparison warning 2019-06-19 21:54:11 +01:00
James R
e3e8465a2d Open a new connection before we check socket errors
And somehow this applies if you use `addfile` after having added the server.
Some claim that there are other cases too.
2019-02-09 07:50:26 +00:00
TehRealSalt
4507ee18fd Merge remote-tracking branch 'srb2public/next' into merge-next 2018-11-29 08:49:50 -05:00
Monster Iestyn
72fc63eb8a Merge branch 'ms-cvars-fix' into 'master'
Update server name insantly

See merge request STJr/SRB2!344
2018-11-25 14:04:12 -05:00
mazmazz
c91b2b4456 Update source copyrights to 2018 2018-11-25 07:35:38 -05:00
Steel Titanium
0023f8d7eb Update server name instantly on change 2018-11-24 21:24:05 -05:00
Monster Iestyn
1fa80d57dd Make sure GetMODVersion and its console equiv properly detect failing to get a reply from the MS, also added extra console/menu messages 2018-11-19 17:46:38 +00:00
TehRealSalt
27d28040a7 Missed these from an old experiment 2018-10-22 14:57:02 -04:00
TehRealSalt
d1981b0a65 Half-done Discord Rich Presence support
It's soooo close to being awesome, but so far away. Making game invitations as the host meant that it would redirect to "connect self" for other people, because we can't get the IP address from the host.

If anyone has a solution, you've got my gratitude; this was going so smoothly until it hit that brick wall.
2018-10-22 00:34:45 -04:00
TehRealSalt
7e9bcf5a49 Merge remote-tracking branch 'refs/remotes/srb2public/master' 2018-01-02 22:59:43 -05:00
Alam Ed Arias
faf88cf2e5 TCP: remove BADSOCKET 2017-12-26 19:56:50 -05:00
TehRealSalt
5fe2f4928f Merge remote-tracking branch 'refs/remotes/srb2public/next' into zarrotsu
# Conflicts:
#	src/doomdef.h
#	src/sdl/i_main.c
#	src/sdl/i_video.c
#	src/y_inter.c
2017-10-17 15:53:34 -04:00
Monster Iestyn
900bab9b13 Fix includes for SDL 1.2-only ports' files 2017-09-14 21:15:38 +01:00
ZTsukei
f50ecc0dcd Most items work (netgame needs testing), will do fireballs later. 2017-02-26 17:38:24 -05:00
ZTsukei
e4a970f894 Starting from scratch. SRB2 v2.1.15 2016-07-06 00:10:19 -04:00
Inuyasha
f07585191b copyright dates/statements updated and such
(no actual SLOC changes)
2016-05-17 17:42:11 -07:00
Alam Ed Arias
d90536967d removed/remline ununsed code 2016-03-30 14:05:07 -04:00
Alam Ed Arias
b93cb1b65a SRB2 2.1 release 2014-03-15 13:11:35 -04:00