Commit Graph

43 Commits

Author SHA1 Message Date
teejusb 53dcbed80d Revert "Change some RString methods to free functions" 2025-06-22 23:31:56 -07:00
Arthur Eubanks 995f0ea8c1 Change some RString methods to free functions
These ones aren't a std::string method. Doing this helps the RString to
std::string migration.
2025-05-17 14:02:12 -07:00
Crash Cringle 6201e1ab94 Add Recently Played and Most Played per Profile as sorts 2025-03-03 23:36:06 -08:00
Michael Votaw 28270cee31 Made StepsTypeToString publicly available 2025-02-11 19:39:03 -08:00
sukibaby 21088502b9 Remove clamp macro
Doesn't really need to exist since  all it's doing is inlining std::clamp.
2024-09-03 20:50:48 -07:00
Crash Cringle d788071d4d Add sorting by Block level
(cherry picked from commit e1c8326a6a71f4a15c3f123391dc3f3331ee4a7b)
2024-02-25 09:36:21 -08:00
Crash Cringle 24876804ef Add Top Grades sort per profile. This allows each player to see their top grades based on the currently used profile.
The present implementation adds 2 new sorts for this, TOP_P1_Grades and TOP_P2_GRADES following the naming convention of TOP_GRADES which returns the machine grades.

I named the sort TopP1Grades rather than TopGradesP1 to prevent the "conflicting" banner error.

Eventually, I'd like to condense this to be 1 sort fed a playernumber or profile parameter in the future.

(cherry picked from commit 731ae501d8a14a196984bf7578afaa9351c22c5c)
2024-02-25 09:36:11 -08:00
Martin Natano bacecae1f7 Decouple <vector> 2023-04-21 22:13:41 +02:00
Martin Natano b68ca517e6 Clean up math functions
- Remove checking for standard functions from the build system
- Prefix all invocations with std::
- Replace suffixed functions with unprefixed versions
- Include <cmath> in all files that use it and remove the global include

