Commit graph

6276 commits

Author SHA1 Message Date
James R
d1fb8f42f2 Fix switching the master server 2020-04-28 14:21:57 -07:00
James R
18ced99463 Put some mutex on CONS_Printf etc. hahaha 2020-04-28 13:08:43 -07:00
James R
c5beebbd48 Fucking multithreading in the server registration
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2020-04-28 12:33:50 -07:00
James R
f29e5ebf26 Wait for threads before SDL_Quit (lol) 2020-04-27 18:03:10 -07:00
James R
3a54cbd7a1 Create cond if it doesn't exist when signaling 2020-04-27 18:01:27 -07:00
James R
e85b6d567d Use malloc for hms 2020-04-26 21:56:59 -07:00
Steel Titanium
28e51c2d9e Support for http downloads
(cherry picked from commit 5e0eca9fe9)

(cherry picked just the libcurl stuff)
2020-04-26 20:01:15 -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
a4ef8dd401 Multithreading in my SRB2??? 2020-04-17 20:05:29 -07:00
James R
94267608c4 WHY THE FUCK DID I DO THIS 2020-04-15 22:04:55 -07:00
James R
2aca9918f0 Oops 2020-04-14 19:41:32 -07:00
James R
238e5099ac Handle NULL hms buffer 2020-04-14 16:55:14 -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
3440e0307b Add a hack so the 'All' room isn't display for hosting 2020-04-13 22:31:11 -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
James R
219d8c9380 HTTP update alert 2020-04-12 20:37:46 -07:00
James R
d8334f9a8f Fix some goofs 2020-04-12 18:33:53 -07:00
James R
7b2463a040 Bruh 2020-04-12 18:27:01 -07:00
James R
26c0049694 Clean up a bunch of stuff and follow the Master Server API more closely 2020-04-12 18:25:59 -07:00
James R
8a923a5b57 Windows certs do work, thanks Steel! 2020-04-12 17:51:30 -07:00
James R
c4995a5eba Handle more errors 2020-04-12 17:51:05 -07:00
James R
b9f5eaa739 Kill masterserver_token 2020-04-12 17:15:39 -07:00
James R
944034f42a This will be the Master Server in 2020 2020-03-20 20:37:26 -07:00
James R
cfdf650c3d Use https because my web server redirects 2020-03-01 12:31:49 -08:00
James R
4b0774ddf9 strtok can return NULL 2020-03-01 12:15:48 -08:00
James R
c7a8608a9b This time I fucked up 2020-03-01 11:59:54 -08:00
James R
2de41bf000 Windows gaysed: the sequel 2020-03-01 11:54:21 -08:00
James R
b34cbd2bdd Windows is weird 2020-03-01 11:46:02 -08: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
22a92a6247 I don't even know my own website 2020-03-01 11:17:56 -08:00
James R
fc817337ff lol 2020-03-01 10:59:25 -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
9beaac2e53 Merge branch 'fix-port-connect' into 'master'
Don't use client port as default peer port

See merge request KartKrew/Kart-Public!152
2019-07-05 11:54:28 -04:00
Sryder
8ac774a9d6 Merge branch 'add-floats-command' into 'master'
Fix the Add command when floats

See merge request KartKrew/Kart-Public!153
2019-07-05 11:49:46 -04:00
James R
460105cb8a Support adding to CV_FLOAT cvars with the Add command 2019-07-04 17:48:17 -07:00
James R
d4e950f17b Don't use client port as default peer port 2019-07-04 16:38:00 -07:00
Sryder
e14da85868 Merge branch 'opengl_match_software_wallclip' into 'master'
OpenGL: Try and Match Software Wallclipping Better

See merge request KartKrew/Kart-Public!150
2019-07-02 14:08:10 -04:00
Sryder
658e852a0c Merge branch 'revert-mserv' into 'master'
Revert mserv

See merge request KartKrew/Kart-Public!144
2019-06-30 15:56:17 -04:00
Sryder
d579a40221 Merge branch 'replay-code-sucks' into 'master'
Fix SIGSEGV when saving replays and invalid extrainfo offset

See merge request KartKrew/Kart-Public!149
2019-06-30 05:51:21 -04:00
Sryder
269050ecc7 Merge branch 'lemme-outa-room-menu' into 'master'
Don't get stuck in room menu in a modified game

See merge request KartKrew/Kart-Public!145
2019-06-27 14:16:37 -04:00
Sryder
6a53837d2c Update Skywall handling
I've tried to make this so it almost never under-compensates, and over-compensates very little where possible.
I don't think it's 1:1 to software's current behaviour, and probably never will be due to software being very strange.
2019-06-26 23:17:45 +01:00
James R
78bd39acd5 Someone doesn't know how pointers or WRITE macros work...
Fixes SIGSEGV when saving a replay.
2019-06-25 00:44:12 -07:00
Sryder
913225dd2a checkforemptylines can be static 2019-06-24 20:50:37 +01:00
Sryder
06592383a0 Match CheckClip to software's clipping check in R_AddLine
Has the added benefit of fixing noclip camera for opengl
Unfortunately SkyWalls are kinda broken with this. I'll be looking into them shortly.
2019-06-24 20:21:30 +01:00
Sryder
d63c05a5aa Merge branch 'replay-typo' into 'master'
Spell it "forward"

See merge request KartKrew/Kart-Public!147
2019-06-23 12:34:07 -04:00
James R
76c5e3d6fe Spell it "forward" 2019-06-22 21:40:20 -07:00