[sm130attacks -> sm130futures] Bringing it in.
Help will be needed to make Song Attacks work by default. Yes, that means I want no activated attacks to mean DQ.
This commit is contained in:
@@ -2326,10 +2326,10 @@ Mines,4="mod,attackmines;name,AttackMines"
|
||||
# Mines,4="mod,attackmines;name,AttackMines"
|
||||
|
||||
Attacks="3"
|
||||
AttacksDefault="mod,no randomattacks,no songattacks"
|
||||
Attacks,1="name,Off"
|
||||
AttacksDefault="mod,songattacks"
|
||||
Attacks,3="mod,no randomattacks,no songattacks;name,Off"
|
||||
Attacks,2="mod,randomattacks;name,RandomAttacks"
|
||||
Attacks,3="mod,songattacks;name,SongAttacks"
|
||||
Attacks,1="name,SongAttacks"
|
||||
|
||||
PlayerAutoPlay="2"
|
||||
PlayerAutoPlayDefault="mod,no playerautoplay"
|
||||
@@ -3668,7 +3668,7 @@ CancelTransitionsOut=true
|
||||
PlayMusic=false
|
||||
TimerSeconds=-1
|
||||
ShowStyleIcon=false
|
||||
LineNames="1,2,3,4,5,6,R,7,8,9,10,11,12,13,14,15,16"
|
||||
LineNames="1,2,3,4,5,6,R,7,8,9,10,Attacks,11,12,13,14,15,16"
|
||||
Line1="list,Speed"
|
||||
Line2="list,Accel"
|
||||
Line3="list,Effect"
|
||||
@@ -3680,6 +3680,7 @@ Line7="list,Scroll"
|
||||
Line8="list,NoteSkins"
|
||||
Line9="list,Holds"
|
||||
Line10="list,Mines"
|
||||
LineAttacks="list,Attacks"
|
||||
Line11="list,Hide"
|
||||
Line12="list,Persp"
|
||||
Line13="list,Assist"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "Song.h"
|
||||
#include "SongManager.h"
|
||||
#include "Steps.h"
|
||||
#include "Attack.h"
|
||||
#include "PrefsManager.h"
|
||||
|
||||
/** @brief The maximum file size for edits. */
|
||||
@@ -468,7 +469,7 @@ bool SMLoader::LoadFromSMFile( const RString &sPath, Song &out, bool bFromCache
|
||||
|
||||
// handle the data
|
||||
/* Don't use GetMainAndSubTitlesFromFullTitle; that's only for heuristically
|
||||
* splitting other formats that *don't* natively support #SUBTITLE. */
|
||||
* splitting other formats that *don't* natively support #SUBTITLE. */
|
||||
if( sValueName=="TITLE" )
|
||||
out.m_sMainTitle = sParams[1];
|
||||
|
||||
@@ -540,7 +541,7 @@ bool SMLoader::LoadFromSMFile( const RString &sPath, Song &out, bool bFromCache
|
||||
; /* ignore */
|
||||
|
||||
/* We calculate these. Some SMs in circulation have bogus values for
|
||||
* these, so make sure we always calculate it ourself. */
|
||||
* these, so make sure we always calculate it ourself. */
|
||||
else if( sValueName=="FIRSTBEAT" )
|
||||
{
|
||||
if( bFromCache )
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "Song.h"
|
||||
#include "SongManager.h"
|
||||
#include "Steps.h"
|
||||
#include "Attack.h"
|
||||
#include "PrefsManager.h"
|
||||
|
||||
/**
|
||||
|
||||
@@ -134,6 +134,19 @@ static void WriteGlobalTags( RageFile &f, const Song &out )
|
||||
}
|
||||
}
|
||||
f.PutLine( ";" );
|
||||
|
||||
f.Write( "#ATTACKS:" );
|
||||
for( unsigned j = 0; j < out.m_Attacks.size(); j++ )
|
||||
{
|
||||
const Attack &a = out.m_Attacks[j];
|
||||
f.Write( ssprintf( "TIME=%.2f:LEN=%.2f:MODS=%s",
|
||||
a.fStartSecond, a.fSecsRemaining, a.sModifiers.c_str() ) );
|
||||
|
||||
if( j+1 < out.m_Attacks.size() )
|
||||
f.Write( ":" );
|
||||
f.PutLine( "" );
|
||||
}
|
||||
f.PutLine( ";" );
|
||||
|
||||
f.Write( "#DELAYS:" );
|
||||
for( unsigned i=0; i<out.m_Timing.m_StopSegments.size(); i++ )
|
||||
|
||||
+1
-1
@@ -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 = 171;
|
||||
const int FILE_CACHE_VERSION = 170;
|
||||
|
||||
/** @brief How long does a song sample last by default? */
|
||||
const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;
|
||||
|
||||
Reference in New Issue
Block a user