e.g. floorf(x) -> std::floor(x)
2023-04-19 19:31:40 +02:00
Michael Sundqvist 0cba3579de Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
2022-07-31 22:14:38 +02:00
teejusb 99ee1f2b84 Use bitset instead of map and adjust files accordingly. 2021-12-21 23:44:37 -08:00
teejusb c10d8e4eb5 Initial Implementation of disabling timing windows per player. 2021-12-10 00:27:21 -08:00
teejusb 7e3789b131 Integrate C++11 branch into 5_1-new 2019-06-22 12:35:38 -07:00
Jason Felds 960af12c23 Partial revert of b61e878.
Pump holds do have a little bit of leeway when it comes to letting go and putting your foot back on as proven by [WinDEU's demonstration of Dignity S20](https://www.youtube.com/watch?v=P2Fw9KPyHIg&feature=youtu.be&t=30).

The value used was determined by two video sources: the one mentioned above and a private one sent to me involving a different song/chart combination. 200ms is a rough estimate for what works. There may be other allowed values.
2015-07-19 16:08:50 -04:00
Kyzentun 5852067f47 Added RadarCategory_Notes. Rewrote NoteDataWithScoring stuff to only traverse the NoteData once, and match the radar code in NoteDataUtil. Fixed hand and lift counting in NoteDataUtil::CalculateRadarValues. Removed cap from RadarValues so that Stream, Voltage, Air, Freeze, and Chaos can be over 1.0. Fixed Stream and Voltage to not count hold heads twice. Changed SetRadarValues in NotesLoaderSSC to not require the stepfile version number. 2015-04-06 18:45:23 -06:00
Kyzentun 20953df0bd Rebased loading optimizations to current master. 2015-03-09 20:42:33 -06:00
Jason Felds 519ad8672d Revert "Improved NotesLoaderSSC and NotesLoaderSM" 2015-03-09 16:58:56 -04:00
Kyzentun 3c9452d894 Rewrote IniFile::ReadFile to use a switch and cache the section node. Rewrote StringToTapNoteScore to use a map. 2015-03-08 22:38:00 -06:00
Kyzentun 040c0de509 Added MinTNSToHideNotes preference. 2014-11-19 15:59:21 -07:00
Kyzentun 455431d8c3 Removed DefaultFail GamePref and reinstated DefaultFailType real preference. Should fix default fail related problems. 2014-09-15 00:04:41 -06:00
Kyzentun 421a9be57b Ripped out existing PlayerOptions Lua interface and replaced it wholesale. Removed PrefsManager's DefaultFailType enum. Moved PlayerOptions::FailType enum to GameConstantsAndTypes and made it Lua accessible. Changed ModsLevel enum to include ModsLevel_Current to make accessing that ModsLevel easier to access. Rearranged ModsGroup appropriately. Added non-const Get functions to ModsGroup. Removed PlayerOptions.m_bSetTiltOrSkew because it had no reason to exist. Moved 200.0f to the const CMOD_DEFAULT because it was being used in more than one place. 2014-05-01 23:23:20 -06:00
sigatrev 343511f4c3 HNS_Missed
Added an HNS type to handle holds which are never initialized due to
missed taps. This fixes a long standing issue with
iCurPossibleDancePoints and allows themes to decide how to handled this
case.
2014-03-16 11:36:40 -05:00
AJ Kelly 7787efdaa9 Add Lua bindings for RankingCategory
(Sourced from shakesoda/stepmania.)
2013-10-04 07:43:41 -05:00
Devin J. Pohly 259e9b1e00 Revert "Round 2 of this."
This reverts commit 1d7b5fe852.
2013-06-04 23:47:49 -04:00
Jason Felds c67419ecc8 There goes the macro file.
This is one of my bigger commits in this branch.

Still, shouldn't cause a problem.
2013-05-01 23:54:39 -04:00
Jason Felds c07d4cf78f Let Mac OS X have goodies. 2013-04-29 23:37:10 -04:00
Jason Felds fdb26b7121 Loops and a goodie. 2013-04-28 23:16:52 -04:00
Jason Felds 1d7b5fe852 Round 2 of this. 2013-04-15 23:26:05 -04:00
Colby Klein 3f32d9114f Revert "CoinMode_Pay->CoinMode_Free, step 1."
This reverts commit 15b3ee1a9a.
2013-02-11 12:11:54 -08:00
Flameshadowxeroshin 15b3ee1a9a CoinMode_Pay->CoinMode_Free, step 1.
CoinMode_Pay is still a value for the CoinMode enum but is now the same as CoinMode_Free.
Any code that checks for CoinMode_Pay is gone.
2013-02-07 09:12:28 -06:00
AJ Kelly 2dd68c8349 [GameConstantsAndTypes] Made StageResult Lua-aware. 2012-03-28 18:55:06 -05:00
Jason Felds 1574de2c25 Deal with corner case.
The hardcoded 600 will soon become a metric.
2011-07-03 13:35:00 -04:00
Jason Felds 7acbe91683 More prototypes. 2011-06-12 03:47:22 -04:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
Jason Felds 84ca444bd2 New branch: attempt to add Fakes to the radar.
At this point, the code still compiles.
Running? No guarantees. More work to be done.
2011-02-27 21:52:59 -05:00
AJ Kelly 53a8a435ef remove unfinished karaoke mode 2010-08-19 21:24:35 -05:00
AJ Kelly cc470cad86 Implement the last remaining SampleMusicPreviewMode: StartToPreview. This one requires [ScreenSelectMusic] TwoPartConfirmsOnly=true in the metrics to work correctly. 2010-06-23 14:09:43 -05:00
AJ Kelly 88f1da651c add SampleMusicPreviewMode_LastSong, now that it works.
There is a hack in there for playing the song associated with the Random option, based on Takuya's DDR Extreme theme having music for it. I am not sure if this is accurate behavior, though.
2010-04-19 00:09:21 -05:00
AJ Kelly 1867e92dee various changes from the ssc svn post-public beta 2 release.
* New Lua bindings SONGMAN:GetGroupNames() and SONGMAN:GetSongsInGroup(string)
* Add Lifts to PaneDisplay (StepMania 3.9+ added them)
* Fix an issue where course banners were able to trip off the uneven dimensions dialog
* NextSong/PrevSong now work when TwoPartSelection=true + TwoPartConfirmsOnly=true on ScreenSelectMusic. A new message ("TwoPartConfirmCanceled") was added to catch when this happens.
and there may have been some stray cleanup in here too
2010-04-14 21:43:32 -05:00
AJ Kelly 642f4b107c the various changes that I forgot to commit (cleanup and so forth) into hg,
culminating in syncing with sm-ssc v1.0 public beta 2
2010-03-31 17:37:09 -05:00
Jason Felds 195319074a Consistent lining up. Revert if required. 2010-01-27 17:29:37 -05:00
AJ Kelly 3e51544930 Initial commit. 2010-01-26 21:00:30 -06:00
Devin J. Pohly 80057f53cd smsvn -> ssc-hg glue: rearrange directory structure 2013-06-10 15:38:43 -04:00