.ssc format change, recache required.

This is being done so that beat based #ATTACKS
can be possible.
This commit is contained in:
Jason Felds
2011-06-27 20:27:59 -04:00
parent 5bd5f2ea99
commit 8051cd7ad2
7 changed files with 12 additions and 6 deletions
+3
View File
@@ -9,6 +9,9 @@ change to JSON, but it is unsure if this will be done.
Implement .ssc at your own risk.
________________________________________________________________________________
[v0.72] - Wolfman2000
* Have #OFFSET come before #ATTACKS in the Step data.
[v0.71] - Wolfman2000
* Have #ATTACKS work per step as well.
+2
View File
@@ -15,6 +15,8 @@ StepMania 5.0 Preview 2 | 201106??
probably going to be better overall. [Wolfman2000]
* [TimingData] Preserve the length of time for Speed Segment scaling when using
beats. [Wolfman2000]
* [NotesLoader/WriterSSC] #OFFSET is to be before #ATTACKS. This is required if
we pursue beat based attacks and not just second based. [Wolfman2000]
2011/06/26
----------
+1 -1
View File
@@ -51,6 +51,7 @@
#CREDIT:;
// steps-based timingdata
#OFFSET:;
#BPMS:;
#STOPS:;
#DELAYS:;
@@ -62,7 +63,6 @@
#FAKES:;
#LABELS:;
#ATTACKS:;
#OFFSET:;
// actual step data
#NOTES:;
+2
View File
@@ -26,6 +26,8 @@ const float VERSION_RADAR_FAKE = 0.53f;
const float VERSION_WARP_SEGMENT = 0.56f;
/** @brief The version that formally introduced Split Timing. */
const float VERSION_SPLIT_TIMING = 0.7f;
/** @brief The version that moved the step's Offset higher up. */
const float VERSION_OFFSET_BEFORE_ATTACK = 0.72f;
/**
* @brief The SSCLoader handles all of the parsing needed for .ssc files.
+2 -3
View File
@@ -317,7 +317,8 @@ static RString GetSSCNoteData( const Song &song, const Steps &in, bool bSavingCa
lines.push_back( ssprintf( "#RADARVALUES:%s;", join(",",asRadarValues).c_str() ) );
lines.push_back( ssprintf( "#CREDIT:%s;", SmEscape(in.GetCredit()).c_str() ) );
lines.push_back( ssprintf( "#OFFSET:%.6f;", in.m_Timing.m_fBeat0OffsetInSeconds ) );
GetTimingTags( lines, in.m_Timing );
RString attacks = "";
@@ -332,8 +333,6 @@ static RString GetSSCNoteData( const Song &song, const Steps &in, bool bSavingCa
Trim(attacks, ":"); // just in case something screwy happens.
lines.push_back( ssprintf( "#ATTACKS:%s;", attacks.c_str()));
lines.push_back( ssprintf( "#OFFSET:%.6f;", in.m_Timing.m_fBeat0OffsetInSeconds ) );
RString sNoteData;
in.GetSMNoteData( sNoteData );
+1 -1
View File
@@ -41,7 +41,7 @@
* @brief The internal version of the cache for StepMania.
*
* Increment this value to invalidate the current cache. */
const int FILE_CACHE_VERSION = 184;
const int FILE_CACHE_VERSION = 185;
/** @brief How long does a song sample last by default? */
const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;
+1 -1
View File
@@ -20,7 +20,7 @@ void FixupPath( RString &path, const RString &sSongPath );
RString GetSongAssetPath( RString sPath, const RString &sSongPath );
/** @brief The version of the .ssc file format. */
const static float STEPFILE_VERSION_NUMBER = 0.71f;
const static float STEPFILE_VERSION_NUMBER = 0.72f;
/** @brief How many edits for this song can each profile have? */
const int MAX_EDITS_PER_SONG_PER_PROFILE = 15;