Commit Graph

443 Commits

Author SHA1 Message Date
Glenn Maynard 4e4b6df7aa move code to StatsManager::CommitStatsToProfiles 2005-02-23 04:32:45 +00:00
Glenn Maynard e912b47839 move code around, comment 2005-02-23 03:40:47 +00:00
Chris Danford 3673781c1b fix compile error 2005-02-22 23:34:18 +00:00
Chris Danford 3899d6063a add Lua bindings 2005-02-22 23:08:46 +00:00
Chris Danford 105e01232a add Lua bindings 2005-02-22 23:06:51 +00:00
Chris Danford a2915c038b add TemporaryEventMode flag to GameState 2005-02-21 17:29:49 +00:00
Glenn Maynard 74d27315d3 s/UnlockSystem.h/UnlockManager.h/ 2005-02-21 06:22:46 +00:00
Chris Danford 5c7b8314f4 allow hiding of option rows based on the value of other rows 2005-02-20 10:12:50 +00:00
Chris Danford ad3c10f251 move GetEvalStageStats into StatsManager
Add GetAccumStageStats
2005-02-16 19:40:09 +00:00
Glenn Maynard d5cfb74709 split GameState::ApplyGameCommand from GameState::ApplyCmdline;
expose to Lua
2005-02-16 06:24:33 +00:00
Chris Danford bb712884bb move global StageStats into a singleton 2005-02-16 03:25:45 +00:00
Chris Danford bb099ee7e0 count calories while stepping, not at the end 2005-02-15 09:24:48 +00:00
Chris Danford 0da2e0fa6e remove unused workout options 2005-02-13 18:18:55 +00:00
Chris Danford e31d0ce615 experiment: expose global singletons and their methods in Lua so we don't end up with tons of Lua function polluting the global namespace 2005-02-12 21:07:13 +00:00
Glenn Maynard 4c0a55a295 when we MountCard, we must always UnmountCard
disable FlushAndReset.  It doesn't fit well with the timeout scheme:
we have separate timeouts, but FlushAndReset is global.  I could enable
the timeout separately for this, but the mount -o remount should probably
just be part of Unmount and we don't have to reload usb-storage anymore ...
2005-02-07 03:39:51 +00:00
Glenn Maynard bd516940b2 when we MountCard, we must always UnmountCard 2005-02-07 03:37:43 +00:00
Glenn Maynard ddae9b2242 unload all profiles on reset, not just ones loaded from memory cards;
fixes wrong profile being used when a card is inserted too late and a new
game starts (local profile was already loaded)
2005-02-06 09:58:50 +00:00
Glenn Maynard 97a4a65b26 Unmount cards if we time out. "Locking" and "finalizing" are the same;
merge them.  (They're both enabled and disabled in the same place.)
Pause the memory card thread during gameplay, so any changes will
wait until the current stage finishes (so we don't interrupt the player with
a noise and possibly skip).  Work on making MemoryCardManager::LockCards()
block if the card is in CHECKING.
2005-02-06 08:48:55 +00:00
Glenn Maynard ca4589a8c3 Memory card work: Show "CHECKING" when we've seen the card and
havn't finished checking it out yet (eg. write check).  This improves responsiveness:
a slow card will indicate that we see the card immediately, and it helps
diagnostics since we can easily tell if the machine sees a card.  Allow re-
establishing a memory card removed after finalization, as long as it has the
same serial number.
2005-02-06 05:08:46 +00:00
Chris Danford a24bd3014c cleanup: "(PlayerNumber)" -> "" 2005-01-31 03:18:46 +00:00
Chris Danford b5cf0b87eb add variables for workout 2005-01-31 02:00:00 +00:00
Glenn Maynard 9805cc32ef add GetStageText 2005-01-30 03:24:46 +00:00
Glenn Maynard 088b7bb356 Allow passing a lua_State to PushStack; make them static.
Add SetGlobal(bool), UnsetGlobal, PushStackNil.
Pass lua_State* to LUA_RETURN.
2005-01-30 02:01:27 +00:00
Glenn Maynard 8d48438c15 ModeMenuAvailable metric removed; change Codes instead.
Merge the sort menu into the mode menu.
GAMESTATE->m_SortOrder is now GAMESTATE->m_PreferredSortOrder.
Allow the mode menu to have non-mutually-exclusive items.
2005-01-29 20:46:08 +00:00
Glenn Maynard ed3bec750b merge MountUsedCard and MountCard 2005-01-28 00:12:09 +00:00
Glenn Maynard a930c41ed7 SongManager::LoadAllFromProfiles -> SongManager::LoadAllFromProfile
mount each memory card as needed, one at a time
working on being able to start a timeout period in MEMCARDMAN::MountCard
2005-01-28 00:04:22 +00:00
Glenn Maynard 18b0c5f2d9 Instead of manually pausing and unpausing, automatically pause the
memory card thread when mounting the first drive, and automatically
unpause it when we unmount the last drive.  (We can do this simplification
because we always mount and unmount memory cards explicitly when
reading and writing to them.)
2005-01-27 22:57:18 +00:00
Glenn Maynard d7a279efb9 Remove m_bMemoryCardsMountOnlyWhenNecessary; always do that. 2005-01-27 20:06:20 +00:00
Glenn Maynard 244633369b don't mount in LockCards; call MountAllUsedCards explicitly 2005-01-27 19:50:11 +00:00
Glenn Maynard 39b9a68473 split LockCards into LockCards, UnlockCards 2005-01-27 19:42:34 +00:00
Glenn Maynard 0dfdaee605 remove some more old experimental stuff 2005-01-15 02:01:26 +00:00
Glenn Maynard dbca4bbf7f fix crashes due to big meter values 2005-01-14 15:58:19 +00:00
Glenn Maynard e00d5fe834 cleanup, assertion 2005-01-04 01:47:11 +00:00
Glenn Maynard a96a3d9caa cleanup 2005-01-03 21:16:20 +00:00
Chris Danford 09d018444e split StageStats into player-specific and non-player-specific structs 2004-12-20 10:47:41 +00:00
Chris Danford f840c014a9 Move some player-specific data out of the bloated GameState class.
Have gameplay objects hold a PlayerState pointer instead of a PlayerNumber and indexing back into GameState.
This will simplify off-screen players (e.g. CPU ghosts, network replicated human players, >2 players using one NoteField)
2004-12-20 06:25:59 +00:00
Chris Danford ed19821e09 rename: ActorCommand -> Command
Make Command smaller and more generic.
Parse arguments on use, not in Command::Load.
2004-12-03 05:19:46 +00:00
Chris Danford ab37218c47 rename: ModeChoice -> GameCommand 2004-12-02 06:29:20 +00:00
Chris Danford e1da21f61c Let ActorCommand do the parsing for ModeChoice 2004-12-02 05:56:38 +00:00
Glenn Maynard 873bf63992 cleanup 2004-12-01 20:42:15 +00:00
Chris Danford 683587e81b rename: m_sPreferredGroup -> m_sPreferredSongGroup
add SongGroup to ModeChoice
2004-12-01 07:24:55 +00:00
Glenn Maynard 4a246546a9 Save profile modifiers per gametype. Only reset saved modifiers when
loading profile modifiers, so we don't wipe out modifiers that aren't saved.
UsingProfileDefaultModifiers is gone; if an entry exists in the DefaultModifiers
list at all, UsingProfileDefaultModifiers is true.
2004-11-14 05:24:37 +00:00
Chris Danford b8259d7af9 move player positions from Style into metrics 2004-11-07 05:49:06 +00:00
Glenn Maynard c347954806 add header 2004-10-28 02:17:50 +00:00
Chris Danford 3ac1dba044 simplify TapAttack storage:
store attack info in TapNote
  in the SMNoteData string, store the attack params inline (like with keysounds)
play keysounds when hit
  still doesn't play keysounds on a miss
  still doesn't play autoKeysounds
2004-10-23 23:41:49 +00:00
Glenn Maynard 799a5898dd Add bgm-time effect mode. This is roughly equivalent to the default, except
it's tightly synced with the music; it stays synced over music skips, and follows
the music rate, like everything else that uses GAMESTATE->m_fMusicSeconds.
2004-10-16 01:29:25 +00:00
Chris Danford 299ab2cf1a whoops. Unpause the mount thread after resetting. 2004-10-09 10:36:28 +00:00
Chris Danford bc39cb5079 serialize all memory card operations since mount operations hang if we're doing lsusb or reading USB mass storage descriptors in another thread 2004-10-09 08:16:48 +00:00
Chris Danford f65c1d3fbb only remount cards that were in use 2004-10-03 06:21:16 +00:00
Chris Danford 9fe9b0884a Add hack to not leave cards mounted 2004-10-03 05:27:52 +00:00