diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index f37ebcfcff..4b5ee89309 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -4,13 +4,19 @@ The StepMania 5 Changelog covers all post-sm-ssc changes. For a list of changes from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt. ________________________________________________________________________________ +2014/10/20 +---------- +* [StageStats] GetStepsSeconds function added. +* [Steps] If an unrecognized step type is saved, preserve that step instead of + deleting it. A warning will be placed in the log file during song load. + ================================================================================ StepMania 5.0 beta 4a | 20141015 -------------------------------------------------------------------------------- 2014/10/19 ---------- -* [BackgroundEffects] Fix error reporting messages coming up unnecessarily. +* [BackgroundEffects] Fixed errors in StretchNoLoop and StretchRewind. 2014/10/13 ---------- @@ -20,8 +26,8 @@ StepMania 5.0 beta 4a | 20141015 2014/10/11 ---------- * [NoteDisplay] Add two noteskin metrics, {PartName}NoteColorType and -{PartName}NoteColorCount. View https://github.com/stepmania/stepmania/pull/328 -for more information. [hanubeki] + {PartName}NoteColorCount. View https://github.com/stepmania/stepmania/pull/328 + for more information. [hanubeki] ================================================================================ StepMania 5.0 beta 4 | 20140930 diff --git a/Docs/Luadoc/Lua.xml b/Docs/Luadoc/Lua.xml index 56e03b147b..de8282d3f5 100644 --- a/Docs/Luadoc/Lua.xml +++ b/Docs/Luadoc/Lua.xml @@ -1584,6 +1584,7 @@ + diff --git a/Docs/Luadoc/LuaDocumentation.xml b/Docs/Luadoc/LuaDocumentation.xml index e92ed90d92..e9c33fedd4 100644 --- a/Docs/Luadoc/LuaDocumentation.xml +++ b/Docs/Luadoc/LuaDocumentation.xml @@ -2464,6 +2464,9 @@ save yourself some time, copy this for undocumented things: Returns the current stage index. + + Returns the current StepsSeconds, which is the time value used to set the samples in a player's life record. + Return the random seed for the current stage. diff --git a/src/StageStats.cpp b/src/StageStats.cpp index 0a0812bf52..348b0c0ecb 100644 --- a/src/StageStats.cpp +++ b/src/StageStats.cpp @@ -377,6 +377,7 @@ public: static int AllFailed( T* p, lua_State *L ) { lua_pushboolean(L, p->AllFailed()); return 1; } static int GetStage( T* p, lua_State *L ) { LuaHelpers::Push( L, p->m_Stage ); return 1; } DEFINE_METHOD( GetStageIndex, m_iStageIndex ) + DEFINE_METHOD(GetStepsSeconds, m_fStepsSeconds) static int PlayerHasHighScore( T* p, lua_State *L ) { lua_pushboolean(L, p->PlayerHasHighScore(Enum::Check(L, 1))); @@ -395,6 +396,7 @@ public: ADD_METHOD( AllFailed ); ADD_METHOD( GetStage ); ADD_METHOD( GetStageIndex ); + ADD_METHOD( GetStepsSeconds ); ADD_METHOD( PlayerHasHighScore ); ADD_METHOD( GetEarnedExtraStage ); }