Commit Graph

431 Commits

Author SHA1 Message Date
Chris Danford fa114e148a use PlayerNumber macros 2004-06-06 20:57:13 +00:00
Glenn Maynard 5c7dd115ad fix Song::GetSteps 2004-06-06 02:08:48 +00:00
Glenn Maynard 99e11714e5 Keep steps by StepsType, to speed up the common case of searching by
it.  Catalog writing (still for only one course) down to .381s; still too much
time to be spending for one course on every load.  I'd make catalog writing
only happen if something has changed, but that would mean introducing
some form of course caching, which I'd rather avoid ...
2004-06-05 08:36:21 +00:00
Glenn Maynard 1246e086f2 Only create autogen steps pointers if steps autogen is enabled. This fixes
random courses taking too long to generate with autogen disabled: it has
to iterate over *all* steps (including the unused autogen steps); when
outputting the catalog, this means it has to iterate over every song once
per random course line per steps type per course difficulty.  (test case
of one 9-random-entry course with autogen off: ~10 seconds -> ~1.5 seconds;
still too much)
2004-06-05 08:20:07 +00:00
Glenn Maynard 10ef60e6ce optimize Song::GetStepsByDifficulty and Song::GetStepsByMeter 2004-06-05 07:55:40 +00:00
Glenn Maynard f887354214 fix Song::FreeAllLoadedFromProfiles 2004-06-05 07:51:40 +00:00
Glenn Maynard 6c93aebe04 remove m_bChangedSinceSave 2004-06-05 07:49:21 +00:00
Glenn Maynard d44be247d0 cleanup 2004-06-05 05:08:00 +00:00
Chris Danford 0a5d0fb73f name cleanup 2004-06-02 05:52:16 +00:00
Glenn Maynard 549cd7c83f license updates 2004-05-31 21:35:31 +00:00
Glenn Maynard 41ef4f0edc TitleSubstitution cleanup, license update 2004-05-31 00:59:33 +00:00
Glenn Maynard 8e654b59ea bump cache 2004-05-25 05:38:17 +00:00
Chris Danford b05d25ab24 "m_pCurNotes" -> "m_pCurSteps" 2004-05-24 06:12:17 +00:00
Chris Danford 4bb777232d name cleanup: "pNotes" -> "pSteps" 2004-05-24 03:41:39 +00:00
Chris Danford 99a02deffe name cleanup: "StepsType nt" -> "StepsType st" 2004-05-24 03:32:56 +00:00
Chris Danford abfc956e4f refactor Course: move some responsibilities to Trail 2004-05-23 00:53:20 +00:00
Glenn Maynard f0fdfc5e58 cache StepsID::ToSteps to speed up html writing 2004-05-21 05:08:04 +00:00
Glenn Maynard 854da28681 cleanup
handle lights via autogen as originally suggested
2004-05-20 19:05:37 +00:00
Glenn Maynard 703ebfca58 LoadFile( bHeaderOnly ): only load image dimensions
caching TM4: 37 secs -> 28 secs
only implemented for PNG; 90% of song images are PNG anyway
2004-05-19 05:10:23 +00:00
Glenn Maynard a33e65a552 cleanup 2004-05-17 02:38:01 +00:00
Glenn Maynard 351987a205 bump cache (banner cache format changed) 2004-05-17 01:50:35 +00:00
Chris Danford 1f807c8e0f fix long-running cabinet-lights causes gameplay to end very late 2004-05-08 03:49:32 +00:00
Glenn Maynard 363534a046 remove Song::GetNumNotesWithGrade 2004-05-02 00:12:31 +00:00
Glenn Maynard c27418fbbf don't throw if a song uses an unknown audio type 2004-04-28 01:26:32 +00:00
Glenn Maynard 84e873bb28 remove debugging 2004-04-26 00:06:42 +00:00
Glenn Maynard b0ca9ef1ea debugging 2004-04-25 23:22:46 +00:00
Chris Danford 65ea42f7b2 don't load duplicate edits 2004-04-23 01:33:08 +00:00
Chris Danford cca71d1d3f edits cleanup:
- only allow reasonable file sizes
 - only allow one Steps per edit file
 - only allow 5 edits per-song, per-profile
2004-04-23 00:26:51 +00:00
Chris Danford fc8d3ed363 add StepsType for cabinet lights 2004-04-20 02:35:30 +00:00
Chris Danford 3bc5943a9e don't throw away Song scores for Songs/Steps that aren't currently loaded on the machine 2004-04-18 18:42:42 +00:00
Chris Danford b217774f88 create SongID, StepsID 2004-04-18 08:06:14 +00:00
Chris Danford 1920634135 move Song/Steps sorting into Song/StepsUtil.h/cpp 2004-04-18 07:34:37 +00:00
Glenn Maynard e9070532fa Only slide duplicate difficulties when loading BMS files; in other cases,
just move the duplicates to EDIT.  This should fix the common glitch
of users with eg. two beginner steps for a song having all difficulties
bumped up; instead, just move the extra step to an edit.
2004-04-17 01:47:55 +00:00
Glenn Maynard 688f76c5ac rename SongID to StepsID; add Song::GetStepsByID (with caveats); use it in StepsID 2004-04-16 23:40:48 +00:00
Glenn Maynard 0cf7715dfd working on fixing crash after revert from editor 2004-04-16 23:02:39 +00:00
Glenn Maynard fadbe25ae9 cleanup 2004-04-16 22:52:30 +00:00
Glenn Maynard c58396d7c7 cleanup
flush cache due to beginner bugfix in alpha 16
2004-04-08 05:33:48 +00:00
Glenn Maynard 08984222fb cleanup 2004-04-06 04:42:07 +00:00
Glenn Maynard 2a4681ba09 handle song paths more consistently
if a song contains weird paths (eg. "../foo.png"), don't expand them when
writing in the editor
2004-04-06 04:39:59 +00:00
Glenn Maynard f07ece1dc8 fix assertion on song paths starting with lots of "../" 2004-04-06 04:22:18 +00:00
Glenn Maynard 9a41c54bf5 fix "../" in #MUSIC tag asserting 2004-04-06 04:06:37 +00:00
Glenn Maynard 1bf65b9fb9 Fix crashes when song paths begin with "../". 2004-04-05 03:09:58 +00:00
Glenn Maynard 68ad315022 theme "NO DATA" 2004-03-29 20:07:24 +00:00
Chris Danford 742daadcf5 save last played song to profile 2004-03-25 09:54:28 +00:00
Glenn Maynard d168a65016 fix Song::RevertFromDisk when playing autogen steps 2004-03-21 23:07:46 +00:00
Glenn Maynard 44545aa546 fix dupe difficulty removal 2004-03-14 02:25:38 +00:00
Chris Danford 28f4764ed2 SongSortOrder -> SortOrder
save/restore last sort with Profile
clean up GameConstants
2004-03-12 08:31:40 +00:00
Chris Danford df72631f6c add "disqualify" graphic to options screen for options that make a song easier 2004-03-08 07:49:01 +00:00
Glenn Maynard 84a38d3bf1 and SORT_GRADE fixes 2004-03-07 07:03:37 +00:00
Glenn Maynard 6923557389 SORT_GRADE fixes 2004-03-07 06:48:10 +00:00