Commit graph

21610 commits

Author SHA1 Message Date
Eidolon
11fecebc47 Make AVRecorder WebM an optional part of the build 2023-02-26 20:18:05 -06:00
Eidolon
7c01136247 hwr2: Imgui EndFrame if we didn't Render
fixes a failed ImGui assertion in Debug builds
2023-02-26 18:47:42 -06:00
Eidolon
1958394635 hwr2: add g_wipeskiprender 1-frame workaround 2023-02-26 18:47:42 -06:00
Eidolon
158aaa6803 hwr2: fix DrawFill full screen special case 2023-02-26 18:47:42 -06:00
Eidolon
31ce947659 hwr2: overhaul wipe rendering 2023-02-26 18:47:42 -06:00
Eidolon
0a9e9bbbae hwr2: use palette manager in twodee 2023-02-26 18:47:42 -06:00
Eidolon
e875c8e20d hw2: add screenshot pass 2023-02-26 18:47:42 -06:00
Eidolon
b9cf1316bd Convert m_misc.c to .cpp 2023-02-26 18:47:42 -06:00
Eidolon
d855d96a10 hwr2: Add hardware 2D rendering 2023-02-26 18:47:42 -06:00
Oni
b1c0f2481b Merge branch 'menu-tooltip-button-graphics' into 'master'
Load Menu Tooltip Button graphics

See merge request KartKrew/Kart!978
2023-02-26 23:33:52 +00:00
James R
0bb6f96a13 Load Menu Tooltip Button graphics 2023-02-26 02:31:37 -08:00
Oni
8d13c1563d Merge branch 'lag-compensate-roulette' into 'master'
Roulette reel lag compensation

See merge request KartKrew/Kart!976
2023-02-26 03:37:47 +00:00
Oni
dbc7b27051 Merge branch 'longer-eggbox' into 'master'
Eggmanexplode 4*TICRATE -> 6*TICRATE

See merge request KartKrew/Kart!977
2023-02-26 02:58:29 +00:00
AJ Martinez
3212a97547 Eggmanexplode 4*TICRATE -> 6*TICRATE 2023-02-25 19:26:58 -07:00
VelocitOni
ffae37e619 Normalize Gardentop tether
Removed Gardentop from hasinfinitetether
2023-02-25 21:13:24 -05:00
AJ Martinez
26fb34d94b Roulette reel lag compensation 2023-02-25 17:42:43 -07:00
Oni
c4af13e6ef Merge branch 'menu-credit' into 'master'
More Music Credits

