Commit graph

305 commits

Author SHA1 Message Date
James R
c6bdf4eae3 Remove RANGECHECK, replace with devmode prints
- All code that would I_Error behind RANGECHECK, simply
  return
- Add debug prints under devmode render
2024-03-03 17:31:33 -08:00
Eidolon
995af69eab y_inter.c -> y_inter.cpp 2024-02-25 10:23:46 -06:00
Eidolon
0f96337124 g_demo.c -> g_demo.cpp 2024-02-25 10:23:46 -06:00
Eidolon
cf84724fef k_profiles.c -> k_profiles.cpp 2024-02-25 09:55:48 -06:00
Eidolon
b0348526cd Rewrite gamedata format 2024-02-18 21:10:36 -06:00
James R
38c9c5f9a7 devmode render: show a list of errored holey textures on the HUD
Holey textures (textures with transparent pixels) cannot
be used on upper/lower textures or on 1-sided linedefs. If
the game tries to render this, the texture name will
appear on the HUD if devmode render is turned on.
2024-02-11 17:10:09 -08:00
Oni
74eee5e718 Merge branch 'server-name-sanitize' into 'master'
Sanitize server name/contact, fully support caret codes

Closes #1008

See merge request KartKrew/Kart!1906
2024-02-06 13:20:08 +00:00
Eidolon
ce42730b3c Add large-address-aware flag on 32 bit mingw 2024-02-02 20:43:42 -06:00
James R
8f2c904651 Sanitize server name and contact fields of non-ASCII characters except color codes
- Strip button codes and other control characters
- Preserve 0x80 - 0x8F color codes
2024-02-02 04:30:24 -08:00
Eidolon
640ad6bc1e Remove GME VGM music emulation
We cannot comply with the terms of the GPL in using and distributing
libgme due to MAME license incompatibility, so the feature needs to
be removed.
2024-01-29 15:54:20 -06:00
James R.
bf1e4cb5bc Merge branch 'vscode-faster-pls' into 'master'
Add cmake option to skip comptime update

See merge request KartKrew/Kart!1881
2024-01-29 05:10:44 +00:00
Sal
3958c15dfe New Credits 2024-01-28 23:31:30 +00:00
Eidolon
0e307208f8 Add cmake option to skip comptime update
In VS Code, comptime forces the game to be relinked even when no code
has changed. This is a bit of a nuisance when starting with the
debugger in the C++ extension, adding around 5 seconds of startup time
to the game.
2024-01-28 14:54:28 -06:00
James R
7d6239e06c Add round end camera system
- Spins and zooms around a center point
- Freezes the level while spinning
- Pans over to follow and object after spinning ends
- Timing and speed completely customizable
2024-01-22 16:42:29 -08:00
Eidolon
bdc0795704 Fix several Clang compile warnings 2024-01-16 06:11:43 -05:00
Sally Coolatta
24132a9dcd Use C++ templates for DrawColumn/Span
Two reasons:
- Makes it more straight-forward to add brightmaps to the non-power-of-two rendering functions.
- Made it easier to split off brightmap rendering. Hopefully improves performance, but I haven't thoroughly tested this.
2024-01-11 01:50:46 -08:00
Eidolon
3d36f99609 Convert p_setup.c -> p_setup.cpp 2024-01-02 21:00:41 -06:00
Sal
439115927b Tracy extensions 2023-12-30 09:04:00 +00:00
James R
93c38c9754 Convert k_hud.c -> k_hud.cpp 2023-12-23 14:36:30 -08:00
Eidolon
0ca9fca869 Pass _CRT_SECURE_NO_WARNINGS on MSVC 2023-12-14 23:29:30 -06:00
Eidolon
22809e928b Fix MSVC C++ warnings 2023-12-14 23:29:30 -06:00
Eidolon
88ee385ee3 Enforce C11 standard compliance, -Werror=vla 2023-12-14 21:53:18 -06:00
Eidolon
bd8ebabfee Enforce C++17 standard compliance 2023-12-14 21:00:42 -06:00
Eidolon
2433d37d44 Switch from CPM to vcpkg 2023-12-15 02:49:15 +00:00
James R
02bacc9a6f Battle UFOs, Checkpoints: use srb2::MobjList instead of standard containers
- Net synced; new mechanism in p_link.cpp to automatically
  manage mobj pointers at the global scope
