Commit Graph

95 Commits

Author SHA1 Message Date
Brian Phlipot c1a3455ce4 Explicitly create RStrings to avoid MSVC compiler errors. 2022-10-03 16:21:19 -07:00
Michael Sundqvist 0cba3579de Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
2022-07-31 22:14:38 +02:00
teejusb 7e3789b131 Integrate C++11 branch into 5_1-new 2019-06-22 12:35:38 -07:00
Jason Felds edabf4605b Clean up three sets of warnings:
* Ensure all switches have a default when working with enums.
* Match defined new[] calls with delete[] calls.
* Respect variable initialization order.
2016-03-24 18:30:29 -04:00
Kyzentun fa0478affa Merged per-chart music. Updated changelog. 2015-03-09 19:06:57 -06:00
Kyzentun 0318f07d2d Implement preview music properly as a new optional tag in the ssc file. Changed ScreenManager to emit an error instead of asserting if a screen attempts to use SetNewScreen inside an InitCommand. Changed decorations layer to be a proper child instead of stripping away the ActorFrame. 2015-03-04 01:31:02 -07:00
Kyzentun 846f79879c Added MUSIC tag to note data to allow each chart in a simfile to use a different music file. 2015-03-02 18:44:01 -07:00
Kyzentun c16f045cb4 Fixed UnknownStyleSupport. 2014-10-20 05:14:54 -06:00
Jason Felds 395107d3d5 Revert "Preserve Steps of unknown Style."
This reverts commit 8edd929e24.

This also updates the song cache.
2014-10-19 10:06:40 -04:00
Kyzentun 8edd929e24 Preserve Steps of unknown Style. 2014-10-01 17:12:01 -06:00
Jason Felds c67419ecc8 There goes the macro file.
This is one of my bigger commits in this branch.

Still, shouldn't cause a problem.
2013-05-01 23:54:39 -04:00
Jason Felds 02b409e374 Another writer. 2013-04-28 23:07:44 -04:00
Devin J. Pohly 7703070817 merge from upstream 2013-01-24 00:43:15 -05:00
Devin J. Pohly 533b0f9eff NotesWriterSSC: fix steps offset when saving 2013-01-24 00:20:56 -05:00
Devin J. Pohly ce507b9800 use empty TimingData in Steps to signify fallback on Song timing.
This required using the new Steps::GetTimingData function and the allowEmpty
parameter to TimingData::TidyUpData when appropriate, as well as clearing the
TimingData to remove step timing rather than coping the song timing over it.

Fixes some odd editor behavior when changing song timing, and is overall a
slightly less hacky way of doing things.
2013-01-23 14:51:18 -05:00
Jason Felds ada0c3cdd0 Restore storing to 6 decimals. 2013-01-06 21:15:36 -05:00
Jason Felds 44d8eaa10a Don't write empty labels.
Not worth a cache increase I think.
2012-01-16 13:10:10 -05:00
Marcio Barrientos 11a02660be Change #PREVIEWBG to #PREVIEWVID and update the changelog 2012-01-11 14:21:55 -06:00
Marcio Barrientos da84ef04ad Added tags #PREVIEW for .sma and #PREVIEWBG for .ssc
Added HasPreviewBG() and GetPreviewBGPath() lua bindings
2012-01-11 13:53:30 -06:00
AJ Kelly 63055788ca add #JACKET, #CDIMAGE, and #DISCIMAGE tags to .ssc format (up to v0.81 now). 2012-01-04 12:42:53 -06:00
Thai Pangsakulyanont 248504f275 escape # in first keysound entry, fixed ADPCM reader and make PMS load more correctly.
- [NoteField] fix build warnings, and change the maximum number of displayed notes
  after the receptor to 64.
- [Player] fix build warnings.
- [NotesLoaderSSC, NotesWriterSSC] The MSD file reader seems to treat # that comes
  directly after : as new tag, and as many PMS and BMS files has keysounds which filename
  starts with #, so it looks like this: #KEYSOUNDS:#bgm.wav,01.wav,02.wav,..
  The MSD parser will see it as 2 different tags. So I added a backslash in front of the
  # sign if it's at the start when saving and remove it when loading.
- [RageSoundReader_WAV] ADPCM now works very well and doesn't return error when
  end of file is reached anymore.
