From 14a943edf3bf3245609acbb563af6d68c30e5607 Mon Sep 17 00:00:00 2001 From: Downforce Agent Date: Thu, 25 Jul 2024 11:05:41 -0500 Subject: [PATCH] cursor follows list moves, fix bug with mod lists larger than 10 entries --- firestar/src/main/java/MissPiggy.java | 17 +- .../src/main/java/NaturalOrderComparator.java | 185 ++++ firestar/src/main/java/Suggs.java | 2 + firestar/src/main/resources/post.fscript | 868 ------------------ 4 files changed, 196 insertions(+), 876 deletions(-) create mode 100644 firestar/src/main/java/NaturalOrderComparator.java diff --git a/firestar/src/main/java/MissPiggy.java b/firestar/src/main/java/MissPiggy.java index 79e04a0..4d89f5d 100644 --- a/firestar/src/main/java/MissPiggy.java +++ b/firestar/src/main/java/MissPiggy.java @@ -199,8 +199,9 @@ public class MissPiggy implements ActionListener { // initialize data structures from each list entry String[] pListArray = priorityList.split("\n"); - Arrays.sort(pListArray); + Arrays.sort(pListArray, new NaturalOrderComparator<>(false)); System.out.println("Initializing modList from file with length of " + pListArray.length + " units"); //debug + for (String s : pListArray) { /* Do nothing if the index number is not valid. @@ -209,7 +210,6 @@ public class MissPiggy implements ActionListener { 06/29/24 - also skip files that were manually removed but remain in the list */ - File mod = new File(System.getProperty("user.home") + "/.firestar/mods/" + s.substring(s.indexOf("=") + 1).trim()); if (s.split("=")[0].matches("[0-9]+=*") && @@ -516,20 +516,20 @@ public class MissPiggy implements ActionListener { } private void moveUp(int index) { - if (index > 0) { + if (index > 0) { // not negative Collections.swap(Main.Mods, index, index - 1); System.out.println("Items moved, redeploying list"); - InitializeModListInGUI(); - regenerateModIndex(false); + regenerateModIndex(true); + modList.setSelectedIndex(index - 1); } } private void moveDown(int index) { - if (index < (Main.Mods.size() - 1)) { + if (index < (Main.Mods.size() - 1)) { // not last in list Collections.swap(Main.Mods, index, index + 1); System.out.println("Items moved, redeploying list"); - InitializeModListInGUI(); - regenerateModIndex(false); + regenerateModIndex(true); + modList.setSelectedIndex(index + 1); } } @@ -537,6 +537,7 @@ public class MissPiggy implements ActionListener { if (index >= 0) { Main.Mods.get(index).enabled = !Main.Mods.get(index).enabled; regenerateModBlacklist(true); + modList.setSelectedIndex(index); } else { JOptionPane.showMessageDialog(frame, "Please select a mod to toggle first.", "Error", JOptionPane.ERROR_MESSAGE); } diff --git a/firestar/src/main/java/NaturalOrderComparator.java b/firestar/src/main/java/NaturalOrderComparator.java new file mode 100644 index 0000000..22beabb --- /dev/null +++ b/firestar/src/main/java/NaturalOrderComparator.java @@ -0,0 +1,185 @@ +/* + * + * + * Copyright 1997-2007 BBNT Solutions, LLC + * under sponsorship of the Defense Advanced Research Projects + * Agency (DARPA). + * + * You can redistribute this software and/or modify it under the + * terms of the Cougaar Open Source License as published on the + * Cougaar Open Source Website (www.cougaar.org). + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * + */ +/* +NaturalOrderComparator.java -- Perform 'natural order' comparisons of strings in Java. +Copyright (C) 2003 by Pierre-Luc Paour + +Based on the C version by Martin Pool, of which this is more or less a straight conversion. +Copyright (C) 2000 by Martin Pool + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not +claim that you wrote the original software. If you use this software +in a product, an acknowledgment in the product documentation would be +appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be +misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. + */ + +//CHANGES: KD - added case sensitive ordering capability +// Made comparison so it doesn't treat spaces as special characters + +import java.util.Comparator; + +/** + * A sorting comparator to sort strings numerically, + * ie [1, 2, 10], as opposed to [1, 10, 2]. + */ +public final class NaturalOrderComparator implements Comparator { + + public static final Comparator NUMERICAL_ORDER = new NaturalOrderComparator(false); + public static final Comparator CASEINSENSITIVE_NUMERICAL_ORDER = new NaturalOrderComparator(true); + + private final boolean caseInsensitive; + + public NaturalOrderComparator(boolean caseInsensitive) { + this.caseInsensitive = caseInsensitive; + } + + int compareRight(String a, String b) { + int bias = 0; + int ia = 0; + int ib = 0; + + // The longest run of digits wins. That aside, the greatest + // value wins, but we can't know that it will until we've scanned + // both numbers to know that they have the same magnitude, so we + // remember it in BIAS. + for (;; ia++, ib++) { + char ca = charAt(a, ia); + char cb = charAt(b, ib); + + if (!Character.isDigit(ca) && !Character.isDigit(cb)) { + return bias; + } else if (!Character.isDigit(ca)) { + return -1; + } else if (!Character.isDigit(cb)) { + return +1; + } else if (ca < cb) { + if (bias == 0) { + bias = -1; + } + } else if (ca > cb) { + if (bias == 0) + bias = +1; + } else if (ca == 0 && cb == 0) { + return bias; + } + } + } + + public int compare(T o1, T o2) { + String a = o1.toString(); + String b = o2.toString(); + + int ia = 0, ib = 0; + int nza = 0, nzb = 0; + char ca, cb; + int result; + + while (true) { + // only count the number of zeroes leading the last number compared + nza = nzb = 0; + + ca = charAt(a, ia); + cb = charAt(b, ib); + + // skip over leading zeros + while (ca == '0') { + if (ca == '0') { + nza++; + } else { + // only count consecutive zeroes + nza = 0; + } + + // if the next character isn't a digit, then we've had a run of only zeros + // we still need to treat this as a 0 for comparison purposes + if (!Character.isDigit(charAt(a, ia+1))) + break; + + ca = charAt(a, ++ia); + } + + while (cb == '0') { + if (cb == '0') { + nzb++; + } else { + // only count consecutive zeroes + nzb = 0; + } + + // if the next character isn't a digit, then we've had a run of only zeros + // we still need to treat this as a 0 for comparison purposes + if (!Character.isDigit(charAt(b, ib+1))) + break; + + cb = charAt(b, ++ib); + } + + // process run of digits + if (Character.isDigit(ca) && Character.isDigit(cb)) { + if ((result = compareRight(a.substring(ia), b + .substring(ib))) != 0) { + return result; + } + } + + if (ca == 0 && cb == 0) { + // The strings compare the same. Perhaps the caller + // will want to call strcmp to break the tie. + return nza - nzb; + } + + if (ca < cb) { + return -1; + } else if (ca > cb) { + return +1; + } + + ++ia; + ++ib; + } + } + + private char charAt(String s, int i) { + if (i >= s.length()) { + return 0; + } else { + return caseInsensitive ? Character.toUpperCase(s.charAt(i)) : s.charAt(i); + } + } + + +} \ No newline at end of file diff --git a/firestar/src/main/java/Suggs.java b/firestar/src/main/java/Suggs.java index f316ad7..ab07187 100644 --- a/firestar/src/main/java/Suggs.java +++ b/firestar/src/main/java/Suggs.java @@ -272,6 +272,7 @@ public class Suggs implements ActionListener, ListSelectionListener { private void moveUp(int index) { if (index > 0) { Collections.swap(tracklist, index, index - 1); + curIndex--; InitializeSongListInGUI(); } } @@ -279,6 +280,7 @@ public class Suggs implements ActionListener, ListSelectionListener { private void moveDown(int index) { if (index < (tracklist.size() - 1)) { Collections.swap(tracklist, index, index + 1); + curIndex++; InitializeSongListInGUI(); } } diff --git a/firestar/src/main/resources/post.fscript b/firestar/src/main/resources/post.fscript index 62d30e4..2cdd38a 100644 --- a/firestar/src/main/resources/post.fscript +++ b/firestar/src/main/resources/post.fscript @@ -1,49 +1,6 @@ fscript 1 file "data/HandlingStats/ag_systems2048/1/handlingstats.xml" { str replace "\"head_tilt" "\" head_tilt" - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "70" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.0" - set attribute "pos_length" "-13.0" - set attribute "spring_horiz" "7" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.1" - set attribute "pos_length" "-10.0" - set attribute "spring_horiz" "12" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "25" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "184" set attribute "height" "3.5" @@ -398,49 +355,6 @@ file "data/HandlingStats/ag_systems2048/1/handlingstats.xml" { } } file "data/HandlingStats/ag_systems2048/2/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "70" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "4.0" - set attribute "pos_length" "-15.0" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.7" - set attribute "pos_length" "-11.0" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "25" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "175" set attribute "height" "3.5" @@ -795,49 +709,6 @@ file "data/HandlingStats/ag_systems2048/2/handlingstats.xml" { } } file "data/HandlingStats/ag_systems2048/3/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "70" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "4.0" - set attribute "pos_length" "-15.0" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.7" - set attribute "pos_length" "-11.0" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "25" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "173" set attribute "height" "3.5" @@ -1192,49 +1063,6 @@ file "data/HandlingStats/ag_systems2048/3/handlingstats.xml" { } } file "data/HandlingStats/ag_systems2048/4/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "70" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "4.0" - set attribute "pos_length" "-15.0" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.7" - set attribute "pos_length" "-11.0" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "25" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "100" set attribute "height" "3.5" @@ -1589,51 +1417,6 @@ file "data/HandlingStats/ag_systems2048/4/handlingstats.xml" { } } file "data/HandlingStats/auricom2048/1/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "headtilt" "0.3" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "headtilt" "0.8" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "1.3" - set attribute "length" "1.3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.0" - set attribute "pos_length" "-13.0" - set attribute "spring_horiz" "7" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.1" - set attribute "pos_length" "-10.0" - set attribute "spring_horiz" "12" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "28" - set attribute "down_speed" "190" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "195" set attribute "height" "3.5" @@ -1988,51 +1771,6 @@ file "data/HandlingStats/auricom2048/1/handlingstats.xml" { } } file "data/HandlingStats/auricom2048/2/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "headtilt" "0.3" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "headtilt" "0.8" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "1.3" - set attribute "length" "1.3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.5" - set attribute "pos_length" "-15.0" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.1" - set attribute "pos_length" "-11.0" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "28" - set attribute "down_speed" "190" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "185" set attribute "height" "3.5" @@ -2387,51 +2125,6 @@ file "data/HandlingStats/auricom2048/2/handlingstats.xml" { } } file "data/HandlingStats/auricom2048/3/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "headtilt" "0.3" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "headtilt" "0.8" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "1.3" - set attribute "length" "1.3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.5" - set attribute "pos_length" "-15.0" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.1" - set attribute "pos_length" "-11.0" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "28" - set attribute "down_speed" "190" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "181" set attribute "height" "3.5" @@ -2786,51 +2479,6 @@ file "data/HandlingStats/auricom2048/3/handlingstats.xml" { } } file "data/HandlingStats/auricom2048/4/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "headtilt" "0.3" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "headtilt" "0.8" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "1.3" - set attribute "length" "1.3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.5" - set attribute "pos_length" "-15.0" - set attribute "spring_horiz" "7" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.1" - set attribute "pos_length" "-10.0" - set attribute "spring_horiz" "12" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "28" - set attribute "down_speed" "190" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "175" set attribute "height" "3.5" @@ -3185,49 +2833,6 @@ file "data/HandlingStats/auricom2048/4/handlingstats.xml" { } } file "data/HandlingStats/feisar2048/1/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "70" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "0" - set attribute "lookat_length" "35" - set attribute "pos_height" "3.0" - set attribute "pos_length" "-13.0" - set attribute "spring_horiz" "7" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.1" - set attribute "pos_length" "-10.0" - set attribute "spring_horiz" "12" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "40" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "187" set attribute "height" "3.5" @@ -3582,49 +3187,6 @@ file "data/HandlingStats/feisar2048/1/handlingstats.xml" { } } file "data/HandlingStats/feisar2048/2/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "70" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "4.0" - set attribute "pos_length" "-15.0" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.7" - set attribute "pos_length" "-11.0" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "40" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "180" set attribute "height" "3.5" @@ -3979,49 +3541,6 @@ file "data/HandlingStats/feisar2048/2/handlingstats.xml" { } } file "data/HandlingStats/feisar2048/3/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "70" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "4.0" - set attribute "pos_length" "-15.0" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.7" - set attribute "pos_length" "-11.0" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "40" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "173" set attribute "height" "3.5" @@ -4376,49 +3895,6 @@ file "data/HandlingStats/feisar2048/3/handlingstats.xml" { } } file "data/HandlingStats/feisar2048/4/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "70" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "4.0" - set attribute "pos_length" "-15.0" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.7" - set attribute "pos_length" "-11.0" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "40" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "173" set attribute "height" "3.5" @@ -4773,49 +4249,6 @@ file "data/HandlingStats/feisar2048/4/handlingstats.xml" { } } file "data/HandlingStats/piranha2048/1/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.0" - set attribute "pos_length" "-13.0" - set attribute "spring_horiz" "7" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.1" - set attribute "pos_length" "-10.0" - set attribute "spring_horiz" "12" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "40" - set attribute "down_speed" "120" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "191" set attribute "height" "3.5" @@ -5170,49 +4603,6 @@ file "data/HandlingStats/piranha2048/1/handlingstats.xml" { } } file "data/HandlingStats/piranha2048/2/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.5" - set attribute "pos_length" "-15.3" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.4" - set attribute "pos_length" "-11.4" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "40" - set attribute "down_speed" "120" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "173" set attribute "height" "3.5" @@ -5567,49 +4957,6 @@ file "data/HandlingStats/piranha2048/2/handlingstats.xml" { } } file "data/HandlingStats/piranha2048/3/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.5" - set attribute "pos_length" "-15.3" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.4" - set attribute "pos_length" "-11.4" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "40" - set attribute "down_speed" "120" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "173" set attribute "height" "3.5" @@ -5964,49 +5311,6 @@ file "data/HandlingStats/piranha2048/3/handlingstats.xml" { } } file "data/HandlingStats/piranha2048/4/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "2.0" - set attribute "length" "0" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.5" - set attribute "pos_length" "-15.3" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.4" - set attribute "pos_length" "-11.4" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "40" - set attribute "down_speed" "120" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "173" set attribute "height" "3.5" @@ -6361,49 +5665,6 @@ file "data/HandlingStats/piranha2048/4/handlingstats.xml" { } } file "data/HandlingStats/qirex2048/1/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "1.3" - set attribute "length" "1.3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.0" - set attribute "pos_length" "-13.0" - set attribute "spring_horiz" "7" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.1" - set attribute "pos_length" "-10" - set attribute "spring_horiz" "12" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "35" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "191" set attribute "height" "3.5" @@ -6758,49 +6019,6 @@ file "data/HandlingStats/qirex2048/1/handlingstats.xml" { } } file "data/HandlingStats/qirex2048/2/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "1.3" - set attribute "length" "1.3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.5" - set attribute "pos_length" "-14.3" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "0.2" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.3" - set attribute "pos_length" "-11" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "35" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "188" set attribute "height" "3.5" @@ -7155,49 +6373,6 @@ file "data/HandlingStats/qirex2048/2/handlingstats.xml" { } } file "data/HandlingStats/qirex2048/3/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "1.3" - set attribute "length" "1.3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.5" - set attribute "pos_length" "-14.3" - set attribute "spring_horiz" "5" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.3" - set attribute "pos_length" "-11" - set attribute "spring_horiz" "10" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "35" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "177" set attribute "height" "3.5" @@ -7552,49 +6727,6 @@ file "data/HandlingStats/qirex2048/3/handlingstats.xml" { } } file "data/HandlingStats/qirex2048/4/handlingstats.xml" { - xml modify Handling.Stats.InternalCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BackwardCamera { - set attribute "fov" "65" - set attribute "height" "0" - set attribute "length" "3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.BonnetCamera { - set attribute "fov" "65" - set attribute "height" "1.3" - set attribute "length" "1.3" - set attribute "pitch" "0" - } - xml modify Handling.Stats.ExternalCameraFar { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "0" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.5" - set attribute "pos_length" "-14.3" - set attribute "spring_horiz" "7" - set attribute "spring_vert" "10" - } - xml modify Handling.Stats.ExternalCameraClose { - set attribute "fov" "60" - set attribute "head_tilt" "-0.1" - set attribute "lookat_height" "-4" - set attribute "lookat_length" "25" - set attribute "pos_height" "3.3" - set attribute "pos_length" "-11" - set attribute "spring_horiz" "12" - set attribute "spring_vert" "12" - } - xml modify Handling.Stats.AirbrakeGraphics { - set attribute "amount" "35" - set attribute "down_speed" "100" - set attribute "up_speed" "500" - } xml modify Handling.Stats.Misc { set attribute "easyshield" "191" set attribute "height" "3.5"