Commit graph

22146 commits

Author SHA1 Message Date
Ash Logan
8ca2dc77e7 wad: Cache pk3 central directory
Massive improvments from seeking less, allows file buffering to work better too

Co-authored-by: James R <justsomejames2@gmail.com>
2023-09-06 18:32:40 -07:00
Ash Logan
331a6ea41e wad: Fixes for big-endian platforms 2023-09-06 18:32:40 -07:00
James R
c46231ede9 Convert w_wad.c to w_wad.cpp 2023-09-06 17:36:21 -07:00
Oni
70207076c1 Merge branch 'hanicef-fps-counter' into 'master'
Fix inaccuracies in FPS counter

See merge request KartKrew/Kart!1456
2023-09-04 00:26:56 +00:00
Oni
81b1f4f8d7 Merge branch 'savedemo-titlecard-crash' into 'master'
Only save demo on exit if demobuf.p is ready

Closes #648

See merge request KartKrew/Kart!1459
2023-09-04 00:25:59 +00:00
Oni
98d1bd0466 Merge branch 'encore-spectator-turning' into 'master'
Invert freecam turning in encore

Closes #652

See merge request KartKrew/Kart!1458
2023-09-04 00:16:42 +00:00
Oni
cb0e2e178a Merge branch 'rhi-gl-remove-deferred-delete' into 'master'
rhi gl: Remove the garbage disposal

See merge request KartKrew/Kart!1454
2023-09-04 00:04:38 +00:00
Eidolon
203d045dfa Only save demo if demobuf.p is ready
Fixes KartKrew/Kart#648
2023-09-03 18:59:24 -05:00
Oni
3230cdbade Merge branch 'correctly-fix-sprite-scaling' into 'master'
Actually fix papersprites near camera crash

See merge request KartKrew/Kart!1457
2023-09-03 23:58:02 +00:00
Eidolon
ea8e7fc2d1 Invert freecam turning in encore
Fixes KartKrew/Kart#652
2023-09-03 18:52:11 -05:00
Oni
1c0a6c719c Merge branch 'gp_buttone' into 'master'
Intermission Button Slide-in

See merge request KartKrew/Kart!1450
2023-09-03 23:35:24 +00:00
Eidolon
e0758875d4 Actually fix papersprites near camera crash 2023-09-03 16:31:08 -05:00
Sal
ddaa21384d Merge branch 'monkey-input' into 'master'
Fuzzing cvar

See merge request KartKrew/Kart!1439
2023-09-03 18:43:13 +00:00
Eidolon
c23127c030 Merge branch 'fix-ripple-crash' into 'master'
Fix software water ripple crash

See merge request KartKrew/Kart!1455
2023-09-03 15:36:40 +00:00
Eidolon
ecd843f0f0 Use srb2's version of the ripple fix 2023-09-03 09:59:58 -05:00
Gustaf Alhäll
1cfeef8925 Fix inaccuracies in FPS counter 2023-09-03 09:38:04 -05:00
Eidolon
e76b1e1707 Fix sprite scale column iteration crash 2023-09-02 18:39:04 -05:00
Eidolon
210186d8f2 Clamp ds_bgofs in sw water ripples to fix crash 2023-09-02 16:03:50 -05:00
Eidolon
96af259c50 r_plane.c -> r_plane.cpp 2023-09-02 16:03:38 -05:00
AJ Martinez
295b177b74 Shrink darkness review fixup fixup 2023-09-02 13:20:38 -07:00
AJ Martinez
ef4c682999 Shrink darkness review fixup 2023-09-02 13:13:08 -07:00
Eidolon
ea7563df88 rhi gl: Remove the garbage disposal 2023-09-02 12:53:45 -05:00
toaster
8300a438d2 Command_connect: Clean up + improved error message for attempting to use during the server join process (which includes Server Browser) 2023-09-02 17:06:17 +01:00
toaster
90f97ef50a Comamnd_Map_f: Now that you can use the console from the menus, forbid starting a new session from the server join process (which includes the Server Browser) 2023-09-02 17:05:05 +01:00
toaster
124e69be60 SL_InsertServer: Behaviour repair for multiple contexts
- Repair connecting to a modded server via direct IP/address
    - Done by leveraging serverlistultimatecount
    - !server was good for avoiding dinging modded local games, but there was other behaviour broken.
