Ignore:
Timestamp:
Jan 25, 2013, 1:15:31 PM (12 years ago)
Author:
alloc
Message:

AEI2 0.99e:

  • Added forced offline mode (argument -offline)
  • Fixed bug when displaying dependencies during installation
  • Switched from term "mandatory" to "core" for always-install packages
Location:
AE/installer2/src/net/oni2/aeinstaller/backend
Files:
15 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/backend/depot/DepotConfig.java

    r636 r648  
    7777
    7878        /**
    79          * @return First package number that's not a mandatory tool/mod. Everything
    80          *         below is considered mandatory
     79         * @return First package number that's not a core tool/mod. Everything
     80         *         below is considered a core package
    8181         */
    82         public static int getMandatoryLimit() {
     82        public static int getCoreNumberLimit() {
    8383                return 8000;
    8484        }
  • AE/installer2/src/net/oni2/aeinstaller/backend/depot/model/NodeMod.java

    r635 r648  
    77import net.oni2.aeinstaller.backend.depot.DepotConfig;
    88import net.oni2.aeinstaller.backend.depot.DepotManager;
    9 import net.oni2.aeinstaller.backend.mods.ECompatiblePlatform;
     9import net.oni2.aeinstaller.backend.packages.ECompatiblePlatform;
    1010
    1111import org.json.JSONArray;
  • AE/installer2/src/net/oni2/aeinstaller/backend/oni/Installer.java

    r631 r648  
    2424import net.oni2.aeinstaller.backend.Settings;
    2525import net.oni2.aeinstaller.backend.Settings.Platform;
    26 import net.oni2.aeinstaller.backend.mods.EBSLInstallType;
    27 import net.oni2.aeinstaller.backend.mods.Mod;
    28 import net.oni2.aeinstaller.backend.mods.ModManager;
     26import net.oni2.aeinstaller.backend.packages.EBSLInstallType;
     27import net.oni2.aeinstaller.backend.packages.Package;
     28import net.oni2.aeinstaller.backend.packages.PackageManager;
    2929
    3030import org.apache.commons.io.FileUtils;
     
    6262        public static Vector<Integer> getInstalledMods() {
    6363                File installCfg = new File(Paths.getEditionGDF(), "installed_mods.xml");
    64                 return ModManager.getInstance().loadModSelection(installCfg);
     64                return PackageManager.getInstance().loadModSelection(installCfg);
    6565        }
    6666
     
    109109         *            Tools to install
    110110         */
    111         public static void installTools(TreeSet<Mod> tools) {
     111        public static void installTools(TreeSet<Package> tools) {
    112112                TreeSet<Integer> installed = getInstalledTools();
    113                 for (Mod m : tools) {
     113                for (Package m : tools) {
    114114                        File plain = new File(m.getLocalPath(), "plain");
    115115                        if (plain.exists()) {
     
    138138         *            Tools to uninstall
    139139         */
    140         public static void uninstallTools(TreeSet<Mod> tools) {
     140        public static void uninstallTools(TreeSet<Package> tools) {
    141141                TreeSet<Integer> installed = getInstalledTools();
    142                 for (Mod m : tools) {
     142                for (Package m : tools) {
    143143                        if (installed.contains(m.getPackageNumber())) {
    144144                                File plain = new File(m.getLocalPath(), "plain");
     
    205205         *            Listener for install progress updates
    206206         */
    207         public static void install(TreeSet<Mod> mods,
     207        public static void install(TreeSet<Package> mods,
    208208                        InstallProgressListener listener) {
    209209                try {
     
    214214
    215215                File installCfg = new File(Paths.getEditionGDF(), "installed_mods.xml");
    216                 ModManager.getInstance().saveModSelection(installCfg, mods);
     216                PackageManager.getInstance().saveModSelection(installCfg, mods);
    217217
    218218                HashSet<Integer> unlockLevels = new HashSet<Integer>();
     
    221221                foldersOni.add(Paths.getVanillaOnisPath());
    222222
    223                 for (Mod m : mods) {
     223                for (Package m : mods) {
    224224                        for (int lev : m.getUnlockLevels())
    225225                                unlockLevels.add(lev);
     
    253253        }
    254254
    255         private static void combineBSLFolders(TreeSet<Mod> mods,
     255        private static void combineBSLFolders(TreeSet<Package> mods,
    256256                        InstallProgressListener listener) {
    257257                listener.installProgressUpdate(95, 100, "Installing BSL files");
    258258
    259                 HashMap<EBSLInstallType, Vector<Mod>> modsToInclude = new HashMap<EBSLInstallType, Vector<Mod>>();
    260                 modsToInclude.put(EBSLInstallType.NORMAL, new Vector<Mod>());
    261                 modsToInclude.put(EBSLInstallType.ADDON, new Vector<Mod>());
    262 
    263                 for (Mod m : mods.descendingSet()) {
     259                HashMap<EBSLInstallType, Vector<Package>> modsToInclude = new HashMap<EBSLInstallType, Vector<Package>>();
     260                modsToInclude.put(EBSLInstallType.NORMAL, new Vector<Package>());
     261                modsToInclude.put(EBSLInstallType.ADDON, new Vector<Package>());
     262
     263                for (Package m : mods.descendingSet()) {
    264264                        File bsl = new File(m.getLocalPath(), "bsl");
    265265                        if (bsl.exists()) {
     
    281281                }
    282282
    283                 for (Mod m : modsToInclude.get(EBSLInstallType.NORMAL)) {
     283                for (Package m : modsToInclude.get(EBSLInstallType.NORMAL)) {
    284284                        copyBSL(m, false);
    285285                }
    286                 Vector<Mod> addons = modsToInclude.get(EBSLInstallType.ADDON);
     286                Vector<Package> addons = modsToInclude.get(EBSLInstallType.ADDON);
    287287                for (int i = addons.size() - 1; i >= 0; i--) {
    288288                        copyBSL(addons.get(i), true);
     
    290290        }
    291291
    292         private static void copyBSL(Mod sourceMod, boolean addon) {
     292        private static void copyBSL(Package sourceMod, boolean addon) {
    293293                File targetBaseFolder = new File(Paths.getEditionGDF(), "IGMD");
    294294                if (!targetBaseFolder.exists())
Note: See TracChangeset for help on using the changeset viewer.