Michael Votaw
f8ce3c7db2
Explicitly get song bpm when checking if song matches songCriteria (m_fSpecifiedBPMMax and m_fSpecifiedBPMMin are only set if #DISPLAYBPM is used in simfile)
2024-03-06 01:45:26 -08:00
Michael Votaw
be87de401a
Added additional criteria to StepsCriteria and SongCriteria
...
Added new m_sSongName property to Song class
Slight refactor in Song::LoadSongFromDir() to set m_sSongName
Implemented the basics of #SONGSELECT course parameter
2024-03-06 01:45:26 -08:00
Michael Votaw
343f2de657
Changed SongCriteria.m_sGroupName to a vector m_vsGroupNames, to allow for the potential to select a song from more than one group.
2024-03-06 01:45:26 -08:00
Michael Votaw
f44357c3f5
Added BPMRANGE song option for Courses.
...
Started breaking out some of the logic in CourseLoaderCRS into smaller functions for readibility.
2024-03-06 01:45:26 -08: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
78fb2e9fc3
Decouple <cstddef>
2023-04-20 11:21:29 +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
Brian Phlipot
4a6b1a743c
Enable more compiler warnings and treat them as errors.
2023-02-02 11:54:17 -08:00
Brian Phlipot
c1a3455ce4
Explicitly create RStrings to avoid MSVC compiler errors.
2022-10-03 16:21:19 -07: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
Martin Natano
49127f6a92
Remove RageUtil_CachedObject
...
I don't notice any performance drawback in gameplay, but it was
massively slowing down ScreenReloadSongs.
2022-06-10 19:33:23 +02:00
Martin Natano
0861ed45c7
Merge /AdditionalSongs into /Songs, and /AdditionalCourses into /Courses
...
Includes a backwards-compatibility mechanism to adapt paths when loading
Stats.xml.
2022-03-11 22:35:31 +01:00
Wesley Castro
8f8ce5c48d
Fix accessing pointer from temporary object. ( #1897 )
2019-09-26 10:36:13 -07:00
teejusb
7e3789b131
Integrate C++11 branch into 5_1-new
2019-06-22 12:35:38 -07:00
Kyzentun Keeslala
026801e28d
In SongID::ToSong, check whether the dir is empty before prepending a slash, so GetSongFromDir can be skipped when the dir is empty.
2016-02-03 21:14:06 -07:00
Jason Felds
80542a5a7d
Require reasons for checkpoints.
2015-06-08 18:37:13 -04:00
Kyzentun
fa0478affa
Merged per-chart music. Updated changelog.
2015-03-09 19:06:57 -06:00
Kyzentun
0318f07d2d
Implement preview music properly as a new optional tag in the ssc file. Changed ScreenManager to emit an error instead of asserting if a screen attempts to use SetNewScreen inside an InitCommand. Changed decorations layer to be a proper child instead of stripping away the ActorFrame.
2015-03-04 01:31:02 -07:00
Kyzentun
846f79879c
Added MUSIC tag to note data to allow each chart in a simfile to use a different music file.
2015-03-02 18:44:01 -07:00
Kyzentun
3fb36af157
Separate styles for players. Notefields positioned between margins. Edit mode works for kickbox.
2014-12-09 22:27:00 -07:00
Ben "root" Anderson
8f9a7efbb4
Added some sorely lacking filtering logic to EditMenu related to Practice mode.
2014-01-25 14:18:18 -06:00
Jason Felds
07b9fb6da5
The big NULL replacement party part 6.
...
...and ', NULL' had even more to replace.
2013-05-03 23:49:23 -04:00
Jason Felds
28e5148dec
The big NULL replacement party part 5.
...
Right. ' = NULL' would get a lot of these.
2013-05-03 23:39:52 -04:00
Jason Felds
a3f37dc2b4
The big NULL replacement party part 3.
...
Getting there I think.
2013-05-03 23:16:39 -04:00
Jason Felds
ba59dd1656
The big NULL replacement party part 2.
...
This may take a bit. Trying to do this by operator/command.
2013-05-03 23:11:42 -04:00
Jason Felds
9f24627bf9
The big NULL replacement party part 1.
...
This is meant to be a safer alternative since
NULL can often be 0. Let's not rely on that.
And yes, I know this is a lot of files. This is
a safer thing to do in big commits vs for loops.
2013-05-03 23:01:54 -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
b32ff0504c
Gotta love loops that can be done with any_of.
2013-05-01 22:35:35 -04:00
Jason Felds
abe2b65514
More loops.
2013-04-30 20:07:22 -04:00
Jason Felds
dfe924a64d
Simplify, be explicit.
2013-04-27 14:00:31 -04:00
Jason Felds
f66883aa1b
Forgot to utilize references.
...
Still compiled, but wasn't the best move.
2013-04-27 13:33:05 -04:00
Jason Felds
4cff3766aa
Set loop (plus white space)
2013-04-27 13:31:47 -04:00
Devin J. Pohly
8815da5f1f
replace SongManager::GetSongFromSteps with use of song pointer
2013-01-20 19:51:59 -05:00
Devin J. Pohly
bd0e2074ad
replace ASSERT(0) with useful fail messages
2012-12-27 16:59:35 -05:00
Jason Felds
1fc16698ba
War on -Werror, part 12: explicit bool usage.
...
It may save a few cycles, but it's best to be
explicit on boolean operations, especially with
ASSERT.
2012-12-27 11:38:53 -05:00
Jason Felds
3039b0492e
...or just remove it.
...
No lines of code after were using it.
Makes me question the purpose of needing Style.
2011-08-13 00:32:00 -04:00
Jason Felds
040bb26b4c
...are we using this? Leaving commented for now.
2011-08-13 00:30:04 -04:00
AJ Kelly
0285f7687f
[GameState, SongUtil] Fix Issue 263 by not charging 2x stages for doubles when not using joint premium.
2011-08-07 18:33:35 -05:00
Jason Felds
aea01c26a4
........................
2011-07-11 16:34:21 -04:00
Jason Felds
fb5450e234
Second verse, better than first.
2011-07-11 15:43:47 -04:00
Jason Felds
7b377d836d
Stop array out-of-bounds exception.
...
Alright, that's it: I'm getting cppcheck.
2011-07-11 12:27:12 -04:00
Jason Felds
054151eed1
Ready for the dry run.
2011-07-07 15:06:19 -04:00
Jason Felds
061b6e802e
Prepare the validator function for chart names.
2011-07-07 14:19:34 -04:00
Jason Felds
f900b53f1d
Edits can have 255 chars in the description now.
2011-06-11 15:10:27 -04:00
AJ Kelly
cd3bb6f0ed
[SongUtil] Added GetPlayableSteps(Song) Lua binding.
2011-06-11 13:13:30 -05:00
Jason Felds
42f39c7ab9
Restrict course editor to playable songs.
...
This does not yet deal with songs with charts
in multiple game types.
...at least, as far as I know.
2011-06-08 21:58:45 -04:00
Jason Felds
7d81680bb3
Readability.
2011-06-06 20:47:21 -04:00
AJ Kelly
0fc49d9da9
[MusicWheel] Added ShowSectionsInBPMSort and ShowSectionsInLengthSort metrics.
2011-05-14 19:27:25 -05:00