예제 #1
0
 public StatsPageHandler()
 {
     Pcsx2Memory.findProcess();
     if (Pcsx2Memory.process_current_Type == Enum.ProcessType.PCSX2)
     {
         // HP_Before_Hit = "21ADE8A8";
         HP_Max_MEM         = "21C6C754";
         HP_Current_MEM     = "21C6C750";
         MP_Max_MEM         = "21C6C8D4";
         MP_Current_MEM     = "21C6C8D0";
         Drive_Max_MEM      = "21C6C902";
         Drive_Current_MEM  = "21C6C901";
         Munny_MEM          = "2032DF70";
         AP_Boost_MEM       = "2032E028";
         Strength_MEM       = "21C6C8D8";
         Strength_Boost_MEM = "2032E029";
         Magic_MEM          = "21C6C8DA";
         Magic_Boost_MEM    = "2032E02A";
         Defense_MEM        = "21C6C8DC";
         Defense_Boost_MEM  = "2032E02B";
         PhysRes_MEM        = "21C6C8F8";
         FireRes_MEM        = "21C6C8F9";
         BlizRes_MEM        = "21C6C8FA";
         ThunRes_MEM        = "21C6C8FB";
         DarkRes_MEM        = "21C6C8FC";
         NeutRes_MEM        = "21C6C8FD";
         GeneRes_MEM        = "21C6C8FE";
     }
     else if (Pcsx2Memory.process_current_Type == Enum.ProcessType.EGS)
     {
         // HP_Before_Hit = "21ADE8A8";
         HP_Max_MEM         = (Pcsx2Memory.startingAddressEGS + 0x2A20C5C).ToString("X12");
         HP_Current_MEM     = (Pcsx2Memory.startingAddressEGS + 0x2A20C58).ToString("X12");
         MP_Max_MEM         = (Pcsx2Memory.startingAddressEGS + 0x2A20DDC).ToString("X12");
         MP_Current_MEM     = (Pcsx2Memory.startingAddressEGS + 0x2A20DD8).ToString("X12");
         Drive_Max_MEM      = (Pcsx2Memory.startingAddressEGS + 0x2A20E0A).ToString("X12");
         Drive_Current_MEM  = (Pcsx2Memory.startingAddressEGS + 0x2A20E09).ToString("X12");
         Munny_MEM          = (Pcsx2Memory.startingAddressEGS + 0x9A94B0).ToString("X12");
         AP_Boost_MEM       = (Pcsx2Memory.startingAddressEGS + 0x10E2530).ToString("X12");
         Strength_MEM       = (Pcsx2Memory.startingAddressEGS + 0x2A20DE0).ToString("X12");
         Strength_Boost_MEM = (Pcsx2Memory.startingAddressEGS + 0x10E2531).ToString("X12");
         Magic_MEM          = (Pcsx2Memory.startingAddressEGS + 0x2A20DE2).ToString("X12");
         Magic_Boost_MEM    = (Pcsx2Memory.startingAddressEGS + 0x10E2532).ToString("X12");
         Defense_MEM        = (Pcsx2Memory.startingAddressEGS + 0x2A20DE4).ToString("X12");
         Defense_Boost_MEM  = (Pcsx2Memory.startingAddressEGS + 0x10E2533).ToString("X12");
         PhysRes_MEM        = (Pcsx2Memory.startingAddressEGS + 0x2A20E00).ToString("X12");
         FireRes_MEM        = (Pcsx2Memory.startingAddressEGS + 0x2A20E01).ToString("X12");
         BlizRes_MEM        = (Pcsx2Memory.startingAddressEGS + 0x2A20E02).ToString("X12");
         ThunRes_MEM        = (Pcsx2Memory.startingAddressEGS + 0x2A20E03).ToString("X12");
         DarkRes_MEM        = (Pcsx2Memory.startingAddressEGS + 0x2A20E04).ToString("X12");
         NeutRes_MEM        = (Pcsx2Memory.startingAddressEGS + 0x2A20E05).ToString("X12");
         GeneRes_MEM        = (Pcsx2Memory.startingAddressEGS + 0x2A20E06).ToString("X12");
     }
     act_read();
 }
예제 #2
0
        public AbilitiesPageHandler()
        {
            Pcsx2Memory.findProcess();
            if (Pcsx2Memory.process_current_Type == Enum.ProcessType.PCSX2)
            {
                MemOffset = "2032E074";
            }
            else if (Pcsx2Memory.process_current_Type == Enum.ProcessType.EGS)
            {
                MemOffset = (Pcsx2Memory.startingAddressEGS + 0x9A95B4).ToString("X12");
            }

            AbilityCount = "96";
            Console.WriteLine("DEBUG > AbilitiesPageHandler > Processing file...");
            AbilityFileLoaded = new AbilitiesFile();
            act_read();
            Console.WriteLine("DEBUG > AbilitiesPageHandler > File processed!");
        }
예제 #3
0
        public void findAddress()
        {
            if (AddressFound)
            {
                return;
            }
            Pcsx2Memory.findProcess();

            // Find by pointers
            long autoAddress = -1;

            if (fileType == FileType.KH2_00OBJENTRY)
            {
                autoAddress = Pcsx2Memory.getAddressOfSubBar(fileType, null);
            }
            else if (subBarName != null && subSubBarName != null)
            {
                autoAddress = Pcsx2Memory.getAddressOfSubSubBar(fileType, subBarName, subSubBarName);
            }
            else if (subBarName != null)
            {
                autoAddress = Pcsx2Memory.getAddressOfSubBar(fileType, subBarName);
            }
            // Find by string search
            if (autoAddress <= 0 && fileType != FileType.KH2_00OBJENTRY)
            {
                autoAddress = Pcsx2Memory.findBarFileAddress(stringToFind);
            }

            // If address was found
            if (autoAddress > 0)
            {
                AddressFound = true;
                MemOffset    = FormatHandler.getHexString(autoAddress, ProcessType.PCSX2);
                if (Pcsx2Memory.process_current_Type == ProcessType.PCSX2 && autoAddress > 0x2FFFFFFF)
                {
                    MemOffset = NOT_FOUND;
                }
            }
            else
            {
                MemOffset = NOT_FOUND;
            }
        }
예제 #4
0
        public InventoryPageHandler()
        {
            Pcsx2Memory.findProcess();
            if (Pcsx2Memory.process_current_Type == Enum.ProcessType.PCSX2)
            {
                MemOffset = "2032F0B0";
            }
            else if (Pcsx2Memory.process_current_Type == Enum.ProcessType.EGS)
            {
                MemOffset = (Pcsx2Memory.startingAddressEGS + 0x9AA5F0).ToString("X12");
            }

            ItemCount          = "312";
            NameFilter         = "";
            InventoryFileItems = new ObservableCollection <Item>();
            Console.WriteLine("DEBUG > InventoryPageHandler > Processing file...");
            InventoryFileLoaded = new InventoryFile();
            loadList();
            Console.WriteLine("DEBUG > InventoryPageHandler > File processed!");
        }