Exemple #1
0
 internal static void TestComputersForLoad(ScreenManager screenMan, Action <Computer, Computer> CompareComputerAfterLoad)
 {
     DLCTests.SetupTestingEnvironment(screenMan, (Action <OS, List <Computer> >)((os, oldComps) =>
     {
         for (int index = 0; index < oldComps.Count; ++index)
         {
             Computer oldComp  = oldComps[index];
             Computer computer = Programs.getComputer(os, oldComp.ip);
             CompareComputerAfterLoad(oldComp, computer);
         }
     }));
 }
Exemple #2
0
        public static string TestDLCPasswordsCorrect(ScreenManager screenMan, out int errorsAdded)
        {
            int    num = 0;
            string ret = "";

            DLCTests.SetupTestingEnvironment(screenMan, (Action <OS, List <Computer> >)((os, comps) =>
            {
                // ISSUE: reference to a compiler-generated field
                this.ret += DLCTests.TestPassword(os, "ds4_grave", "fma93dK");
                // ISSUE: reference to a compiler-generated field
                this.ret += DLCTests.TestPassword(os, "dpae_psy_1", "catsarebestpet");
                // ISSUE: reference to a compiler-generated field
                this.ret += DLCTests.TestPassword(os, "dpa_psylance", "1185JACK");
            }));
            errorsAdded = num;
            return(ret);
        }
Exemple #3
0
        public static string TestDLCProgression(ScreenManager screenMan, out int errorsAdded)
        {
            int    errors = 0;
            string ret    = "";

            DLCTests.SetupTestingEnvironment(screenMan, (Action <OS, List <Computer> >)((os, comps) =>
            {
                Console.WriteLine("Testing DLC Progression in " + Settings.ActiveLocale);
                SessionAccelerator.AccelerateSessionToDLCEND((object)os);
                if (Programs.getComputer(os, "dhsDrop").files.root.searchForFolder("home").searchForFile("p_SQL_399.gz") == null)
                {
                    ++errors;
                    // ISSUE: reference to a compiler-generated field
                    this.ret += "\r\nExpo Grave Mission files not copied over to drop server! Mission Incompletable.";
                }
                if (!Programs.getComputer(os, "ds4_expo").ports.Contains(21))
                {
                    ++errors;
                    // ISSUE: reference to a compiler-generated field
                    this.ret += "\r\nExpo Grave Website does not have port 21 added! Mission Incompletable.";
                }
                Folder folder = Programs.getComputer(os, "ds3_mail").files.root.searchForFolder("mail").searchForFolder("accounts").searchForFolder("cornch1p");
                if (folder == null)
                {
                    ++errors;
                    // ISSUE: reference to a compiler-generated field
                    this.ret += "\r\nMagma Mailbox server for It Follows (set3) does not have account! in file, replace kburnaby with cornch1p to fix.";
                }
                else if (folder.searchForFolder("inbox").files.Count <= 0)
                {
                    ++errors;
                    // ISSUE: reference to a compiler-generated field
                    this.ret += "\r\nMagma Mailbox server for It Follows (set3) does not have emails! in file, replace kburnaby with cornch1p to fix.";
                }
                CustomFaction fromFile = CustomFaction.ParseFromFile("Content/DLC/DLCFaction.xml");
                if (fromFile.idName != "Bibliotheque")
                {
                    ++errors;
                    // ISSUE: variable of a compiler-generated type
                    DLCTests.\u003C\u003Ec__DisplayClass7 cDisplayClass7 = this;
                    // ISSUE: reference to a compiler-generated field
                    string str = cDisplayClass7.ret + "\r\nHub Faction ID Name is wrong: " + fromFile.idName;
                    // ISSUE: reference to a compiler-generated field
                    cDisplayClass7.ret = str;
                }
                CustomFactionAction customAction = fromFile.CustomActions[6];
                for (int index = 0; index < customAction.TriggerActions.Count; ++index)
                {
                    SAAddConditionalActions triggerAction = customAction.TriggerActions[index] as SAAddConditionalActions;
                    if (triggerAction != null && triggerAction.Filepath.Contains("PetsAcceptedActions"))
                    {
                        ++errors;
                        // ISSUE: reference to a compiler-generated field
                        this.ret += "\r\nHub Faction (stage 7) contains PetsAcceptedActions.xml loader - it should be only on the mission itself! Remove it!";
                    }
                }
                if (Programs.getComputer(os, "dPets_MF").name.ToLower().Contains("digipets"))
                {
                    ++errors;
                    // ISSUE: reference to a compiler-generated field
                    this.ret += "\r\nNeopals server rename from DigiPets is not complete in this version! Fix it! Remember to do foldernames too.\r\n";
                }
                bool flag         = false;
                Computer computer = Programs.getComputer(os, "dMF_1_Misc");
                for (int index = 0; index < computer.users.Count; ++index)
                {
                    if (computer.users[index].name == "listen" && computer.users[index].pass == "4TL4S")
                    {
                        flag = true;
                    }
                }
                if (!flag)
                {
                    ++errors;
                    // ISSUE: reference to a compiler-generated field
                    this.ret += "\r\nAtlas server (MemForensics/Atlas) needs user listen w. pass 4TL4S\r\n";
                }
                if (((ActiveMission)ComputerLoader.readMission("Content/DLC/Missions/Neopals/PetsMission1.xml")).email.body.Contains("DigiPoints"))
                {
                    ++errors;
                    // ISSUE: reference to a compiler-generated field
                    this.ret += "\r\nNeopals missions references DigiPoints, where it should be NeoPoints! Remember to check the goals field!\r\n";
                }
                if (Programs.getComputer(os, "dhsDrop").admin == null)
                {
                    return;
                }
                ++errors;
                // ISSUE: reference to a compiler-generated field
                this.ret += "\r\nDLC Drop server has an admin - remove it with type=none. This stops the player being auto logged out.\r\n";
            }));
            errorsAdded = errors;
            return(ret);
        }