Commit graph

76 commits

Author SHA1 Message Date
Ashnal
2be14316cf Finish position is now factored into exp 2025-09-23 21:26:51 -04:00
toaster
be3c0faf7e More gracefully amend Splits/Attackstart data on ghost load rather than splits load 2025-08-21 18:25:03 +01:00
Eidolon
892a6b8620 Merge public master 2025-08-12 16:49:14 -05:00
Eidolon
255570cfca Dynamically allocate skins
This avoids an issue where the skins array takes up a fixed, but large
amount of memory at runtime. On x86_64 linux, that array is roughly 80
megabytes in memory, most of which is unused when the game is unmodded.
Instead, we treat `skins` as a dynamically resizing array, and it is an
array-of-pointers into separate allocated `skin_t`.

This is based on Lactozilla's skin limit MR for SRB2, but I've rewritten
it because RR has diverged quite a bit.

This was verified to check every access of `skins` by using clangd's
find-all-references function. However, I have only tested plain skins,
not Lua addons, so that could afford some extra checking.
2025-08-12 15:33:00 -05:00
Antonio Martinez
ee1d571c08 Fix life tally notifications in Relaxed 2025-07-18 04:23:35 -04:00
Antonio Martinez
78fb3c0cdd No lives in Relaxed 2025-07-15 16:40:27 -04:00
Antonio Martinez
deaa10a973 Don't grade Duel 2025-06-28 14:58:17 -04:00
Ashnal
7410978882 Cleanup
No functionality changes
2025-06-22 23:36:21 -04:00
Ashnal
08df01878e Small Grade A threshold increase in tally 2025-06-18 23:42:41 -04:00
Ashnal
2a36838b54 grading refinements attempt 2025-06-12 00:09:44 -04:00
Antonio Martinez
a3c387abc5 Back to quint, weeee 2025-06-08 00:41:45 -04:00
Antonio Martinez
33a24accda Softer EXP easing curve, cap bot modifier because Darkvile 1 is beating my ass 2025-06-07 21:27:00 -04:00
Antonio Martinez
cd439be74c Bot difficulty and grading tweaks 2025-06-07 17:49:11 -04:00
AJ Martinez
1889518640 Merge remote-tracking branch 'origin/master' into postrace-director 2025-05-26 02:38:53 -04:00
Oni VelocitOni
1cdf381aba Merge branch 'more-exp-stuff' into 'master'
Exp Improvements

See merge request kart-krew-dev/ring-racers-internal!2577
2025-05-26 02:22:24 +00:00
Ashnal
9c61edbeec End of round grade adjustments, reduces weight of position on grade 2025-05-25 17:13:28 -04:00
Antonio Martinez
28f12acab1 Merge remote-tracking branch 'origin/master' into duel 2025-05-24 16:34:36 -04:00
Antonio Martinez
b79f79db51 Postrace director cam 2025-05-22 11:06:37 -04:00
Oni VelocitOni
ae962c4d14 Merge branch 'ta24' into 'master'
2.4 TA refinements mkII

Closes #1507 and #1508

