private void SetPointersByModuleSize(int moduleSize) { switch (moduleSize) { case 78057472: Debug.WriteLine("found steam1"); charMoveCompDP = new DeepPointer(0x042E16B8, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x042E16B8, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x042E16B8, 0x30, 0xCC0, 0x0); cheatManagerDP = new DeepPointer(0x042DFED8, 0x0); playerCharacterDP = new DeepPointer(0x042E16B8, 0x30, 0x0); worldDP = new DeepPointer(0x042E1678, 0x1A8, 0x0); gameModeDP = new DeepPointer(0x0455C860, 0x128, 0x0); break; case 78036992: Debug.WriteLine("found gog1"); charMoveCompDP = new DeepPointer(0x0430CC48, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x0430CC48, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x0430CC48, 0x30, 0xCC0, 0x0); cheatManagerDP = new DeepPointer(0x0430B3F0, 0x0); playerCharacterDP = new DeepPointer(0x0430CC48, 0x30, 0x0); worldDP = new DeepPointer(0x0430CC10, 0x1A8, 0x0); gameModeDP = new DeepPointer(0x04587F20, 0x128, 0x0); break; default: updateTimer.Stop(); Console.WriteLine(moduleSize.ToString()); System.Windows.Forms.MessageBox.Show("This game version is not supported.", "Unsupported Game Version"); Environment.Exit(0); break; } }
protected MemoryWatcher(DeepPointer pointer) { DeepPtr = pointer; AddrType = AddressType.DeepPointer; Enabled = true; FailAction = ReadFailAction.DontUpdate; }
private void SetPointersByModuleSize(int moduleSize) { switch (moduleSize) { case 78057472: Debug.WriteLine("found steam1"); charMoveCompDP = new DeepPointer(0x042E16B8, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x042E16B8, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x042E16B8, 0x30, 0xCC0, 0x0); cheatManagerDP = new DeepPointer(0x042DFED8, 0x0); playerCharacterDP = new DeepPointer(0x042E16B8, 0x30, 0x0); worldDP = new DeepPointer(0x042E1678, 0x1A8, 0x0); worldSettingsDP = new DeepPointer(0x042E1678, 0x1A8, 0x20, 0x240, 0x0); gameModeDP = new DeepPointer(0x0455C860, 0x128, 0x0); break; case 78086144: Debug.WriteLine("found steam3"); charMoveCompDP = new DeepPointer(0x042E78F8, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x042E78F8, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x042E78F8, 0x30, 0xCC0, 0x0); cheatManagerDP = new DeepPointer(0x042E6118, 0x0); playerCharacterDP = new DeepPointer(0x042E78F8, 0x30, 0x0); worldDP = new DeepPointer(0x042E78D0, 0x1A8, 0x0); worldSettingsDP = new DeepPointer(0x042E78D0, 0x1A8, 0x20, 0x240, 0x0); gameModeDP = new DeepPointer(0x04562C20, 0x128, 0x0); break; case 78376960: Debug.WriteLine("found steam5"); charMoveCompDP = new DeepPointer(0x04328538, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x04328538, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x04328538, 0x30, 0xE0, 0x0); cheatManagerDP = new DeepPointer(0x04326CE8, 0x0); playerCharacterDP = new DeepPointer(0x04328538, 0x30, 0x0); worldDP = new DeepPointer(0x04328548, 0x1A8, 0x0); worldSettingsDP = new DeepPointer(0x04328548, 0x1A8, 0x20, 0x240, 0x0); gameModeDP = new DeepPointer(0x045A3C20, 0x128, 0x0); break; case 78856192: Debug.WriteLine("found steam6"); charMoveCompDP = new DeepPointer(0x0438BB50, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x0438BB50, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x0438BB50, 0x30, 0xE0, 0x0); cheatManagerDP = new DeepPointer(0x0438BB70, 0x0); playerCharacterDP = new DeepPointer(0x0438BB50, 0x30, 0x0); worldDP = new DeepPointer(0x0438BB40, 0x1A8, 0x0); worldSettingsDP = new DeepPointer(0x0438BB40, 0x1A8, 0x20, 0x240, 0x0); gameModeDP = new DeepPointer(0x04609420, 0x128, 0x0); break; case 78036992: Debug.WriteLine("found gog1"); charMoveCompDP = new DeepPointer(0x0430CC48, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x0430CC48, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x0430CC48, 0x30, 0xCC0, 0x0); cheatManagerDP = new DeepPointer(0x0430B3F0, 0x0); playerCharacterDP = new DeepPointer(0x0430CC48, 0x30, 0x0); worldDP = new DeepPointer(0x0430CC10, 0x1A8, 0x0); worldSettingsDP = new DeepPointer(0x0430CC10, 0x1A8, 0x20, 0x240, 0x0); gameModeDP = new DeepPointer(0x04587F20, 0x128, 0x0); break; case 78065664: Debug.WriteLine("found gog3"); charMoveCompDP = new DeepPointer(0x04312E98, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x04312E98, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x04312E98, 0x30, 0xE0, 0x0); cheatManagerDP = new DeepPointer(0x04311630, 0x0); playerCharacterDP = new DeepPointer(0x04312E98, 0x30, 0x0); worldDP = new DeepPointer(0x04312E70, 0x1A8, 0x0); worldSettingsDP = new DeepPointer(0x04312E70, 0x1A8, 0x20, 0x240, 0x0); gameModeDP = new DeepPointer(0x0458E2E0, 0x128, 0x0); break; case 78168064: Debug.WriteLine("found gog5"); charMoveCompDP = new DeepPointer(0x04328538, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x04328538, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x04328538, 0x30, 0xE0, 0x0); cheatManagerDP = new DeepPointer(0x04326CE8, 0x0); playerCharacterDP = new DeepPointer(0x04328538, 0x30, 0x0); worldDP = new DeepPointer(0x04328548, 0x1A8, 0x0); worldSettingsDP = new DeepPointer(0x04328548, 0x1A8, 0x20, 0x240, 0x0); gameModeDP = new DeepPointer(0x045A3C20, 0x128, 0x0); break; case 78622720: Debug.WriteLine("found gog6"); charMoveCompDP = new DeepPointer(0x0438BB50, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x0438BB50, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x0438BB50, 0x30, 0xE0, 0x0); cheatManagerDP = new DeepPointer(0x0438BB70, 0x0); playerCharacterDP = new DeepPointer(0x0438BB50, 0x30, 0x0); worldDP = new DeepPointer(0x0438BB40, 0x1A8, 0x0); worldSettingsDP = new DeepPointer(0x0438BB40, 0x1A8, 0x20, 0x240, 0x0); gameModeDP = new DeepPointer(0x04609420, 0x128, 0x0); break; case 77885440: Debug.WriteLine("found egs1"); charMoveCompDP = new DeepPointer(0x042EA0D0, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x042EA0D0, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x042EA0D0, 0x30, 0xCC0, 0x0); cheatManagerDP = new DeepPointer(0x042E88F8, 0x0); playerCharacterDP = new DeepPointer(0x042EA0D0, 0x30, 0x0); worldDP = new DeepPointer(0x042EA098, 0x1A8, 0x0); worldSettingsDP = new DeepPointer(0x042EA098, 0x1A8, 0x20, 0x240, 0x0); gameModeDP = new DeepPointer(0x04565320, 0x128, 0x0); break; case 77881344: Debug.WriteLine("found egs2"); charMoveCompDP = new DeepPointer(0x042E90D0, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x042E90D0, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x042E90D0, 0x30, 0xCC0, 0x0); cheatManagerDP = new DeepPointer(0x042E78F8, 0x0); playerCharacterDP = new DeepPointer(0x042E90D0, 0x30, 0x0); worldDP = new DeepPointer(0x042E9098, 0x1A8, 0x0); worldSettingsDP = new DeepPointer(0x042E9098, 0x1A8, 0x20, 0x240, 0x0); gameModeDP = new DeepPointer(0x04564320, 0x128, 0x0); break; case 77910016: Debug.WriteLine("found egs3"); charMoveCompDP = new DeepPointer(0x042F0310, 0x30, 0x288, 0x0); capsuleDP = new DeepPointer(0x042F0310, 0x30, 0x130, 0x0); playerControllerDP = new DeepPointer(0x042F0310, 0x30, 0xCC0, 0x0); cheatManagerDP = new DeepPointer(0x042EEB38, 0x0); playerCharacterDP = new DeepPointer(0x042F0310, 0x30, 0x0); worldDP = new DeepPointer(0x042F02E8, 0x1A8, 0x0); worldSettingsDP = new DeepPointer(0x042F02E8, 0x1A8, 0x20, 0x240, 0x0); gameModeDP = new DeepPointer(0x0456B6A0, 0x128, 0x0); break; default: updateTimer.Stop(); Console.WriteLine(moduleSize.ToString()); System.Windows.Forms.MessageBox.Show("This game version (" + moduleSize.ToString() + ") is not supported.", "Unsupported Game Version"); Environment.Exit(0); break; } }
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; }