Commit Graph

323 Commits

Author SHA1 Message Date
Steve Checkoway 2ea4cb1ead Don't allow locked songs in edit courses. Allow limiting the number of songs in an edit course to a preference. Nonpositive numbers are infinitely many songs per course (well, up to the hard limit of MAX_ENTRIES_PER_COURSE=50). 2006-06-12 10:49:04 +00:00
Steve Checkoway 8de96799ad Add better logging. It'd be nice if these values were checked as they were read in from Preferences.ini. 2006-05-20 06:16:09 +00:00
Charles Lohr a84d30b92e Fix crash from MusicWheel when in BuildWheelItemData(), and under case SORT_ENDLESS_COURSES. Automatically generated courses will cause there to be no group name, and the default (preferred) sort. When this function does not return a value, and it gets assigned to c (In MusicWheel), in some cases we will get a crash.
By default, I use white in the metrics, this doesn't look "great," but it should be up to the themer.
2006-05-17 06:49:55 +00:00
Sean Burke 498c8fcefb I suppose that this is a better way to do it 2006-05-16 10:04:36 +00:00
Chris Danford cb65313c83 fix bogus assert fires for autogen courses 2006-05-04 07:09:08 +00:00
Chris Danford 8814cb747d add courses preferred sort 2006-05-01 21:49:59 +00:00
Chris Danford bc6f682ebb add lua bindings 2006-05-01 12:45:42 +00:00
Chris Danford ab84dffa0f disallow locked steps in random courses 2006-03-27 21:53:33 +00:00
Steve Checkoway cc7a528269 The distinction between a random course entry and a nonfixed one is not clear. A newly created course entry would have IsRandomSong() return false yet when placed in a course, the course would return AllSongsFixed() as false. Redefine a random song to be pSong = NULL.
Remove the sentinel value since the songs are already shuffled. Picking the first one is enough.
2006-02-21 02:29:22 +00:00
Steve Checkoway 6bc529f51b This only modifies mutable data so make it const to silence the compiler warning about calling it from a const function. 2006-02-21 01:54:50 +00:00
Steve Checkoway 439c0f2011 IsFixed and AllSongsAreFixed were identical. IsFixed -> AllSongsAreFixed. 2006-02-21 01:48:01 +00:00
Steve Checkoway e6a456e1c3 Handle random entries. 2006-02-21 01:36:49 +00:00
Glenn Maynard 62a0ac1370 spacing 2006-02-14 11:16:39 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 47010623cd move Course autogen logic into CourseUtil 2006-01-09 21:57:41 +00:00
Chris Danford 44225ad379 XToThemedString -> XToLocalizedString 2006-01-07 04:11:29 +00:00
Glenn Maynard b734b602d2 force TypeName arrays for XToString to be an array of const char*, not CString 2006-01-04 22:30:51 +00:00
Chris Danford 37f82b43f7 remove CStringArray #define 2005-12-09 21:36:22 +00:00
Chris Danford 36c7d8e0ed enum name cleanup 2005-12-01 03:20:25 +00:00
Glenn Maynard d10c1b08ad Avoid calling GetSongsValidForRandom for static courses. 2005-10-31 01:26:24 +00:00
Glenn Maynard d6ca8b3777 break out GetSongsValidForRandom 2005-10-31 01:19:54 +00:00
Glenn Maynard a58a2a2bb2 This seems to have optimized an uncommon case at the cost of the
common case.  Normally, most songs in most courses are static.  Previously,
in those cases, the filtered song list would never be generated; now it's
generated for every course.  Optimize the filtering (erase() on a vector is
slow).
2005-10-31 01:18:10 +00:00
Glenn Maynard 692a52673e Too-big commit in one chunk makes code review impossible--please break
things apart better.  Trying to figure out what just happened ...
2005-10-31 00:54:52 +00:00
Steve Checkoway b6df02af4c Cannot use FOREACH here since --song is not valid for the first element. 2005-10-31 00:32:30 +00:00
Chris Danford 74b107f8bb don't bother checking for a group match when we already have an exact song match 2005-10-31 00:27:48 +00:00
Thad Ward df136da381 Optimize. This brings the ALL_COURSES sort time down. I didn't check the time
spent in this code in release, but in debug this brings the time spent building
musicwheel items in ALL_COURSES sort mode from 30 seconds with my 1600+
songs in about 80 groups down to 12 seconds. Release is down to 6 seconds,
but I don't know where it was to start. This time would increase nearly
exponentially with the number of songs and groups.
2005-10-30 21:07:50 +00:00
Glenn Maynard d19569178c bind GetAllTrails 2005-10-23 07:52:02 +00:00
Chris Danford 015bcd7b1b remove bForceSecret. Use "noshowcourse" instead. 2005-09-11 01:42:16 +00:00
Chris Danford 65d71a4f23 expermienting with DEFINE_METHOD macro for Lua methods 2005-09-10 02:47:04 +00:00
Glenn Maynard 41b08697ca simplify/optimize 2005-09-09 03:47:33 +00:00
Glenn Maynard 0506fee3a7 optimization: avoid GetTrail when meter specified 2005-09-09 02:22:18 +00:00
Glenn Maynard 8b0bd8fd11 cleanup 2005-09-03 23:42:51 +00:00
Chris Danford 133530525f don't report when an entry uses DIFFICULTY_MEDIUM. That's the default. 2005-08-15 16:03:46 +00:00
Chris Danford 6f2f88315d add Lua GetCourseEntry 2005-08-15 01:54:46 +00:00
Chris Danford 5cbc1fcd5f increase MAX_EDIT_COURSE_TITLE_LENGTH 2005-08-03 03:12:09 +00:00
Chris Danford 162f3c8e04 working on new course edit screens
rename: bRandomize -> bShuffle
2005-08-01 05:18:24 +00:00
Chris Danford a2c439a17a support loading of course edits 2005-07-31 05:41:32 +00:00
Chris Danford e3167a82d8 working on new course edit screens 2005-07-30 19:34:23 +00:00
Chris Danford e6df021062 working on new course editor 2005-07-30 04:50:17 +00:00
Chris Danford 4c2a8e4cd7 add CourseTypeToString
add lua bindings
2005-07-29 23:02:10 +00:00
Chris Danford 359d745e67 add course edits, improved course editor 2005-07-29 02:23:02 +00:00
Glenn Maynard 03fab683ef fix backwards IsFixed 2005-07-06 21:46:55 +00:00
Chris Danford 6d0e826c2f fix VC7 warnings 2005-07-05 11:16:58 +00:00
Glenn Maynard bb8af41cb1 missing headers 2005-07-01 05:07:22 +00:00
Steve Checkoway aa71c794ec Fix warnings. 2005-06-29 06:36:51 +00:00
Chris Danford 6ab20c5ad9 more work on a new course editor 2005-06-28 08:11:30 +00:00
Glenn Maynard 6d9b726210 fix compile (leaving warnings alone for now) 2005-06-27 05:41:43 +00:00
Chris Danford dda77894e8 Remove CourseEntryType. Instead, treat each CourseEntry property as a filter. 2005-06-27 04:41:36 +00:00
Chris Danford 7a1d736694 working on new course editor 2005-06-26 21:31:07 +00:00
Chris Danford 2a6dcba6e8 cleanup:
"GroupName" -> "SongGroup" to make room for CourseGroup
replace checks for "cvs" with a call to StripCvs()
m_Rows -> m_pRows
broadcast on preferred group changes
2005-06-23 08:05:09 +00:00