Compare commits

...

2 Commits

3 changed files with 761 additions and 474 deletions

View File

@ -47,12 +47,12 @@ public class Rowlf {
informationText.getDocument().putProperty("filterNewlines", Boolean.FALSE);
informationText.setHorizontalAlignment(JTextField.CENTER);
informationText.setText("Created by bonkmaykr, a.k.a. \"Downforce Agent\"\n" +
informationText.setText("Created by bonkmaykr & Wirlaburla\n" +
"\n" +
"Special thanks to:\n" +
"ThatOneBonk, for Thallium and for modding help\n" +
"Wirlaburla, for web hosting and code assistance\n" +
"Psygnosis, for making our favorite game ever\n" +
"ThatOneBonk, ChaCheeChoo, and the AGRF community\n" +
"Psygnosis / Studio Liverpool, SCE Europe\n" +
"Yifan Lu & FailOverflow, TheRadziu, NoPayStation\n" +
"and to all the PSVita hackers who made this possible");
informationText.setHighlighter(null);
informationText.getCaret().setVisible(false);

View File

@ -412,7 +412,6 @@ public class Suggs implements ActionListener, ListSelectionListener {
PrintStream ps = new PrintStream(fos);
ps.println("fscript 1");
ps.println("# AUTOGENERATED BY FIRESTAR");
new File(Main.inpath + "temp/ffmpeg/").mkdirs();
for (int i = 0; i < tracklist.size(); i++) {
AudioTrack at = tracklist.get(i);
String trackno = String.format("%02d", i+1);
@ -435,17 +434,20 @@ public class Suggs implements ActionListener, ListSelectionListener {
try {
System.out.println("Encoding track #" + (i+1) + " \"" + oArtist + " - " + oTitle + "\"...");
if (!at.path.getName().endsWith(".wav") && !at.path.getName().endsWith(".wave")) { // convert to WAV first if it's not readable by at9tool yet
new File(Main.inpath + "temp/ffmpeg/").mkdirs();
Process p = Main.exec(new String[]{Main.inpath + "ffmpeg.exe", "-y", "-i", at.path.getPath(), "ffmpeg/" + at.path.getName() + ".wav"}, Main.inpath + "temp/");
p.waitFor();
at.path = new File(Main.inpath + "temp/ffmpeg/" + at.path.getName() + ".wav");
}
if (normalizeVolumes) { // normalize tracks
new File(Main.inpath + "temp/ffmpeg/").mkdirs();
Process p = Main.exec(new String[]{Main.inpath + "ffmpeg.exe", "-y", "-i", at.path.getPath(), "-filter", "loudnorm=linear=true:i=-5.0:lra=7.0:tp=0.0", /* force sample rate to prevent Random Stupid Bullshit™ */"-ar", "44100", "ffmpeg/" + at.path.getName() + "_normalized.wav"}, Main.inpath + "temp/");
p.waitFor();
at.path = new File(Main.inpath + "temp/ffmpeg/" + at.path.getName() + "_normalized.wav");
}
Process p = Main.exec(new String[]{Main.inpath + "at9tool.exe", "-e", "-br", "144", at.path.getPath(), "data/audio/music/" + trackno + "/music_stereo.at9"}, Main.inpath + "temp/");
p.waitFor();
Main.deleteDir(new File(Main.inpath + "temp/ffmpeg/"));
} catch (IOException | InterruptedException ex) {
Logger.getLogger(Suggs.class.getName()).log(Level.SEVERE, null, ex);
}
@ -499,11 +501,13 @@ public class Suggs implements ActionListener, ListSelectionListener {
try {
System.out.println("Encoding singleplayer frontend track...");
if (!sptrack.getName().endsWith(".wav") && !sptrack.getName().endsWith(".wave")) { // convert to WAV first if it's not readable by at9tool yet
new File(Main.inpath + "temp/ffmpeg/").mkdirs();
Process p = Main.exec(new String[]{Main.inpath + "ffmpeg.exe", "-y", "-i", sptrack.getPath(), "ffmpeg/" + sptrack.getName() + ".wav"}, Main.inpath + "temp/");
p.waitFor();
sptrack = new File(Main.inpath + "temp/ffmpeg/" + sptrack.getName() + ".wav");
}
if (normalizeVolumes) { // normalize tracks
new File(Main.inpath + "temp/ffmpeg/").mkdirs();
Process p = Main.exec(new String[]{Main.inpath + "ffmpeg.exe", "-y", "-i", sptrack.getPath(), "-filter", "loudnorm=linear=true:i=-10.0:lra=12.0:tp=-2.0", /* force sample rate to prevent Random Stupid Bullshit™ */"-ar", "44100", "ffmpeg/" + sptrack.getName() + "_normalized.wav"}, Main.inpath + "temp/");
p.waitFor();
sptrack = new File(Main.inpath + "temp/ffmpeg/" + sptrack.getName() + "_normalized.wav");
@ -511,6 +515,7 @@ public class Suggs implements ActionListener, ListSelectionListener {
new File(Main.inpath + "temp/data/audio/music/FEMusic").mkdirs();
Process p = Main.exec(new String[]{Main.inpath + "at9tool.exe", "-e", "-br", "144", sptrack.getPath(), "data/audio/music/FEMusic/frontend_stereo.at9"}, System.getProperty("user.home") + "/.firestar/temp/");
p.waitFor();
Main.deleteDir(new File(Main.inpath + "temp/ffmpeg/"));
} catch (IOException | InterruptedException ex) {
Logger.getLogger(Suggs.class.getName()).log(Level.SEVERE, null, ex);
}
@ -524,11 +529,13 @@ public class Suggs implements ActionListener, ListSelectionListener {
assert(mptrack.exists());
System.out.println("Encoding multiplayer frontend track...");
if (!mptrack.getName().endsWith(".wav") && !mptrack.getName().endsWith(".wave")) { // convert to WAV first if it's not readable by at9tool yet
new File(Main.inpath + "temp/ffmpeg/").mkdirs();
Process p = Main.exec(new String[]{Main.inpath + "ffmpeg.exe", "-y", "-i", mptrack.getPath(), "ffmpeg/" + mptrack.getName() + ".wav"}, Main.inpath + "temp/");
p.waitFor();
mptrack = new File(Main.inpath + "temp/ffmpeg/" + mptrack.getName() + ".wav");
}
if (normalizeVolumes) { // normalize tracks
new File(Main.inpath + "temp/ffmpeg/").mkdirs();
Process p = Main.exec(new String[]{Main.inpath + "ffmpeg.exe", "-y", "-i", mptrack.getPath(), "-filter", "loudnorm=linear=true:i=-10.0:lra=12.0:tp=-2.0", /* force sample rate to prevent Random Stupid Bullshit™ */"-ar", "44100", "ffmpeg/" + mptrack.getName() + "_normalized.wav"}, Main.inpath + "temp/");
p.waitFor();
mptrack = new File(Main.inpath + "temp/ffmpeg/" + mptrack.getName() + "_normalized.wav");
@ -536,6 +543,7 @@ public class Suggs implements ActionListener, ListSelectionListener {
new File(Main.inpath + "temp/data/audio/music/FEDemoMusic").mkdirs();
Process p = Main.exec(new String[]{Main.inpath + "at9tool.exe", "-e", "-br", "144", mptrack.getPath(), "data/audio/music/FEDemoMusic/frontend_stereo.at9"}, System.getProperty("user.home") + "/.firestar/temp/");
p.waitFor();
Main.deleteDir(new File(Main.inpath + "temp/ffmpeg/"));
} catch (IOException | InterruptedException ex) {
Logger.getLogger(Suggs.class.getName()).log(Level.SEVERE, null, ex);
}
@ -602,7 +610,6 @@ public class Suggs implements ActionListener, ListSelectionListener {
progressDialog.destroyDialog();
frame.dispose();
Main.deleteDir(new File(Main.inpath + "temp/ffmpeg/"));
Clifford saveDialog = new Clifford();
saveDialog.isSoundtrack = true;
saveDialog.Action(frame, new File(Main.inpath + "temp/"));

View File

@ -7215,7 +7215,7 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_AS.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "HellfireWZ"
set attribute string "TheRadziu"
}
}
create-at 29 Text {
@ -7225,7 +7225,7 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_AS.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "kanar"
set attribute string "ChaCheeChoo"
}
}
create-at 30 Text {
@ -7235,7 +7235,77 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_AS.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "ChaCheeChoo"
set attribute string "kanar"
}
}
create-at 31 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "HellfireWZ"
}
}
create-at 32 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "infoxicated"
}
}
create-at 33 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "Coming_clean"
}
}
create-at 34 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 35 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 36 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 37 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "Firestar is dedicated to the millions of\nWipEout fans like me who still hold onto\nthis game years after it's prime.\nWe couldn't do it without you. Thank you."
}
}
}
@ -7375,7 +7445,7 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_EU.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "HellfireWZ"
set attribute string "TheRadziu"
}
}
create-at 29 Text {
@ -7385,7 +7455,7 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_EU.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "kanar"
set attribute string "ChaCheeChoo"
}
}
create-at 30 Text {
@ -7395,7 +7465,77 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_EU.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "ChaCheeChoo"
set attribute string "kanar"
}
}
create-at 31 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "HellfireWZ"
}
}
create-at 32 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "infoxicated"
}
}
create-at 33 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "Coming_clean"
}
}
create-at 34 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 35 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 36 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 37 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "Firestar is dedicated to the millions of\nWipEout fans like me who still hold onto\nthis game years after it's prime.\nWe couldn't do it without you. Thank you."
}
}
}
@ -7535,7 +7675,7 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_JP.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "HellfireWZ"
set attribute string "TheRadziu"
}
}
create-at 29 Text {
@ -7545,7 +7685,7 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_JP.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "kanar"
set attribute string "ChaCheeChoo"
}
}
create-at 30 Text {
@ -7555,7 +7695,77 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_JP.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "ChaCheeChoo"
set attribute string "kanar"
}
}
create-at 31 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "HellfireWZ"
}
}
create-at 32 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "infoxicated"
}
}
create-at 33 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "Coming_clean"
}
}
create-at 34 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 35 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 36 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 37 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "Firestar is dedicated to the millions of\nWipEout fans like me who still hold onto\nthis game years after it's prime.\nWe couldn't do it without you. Thank you."
}
}
}
@ -7695,7 +7905,7 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_US.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "HellfireWZ"
set attribute string "TheRadziu"
}
}
create-at 29 Text {
@ -7705,7 +7915,7 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_US.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "kanar"
set attribute string "ChaCheeChoo"
}
}
create-at 30 Text {
@ -7715,7 +7925,77 @@ file "data/plugins/frontend/NEWGUI/Extras_Definition_US.xml" {
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "ChaCheeChoo"
set attribute string "kanar"
}
}
create-at 31 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "HellfireWZ"
}
}
create-at 32 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "infoxicated"
}
}
create-at 33 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "Coming_clean"
}
}
create-at 34 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 35 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 36 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string " "
}
}
create-at 37 Text {
set attribute "PushHeight" "1"
create Values {
set attribute "Align" "centre"
set attribute "x" "460"
set attribute "color" "FEGlobals->Blue2048"
set attribute "font" "NEOSANS_BOLD"
set attribute string "Firestar is dedicated to the millions of\nWipEout fans like me who still hold onto\nthis game years after it's prime.\nWe couldn't do it without you. Thank you."
}
}
}