|
|
|
@ -393,6 +393,7 @@ public class SoundVoltexReader extends Reader{ |
|
|
|
|
trimAllData(en_data); |
|
|
|
|
System.out.println(Arrays.toString(ja_data)); |
|
|
|
|
System.out.println(Arrays.toString(en_data)); |
|
|
|
|
interpretOutput(ja_data,en_data); |
|
|
|
|
g.dispose(); |
|
|
|
|
} catch (IOException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
@ -403,7 +404,78 @@ public class SoundVoltexReader extends Reader{ |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
void interpretResults(String[] finalData) { |
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
|
|
for (int i=0;i<finalData.length;i++) { |
|
|
|
|
String[] splitter = finalData[i].split(Pattern.quote("\n")); |
|
|
|
|
switch (i) { |
|
|
|
|
case 0:{ |
|
|
|
|
title=convertToString(splitter); |
|
|
|
|
}break; |
|
|
|
|
case 1:{ |
|
|
|
|
score=convertToInt(splitter); |
|
|
|
|
}break; |
|
|
|
|
case 2:{ |
|
|
|
|
int score2=convertToInt(splitter); |
|
|
|
|
score=convertToInt(new String[]{Integer.toString(score),Integer.toString(score2)}); |
|
|
|
|
}break; |
|
|
|
|
case 3:{ |
|
|
|
|
other+="ex:"+Integer.toString(convertToInt("EX SCORE",splitter))+","; |
|
|
|
|
}break; |
|
|
|
|
case 4:{ |
|
|
|
|
pct=convertToDouble("EFFECTIVE RATE",splitter);//We're lucky excessive and effective rate have the same number of characters...
|
|
|
|
|
}break; |
|
|
|
|
case 5:{ |
|
|
|
|
notes[0]=convertToInt("ERROR",splitter); |
|
|
|
|
}break; |
|
|
|
|
case 6:{ |
|
|
|
|
notes[1]=convertToInt("NEAR",splitter); |
|
|
|
|
}break; |
|
|
|
|
case 7:{ |
|
|
|
|
notes[2]=convertToInt("CRITICAL",splitter); |
|
|
|
|
}break; |
|
|
|
|
case 8:{ |
|
|
|
|
notes[3]=convertToInt("S-CRITICAL",splitter); |
|
|
|
|
}break; |
|
|
|
|
case 9:{ |
|
|
|
|
notes[4]=convertToInt("CRITICAL",splitter); |
|
|
|
|
}break; |
|
|
|
|
case 10:{ |
|
|
|
|
notes[5]=convertToInt("NEAR",splitter); |
|
|
|
|
}break; |
|
|
|
|
case 11:{ |
|
|
|
|
notes[6]=convertToInt("ERROR",splitter); |
|
|
|
|
}break; |
|
|
|
|
case 12:{ |
|
|
|
|
other+="chip_scritical:"+Integer.toString(convertToInt("S-Critical",splitter))+","; |
|
|
|
|
}break; |
|
|
|
|
case 13:{ |
|
|
|
|
other+="chip_critical:"+Integer.toString(convertToInt("Critical",splitter))+","; |
|
|
|
|
}break; |
|
|
|
|
case 14:{ |
|
|
|
|
other+="chip_near:"+Integer.toString(convertToInt("NEAR",splitter))+","; |
|
|
|
|
}break; |
|
|
|
|
case 15:{ |
|
|
|
|
other+="chip_error:"+Integer.toString(convertToInt("ERROR",splitter))+","; |
|
|
|
|
}break; |
|
|
|
|
case 16:{ |
|
|
|
|
other+="long_scritical:"+Integer.toString(convertToInt("S-Critical",splitter))+","; |
|
|
|
|
}break; |
|
|
|
|
case 17:{ |
|
|
|
|
other+="long_error:"+Integer.toString(convertToInt("ERROR",splitter))+","; |
|
|
|
|
}break; |
|
|
|
|
case 18:{ |
|
|
|
|
other+="vol_scritical:"+Integer.toString(convertToInt("S-CRITICAL",splitter))+","; |
|
|
|
|
}break; |
|
|
|
|
case 19:{ |
|
|
|
|
other+="vol_error:"+Integer.toString(convertToInt("ERROR",splitter))+","; |
|
|
|
|
}break; |
|
|
|
|
case 20:{ |
|
|
|
|
maxcombo=convertToInt("MAXIMUM CHAIN",splitter); |
|
|
|
|
}break; |
|
|
|
|
case 21:{ |
|
|
|
|
difficulty=convertToInt("EXH",splitter); |
|
|
|
|
}break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
System.out.println(this); |
|
|
|
|
} |
|
|
|
|
} |