- [Steps] Use BMS loader when loading the note data.
2011-11-11 18:40:34 +07:00
AJ Kelly 382f16cc00 small todo 2011-11-10 23:13:16 -06:00
AJ Kelly 391dd8624a try to get attack tags (song timing) to print out like course mods do in .ssc files (I tried doing the same with the one in the steps, but it didn't work so it's not included) 2011-11-10 01:11:28 -06:00
Jason Felds c6fff60998 Finish the 3 decimal write out.
Observation: we have two ways of writing out timing tags in
NotesWriterSSC. Perhaps these should be unified soon.
2011-09-23 22:33:46 -04:00
Mark Cannon 8099e25dcc stage 3 of TimingData changes: changed external interface, enforce encapsulation more strictly 2011-09-15 03:28:58 +00:00
Jason Felds 047bc7a5dc Allow all timing tags regardless of timing. 2011-09-12 19:43:41 -04:00
Mark Cannon df9c4d8142 segment renovation stage 2: redefine TimingSegments as simple structs, standardize names and functions, use only rows for constructors (we'll limit allocation through TimingData::AddSegment in the near future) 2011-09-11 17:13:10 +00:00
Mark Cannon 0d4e43f9e3 stage 1 of TimingSegment cleanup: consolidate genericizable code in TimingData, use a proper variable name 2011-09-10 03:08:59 +00:00
AJ Kelly e06c7d334f back to 3 significant digits for .ssc files. 2011-09-07 22:17:20 -05:00
Jason Felds e854b79b84 Trying to reduce tags for non split timing.
Need assistance to finish the task.

Please bump SSC version to 0.78 when completed.
2011-07-31 23:44:48 -04:00
Jason Felds 7c75347e40 Revert "Remove #INSTRUMENTTRACK. It's guitar only."
This reverts commit 176b6f55ea.

Glad I learned this command.
2011-07-30 15:56:30 -04:00
Jason Felds 176b6f55ea Remove #INSTRUMENTTRACK. It's guitar only. 2011-07-30 15:33:00 -04:00
Jason Felds b6fe8a0de0 [timing] Notes* mostly covered. 2011-07-27 22:33:50 -04:00
Jason Felds 92bab49a16 Hurp-a-durp.
...never let me say that again. Cache increased.
2011-07-17 22:21:16 -04:00
Jason Felds 48226f2027 No longer store #NOTES in cache.
Use the #STEPFILENAME tag to access the files
as appropriate.

To the betting pool fans: file cache version is 192.
2011-07-17 16:06:40 -04:00
Jason Felds 09dc94cfe8 Abstract common functionality. 2011-07-17 12:54:50 -04:00
Jason Felds 759fc0fa6b [timing] This one is converted. 2011-07-14 14:12:20 -04:00
Jason Felds 08d5f8f722 Add Miss Combo support in #COMBOS tag. 2011-07-09 02:28:15 -04:00
Jason Felds c528e8ced3 Start using the tag.
I think this is needed for proper testing.
2011-07-07 18:27:59 -04:00
Jason Felds f16fec8438 Well EXCUUUUUUUUUUUUUUUUUUUUUUUUUSE ME, Princess! 2011-07-07 13:55:46 -04:00
Jason Felds 57e3c2fc80 Use accessor functions instead of direct calls. 2011-06-30 02:19:37 -04:00
Jason Felds 5940bdeddb More abstraction. 2011-06-30 02:10:58 -04:00
Jason Felds 8bc2c38142 Replace #BEAT tags with #SECOND tags.
Split Timing has made this necessary.

Yes, this means another recache.
2011-06-30 01:11:38 -04:00
Jason Felds 4aa404d38e We should write 6 for consistency.
Not worth a cache reload yet.
2011-06-29 23:42:14 -04:00
Jason Felds 8051cd7ad2 .ssc format change, recache required.
This is being done so that beat based #ATTACKS
can be possible.
2011-06-27 20:27:59 -04:00
Jason Felds a0372924ae Newlines are good.
Not worth a cache reload here.
2011-06-26 12:47:26 -04:00
Jason Felds 5ce88d4b54 Attacks can be saved in the editor.
It's more flexible to do it by hand though.
2011-06-24 22:11:07 -04:00
Jason Felds fdfed5c316 Extra colon. Still not working. 2011-06-24 11:47:01 -04:00
Jason Felds b51eec691d Step Attacks will be written.
The cache won't be incremented until this is
given some testing.
2011-06-24 11:27:20 -04:00
Jason Felds df6a00b53e Stops (and Delays) now templated.
This is all of them at this present time.

At some point in the future, we should make
DelaySegments separate from StopSegments.
2011-06-01 09:50:34 -04:00