Commit Graph

58 Commits

Author SHA1 Message Date
Chris Danford 4311158735 Split *Options::FromString into FromString and FromOneModString.
Check for invalid mod names when loading a course by checking whether the mod is a valid PlayerOption or a valid SongOption.  Previously, SongOption mods were being flagged as errors by PlayerOptions.
2007-08-20 02:57:05 +00:00
Glenn Maynard 8278b2e9a1 make FailType a PlayerOption instead of a SongOption; fixes
peculiarity that GameState::GetPlayerFailType can implement
fail modes per-player and nothing else can
2007-05-12 23:48:29 +00:00
Glenn Maynard 8d3dc681f4 not so missing 2007-04-07 03:46:15 +00:00
Glenn Maynard 5b2fd23962 no, APPROACH 2007-04-07 03:46:04 +00:00
Glenn Maynard f1edc0ba96 missing copy 2007-04-07 03:45:46 +00:00
Chris Danford 179f1b6480 add metronome
rename tick -> clap because "tick" implies a regular interval
2007-01-25 11:03:41 +00:00
Glenn Maynard 762be733df add EffectSpeed, EffectPitch 2007-01-16 01:28:59 +00:00
Steve Checkoway 4517499f0f lroundf -> lrintf. 2007-01-03 05:05:28 +00:00
Steve Checkoway eb0b26cd82 Float to int is slow on ppc. It requires a store, a big stall, and then a load. It's even worse on a G5 if the compiler is dumb (and let's face it, I'm using gcc here...). Just use lroundf when we want an int. It will certainly be no slower. 2007-01-02 23:36:44 +00:00
Glenn Maynard ed07cf213a "haste" mod 2006-11-30 08:22:30 +00:00
Glenn Maynard 08bf61191d Add FailAtEnd, which means "check failure only at the very
end of the song" (intended for use with "PassMark", which
needs a better name).  This isn't called "FailEndOfSong" to
avoid confusion, and was the prompting for renaming
FailEndOfSong.)
2006-11-09 09:09:40 +00:00
Glenn Maynard ff4376868f FailEndOfSong sounds like "fail at the end of the song", but
actually means "fail immediately, but you can play the rest
of the song anyway".  Rename FAIL_END_OF_SONG to
FAIL_IMMEDIATE_CONTINUE, to reflect this better.
2006-11-09 07:49:49 +00:00
John Bauer 37f9178f61 Add an "Autosync Tempo" feature. This uses a linear Least Squares
Regression to figure out a line through the user's step errors to minimize
that error.  It then uses the slope of that line to fix the tempo and the
intercept to fix the offset.  Stops are adjusted as if they were originally
calculated as a number of beats, ie the slope is also used to change
the stops.

Also fixed is a bug where the user doesn't get a chance to keep or
reject the sync changes when ESCing (ZZing) from a song.