See merge request KartKrew/Kart!975
2023-02-26 00:38:03 +00:00
Oni
3cf12d42b2 Merge branch 'profile-startup-save' into 'master'
Profile I_Error on Startup fix (resolves #451)

Closes #451

See merge request KartKrew/Kart!974
2023-02-26 00:37:27 +00:00
Oni
912e062efa Merge branch 'battle-points' into 'master'
Battle points changes

See merge request KartKrew/Kart!962
2023-02-26 00:08:25 +00:00
Oni
97ab743506 Merge branch 'timelimit-auto' into 'master'
Refactor timelimit and pointlimit to use an "Auto" option

See merge request KartKrew/Kart!969
2023-02-25 23:46:28 +00:00
Oni
81e7e3a1c8 Merge branch 'challenges-cleanup' into 'master'
Minor touchups to challenges menu drawer

See merge request KartKrew/Kart!973
2023-02-25 23:36:15 +00:00
toaster
3cc00ee095 Command_Tunes_f: Additional functionality
- `tunes -show` now shows music_name rather than mapmusname
- `tunes -showdefault` does the previous mapmusname behaviour
2023-02-25 23:11:09 +00:00
toaster
e0ac6b6044 Music credits show up in more contexts
- Drawn over the top of basically everything when enabled.
- Update song credit on
    - Menu music update (can sometimes clear it)
    - Intermission begin
    - Vote begin
    - Return to title (by clearing it)
2023-02-25 22:54:36 +00:00
toaster
e87d4b88ec PR_SaveProfiles: Do not attempt to save if Guest profile data hasn't been initialised yet.
- This only happens at the very end of PR_LoadProfiles, so it marks the clear point data is good.
- Resolves #451
2023-02-25 14:42:40 +00:00
toaster
ea8c583cce MISC_ChallengeDef: Move challenges grid up by 2 pixels
Helps the feng shui
2023-02-25 14:17:11 +00:00
toaster
6d0409e33d M_DrawChallenges: Adjust drawing order so all underlays are drawn before any actual content
Prevents reticule on bottom row getting slightly cut off
2023-02-25 14:16:43 +00:00
toaster
500e951e59 M_DrawChallengeTile: Faded outline for locked tiles
- Additive for hint-available
- Subtractive for completely locked
2023-02-25 13:59:22 +00:00
toaster
91fa244dec Challenges Menu: Adjust ticker behaviour for flipping panels
- Handle beginning a flip in M_ChallengesTick
- Removes set in M_ChallengesInput
- Reduces complexity of set in M_ChallengesAutoFocus
- Fixes an issue where starting the menu would have the tiles partly compacted during the intro wipe
2023-02-25 13:28:11 +00:00
James R
afbea1ccc4 Merge branch 'clang-format-long-stuff' into 'master'
Adjustments to clang-format for long member initializer lists and long function prototypes

See merge request KartKrew/Kart!916
2023-02-25 07:46:06 +00:00
James R
67062bb920 Merge branch 'refactor-pointlimit' into 'master'
Refactor pointlimit to be delayed until next round, just like timelimit

See merge request KartKrew/Kart!966
2023-02-25 07:33:25 +00:00
James R
ea4890b4b3 Simplify bumper death code flow 2023-02-24 23:21:47 -08:00
James R
01227814b9 Refactor Battle points cap to use g_pointlimit
Fixes players leaving mid-game lowering the point limit
and instantly ending the match.

see 94c811b55
2023-02-24 23:21:47 -08:00
James R
368116bc59 Restrict HUD tracking on players
- Gametyperules include both GTR_BUMPERS and
  GTR_CLOSERPLAYERS.
- Break the Capsules or Boss modes must not be active.
2023-02-24 23:21:47 -08:00
James R
ec8e81ddb6 Always HUD track players in Duel mode 2023-02-24 23:21:47 -08:00
James R
e6da831e36 HUD target player with most points
- Replace battlewanted global with g_hiscore, keeps track
  of the current highest number of points.
- Adds HUD tracking for player(s) with the hiscore.
- Should target both players in a tie.
2023-02-24 23:21:47 -08:00
James R
9147a17bf3 Battle: change rankings priority
Highest to lowest:

1. points
2. emeralds
3. bumpers
2023-02-24 23:21:47 -08:00
James R
deac3a373f Battle: replace Karma Bomb with death
- Lose 2 points when you die.
- Respawn with 3 bumpers.
2023-02-24 23:21:47 -08:00
James R
87a6743c0f Battle: replace bumper elimination win condition with points cap
- Points cap is 3 * player count. E.g. for 3 players, the
  cap is 9 points.
- Once a player gets enough points, they win!
2023-02-24 23:21:47 -08:00
James R
8ba2155d89 Refactor timelimit and pointlimit to use "Default" option
- "Default" automatically updates the time/point limit
  according to the rules of the gametype.
- This fixes the bug where if you set timelimit at all,
  the default 2 minute limit will never be set again for
  Battle mode.
2023-02-24 23:19:07 -08:00
Oni
dba41a6de8 Merge branch 'avrecorder' into 'master'
WebM Encoder

See merge request KartKrew/Kart!908
2023-02-25 05:59:52 +00:00
Oni
8db6c02950 Merge branch 'avrecorder-libs' into 'master'
Add libwebm, libvpx, libyuv, libvorbis dependencies

See merge request KartKrew/Kart!906
2023-02-25 05:58:24 +00:00
Oni
e1fd7bce99 Merge branch 'challenges-continued' into 'master'
Updated Challenges Menu

See merge request KartKrew/Kart!971
2023-02-25 04:37:02 +00:00
James R
cea8a10007 media: fix incorrect usage of SRB2_ASSERT on functions with side effects 2023-02-24 19:21:01 -08:00
James R
bf8d90af8c Don't use C++20 designated initializer (since we target C++17)
growl
2023-02-24 19:21:01 -08:00
James R
aefc12e40e media/options: refactor cvar factory completely, ensure correct MIN/MAX order 2023-02-24 19:21:01 -08:00
James R
02fe7ec744 media: fix undefined behavior with options initialization order
Cvar vector was not guaranteed to initialize before
options for each encoder, potentially leading to no
encoder cvars being registered.
2023-02-24 19:21:01 -08:00
James R
860693936f media/avrecorder: bias size limit by 1% to account for muxing overhead 2023-02-24 19:21:01 -08:00
James R
304e57cbf0 Add user feedback for AVRecorder
- real time monitoring of duration and esimated file size
- estimated frame rate of final video (encoder speed)
- print brief details of audio and video tracks upon
  starting recording
- print exact file size and duration once recording is
  finished
2023-02-24 19:21:01 -08:00
James R
840c11577e Implement Software mode paletted screen conversion for AVRecorder
This is only necessary since HWR2's framebuffer is window
size (monitor resolution in fullscreen mode).

Once the framebuffer is changed to be native game
resolution, this commit should be reverted and a new
interface should be implemented to directly copy the
framebuffer's pixels into video frames.
2023-02-24 19:21:01 -08:00
James R
fa0071e785 sdl/new_sound.cpp: record audio with AVRecorder 2023-02-24 19:21:01 -08:00