Skip to content

Commit cb508d0

Browse files
Merge branch '0.55.2'
2 parents f31f334 + c692da0 commit cb508d0

File tree

9 files changed

+27
-10
lines changed

9 files changed

+27
-10
lines changed

CMake/SMDefs.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Set up version numbers according to the new scheme.
22
set(SM_VERSION_MAJOR 0)
33
set(SM_VERSION_MINOR 55)
4-
set(SM_VERSION_PATCH 1)
4+
set(SM_VERSION_PATCH 2)
55
set(SM_VERSION_TRADITIONAL "${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}.${SM_VERSION_PATCH}")
66

77
execute_process(COMMAND git rev-parse --short HEAD

extern/MinaCalc/MinaCalc.a

-47 KB
Binary file not shown.

extern/MinaCalc/MinaCalc.lib

-29.9 KB
Binary file not shown.

src/GameState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class GameState
213213
bool m_bLoadingNextSong;
214214
int GetLoadingCourseSongIndex() const;
215215

216-
RString GetEtternaVersion() { return "0.55.1"; }
216+
RString GetEtternaVersion() { return "0.55.2"; }
217217
bool isplaylistcourse = false;
218218
bool IsPlaylistCourse() { return isplaylistcourse; }
219219
bool CountNotesSeparately();

src/HighScore.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,7 @@ XNode* HighScore::CreateEttNode() const
810810
return m_Impl->CreateEttNode();
811811
}
812812

813+
// Used for importing from stats.xml -mina
813814
void HighScore::LoadFromNode( const XNode* pNode )
814815
{
815816
m_Impl->LoadFromNode( pNode );
@@ -835,9 +836,20 @@ void HighScore::LoadFromNode( const XNode* pNode )
835836
}
836837
}
837838

839+
// Used to load from etterna.xml -mina
838840
void HighScore::LoadFromEttNode(const XNode* pNode)
839841
{
840842
m_Impl->LoadFromEttNode(pNode);
843+
844+
if (m_Impl->fSSRNormPercent > 1000.f) {
845+
if (m_Impl->grade != Grade_Failed)
846+
m_Impl->fSSRNormPercent = RescoreToWifeJudgeDuringLoad(4);
847+
else
848+
m_Impl->fSSRNormPercent = m_Impl->fWifeScore;
849+
850+
m_Impl->vNoteRowVector.clear();
851+
m_Impl->vOffsetVector.clear();
852+
}
841853
}
842854

843855
string HighScore::GetDisplayName() const

src/ProductInfo.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
!define PRODUCT_ID "Etterna"
88
; TODO: This needs to be updated with the git rev hash
9-
!define PRODUCT_VER "v0.55.1"
9+
!define PRODUCT_VER "v0.55.2"
1010
!define PRODUCT_DISPLAY "${PRODUCT_FAMILY} ${PRODUCT_VER}"
1111
!define PRODUCT_BITMAP "ett"
1212

src/Profile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ XNode* Profile::SaveEttGeneralDataCreateNode() const {
15281528
pGeneralDataNode->AppendChild("CharacterID", m_sCharacterID);
15291529
pGeneralDataNode->AppendChild("Guid", m_sGuid);
15301530
pGeneralDataNode->AppendChild("SortOrder", SortOrderToString(m_SortOrder));
1531-
pGeneralDataNode->AppendChild("LastDifficulty", DifficultyToString(m_LastDifficulty));
1531+
pGeneralDataNode->AppendChild("LastDifficulty", DifficultyToString(Difficulty_Invalid));
15321532
if (m_LastStepsType != StepsType_Invalid)
15331533
pGeneralDataNode->AppendChild("LastStepsType", GAMEMAN->GetStepsTypeInfo(m_LastStepsType).szName);
15341534
pGeneralDataNode->AppendChild(m_lastSong.CreateNode());

src/ScoreManager.cpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,14 @@ void ScoresAtRate::AddScore(HighScore& hs) {
4646
bestGrade = min(hs.GetWifeGrade(), bestGrade);
4747
scores.emplace(key, hs);
4848

49-
if(!PBptr || PBptr->GetWifeScore() < hs.GetWifeScore())
49+
if(!PBptr || PBptr->GetSSRNormPercent() < hs.GetSSRNormPercent())
5050
PBptr = &scores.find(key)->second;
5151

52+
if (hs.GetChordCohesion() == 0) {
53+
if(!noccPBptr || noccPBptr->GetSSRNormPercent() < hs.GetSSRNormPercent())
54+
noccPBptr = &scores.find(key)->second;
55+
}
56+
5257
SCOREMAN->RegisterScore(&scores.find(key)->second);
5358
SCOREMAN->AddToKeyedIndex(&scores.find(key)->second);
5459
}
@@ -220,7 +225,7 @@ void ScoreManager::RecalculateSSRs(LoadingWindow *ld) {
220225
++scoreindex;
221226

222227
HighScore* hs = AllScores[i];
223-
if (hs->GetSSRCalcVersion() == 236) // temp hack
228+
if (hs->GetSSRCalcVersion() == GetCalcVersion())
224229
continue;
225230

226231
Steps* steps = SONGMAN->GetStepsByChartkey(hs->GetChartKey());
@@ -253,7 +258,7 @@ void ScoreManager::RecalculateSSRs(LoadingWindow *ld) {
253258
auto dakine = MinaSDCalc(serializednd, steps->GetNoteData().GetNumTracks(), musicrate, ssrpercent, 1.f, td->HasWarps());
254259
FOREACH_ENUM(Skillset, ss)
255260
hs->SetSkillsetSSR(ss, dakine[ss]);
256-
hs->SetSSRCalcVersion(236); // temp hack
261+
hs->SetSSRCalcVersion(GetCalcVersion());
257262

258263
td->UnsetEtaner();
259264
nd.UnsetNerv();
@@ -324,7 +329,7 @@ float ScoreManager::AggregateSSRs(Skillset ss, float rating, float res, int iter
324329
rating += res;
325330
sum = 0.0;
326331
for (int i = 0; i < static_cast<int>(TopSSRs.size()); i++) {
327-
if(TopSSRs[i]->GetSSRCalcVersion() == 236 && TopSSRs[i]->GetEtternaValid()) // temp hack
332+
if(TopSSRs[i]->GetSSRCalcVersion() == GetCalcVersion() && TopSSRs[i]->GetEtternaValid())
328333
sum += max(0.0, 2.f / erfc(0.1*(TopSSRs[i]->GetSkillsetSSR(ss) - rating)) - 1.5);
329334
}
330335
} while (pow(2, rating * 0.1) < sum);
@@ -440,7 +445,7 @@ void ScoresAtRate::LoadFromNode(const XNode* node, const string& ck, const float
440445
PBptr = &scores.find(sk)->second;
441446
else {
442447
// update pb if a better score is found
443-
if (PBptr->GetWifeScore() < scores[sk].GetWifeScore())
448+
if (PBptr->GetSSRNormPercent() < scores[sk].GetSSRNormPercent())
444449
PBptr = &scores.find(sk)->second;
445450
}
446451

stepmania.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
; don't forget to change this before releasing a new version.
4545
; wish this could be automated, but it requires "X.Y.Z.a" format. -aj
46-
VIProductVersion "0.55.1.0"
46+
VIProductVersion "0.55.2.0"
4747
VIAddVersionKey "ProductName" "${PRODUCT_ID}"
4848
VIAddVersionKey "FileVersion" "${PRODUCT_VER}"
4949
VIAddVersionKey "FileDescription" "${PRODUCT_ID} Installer"

0 commit comments

Comments
 (0)