R=glenn
2006-10-26 22:41:40 +00:00
Jason Felds 93b81118ef Minor sprucing up. 2006-08-21 00:23:33 +00:00
Steve Checkoway 08c6c242d7 Cleanup. 2006-08-18 01:35:34 +00:00
Chris Danford 7ac45c24e4 save Preferred, Stage, Song, and Current modifiers separately. This eliminates the fragile mods store/restore. 2006-08-05 02:38:05 +00:00
Glenn Maynard 25b8421da0 I'm not crazy about overloading "FromString" names: it's hard to tell
where they're used from a search.  It's useful for overloaded things
(templates and macros), but since we have "FloatToString", let's prefer
that.
2006-06-15 03:16:55 +00:00
Steve Checkoway 439ab6c58a Simplify. 2006-06-12 07:59:32 +00:00
Glenn Maynard 94e19ae408 cleanup 2006-02-25 00:08:55 +00:00
Chris Danford 9a05977e52 localize SongOptions strings 2006-02-05 20:30:37 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 39b07e55b3 cleanup (prefer size() over GetLength) 2005-12-21 07:50:14 +00:00
Chris Danford 37f82b43f7 remove CStringArray #define 2005-12-09 21:36:22 +00:00
Chris Danford 112564dc99 fix [Common] DefaultModifers not being applied in most places 2005-10-27 07:51:37 +00:00
Chris Danford 5d7885c764 move game prefs into PrefsManager 2005-10-27 04:54:45 +00:00
Chris Danford 6889c8be3f Move "30misses" to a GiveUp metric. It's not very different from FailEndOfSong.
Only fail when giving up if died earlier.
2005-04-27 06:34:53 +00:00
Chris Danford f8904f3b92 add basic survival gameplay 2005-04-21 04:27:13 +00:00
Chris Danford ea31bb3f90 add AutosyncMachine (shift + F6) 2005-04-11 04:50:39 +00:00
Glenn Maynard f0c0a532f9 sscanf("%f") -> strtof() 2004-08-10 22:19:06 +00:00
Chris Danford 10c5ca4759 add ability to reset to the default fail mode in metrics 2004-07-31 23:58:53 +00:00
Chris Danford 35869118d9 add FAIL_COMBO_OF_30_MISSES 2004-07-31 19:14:53 +00:00
Chris Danford 51366df8cc name cleanup: PLAY_MODE_ARCADE -> PLAY_MODE_REGULAR 2004-06-11 06:05:35 +00:00
Chris Danford 62acd3526f name cleanup: FAIL_ARCADE -> FAIL_IMMEDIATE
clean up fail logic
add pref: Min1FullSongInCourses
2004-06-08 07:16:28 +00:00
Glenn Maynard 549cd7c83f license updates 2004-05-31 21:35:31 +00:00
Glenn Maynard 333e32ef25 operator== is always const 2004-01-18 07:44:39 +00:00
Chris Danford 2767e78218 cleanup options comparison 2004-01-11 04:33:21 +00:00
Glenn Maynard 43ed677045 Fix PlayerOptions::GetString percentage rounding.
Merge ScreenGameplay::SM_NotesEnded code paths.

Replace FAIL_PASSMARK with PlayerOptions FailMark:
It's simpler: only one test (in SM_NotesEnded).  It can be 1: changed easily:
say "80% FailMark" for BM; 2: set per-player, if some mode wants an easier
setting for easier difficulties; 3: changed during courses (if you really wanted to).

It coexists with fail types.  In some BeatMania games, you have to be over 80%
at the end to pass, but you also fail immediately if the bar empties.

One thing to be careful of: since it coexists with fail types, setting FailOff doesn't
disable FailMark failing.  If you want that, too, use "No FailMark".

The danger background works consistently.  (If FailOff is set, the behavior is what
it was--no danger at all.)
2003-11-03 19:42:06 +00:00
Andrew Livy 93f2e21ce4 Added: 70% PassMark Fail Type 2003-11-03 03:30:39 +00:00
Glenn Maynard adeee85e4a Allow setting lives, regular drain type, bar and battery from SongOptions::FromString. 2003-09-29 06:22:13 +00:00
Glenn Maynard aac37ab883 const fix 2003-09-29 05:01:41 +00:00
Glenn Maynard 048828e544 Add ComparePlayerOptions and CompareSongOptions.
Fix "c200" never parsing.
2003-09-27 19:23:15 +00:00
Glenn Maynard 40d5240536 Allow modifier strings to set the level of a modifier, eg. "75% drunk".
Allow disabling modifiers, eg. "no left".
2003-09-27 07:30:54 +00:00
Nick 5ff010ee4e Added option to not save songs 2003-09-04 21:24:50 +00:00
Glenn Maynard 35f3225e4f move function out of header 2003-08-13 18:30:46 +00:00
Chris Danford e9a452e8da course edit screen functional 2003-08-11 06:09:57 +00:00
Chris Danford 40195e81c7 header2 -> Common title
Created new PlayerOption group: Perspective
Added pref: DefaultModifiers
Land -> Brake
2003-04-01 19:31:27 +00:00
Glenn Maynard 7877e7689a Don't Init() in FromString. 2003-02-22 21:56:59 +00:00
Glenn Maynard 42cfd6f98c stdafx -> global 2003-02-16 04:01:45 +00:00
Chris Danford 707b4fe817 A persistent initial FailType now set in MachineOptions, but the temporary session FailType can be changed in SongOptions 2003-02-12 23:11:37 +00:00
Chris Danford 68f4bf1f31 cleaned up ShowSongOptions pref
Added fade for missed tap notes
move FailType to MachineOptions (so it's persistent)
2003-02-12 22:05:14 +00:00