Commit graph

6900 commits

Author SHA1 Message Date
James R
ef4229a42f 7b1f97439 lies btw, you can set the server_contact cvar 4head 2020-09-11 07:10:21 -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
Sal
aa2d63369a Merge branch 'better-windows-path' into 'next'
SetCurrentDirectory to where the exe lives

See merge request KartKrew/Kart-Public!219
2020-09-02 23:16:13 -04:00
James R
6466291ac6 Oops :v 2020-08-31 19:34:43 -07:00
James R
9ad0a0660c Just SetCurrentDirectory to the exe's folder on windoze 2020-08-31 01:23:56 -07:00
Sally Coolatta
7561c69266 Increase cipher length 2020-08-31 00:25:28 -04:00
Sally Coolatta
528ed46661 Remove default dirs on Windows
Cause more issues than fixes. Still around for Linux.
2020-08-31 00:06:47 -04:00
Sally Coolatta
2a93c2260d Expand IP_SIZE 2020-08-30 23:41:27 -04:00
Sally Coolatta
f11481fbe2 Move to D_RegisterServerCommands 2020-08-30 23:35:41 -04:00
Sally Coolatta
1a0e134d10 Bruh, lowercase 2020-08-30 23:31:54 -04:00
Sally Coolatta
40b0a2479e Wrong file 2020-08-30 23:26:00 -04:00
Sally Coolatta
2d7c835c4d Dedicated servers can change discordinvites without needing RPC support 2020-08-30 23:20:06 -04:00
James R
7c1f73ed71 NO_DISCORDRPC to disable rich presence on Windows 2020-08-30 19:11:30 -07:00
James R
b66b0bf648 Update versions to 1.3 2020-08-30 19:06:31 -07:00
James R
fbd1280e17 Update patch.kart asset hash 2020-08-30 19:02:31 -07:00
James R
ffff6accce Merge remote-tracking branch 'origin/master' into next 2020-08-30 19:01:04 -07:00
Sal
1bf259e341 Merge branch 'world-tour' into 'next'
Flush random map pool after all but 3 are played

See merge request KartKrew/Kart-Public!216
2020-08-30 21:49:20 -04:00
Sal
d55e5e8d8d Merge branch 'easy-colors' into 'master'
Caret color codes in server name

See merge request KartKrew/Kart-Public!218
2020-08-30 21:49:03 -04:00
Sal
4b9188b626 Merge branch 'discord-rpc-support' into 'next'
Discord Rich Presence

See merge request KartKrew/Kart-Public!207
2020-08-30 21:48:44 -04:00
Sally Coolatta
b8f1842855 Use ENTER and ESC
A and B are v2 terminology
2020-08-30 21:42:04 -04:00
James R
8557f23b9e Merge branch 'master' into next 2020-08-29 18:22:19 -07:00
James R
754347987d Fix stupid NONET
(cherry picked from commit 679bfa21edec6b652def93082da5586e6c755678)
2020-08-29 18:19:39 -07:00
James R
df78298a11 C90?
(cherry picked from commit 1f38db46298181d117432e12e88b326a92b4b785)
2020-08-29 18:19:15 -07:00
James R
c7dbc889ef Merge remote-tracking branch 'origin/master' into next 2020-08-29 11:26:52 -07:00
Sally Coolatta
18a7f1b3f6 Add join/leave notification sounds 2020-08-27 20:10:25 -04:00
Sally Coolatta
ed88e4dd7c This should be set for server too!! 2020-08-27 19:36:37 -04:00
Sally Coolatta
5e9e3e163d Attach initial join discord info to servercfg, so that we don't have a pause from needing to also send XD_DISCORD
XD_DISCORD is now reserved for when the options are changed mid-game
2020-08-27 19:14:45 -04:00
Sally Coolatta
61d6ee0982 Misc changes to how the program runs
- Call DRPC_Init at the end of D_SRB2Main instead of in the middle
- Call Discord_RunCallbacks in D_SRB2Loop instead of G_Ticker
- Fix errorcount nums in I_Error, an old leftover from when Discord_Shutdown was not handled by I_AddExitFunction
2020-08-27 18:50:36 -04:00
James R
7a19d9a9df Convert caret color codes to SRB2 color codes 2020-08-27 15:44:06 -07:00
James R
dcad2cd1fa Convert from caret colors when sending SERVERINFO 2020-08-27 15:43:20 -07:00
Sal
9c04407967 Merge branch 'expose-demoplayback' into 'next'
Expose demo.playback to Lua

See merge request KartKrew/Kart-Public!217
2020-08-27 18:18:39 -04:00
Steel Titanium
9be59cc560 Expose demo.playback to Lua 2020-08-27 14:58:46 -04:00
TehRealSalt
99e3adcdca Flush random map pool after all but 3 are played 2020-08-27 14:32:44 -04:00
Sal
9df376e537 Merge branch 'check-defaultdir' into 'master'
Check ~/.srb2kart for srb2.srb

See merge request KartKrew/Kart-Public!215
2020-08-27 14:08:17 -04:00
James R
e4a522353f Say DEFAULTDIR not .srb2kart 2020-08-26 23:37:52 -07:00
James R
45af41ef0c Check DEFAULTDIR for srb2.srb after cwd 2020-08-26 20:20:40 -07:00
Sally Coolatta
54c487feff Merge branch 'next' into discord-rpc-support 2020-08-26 12:56:58 -04:00
Sally Coolatta
29b4bf872f Merge branch 'master' into next 2020-08-26 12:56:38 -04:00
Sal
55821da246 Merge branch 'various-compiling-fixes-2' into 'master'
Fix some compile flags

See merge request KartKrew/Kart-Public!213
2020-08-26 09:58:35 -04:00
Sal
3064c87212 Merge branch 'too-many-characters' into 'master'
Warn players when going over the skin limit

See merge request KartKrew/Kart-Public!214
2020-08-26 09:58:22 -04:00
ThatAwesomeGuy173
11f98adad4 Replace 'ignoring skin' debug print with a proper console warning 2020-08-25 23:13:58 -06:00
Sal
f93c5f435d Merge branch 'various-compiling-fixes' into 'next'
Various compiling fixes

See merge request KartKrew/Kart-Public!212
2020-08-25 18:36:51 -04:00
James R
3f8edd38a5 Fix NOHW compiling 2020-08-24 18:06:00 -07:00
James R
a79316b375 Kill NOHS 2020-08-24 17:58:39 -07:00
James R
6a14d9c1d4 Fix NOMIXER compiling 2020-08-24 17:55:42 -07:00
James R
594600e5ae Fix NOPNG compiling 2020-08-24 17:52:55 -07:00
James R
d52a35e5b6 Fix NOGME compiling 2020-08-24 17:51:01 -07:00
Sal
60dc56dfe3 Merge branch 'fix-asktime-really' into 'next'
Avoid underflows on connection screen timer (fixes hosting servers)

See merge request KartKrew/Kart-Public!211
2020-08-24 16:09:33 -04:00