Commit Graph

579 Commits

Author SHA1 Message Date
Chris Danford 35df8821ca add Lua GetOneSteps 2007-02-09 03:23:24 +00:00
Glenn Maynard 38aec56633 add paranoid BackUpAllSongSaves 2007-02-03 02:32:57 +00:00
Glenn Maynard a41f0c0dec SetSavedToDisk in Save(), not in SM_SaveSuccessful. When we save the
whole file, all steps are saved to disk; we were only marking the
active steps.  This sequence would cause steps to be wrongly deleted:
 1: create easy and medium steps for one steps type; save
 2: on another steps type, edit easy steps which were autogenned from the above
        change the steps
 3: f6 to change to medium steps steps which were autogenned from the above
 4: menu -> save
        This will save all data, but only medium will be marked saved to disk.
 5: f5 to change back to easy steps
 6: menu -> exit
        This will delete the easy steps, because they were not marked saved to disk.
2007-02-03 00:55:52 +00:00
Glenn Maynard f88111380a If writing the SM file fails, don't write cache, either. 2007-02-03 00:54:28 +00:00
Glenn Maynard 9d541532af error returns 2007-02-03 00:13:35 +00:00
Glenn Maynard cd5f4a6e39 SoundReader_FileReader -> RageSoundReader_FileReader 2006-11-30 04:22:38 +00:00
Glenn Maynard c895f1c29c SoundReader -> RageSoundReader 2006-11-29 09:16:59 +00:00
John Bauer cca2d60509 Fix RevertFromDisk using a method that preserves as many of the original
Steps* pointers as possible.  It is pointless to get rid of RevertFromDisk
entirely because all of the unpleasant side effects it can have are possible
using other tools in the editor.
2006-11-12 16:49:00 +00:00
Glenn Maynard 05bfda3f4b don't delete autogen steps; they're created and deleted by Song 2006-11-12 04:19:51 +00:00
Glenn Maynard c6e62ae92d revert. Need a better approach. 2006-11-12 03:26:25 +00:00
John Bauer c3e39e12a3 Fix several annoying edit mode bugs, mostly by fixing the Song copy
operator and the various uses of it.

- revert file from disk: keeps old BPM.  The BPMS on disk are added to
  the existing BPM information!
- edit mode turns X stepcharts into 2X when reverting
- sometimes edit mode loses an entire stepchart: open a stepchart,
  change to a new stepchart, exit without going back, original chart gone
- edit a chart, make a change in a different chart, exit from the first chart:
  change made in different chart doesn't revert
- normally, when you create a stepchart and don't save it after editting it,
  it is deleted.  however, if you create a stepchart, don't save it, and exit
  edit mode while looking at a different chart, the chart isn't deleted.

Some existing bugs are not fixed, though:
- delete the last stepchart for a step type.  CTD.
- Edit one of the fake doubles stepcharts for a song that doesn't have
  real doubles stepcharts.  Exit without doing anything.  CTD.  This is
  probably the same problem as the previous bug.
- delete a song or a steps that happens to be part of a trail.  Trail is now
  broken.  Some other edits should affect a trail as well, but don't.