- Don't underflow serverlistultimatecount on rejection of undesired serverinfo
2023-09-02 17:01:23 +01:00
toaster
5c1f5f1824 Clear serverlistultimatecount when leaving Server Browser for any reason
This is the easiest existing tracked variable to ensure matches 1:1 to "you are joining a netgame from the Server Browser".
2023-09-02 16:58:19 +01:00
AJ Martinez
3aabdb4e98 Less extreme shrink darken 2023-09-01 20:50:46 -07:00
AJ Martinez
d3316ff614 Shrink growtime 2x, global darkness when using shrink 2023-09-01 20:40:52 -07:00
AJ Martinez
030d3d0656 Merge branch 'monkey-input' of git.do.srb2.org:KartKrew/Kart into monkey-input 2023-09-01 16:58:41 -07:00
AJ Martinez
3031dccfa2 Net fuzzing 2023-09-01 16:58:30 -07:00
toaster
ee7f54bc2a Further cleanup for Chat to not be whitelisted gamestates only
Reduces the complexity of D_Display by a lot!
2023-09-02 00:26:29 +01:00
toaster
62ab7bc0f9 Move the Podium to the slide-in Intermission Button/Menu CMD system
Again, another hand-built Responder function falls to the efficiency of the MenuCMD Press [A] chad
2023-09-02 00:26:29 +01:00
toaster
4ad0beebb4 Credits and Evaluation: Replace dedicated Responder functions with Menu-style input processing
The former method responded with an arbitrary approximation of standard inputs.
This method benefits from the general-case stability of the Menu system to correctly parse triggers and other unique inputs.
The only major consequence of this change is that ESC is no longer hardcoded to activate these.
Otherwise, the game is cleaner for pure benefit.
2023-09-02 00:26:29 +01:00
toaster
c46889c924 G_Responder: Call HU_Responder in Playing(), instead of a whitelisted set of gamestates
Neatly sidesteps a class of bugs where whenever we added a new gamestate accessible in netplay, chat was console-only.
2023-09-02 00:26:29 +01:00
toaster
94db9ac3a6 Add skipping to Evaluation
- Includes the sliding intermission button
    - Can only skip after the savedata has been updated
    - Always update the savedata at the same duration into the Evaluation
2023-09-02 00:26:29 +01:00
toaster
75900e4891 Credits: Add the sliding intermission button for skipping
Rules of skipping are slightly changed to match the slidein.
- No skipping in the first two seconds
- Automatically shuffles away once it gets to the end
2023-09-02 00:26:29 +01:00
toaster
40a79056fa Standard Evaluation: Delay the time the _DRIFT track starts to match the gainax shwing 2023-09-02 00:26:29 +01:00
toaster
d4c6c75858 Y_DrawIntermissionButton
- The (A) that appears on the intermission to permit you to skip it now has its own drawer function.
- This drawer (interpolatedly) slides it in and out depending on the two times passed to it.
- Now slides in at the first half-second of intermission, preventing mashing through.
2023-09-02 00:26:29 +01:00
Eidolon
428fa11231 Merge branch 'rhi-remove-passes' into 'master'
hwr2: Remove pass infrastructure

See merge request KartKrew/Kart!1440
2023-09-01 23:17:54 +00:00
Eidolon
7c91cd56be Ignore the room type of local servers
This fixes an infinite loop where the local server is filtered out of
the server list when "joining" a local match with files added.
2023-09-01 18:10:18 -05:00
James R
f552791052 Add CV_ADDEDBYLUA, show all Lua cvars on the cheats menu 2023-09-01 22:13:18 +01:00
James R
30e8d1663d Register a bunch of commands with COM_AddDebugCommand, so they show up on the cheats menu
- angle
- archivetest
- assert
- bind
- causecfail
- clearscores
- countmobjs
- crash
- debugrender_highlight
- devmode
- displayplayer
- downloads
- eval
- gametype
- give
- god
- goto
- gravflip
- grayscale
- help
- hurtme
- isgamemodified
- listmapthings
- listwad
- memdump
- memfree
- minigen
- musicdef
- noclip
- numthinkers
- objectplace
- ping
- playsound
- randommap
- resetcamera
- respawnat
- restartaudio
- rteleport
- savecheckpoint
- scale
- setrings
- setscore
- setspheres
- showmap
- showscores
- showtime
- skynum
- teleport
- togglemodified
- tunes
- version
- view
- weather
2023-09-01 22:13:17 +01:00
James R
c497dcaf49 srb2::Draw::Chain: make copy assignment private, make bruh moments a little more obvious
If you define a variable with type auto and initialize it
with the result of a builder chain -- e.g.

   auto var = Draw().x(0)

-- the resulting variable will be an instance of
srb2::Draw::Chain, and calling builder methods on it will
modify the instance itself, instead of creating a
temporary, like an instance of srb2::Draw would.

Hiding the copy assignment can make this a little more
obvious by emitting an error if you try to reassign the
variable later. E.g.

    var = var.x(0)

That's the best I can do to mitigate this.
2023-09-01 22:13:17 +01:00
James R
f30763ce1d Cheats menu: press Y to switch between cvars and commands
- Show a subset of commands:
  - Commands registered by COM_AddDebugCommand
  - Commands registered by Lua
2023-09-01 22:13:17 +01:00
James R
9dc277bc3d command.h: define xcommand_t, add COM_AddDebugCommand
This will become useful soon...
2023-09-01 22:13:17 +01:00
toaster
1d3a7c717e Merge branch 'let-release-build' into 'master'
Various fixes to let release builds compile

See merge request KartKrew/Kart!1448
2023-09-01 20:45:54 +00:00
toaster
fc075b24b4 Merge branch 'gp-lives-steenky' into 'master'
Lives & Rings Cleanup (resolves #647)

Closes #647

See merge request KartKrew/Kart!1447
2023-09-01 20:43:24 +00:00
toaster
898a659c78 Merge branch 'initplayers-reorder' into 'master'
Fix Splitscreen GP Prison Break

See merge request KartKrew/Kart!1446
2023-09-01 20:43:10 +00:00
Eidolon
f1f6ab16c5 Remove g_wipeskiprender reference in online menu 2023-09-01 15:31:22 -05:00
Eidolon
6b0c2c6fd8 hwr2: fix unaligned software copies 2023-09-01 15:30:04 -05:00