2023-12-03 10:44:11 -08:00
James R
b7a118a1b7 Fix debug symbol stripping if -fuse-ld=mold 2023-11-29 11:26:02 -08:00
Oni
94327e8056 Merge branch 'lua-hook-timing' into 'master'
Add basic profiling for Lua hooks (except HUD hooks)

See merge request KartKrew/Kart!1616
2023-11-17 08:32:20 +00:00
James R
61709d36a8 Add basic profiling for Lua hooks (except HUD hooks)
- Add lua_profile cheat: calculate average time spent in
  hooks over a period
- Show hook times in a sorted table, along with lump name,
  script line number and hook type
- Show cumulative time spent in game logic hooks and
  percentage of overhead to game logic
2023-11-11 02:27:39 -08:00
James R
7861d51a7f P_TryMove: sweep collided lines to find nearest normal 2023-11-10 00:03:06 -08:00
James R
5a62a07e54 Add srb2::sweep, AABB line sweep algorithms 2023-11-10 00:03:06 -08:00
Sal
cecd81b4aa Podium rank screen polished 2023-10-29 06:04:22 +00:00
Oni
005d05ac15 Merge branch 'threaded-software' into 'master'
Threaded software

See merge request KartKrew/Kart!1553
2023-10-17 09:28:59 +00:00
AJ Martinez
f9f5c74244 New bans 2023-10-16 23:50:50 +00:00
Eidolon
68a8f2b274 Multithread software drawing 2023-10-14 15:26:52 -05:00
James R
412b37a8de Convert k_director.c to k_director.cpp 2023-10-08 14:26:21 -07:00
toaster
47fe8bb9b1 Move SRB2_CONFIG_DEV_BUILD and SRB2_CONFIG_TESTERS to the root directory CMakeLists.txt
Repairs the pre-CMake functionality of TESTERS builds having the format `ringracers_branch-name_TESTERS.exe`
2023-09-26 23:59:14 +01:00
toaster
0b5fd330e6 Remove HOSTTESTERS
Now you can host for testers using a bog-standard DEVELOP build.
2023-09-26 23:56:35 +01:00
Eidolon
1ffc7d7c82 r_things.c -> r_things.cpp 2023-09-24 14:30:41 -05:00
Eidolon
686150875c Convert d_main.cpp 2023-09-18 17:25:10 -05:00
Eidolon
e9d789abc9 Add Tracy client library and build preset 2023-09-18 16:13:19 -05:00
Sally Coolatta
bfecf45110 Use srb2::finally on bot predictions
I'm not sure exactly where the bot code leaks, other than knowing its the prediction for sure (because the prediction is the only memory bots ever allocate), but srb2::finally is cool and lets me not care :)
2023-09-10 03:20:29 -04:00
Sal
0675a4e527 Tally screen 2023-09-09 05:27:55 +00:00
James R
c46231ede9 Convert w_wad.c to w_wad.cpp 2023-09-06 17:36:21 -07:00
Eidolon
96af259c50 r_plane.c -> r_plane.cpp 2023-09-02 16:03:38 -05:00
Eidolon
6f580606cd hwr2: Remove pass infrastructure
It's not worth trying to force the engine to conform to deferred
drawing.
2023-09-01 15:30:04 -05:00
Oni
9bbd850d74 Merge branch 'cvar-reorganization' into 'master'
Refactor cvar definitions completely, move everything to cvars.cpp

See merge request KartKrew/Kart!1422
2023-08-26 03:42:31 +00:00
James R
6c0b042eed Refactor cvar definitions completely, move everything to cvars.cpp
- No need to call CV_RegisterVar
- Cvar definitions live in only one file, easier to locate
- Organized into sections -- netvars, cheats, etc.
- Use builder pattern to initialize cvars
- Still need to extern if you want to read the cvar value
2023-08-25 17:22:40 -07:00
James R
6a3d298d00 CMakeLists.txt: remove -Wnested-externs warning 2023-08-25 17:19:04 -07:00
Sally Coolatta
16e6aa423e Dialogue 2 2023-08-24 17:28:53 -04:00
James R
368ffb79b8 Move ticcmd generation code from g_game.c to g_build_ticcmd.cpp 2023-08-13 16:03:09 -07:00