See merge request kart-krew-dev/ring-racers-internal!2532
2025-05-18 22:12:47 +00:00
Ashnal
f2d323111f fix calculating exp before gradingpointnum increment
fix leftover lappoints code affecting exp
2025-05-18 14:30:52 -04:00
Ashnal
3d11c142cc Fix rejigger
exp is simpler than lappoints
2025-05-18 14:30:46 -04:00
Ashnal
50fd04bdb1 small hud performance improvement
now that we have spots on the player struct for both gradingfactor and exp, store exp in the exp field after adjusting gradingfactor, and just reference it instead of recalculating every time
2025-05-18 14:30:46 -04:00
Ashnal
144e2be262 More renaming 2025-05-18 14:30:46 -04:00
Ashnal
5a42c99d0a Rname stuff better 2025-05-18 14:30:45 -04:00
Ashnal
d7d0507d45 Update exp calcs to be out of 100
and adjust grading
2025-05-18 14:30:45 -04:00
Antonio Martinez
cacf470f6f 2.4 TA refinements mkII 2025-05-12 17:18:14 -04:00
Eidolon
cb7f437e60 Merge public master 2025-02-13 15:48:11 -06:00
Eidolon
a4d304a1f5 Update copyright years to 2025 2025-02-13 15:32:26 -06:00
Ashnal
1b0674d041 Grading adjustment 2025-01-18 19:29:49 -05:00
toaster
396244780a Don't attempt to use adjusted EXP counter in invalid contexts
- Introduces new function K_GetDisplayEXP
    - Replaces duplicated code between HUD and tally
    - Returns UINT16_MAX in div/0 case for invalid result (resolves #1458)
- Hides EXP HUD/tally if no EXP can be earned
2025-01-18 19:29:49 -05:00
Antonio Martinez
dcb4dea2fb Duel: cleanup, finish refactor, endcam, position fixes 2024-09-06 20:58:06 -07:00
Ashnal
ee74b747ac Exp hud math for target 500 at 1.0 exp 2024-08-24 23:27:20 +00:00
Ashnal
df4e99b050 WIP Race Checkpoints
MobjList count

WIP: Checkpoints grant lap bonus

help?

can't allocate vector

 fixed tagged line iteration and collision detection

Multiplayer animations and map retart fixes

Clear between maps
2024-08-13 20:20:21 -04:00
bitten2up
cfacbd91be Fix implicit casts of int expecting 4-byte width
This fixes the issue with certain compilers that have int set to
different sizes by either explicitly casting or setting templates
manually
2024-05-03 17:53:53 +00:00
toaster
b654533bf6 Don't add rings to total in GPEVENT_SPECIAL 2024-04-15 15:56:30 +01:00
James R
041fd67ab0 Tally: only show GAME OVER in Sealed Stars if a player entered with 0 lives, not if they die in that round
- This is only relevant for splitscreen
2024-04-08 23:24:08 -07:00
James R
0d76746a95 GP: show GAME OVER tally in Sealed Stars 2024-04-06 17:49:22 -07:00
Sally Coolatta
7dfa597c7d SRB2 -> DRRR copyright in src, acs, android folder
Be consistent with toaster's recent changes to copyright
2024-04-05 02:08:23 -04:00
toaster
75b4bdd4ea Catch all other instances of sounds which might have played where R_CanShowSkinInDemo is false
- Tally
- Generic S_StartSound call (where sfx_id is in skinsound region)
2024-03-27 04:01:58 +00:00
James R.
59b335ed09 Merge branch 'silhouette-results' into 'master'
Tally, Intermission: mask not-yet-unlocked characters

Closes #1213

See merge request KartKrew/Kart!2169
2024-03-27 04:01:53 +00:00
toaster
c19f11d75e Use kThinTimer font for Tally GP success/game over 2024-03-26 15:45:24 +00:00
James R
bd22f756dd Tally, Intermission: mask not-yet-unlocked characters
- Name becomes "???"
- Use question mark icon
- Silhouette A2 sprite
2024-03-26 00:15:36 -07:00
AJ Martinez
d2e6b0809b Don't display NEW RECORD text for losing players 2024-03-22 21:54:06 -07:00
AJ Martinez
17cd1550a1 Tally: Fix intermission music being played on rounds without intermissions 2024-03-18 18:38:41 -07:00
James R
0a1f8331fe Attract: no intermission or tally for Attract demos 2024-03-18 01:19:10 -07:00
AJ Martinez
40a95dbc83 TA record/playback fixes 2024-03-16 21:40:42 -07:00
AJ Martinez
1a70892fd7 Tally: disallow skipping tryagain/gameover (but cover for it if we do allow it later) 2024-03-12 06:42:24 -07:00
James R
2af5f32a72 Tally skipping: make sure player is actually local splitscreen before doing button check 2024-03-12 06:42:24 -07:00
James R
6b413e530f Tally skipping: allow in Match Race, disallow in replays 2024-03-12 06:42:24 -07:00
AJ Martinez
551acaf06e Refine tally skip 2024-03-12 06:07:51 -07:00