James R
16fc87edcf
Fix NOMIXER compiling
2020-08-24 17:55:42 -07:00
James R
fbde926497
Fix NOPNG compiling
2020-08-24 17:52:55 -07:00
James R
0d57ba1d02
Fix NOGME compiling
2020-08-24 17:51:01 -07:00
Sal
bea6b6a9d2
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
Steel Titanium
c6164a1947
Initialize this variable
2020-08-24 01:25:34 -04:00
Steel Titanium
41c742a699
Hopefully the last time...
2020-08-24 01:18:38 -04:00
Steel Titanium
87d2ad0c23
Remind me why NONET exists?
2020-08-24 01:13:59 -04:00
Steel Titanium
04b7051141
This is just stupid
2020-08-24 01:06:10 -04:00
Steel Titanium
84bab3fc9f
Turns out compiling with the internal version of curl was broken on CMake the entire time 🙃
2020-08-24 01:00:28 -04:00
Steel Titanium
d4006d00c3
Screw you C90
2020-08-24 00:58:14 -04:00
Steel Titanium
509c57a8d6
Haha NONET...
2020-08-24 00:56:53 -04:00
Steel Titanium
e58c9ac410
It's discord-rpc, not libgme
2020-08-23 17:45:31 -04:00
Steel Titanium
d9cbb69327
Better CMake support
...
No idea if it compiles on Mac, it does on Linux though, at least for me.
2020-08-23 16:15:33 -04:00
Sally Coolatta
585cb1cfe3
Finish DEVELOP mode functionality
2020-08-23 07:15:33 -04:00
Sally Coolatta
720eced665
Attempt to improve discord-rpc checking in CMake
...
Haven't ever gotten CMake to compile SRB2, so I'm unable to really check if this works
2020-08-23 06:45:35 -04:00
Sally Coolatta
175fa43c90
Update win 32 bit libraries, implement win 64 bit libraries
2020-08-23 05:47:55 -04:00
Sally Coolatta
e2f3e76db8
Merge branch 'next' into discord-rpc-support
2020-08-23 05:32:32 -04:00
Sal
88e7b6198d
Merge branch 'lineriding-b-gone' into 'next'
...
Kill offroad line riding
See merge request KartKrew/Kart-Public!199
2020-08-23 05:09:55 -04:00
Sally Coolatta
7d380c326b
Merge branch 'master' into next
2020-08-23 04:44:27 -04:00
Sally Coolatta
3ce6b8a54f
Fix version string
2020-08-23 04:44:05 -04:00
Sal
d0629a9c13
Merge branch 'fix-ogl-timedemo' into 'master'
...
Fix timedemo in OpenGL mode
See merge request KartKrew/Kart-Public!209
2020-08-23 04:38:57 -04:00
Sal
3f16ef2eaa
Merge branch 'misc-optimizations' into 'master'
...
Remove ESLOPE POLYOBJECTS POLYOBJECTS_PLANES #ifdefs (backport srb2 2.2)
See merge request KartKrew/Kart-Public!204
2020-08-23 04:38:05 -04:00
James R
5daaef7e87
Avoid underflow hacks completely with asktime
2020-08-22 18:38:20 -07:00
James R
89ba08a376
Make join requests options on pause menu selectable even if you're already in the menu
2020-08-22 17:16:49 -07:00
James R
805fb01df9
Skip XD_DISCORD payload in non Discord builds
2020-08-22 16:26:15 -07:00
Hannu Hanhi
4210352be9
Fix timedemo in OpenGL mode
2020-08-23 00:10:50 +03:00
Hannu Hanhi
5c13727aac
Fix replay recording memory leak
2020-08-22 22:04:45 +03:00
Sally Coolatta
084756ec72
Fix XOR not working
2020-08-22 09:46:25 -04:00
Sally Coolatta
5de27be169
Merge remote-tracking branch 'public/next' into discord-rpc-support
2020-08-22 07:28:21 -04:00
Sally Coolatta
e5238d095f
Remove timer variable
...
Doesn't feel necessary to me anymore, especially with how the menu works
2020-08-22 07:25:47 -04:00
Sally Coolatta
f61e3a77bd
Ask to join is a menu option, rather than trying to replace your menu temporarily.
2020-08-22 07:16:52 -04:00
lachwright
32f2ed4a53
Correct misplaced MT_ARIDTOAD listing
2020-08-22 17:35:31 +08:00
Sally Coolatta
6f9025a14d
Merge branch 'discord-rpc-support' of https://git.magicalgirl.moe/KartKrew/Kart into discord-rpc-support
2020-08-22 05:03:43 -04:00
Sally Coolatta
3d5d5ad8b5
Always have XD_DISCORD defined, so that people compiling without Discord support can connect to servers that do.
2020-08-22 05:03:08 -04:00
lachwright
e01c7aef32
Compile m_menu.c without HAVE_DISCORDRPC
2020-08-22 16:58:59 +08:00
Sally Coolatta
3c128660b4
Add envelope icon, add sounds
2020-08-22 04:54:08 -04:00
Sally Coolatta
98f586a2f9
Menu is pretty now
2020-08-22 03:52:07 -04:00
Sally Coolatta
571c670670
Add some options, maxplayer/allownewplayer dont need to be netvars anymore
2020-08-22 01:53:27 -04:00
Sally Coolatta
8ff62cdc7f
Base xor off of inital seed
2020-08-22 00:11:33 -04:00
Sally Coolatta
e0d0a3a74e
Ignore any duplicate requests
...
You will still get a message for them, so if they're being annoying you will want to block them anyway, but at least it won't clog up the game.
2020-08-22 00:01:56 -04:00
Sally Coolatta
4d8c65bb73
Don't reset menu in drawing function
2020-08-21 04:17:36 -04:00
Sally Coolatta
983a978c12
Merge branch 'discord-rpc-support' of https://git.magicalgirl.moe/KartKrew/Kart into discord-rpc-support
2020-08-21 04:14:36 -04:00
Sally Coolatta
339be6f90e
Invite menu started
...
Functions! Is not pretty yet!
2020-08-21 04:14:33 -04:00
James R
0b07d0ed6f
curl_global_cleanup
2020-08-20 22:36:41 -07:00
Sally Coolatta
7b1e14d017
Don't show map image for title screen demos
2020-08-21 01:18:40 -04:00
Sally Coolatta
6a86d86828
XOR IP addresses before sending them to Discord
...
Not complex because we aren't sending anything that isn't easily accessible via the Master Server anyway, just means we aren't sending plain-text IPs to Discord. Might be improved by basing the XOR key on other values (base RNG, maybe version) so that it's not like *right* there
2020-08-21 01:16:11 -04:00
Sal
0ca9f8f07d
Merge branch 'conenction-screen-improvements' into 'next'
...
Connection screen improvements
See merge request KartKrew/Kart-Public!187
2020-08-21 00:11:37 -04:00
Ashnal
9e1d7146ad
Fixed retry timeout to no ttrigger when starting a local server
2020-08-20 23:38:04 -04:00
Ashnal
247239c2bc
Add return false to the connect timeout
2020-08-20 23:09:12 -04:00
James R
5b0cb1afcb
Merge remote-tracking branch 'origin/master' into next
2020-08-20 19:55:03 -07:00
FlykeSpice
c09cb6d762
Remove POLYOBJECTS POLYOBJECTS_PLANES #ifdefs(backport from srb2 2.2)
2020-08-20 13:02:13 -04:00
FlykeSpice
00137ef4ea
Remove ESLOPE #ifdef(backport from srb2 2.2)
2020-08-20 13:02:13 -04:00
Sal
79c299bf31
Merge branch 'port-port-port' into 'master'
...
2.2's random client port
See merge request KartKrew/Kart-Public!201
2020-08-20 12:19:52 -04:00
Sal
67b37e54b6
Merge branch 'snapback' into 'master'
...
Instantaneous lookback camera (v2 backport)
See merge request KartKrew/Kart-Public!203
2020-08-20 12:19:41 -04:00
lachwright
d0d6128053
Instantaneous lookback camera (v2 backport)
2020-08-20 13:41:03 +08:00
Ashnal
aa2b25e667
Well actually, lets fix all comparisons of askset to use the same comparison
...
If we initialize to I_GetTime() - NEWTICRATE*3 it never underflows and everything is good
2020-08-20 00:54:18 -04:00
Steel Titanium
e3f07b33bb
GME cleanup and fixes
...
Just some stuff backported from SRB2 2.2, well mostly
get_zlib_error function to reduce code duplication
Return false if it fails to load the VGZ lump
Reduce redundant calls to gme_set_equalizer
Fix sometimes loading a VGZ crashing the game
2020-08-19 22:39:12 -04:00
James R
94512c49e4
-clientport (it's back!) and -serverport, which is an alias to -port
...
If you ever need to, you can change the client port number.
(cherry picked from commit 843d9b9f0a345330d97c579e94f208eb2b65c156)
2020-08-19 18:16:54 -07:00
James R
b77541b51d
Use a pointer for port_name
...
Using strcpy is stupid because we don't know how long the argument would be.
There's no need for a buffer anyway.
(cherry picked from commit 4e321012894b2aa87e312597f19be26b30545a8b)
2020-08-19 18:16:53 -07:00
James R
b1f5e66a23
Use a random port when connecting
...
(cherry picked from commit f584b61c93a97e1a9852f306acba673ced21e03a)
2020-08-19 18:16:53 -07:00
James R
65968f00d3
Fix tiny mistake with the last commit
2020-08-19 17:55:01 -07:00
James R
1cd7c3b747
Rearrange time comparsion on asksent to make it underflow friendly
...
This fixes '-connect'. NEWTICRATE*5 is subtracted from asksent after
CL_LOADFILES. If this happens too early, an underflow will occur.
2020-08-19 17:49:47 -07:00
Sal
a335d6b583
Merge branch 'fix-nocurl' into 'master'
...
Fix NOCURL compiling
See merge request KartKrew/Kart-Public!197
2020-08-19 20:36:14 -04:00
Sal
c6f85cde59
Merge branch 'httpsource-without-curl' into 'master'
...
Let servers send httpsource without curl
See merge request KartKrew/Kart-Public!196
2020-08-19 20:36:06 -04:00
Ashnal
cadb4719cf
Added m_menu_mutex to M_Drawer in connection screen
2020-08-19 19:52:24 -04:00
Ashnal
648a950ac8
Merge remote-tracking branch 'public/next' into conenction-screen-improvements
2020-08-19 19:08:33 -04:00
Ashnal
7c5740d98f
COnfirm box now respects rebindable accelerate and brake on keyboards
2020-08-19 18:01:56 -04:00
James R
1bf0794d6a
Copy the saved wad directory to srb2path
2020-08-17 21:27:59 -07:00
James R
c0cac645f8
hate hate hate hate
2020-08-17 21:22:25 -07:00
Sally Coolatta
234983909a
Don't show gametype when watching replays
2020-08-17 23:33:55 -04:00
James R
2a2d43a20b
Save srb2path to %LOCALAPPDATA%\SRB2Kart\lastwaddir, and chdir here if srb2.srb cannot be found
...
Windows code goes brrr
2020-08-17 20:11:32 -07:00
Latapostrophe
392b24b769
Merge remote-tracking branch 'stjr/io' into kart-io
2020-08-17 20:22:02 +02:00
Sally Coolatta
c76c1b8420
Show game speed and encore
2020-08-17 09:08:05 -04:00
Sally Coolatta
27654ffb6a
Don't allow invites if allowjoin is off
2020-08-17 06:55:43 -04:00
Sally Coolatta
d163f67700
Update presence when maxplayers is changed
2020-08-17 06:52:46 -04:00
Sally Coolatta
83192827dc
Fix ZONE being all caps, standardize the function comments
2020-08-17 06:13:32 -04:00
Latapostrophe
d56fdbb933
Kill line riding for offroad
2020-08-17 12:01:16 +02:00
Sally Coolatta
da5bda72ee
Add distinct images for map hell & normal custom maps
2020-08-17 04:42:22 -04:00
Sally Coolatta
a04361a151
Check supported skins by name instead of number, so we can have bonuschars images
2020-08-17 04:42:05 -04:00
Ashnal
eb81bea943
Move code down so declarations are above to appease C90
2020-08-17 04:03:02 -04:00
Ashnal
03150e5fe6
Move declaration to appease C90
...
also remove some extra tab characters
2020-08-17 03:56:13 -04:00
Ashnal
afc6bdbc7e
Fixes for file accounting
...
mainwads+1 to not use the first mainwad
2020-08-17 03:51:19 -04:00
Ashnal
9a9d81bbe0
New message boxes for downloads and full server waiting
...
Downloads must be confirmed before proceeding
Allows downloading mods for full servers
Client will wait for a slot to open on a full server to join
This has a 5 minute timeout
2020-08-17 03:47:23 -04:00
Sally Coolatta
9f4ad1303e
Put the cvar in the menu
2020-08-17 02:31:30 -04:00
Sally Coolatta
886db8cde1
Guard discord.h, add cvar to disable rich presence
2020-08-17 02:25:05 -04:00
Sally Coolatta
41a401f703
Merge branch 'master' into next
2020-08-17 02:05:31 -04:00
Sally Coolatta
8d386fba66
Display time elasped/time limit
2020-08-17 02:05:16 -04:00
James R
7a05a8acf7
Do not do master server things when NOCURL
2020-08-16 21:42:58 -07:00
Sally Coolatta
d709e9782d
Use curl to retrieve your own IP address properly
2020-08-17 00:29:52 -04:00
James R
5dc3ca3934
Remove HAVE_CURL guards on sending httpsource
2020-08-16 20:39:46 -07:00
Sally Coolatta
47f95e22d5
Allow lowercase level name / zone title
...
Might have some other side-effects, we'll need to see
2020-08-16 22:13:21 -04:00
Sally Coolatta
f5bd9d097f
Merge remote-tracking branch 'public/master' into discord-rpc-support
2020-08-16 22:12:36 -04:00
Sally Coolatta
07c916f6d2
Little fixes
2020-08-16 21:31:03 -04:00
Sally Coolatta
df0cc6a727
No previous prototype for K_DropKitchenSink
2020-08-16 21:18:33 -04:00
Sally Coolatta
c8fa1dcfb5
Merge remote-tracking branch 'public/next' into discord-rpc-support
2020-08-16 20:57:31 -04:00
Kimberly Wilber
1bfcec9242
[OSX] Fix "SIGILL: illegal instruction" on macOS Catalina
...
on OSX, strncpy may copy to overlapping (protected) memory. this
sometimes happens when loading WAD files.
This patch eliminates these problems for me
2020-08-15 12:16:05 -04:00
Ashnal
f800159bb8
Improve total downloads bar
...
Now has total file size AND number of files
2020-08-15 01:03:45 -04:00
James R
a772096757
dumbass doesn't test changes before pushing directly to next
...
(cherry picked from commit be14b8a564a89a5afb84ac19f1586f3db7f68367)
2020-08-14 08:27:25 -07:00
Sal
06f36224ee
Merge branch 'http-mserv' into 'master'
...
Make the HTTP Master Server official
See merge request KartKrew/Kart-Public!193
2020-08-10 16:49:47 -04:00
James R
1a1c215a91
Add http-mserv to fuck
2020-08-09 23:32:43 -07:00
James R
9d9f8fd8a3
Bump MAXNETNODES to 127
2020-08-09 18:26:34 -07:00
Ashnal
cc78ef2c78
Now that the server doesn't erroneously send the last mainwad
...
As the first part of fileneeded, we must load file 0
2020-08-09 00:48:53 -04:00
Ashnal
4c5eb0d6bc
Redo logic for lots of files vs not
...
Now new CL state for checking files so it can spread over tics
whether we ask for the extended list or not
2020-08-09 00:47:55 -04:00
Sal
97c4e7dfff
Merge branch 'indirectitemcooldown' into 'next'
...
Fix Shrink, SPB and Hyudoro cooldowns never resetting?
See merge request KartKrew/Kart-Public!191
2020-08-06 12:19:27 -04:00
Sally Coolatta
c63022350d
Merge branch 'master' into next
2020-08-06 12:15:55 -04:00
AJ Martinez
3dada09aa5
Fix Hyudoro cooldown never resetting
2020-08-06 10:51:53 -05:00
AJ Martinez
2add55eb04
Fix indirect item cooldown never resetting
2020-08-06 10:34:16 -05:00
AJ Martinez
8284caf1bc
Clarify addon-related messages
2020-08-05 00:40:56 -05:00
Sal
8791fd8835
Merge branch 'mine-punt-sync-fix' into 'next'
...
Fix desyncs caused by K_PuntMine
See merge request KartKrew/Kart-Public!189
2020-07-25 03:55:28 -04:00
Sal
341ce8f4a3
Merge branch 'rocket-sneaker-hnext-fix' into 'next'
...
Rocket sneaker and sink hnext fix
See merge request KartKrew/Kart-Public!188
2020-07-25 03:55:22 -04:00
Ashnal
6d0b1e93c6
Appease C91
2020-07-23 21:05:00 -04:00
Ashnal
733aefa64a
Also lets do this for kitchen sinks
...
They also ignored in K_DropHnextList
2020-07-23 20:12:35 -04:00
Ashnal
6562c9b755
Moved K_DropRocketSneaker call into K_StripItems
...
This should catch when DropHnextList misses it
Should probably fix sinks too ...
2020-07-15 09:17:35 -04:00
Ashnal
3bccf01d4f
Properly handle rocket sneakers when shrinking
2020-07-14 19:50:37 -04:00
Ashnal
943a898352
Some safeguards for K_DropRocketSneaker usage
2020-07-14 19:45:15 -04:00
Ashnal
0637ed89aa
Fixing RocketSneakers
...
New function specifically for dropping rocketsneakers K_DropRocketSneaker
Used by Eggbox touchspecial to properly dispose of shoes and clean up hnext
Now also used by the shoe thinker to drop themselves
Fixes angle of spent shoe launch
2020-07-14 18:45:45 -04:00
Ashnal
ddc0bc16ab
Add clean up to K_PuntMine
...
This cleans up hnext when a mine shield is P_RemoveMobj'ed while being punted
Otherwise, hnext could point to a removed mobj and cause undefined behavior
This also fixes the bug where if you have multiple mines in your slot, drag one
and have it punted, all your unused mines would disappear.
This should/may fix the crashes/desyncs I've observed in gameplay when a held mine is punted.
2020-07-14 00:21:46 -04:00
Ashnal
159316b155
Remove now unused ret var
2020-07-04 22:25:02 -04:00
Ashnal
2c0671d8fd
Let's just ALWAYS go into ask file list mode
...
Easier to maintain and understand a single code path
Rather than switching behavior based on amount of addons
2020-07-04 01:12:38 -04:00
Ashnal
7da3d70f6c
Remove Checking Files spam
2020-07-02 21:48:45 -04:00
Ashnal
b8fdd6b89c
Fix file number accounting
...
Should ensure appropriate accounting and prevent loading of
server files if it would put us over MAX_WADFILES
2020-07-02 20:57:33 -04:00
Ashnal
774b917c0e
Correct total files to load off by one
2020-07-02 17:47:10 -04:00
Ashnal
6fe8a6c96a
Changed "this server has a lot of addons!" to
...
"Checking server addon list ..." to be more informative
2020-07-01 23:52:43 -04:00
Ashnal
03d479fdb6
Connection screen no longer freezes up while
...
searching for addons on disk
Game will run one tic after every file status is updated
2020-07-01 23:48:14 -04:00
Ashnal
8eb9a6946f
Fix X/0 files display bug for legacy downloader
...
Also made "Waiting to Download" consistent with other states
2020-07-01 21:40:21 -04:00
Sal
c3c466575c
Merge branch 'fix-pk3-leak' into 'master'
...
Fix memory leak in W_ReadLumpHeaderPwad
See merge request KartKrew/Kart-Public!182
2020-07-01 18:36:48 -04:00
Sal
9f4b4d84a6
Merge branch 'http-useragent-fix' into 'master'
...
Fix user agent for HTTP downloads being set as SRB2Kart/v1.1.2
See merge request KartKrew/Kart-Public!185
2020-07-01 18:36:33 -04:00
Sal
d2098c23fc
Merge branch 'ogl-color-fix3' into 'master'
...
Ogl colormap fix third attempt
See merge request KartKrew/Kart-Public!184
2020-07-01 18:36:19 -04:00
Sal
b6272fa299
Merge branch 'chatbug-fix' into 'master'
...
clientside ack fix
See merge request KartKrew/Kart-Public!186
2020-07-01 18:35:57 -04:00
Ashnal
ad94b29558
Experiemntal clientside ack fix
...
Stops the client from using reliable packets before joining a server
Clients can time out during addon loading
sending reliable packets before then can cause out of order acks
This causes joinbug, chatbug, and chatspam, as well as
general server instability due to unnecesary packetspam
2020-06-27 23:43:15 -04:00
Ashnal
f2593219a6
Adjust text position
2020-06-27 23:40:13 -04:00
Ashnal
d96c938dbf
Add progress bar for file loading
2020-06-27 23:26:38 -04:00
Ashnal
9d9105929b
Adjustment to new progress text
2020-06-27 21:17:21 -04:00
Ashnal
fc9f40a177
New "Overall Download Progress" bar
...
Shows progress of all file downloads pre-join
2020-06-27 21:17:04 -04:00
Ashnal
12d40a07cc
Load one file per tic
...
Prevents game from locking up when loading large file lists
2020-06-27 20:58:33 -04:00
Steel Titanium
3af4aaff9c
Fix user agent for HTTP downloads being set as SRB2Kart/v1.1.2
2020-06-23 18:39:02 -04:00
James R
bae37aea2c
ADD to the buffer size
2020-06-14 19:13:22 -07:00
Hannu Hanhi
44159de7f3
Colormap alpha handling was still wrong, hopefully it's correct now
2020-06-14 15:03:40 +03:00
Hannu Hanhi
c382794109
Fix uninitialized alpha when reading colormaps
2020-06-13 23:34:13 +03:00
Hannu Hanhi
38c3d78d8a
Cleaner version of the W_ReadLumpHeaderPwad memory leak fix
2020-06-13 21:37:33 +03:00
Hannu Hanhi
2f65955496
Add missing inflateEnd to fix memory leak in W_ReadLumpHeaderPwad
2020-06-13 17:07:05 +03:00
Sryder
b96d315f25
Merge branch 'master' of git@git.magicalgirl.moe:KartKrew/Kart-Public.git into next
2020-06-13 14:15:58 +01:00
James R
e7d949aeb2
masterserver_token is back
2020-06-12 23:47:08 -07:00
James R
9b3456a860
Merge remote-tracking branch 'origin/master' into http-mserv
2020-06-12 23:36:39 -07:00
Hannu Hanhi
d9e2336277
Guil's encore color bugfix with some additional cleanup
2020-06-01 21:14:17 +03:00
Steel Titanium
3f3cb2c976
Fix opengl crashing on startup due to lack of checks
...
Also fixes the log file not being written to the home directory.
2020-05-23 16:21:26 -04:00
Sryder
b03f950c5a
Merge branch 'master' into next
2020-05-20 16:50:56 +01:00
Sryder
e229aabf22
Merge branch 'fix-clang-compile' into 'master'
...
Fix clang compiling
See merge request KartKrew/Kart-Public!176
2020-05-20 11:49:47 -04:00
Sryder
6b8ea22bdb
Merge branch 'opengl-maybe-uninitialised' into 'master'
...
Some uninitialised variables that GCC 4.4 complains about
See merge request KartKrew/Kart-Public!177
2020-05-20 11:49:34 -04:00
Sryder
831ed3dedc
Merge branch 'itemodds-fallthrough-fix' into 'next'
...
Mistaken fallthrough in item roulette.
See merge request KartKrew/Kart-Public!178
2020-05-20 11:49:22 -04:00