2006-11-10 07:02:27 +00:00
Steve Checkoway c4fe855aca Spacing. 2006-11-04 23:36:42 +00:00
Steve Checkoway 63bb4faf7d Make NotesWriterDWI also a namespace. 2006-11-04 23:36:11 +00:00
Steve Checkoway 0ed39a2f5e No persistent data so make it a namespace. 2006-11-04 23:28:33 +00:00
Steve Checkoway 30d9410b65 Unneeded. 2006-11-01 10:45:51 +00:00
Glenn Maynard 4bb479a445 standard enums for some preference types 2006-10-07 07:43:18 +00:00
Glenn Maynard b67e57864e Invalid 2006-10-07 03:32:16 +00:00
Glenn Maynard 2dee2b1cf7 cleanup 2006-10-05 07:33:47 +00:00
Glenn Maynard c690fdcfe4 unify registration 2006-09-29 00:01:32 +00:00
Glenn Maynard 153bcedd40 simpler Lua boilerplate 2006-09-27 20:03:31 +00:00
Glenn Maynard 982228b7e6 bind StepsType 2006-09-27 06:09:52 +00:00
Glenn Maynard a7b53444f8 NUM_STEPS_TYPES -> NUM_StepsType 2006-09-26 20:22:28 +00:00
Glenn Maynard 99ccb03ac7 update Difficulty 2006-09-26 05:04:14 +00:00
Steve Checkoway c8a2b7601c LogType -> string. 2006-09-24 03:57:26 +00:00
Steve Checkoway faf32603f1 Consistent user warnings. 2006-09-04 08:09:27 +00:00
Steve Checkoway 4606d68fdf Move warnings meant for the user to userlog.txt. These are as inconsistent in format as before but at least they're all in one place. 2006-09-03 05:16:09 +00:00
Steve Checkoway b939bdec8e Add a last beat hint. The real last beat will be at least as long as the hint. 2006-09-02 22:22:57 +00:00
Steve Checkoway 6fc2fbbc88 Bump. 2006-09-02 06:12:45 +00:00
Steve Checkoway 061e3fb07a When Steps have changed in memory but not on disk, calling Compress() could lose all changes in memory. Clear the file name to ensure this doesn't happen and reset it when the Song has been written to cache once more. 2006-08-22 13:45:36 +00:00
Steve Checkoway f4d1b8aaa2 Bump. 2006-08-21 13:06:35 +00:00
Glenn Maynard e69aa02e51 bind HasStepsTypeAndDifficulty 2006-08-20 04:40:32 +00:00
Glenn Maynard 9895b8c93c unneeded 2006-08-20 03:23:44 +00:00
Glenn Maynard 2fe1e69522 move out of PrefsMan 2006-08-17 01:05:00 +00:00
Glenn Maynard 7bed654fbb IsLong, IsMarathon, bindings 2006-08-17 00:27:58 +00:00
Steve Checkoway 884af552ee Allow combined player steps to have per-player radar values. This doesn't work for trails where it just uses the PLAYER_1 values, same with writing to the catalog file. 2006-07-28 03:34:14 +00:00
Steve Checkoway ab978ef733 While I'm at it, remove leading and trailing slashes to make the cache files look like "Songs_foo" instead of "_Songs_foo_". 2006-07-24 08:35:33 +00:00
Steve Checkoway 9a21d52d0b Replace invalid utf-8 characters with underscores. Bump cache version. 2006-07-24 08:25:55 +00:00
Steve Checkoway 52d48a1eac CanAutoGenStepsType. For some reason lights cannot be autogenned. I've moved that from Song to GameManager. Whenever this restriction is lifted (I don't know why the restriction exists), it should be changed to ST_FLAGS_NONE. 2006-07-24 05:01:48 +00:00
Steve Checkoway 3a9bdc1646 Move MakeLoader to NotesLoader. It doesn't make sense for it to be a member function of Song. 2006-06-20 07:12:52 +00:00
Chris Danford af3e1c571c move Steps searching out of song into SongUtil so that it can be shared with CourseEntry 2006-06-13 01:10:37 +00:00
Chris Danford 0f9d78b06d allow songman->Reload with FastLoad 2006-05-05 00:41:17 +00:00
Chris Danford bc6f682ebb add lua bindings 2006-05-01 12:45:42 +00:00
Chris Danford 1501fbfbf5 bump cache version 2006-04-30 07:34:47 +00:00
Chris Danford 1860c6c674 consolidate Steps description validation 2006-03-08 04:03:39 +00:00
Glenn Maynard 9c4d7606cf ToLower -> MakeLower 2006-03-01 00:39:32 +00:00
Glenn Maynard 70c3facebc don't use istring here 2006-02-28 23:04:24 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford df984aef76 working on localization tool 2005-12-29 02:40:09 +00:00
Glenn Maynard 50276a15be fix comment 2005-12-22 02:40:07 +00:00
Glenn Maynard 902e2a5701 prefer standard find() over Find 2005-12-21 08:43:44 +00:00