diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 52a7f29927..d6c32aac74 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -5,12 +5,19 @@ from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt. ________________________________________________________________________________ ================================================================================ -StepMania 5.0 Preview 2 | 20110??? +StepMania 5.0 Preview 1a | 20110603 -------------------------------------------------------------------------------- +Date Forgotten +-------------- +* [ScreenEdit] Fix Song Timing behaviors. [Wolfman2000] +* [NotesLoaderSM] Fix an Offset load bug. [Wolfman2000] + 2011/06/03 ---------- * [LifeMeterBattery] Added LivesLeft param to LifeChanged message. [AJ] +* [Windows] Set up directories for pictures and app data in their proper + location. [Henke] 2011/06/02 ---------- diff --git a/Docs/Luadoc/Lua.xml b/Docs/Luadoc/Lua.xml index affad2d99a..201f0b6312 100644 --- a/Docs/Luadoc/Lua.xml +++ b/Docs/Luadoc/Lua.xml @@ -130,6 +130,7 @@ + @@ -1025,52 +1026,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2105,6 +2060,6 @@ - StepMania 5 v5.0 Preview 1 - 2011-06-02 + StepMania 5 v5.0 Preview 1a + 2011-06-04 diff --git a/Themes/default/Graphics/ScreenGameplay BPMDisplay.lua b/Themes/default/Graphics/ScreenGameplay BPMDisplay.lua index e614437535..4b927fb10a 100644 --- a/Themes/default/Graphics/ScreenGameplay BPMDisplay.lua +++ b/Themes/default/Graphics/ScreenGameplay BPMDisplay.lua @@ -1,7 +1,4 @@ --- check if players are playing steps with different timingdata. -local numPlayers = GAMESTATE:GetNumPlayersEnabled() - -local displaySingle = Def.SongBPMDisplay { +return Def.SongBPMDisplay { File=THEME:GetPathF("BPMDisplay", "bpm"); Name="BPMDisplay"; InitCommand=cmd(zoom,0.675;shadowlength,1); @@ -9,54 +6,3 @@ local displaySingle = Def.SongBPMDisplay { CurrentSongChangedMessageCommand=cmd(playcommand,"Set"); CurrentCourseChangedMessageCommand=cmd(playcommand,"Set"); }; - -if numPlayers == 1 then - return displaySingle -else - -- check if both players are playing the same steps - local stepsP1 = GAMESTATE:GetCurrentSteps(PLAYER_1) - local stepsP2 = GAMESTATE:GetCurrentSteps(PLAYER_2) - - local stP1 = stepsP1:GetStepsType() - local stP2 = stepsP2:GetStepsType() - - local diffP1 = stepsP1:GetDifficulty() - local diffP2 = stepsP2:GetDifficulty() - - if stP1 == stP2 and diffP1 == diffP2 then - -- both players are using the same steps; only need one. - return displaySingle - end - - -- otherwise, we have some more work to do. - local timingP1 = stepsP1:GetTimingData() - local timingP2 = stepsP2:GetTimingData() - - local function UpdateBPM(self) - local dispP1 = self:GetChild("DisplayP1") - local dispP2 = self:GetChild("DisplayP2") - - -- needs current bpm for p1 and p2 - for pn in ivalues(PlayerNumber) do - local bpmDisplay = (pn == PLAYER_1) and dispP1 or dispP2 - local pState = GAMESTATE:GetPlayerState(pn); - local songPosition = pState:GetSongPosition() - local bpm = songPosition:GetCurBPS() * 60 - bpmDisplay:settext( string.format(%.2f,bpm) ) - end - end - - local displayTwoPlayers = Def.ActorFrame{ - -- manual bpm displays - LoadFont("BPMDisplay", "bpm")..{ - Name="DisplayP1"; - InitCommand=cmd(zoom,0.675;shadowlength,1); - }; - LoadFont("BPMDisplay", "bpm")..{ - Name="DisplayP2"; - InitCommand=cmd(zoom,0.675;shadowlength,1); - }; - }; - - displayTwoPlayers.InitCommand=cmd(SetUpdateFunction,UpdateBPM); -end \ No newline at end of file diff --git a/src/LifeMeterBattery.cpp b/src/LifeMeterBattery.cpp index cf5199179c..009d920e50 100644 --- a/src/LifeMeterBattery.cpp +++ b/src/LifeMeterBattery.cpp @@ -106,7 +106,7 @@ void LifeMeterBattery::ChangeLife( TapNoteScore score ) if( m_iLivesLeft == 0 ) return; - // xxx: This is hardcoded; we should use metrics for this. -aj + // todo: let the themer decide how this is handled. -aj switch( score ) { case TNS_W1: @@ -153,7 +153,7 @@ void LifeMeterBattery::ChangeLife( HoldNoteScore score, TapNoteScore tscore ) case HNS_Held: break; case HNS_LetGo: - ChangeLife( TNS_Miss ); // LetGo is the same as a miss + ChangeLife( TNS_Miss ); // LetGo is the same as a miss break; default: ASSERT(0); diff --git a/src/LifeMeterBattery.h b/src/LifeMeterBattery.h index 08d72233db..d7b4a90a1d 100644 --- a/src/LifeMeterBattery.h +++ b/src/LifeMeterBattery.h @@ -43,7 +43,6 @@ private: float m_fBatteryBlinkTime; // if > 0 battery is blinking // theme metrics added for sm-ssc - //ThemeMetric<> METRIC_NAME; ThemeMetric BATTERY_BLINK_TIME; AutoActor m_sprFrame; diff --git a/src/NotesLoaderSM.cpp b/src/NotesLoaderSM.cpp index d287660dc5..4248085f67 100644 --- a/src/NotesLoaderSM.cpp +++ b/src/NotesLoaderSM.cpp @@ -560,7 +560,7 @@ bool SMLoader::LoadFromSMFile( const RString &sPath, Song &out, bool bFromCache else if( sValueName=="OFFSET" ) { - out.m_fBeat0OffsetInSeconds = StringToFloat( sParams[1] ); + out.m_SongTiming.m_fBeat0OffsetInSeconds = StringToFloat( sParams[1] ); } else if( sValueName=="BPMS" ) { diff --git a/src/PlayerOptions.cpp b/src/PlayerOptions.cpp index e33c4108d8..363851cd6a 100644 --- a/src/PlayerOptions.cpp +++ b/src/PlayerOptions.cpp @@ -265,7 +265,7 @@ void PlayerOptions::FromString( const RString &sMultipleMods ) { if (!FromOneModString( *s, sThrowAway )) { - LOG->Trace( "Attempted to load a non-existing mod %s for the Player. Ignoring.", (*s).c_str() ); + LOG->Trace( "Attempted to load a non-existing mod \'%s\' for the Player. Ignoring.", (*s).c_str() ); } } } @@ -300,8 +300,8 @@ bool PlayerOptions::FromOneModString( const RString &sOneMod, RString &sErrorOut * they meant "*123". */ if( s->Right(1) == "*" ) { - /* XXX We know what they want, is there any reason not to handle it? */ - /* Yes. We should be strict in handling the format. -Chris */ + // XXX: We know what they want, is there any reason not to handle it? + // Yes. We should be strict in handling the format. -Chris sErrorOut = ssprintf("Invalid player options \"%s\"; did you mean '*%d'?", s->c_str(), StringToInt(*s) ); return false; } diff --git a/src/PlayerStageStats.cpp b/src/PlayerStageStats.cpp index 6aab543b26..e57682c843 100644 --- a/src/PlayerStageStats.cpp +++ b/src/PlayerStageStats.cpp @@ -583,7 +583,7 @@ float PlayerStageStats::GetPercentageOfTaps( TapNoteScore tns ) const void PlayerStageStats::CalcAwards( PlayerNumber p, bool bGaveUp, bool bUsedAutoplay ) { - LOG->Trace( "hand out awards" ); + //LOG->Trace( "hand out awards" ); m_PeakComboAward = PeakComboAward_Invalid; @@ -592,7 +592,7 @@ void PlayerStageStats::CalcAwards( PlayerNumber p, bool bGaveUp, bool bUsedAutop deque &vPdas = GAMESTATE->m_vLastStageAwards[p]; - LOG->Trace( "per difficulty awards" ); + //LOG->Trace( "per difficulty awards" ); // per-difficulty awards // don't give per-difficutly awards if using easy mods @@ -632,7 +632,7 @@ void PlayerStageStats::CalcAwards( PlayerNumber p, bool bGaveUp, bool bUsedAutop else m_StageAward = StageAward_Invalid; - LOG->Trace( "done with per difficulty awards" ); + //LOG->Trace( "done with per difficulty awards" ); // DO give peak combo awards if using easy mods int iComboAtStartOfStage = GetComboAtStartOfStage(); @@ -642,7 +642,7 @@ void PlayerStageStats::CalcAwards( PlayerNumber p, bool bGaveUp, bool bUsedAutop { int iLevel = 1000 * (pca+1); bool bCrossedLevel = iComboAtStartOfStage < iLevel && iPeakCombo >= iLevel; - LOG->Trace( "pca = %d, iLevel = %d, bCrossedLevel = %d", pca, iLevel, bCrossedLevel ); + //LOG->Trace( "pca = %d, iLevel = %d, bCrossedLevel = %d", pca, iLevel, bCrossedLevel ); if( bCrossedLevel ) GAMESTATE->m_vLastPeakComboAwards[p].push_back( pca ); } @@ -652,7 +652,7 @@ void PlayerStageStats::CalcAwards( PlayerNumber p, bool bGaveUp, bool bUsedAutop else m_PeakComboAward = PeakComboAward_Invalid; - LOG->Trace( "done with per combo awards" ); + //LOG->Trace( "done with per combo awards" ); } diff --git a/src/ProductInfo.h b/src/ProductInfo.h index 19268747d1..e6cd9db7a8 100644 --- a/src/ProductInfo.h +++ b/src/ProductInfo.h @@ -35,7 +35,7 @@ * */ #ifndef PRODUCT_VER_BARE -#define PRODUCT_VER_BARE v5.0 Preview 1 +#define PRODUCT_VER_BARE v5.0 Preview 1a #endif /** diff --git a/src/ProductInfo.inc b/src/ProductInfo.inc index 5e5bfde118..d08ad19e51 100644 --- a/src/ProductInfo.inc +++ b/src/ProductInfo.inc @@ -5,7 +5,7 @@ ; see ProductInfo.h for use descriptions !define PRODUCT_ID "StepMania" -!define PRODUCT_VER "v5.0 Preview 1" +!define PRODUCT_VER "v5.0 Preview 1a" !define PRODUCT_DISPLAY "${PRODUCT_ID} ${PRODUCT_VER}" !define PRODUCT_BITMAP "ssc" diff --git a/src/Song.cpp b/src/Song.cpp index 059190c751..de09e5ffa3 100644 --- a/src/Song.cpp +++ b/src/Song.cpp @@ -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 = 177; +const int FILE_CACHE_VERSION = 178; /** @brief How long does a song sample last by default? */ const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f; diff --git a/src/Song.h b/src/Song.h index 825e7e2dc4..0539cddff5 100644 --- a/src/Song.h +++ b/src/Song.h @@ -287,9 +287,6 @@ public: /** @brief The Song's TimingData. */ TimingData m_SongTiming; - /** @brief The initial offset of a song. */ - float m_fBeat0OffsetInSeconds; - typedef vector VBackgroundChange; private: /** diff --git a/src/archutils/Win32/WindowsResources.rc b/src/archutils/Win32/WindowsResources.rc index 18e8cb2d41..30090d15bb 100644 --- a/src/archutils/Win32/WindowsResources.rc +++ b/src/archutils/Win32/WindowsResources.rc @@ -181,8 +181,8 @@ IDI_ICON1 ICON "smzip.ico" // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,0,0,1 - PRODUCTVERSION 1,2,4,1 + FILEVERSION 5,0,0,2 + PRODUCTVERSION 5,0,0,2 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -197,14 +197,14 @@ BEGIN BEGIN BLOCK "040904b0" BEGIN - VALUE "CompanyName", "the spinal shark collective\nhttp://ssc.ajworld.net/" - VALUE "FileDescription", "sm-ssc" - VALUE "FileVersion", "1, 2, 4, 0" + VALUE "CompanyName", "StepMania Team\nhttp://www.stepmania.com/" + VALUE "FileDescription", "StepMania" + VALUE "FileVersion", "5, 0, 0, 2" VALUE "InternalName", "sm-ssc" VALUE "LegalCopyright", "Copyright © 2001-2011" VALUE "OriginalFilename", "StepMania.exe" - VALUE "ProductName", "sm-ssc" - VALUE "ProductVersion", "1, 2, 4, 0" + VALUE "ProductName", "StepMania" + VALUE "ProductVersion", "5, 0, 0, 2" END END BLOCK "VarFileInfo"