コード例 #1
0
        public WeaponsForm()
        {
            InitializeComponent();

            WeaponsHax = new WeaponsHax(TCPGecko.Instance(), MemoryUtils.Offset);
            ReloadWeaponsList();
        }
コード例 #2
0
 public SinglePlayerForm()
 {
     InitializeComponent();
     LevelDataHax   = new LevelDataHax(TCPGecko.Instance(), MemoryUtils.Offset);
     EnvironmentHax = new EnvironmentHax(TCPGecko.Instance(), MemoryUtils.Offset);
     UpgradesHax    = new UpgradesHax(TCPGecko.Instance(), MemoryUtils.Offset);
 }
コード例 #3
0
        private void resetAllButton_Click(object sender, EventArgs e)
        {
            var result = MessageBox.Show(Strings.SINGLE_PLAYER_RESET_TITLE, Strings.SINGLE_PLAYER_RESET_TEXT,
                                         MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);

            if (result == DialogResult.Yes)
            {
                // Reset environment flags
                clearEnvironmentButton_Click(null, null);

                // Reset levels
                LevelDataHax.ClearLevelData();
                ReloadListView();

                // reset power eggs
                powerEggsBox.Value = 0;

                // Reset upgrades
                heroShotBox.SelectedIndex  = 0;
                inkTankBox.SelectedIndex   = 0;
                splatBombBox.SelectedIndex = 0;
                burstBombBox.SelectedIndex = 0;
                seekerBox.SelectedIndex    = 0;

                // Apply levels, upgrades, and power eggs
                OKButton_Click(null, null);

                // Reset single player flags in the Inkopolis progress bits
                ProgressFlags progressFlags = new ProgressFlags(TCPGecko.Instance(), MemoryUtils.Offset);
                progressFlags.HeroSuit           = false; // octo valley intro
                progressFlags.GreatZapfish       = false; // great zapfish returned
                progressFlags.CuttlefishPostGame = false; // credits block available
                progressFlags.Apply();
            }
        }
コード例 #4
0
ファイル: SplatAIOForm.cs プロジェクト: igromanru/Splat-AIO-2
        private void connectBox_Click(object sender, EventArgs e)
        {
            _gecko = TCPGecko.Instance(ipBox.Text);

            try
            {
                _gecko.Connect();
            }
            catch (ETCPGeckoException)
            {
                MessageBox.Show(Strings.CONNECTION_FAILED_TEXT);
            }
            catch (SocketException)
            {
                MessageBox.Show(Strings.INVALID_IP_TEXT);
            }

            //offset difference checker
            var JRAddr = _gecko.peek(0x106E975C) + 0x92D8;

            if (_gecko.peek(JRAddr) == 0x000003F2)
            {
                MemoryUtils.Offset = JRAddr - 0x12CDADA0;
            }
            else
            {
                MessageBox.Show(Strings.FIND_DIFF_FAILED_TEXT);

                _gecko.Disconnect();
                return;
            }

            // do a version check using "ToHu" of "ToHuman"
            if (_gecko.peek((uint)OctohaxAddress.Player00 + 0x50) != 0x546F4875)
            {
                MessageBox.Show(Strings.VERSION_CHECK_FAILED_TEXT);

                _gecko.Disconnect();
                return;
            }

            Configuration.CurrentConfig.LastIp = ipBox.Text;
            Configuration.Save();

            connectBox.Enabled    = false;
            disconnectBox.Enabled = true;

            Reload();
        }
コード例 #5
0
 public ProgressFlagsForm()
 {
     InitializeComponent();
     ProgressFlags = new ProgressFlags(TCPGecko.Instance(), MemoryUtils.Offset);
 }