protected MemoryWatcher(DeepPointer pointer)
 {
     DeepPtr    = pointer;
     AddrType   = AddressType.DeepPointer;
     Enabled    = true;
     FailAction = ReadFailAction.DontUpdate;
 }
 public StringWatcher(DeepPointer pointer, int numBytes)
     : this(pointer, ReadStringType.AutoDetect, numBytes)
 {
 }
 public StringWatcher(DeepPointer pointer, ReadStringType type, int numBytes)
     : base(pointer)
 {
     _stringType = type;
     _numBytes   = numBytes;
 }
Beispiel #4
0
        public void SetPointersByModuleSize(int moduleSize)
        {
            if (moduleSize == 507191296 || moduleSize == 515133440 || moduleSize == 510681088 || moduleSize == 482037760)             // MARCH STEAM VERSION
            {
                Debug.WriteLine("Found Steam version");
                raxDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x06121BB8, 0x38, 0x28, 0x0);
                eaxDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x04C7CA08, 0xCB0, 0xDF8, 0x1D0, 0x88);
                velDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x04C7CA08, 0x1510, 0x598, 0x1D0, 0x3F40);
                rotDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x4C83F38);
                yawDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x61AC728);
                row1DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25B4A80);
                row2DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25B4A88);
                row3DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25B4AD8);
                row4DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25B4AF0);
                row5DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25B4AF8);
                row6DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x5B83BC0);
                row7DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x5B83244);
                row8DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25B4B18);
                row9DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25B4B28);
                perfMetrOptionDP = new DeepPointer("DoomEternalx64vk.exe", 0x3D11B20);
            }
            else if (moduleSize == 450445312 || moduleSize == 444944384)             // MARCH BETHESDA VERSION
            {
                raxDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x060E38B8, 0x38, 0x28, 0x0);
                eaxDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x04C3F008, 0xCB0, 0xDF8, 0x1D0, 0x88);
                velDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x04C3F008, 0x1510, 0x598, 0x1D0, 0x3F40);
                rotDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x4C46538);
                yawDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x616E328);
                row1DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25818C0);
                row2DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25818C8);
                row3DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25818C0 + 0x58);
                row4DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25818C0 + 0x70);
                row5DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25818C0 + 0x78);
                row6DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x5B46140);
                row7DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x5B457C4);
                row8DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25818C0 + 0x98);
                row9DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25818C0 + 0xA8);
                perfMetrOptionDP = new DeepPointer("DoomEternalx64vk.exe", 0x3CD4120);
            }
            else if (moduleSize == 492113920)             //MAY PATCH 1.1 STEAM
            {
                raxDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x061137B8, 0x38, 0x28, 0x0);
                eaxDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x04C6E308, 0xCB0, 0xDF8, 0x1D0, 0x88);
                velDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x04C6E308, 0x1510, 0x598, 0x1D0, 0x3F40);
                rotDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x4C75838);
                yawDP            = new DeepPointer("DOOMEternalx64vk.exe", 0x619F478);
                row1DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x2608338);
                row2DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x2608338 + 0x8);
                row3DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x2608338 + 0x58);
                row4DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x2608338 + 0x70);
                row5DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x2608338 + 0x78);
                row6DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x5B754D0);
                row7DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x5B74B54);
                row8DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x2608338 + 0x98);
                row9DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x2608338 + 0xA8);
                perfMetrOptionDP = new DeepPointer("DOOMEternalx64vk.exe", 0x3D83420);
            }
            else if (moduleSize == 457285632)             //MAY PATCH 1.1 BETHESDA
            {
                raxDP = new DeepPointer("DOOMEternalx64vk.exe", 0x060D5438, 0x38, 0x28, 0x0);
                eaxDP = new DeepPointer("DOOMEternalx64vk.exe", 0x04C30888, 0xCB0, 0xDF8, 0x1D0, 0x88);

                velDP = new DeepPointer("DOOMEternalx64vk.exe", 0x04C30888, 0x1510, 0x598, 0x1D0, 0x3F40);

                rotDP = new DeepPointer("DOOMEternalx64vk.exe", 0x4C37DB8);
                yawDP = new DeepPointer("DOOMEternalx64vk.exe", 0x6160FC8);

                row1DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25D5178);
                row2DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25D5178 + 0x8);
                row3DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25D5178 + 0x58);
                row4DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25D5178 + 0x70);
                row5DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25D5178 + 0x78);
                row6DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x5B379D0);
                row7DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x5B37054);
                row8DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25D5178 + 0x98);
                row9DP           = new DeepPointer("DOOMEternalx64vk.exe", 0x25D5178 + 0xA8);
                perfMetrOptionDP = new DeepPointer("DOOMEternalx64vk.exe", 0x3D459A0);
            }
            else             //UNKNOWN GAME VERSION
            {
                updateTimer.Stop();
                System.Windows.Forms.MessageBox.Show("This game version is not supported.", "Unsupported Game Version");
                Console.WriteLine(moduleSize.ToString());
                Environment.Exit(0);
                process = null;
            }
        }