• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 3 of 3
    1. #1
      Newbie
      My world will soon turn into
      code
       
      Sneaky
       
      anton1453's Avatar
      Join Date
      Dec 2012
      Posts
      2
      Thanks (-->)
      0
      Thanks (<--)
      0

      Question Need some help with a simple trainer.

      John Kittz
      Hi, i have followed fleep's steps of making a trainer. But i have runned in to some problems and i dont understand what it is im doing wrong.

      Alright so while converting Hex to dec i think it stops working.. Becouse if i put a messagebox into the first method it will show but if i do it in the 2nd one it wont.
      Code:
              public static int HexToDec(string Hex)
              {
                  MessageBox.Show("This work");
                  return int.Parse(Hex, NumberStyles.HexNumber);
              }
              public static string HexToDec(int DEC)
              {
                  MessageBox.Show("This will not work.");
                  return DEC.ToString("X");
              }
      I also belive the problem could be somewhere around here:
      Code:
      private void UpdateCheatsTMR_Tick(object sender, EventArgs e)
              {
                  
      
                  if (IsGameAvailable)
                  {
                      #region Unlimited ammo
                      if (UnlimtedAmmo)
                      {
                          mymemory.ReadProcess = myProcess[0];
                          mymemory.Open();
                          int pointerAdress = HexToDec(AmmoPointer);
                          int [] pointerOffset = AmmoOffset;
                          int bytesWritten;
                          byte[] valueToWrite = BitConverter.GetBytes(AmmoToFill);
                          String writtenAddress = mymemory.PointerWrite((IntPtr)pointerAdress, valueToWrite, pointerOffset, out bytesWritten);
                          mymemory.CloseHandle();
                      }
      
                  }
      However, while trying to fix this i have not been able to, I want to go ahead and thank all of you in advance and if i have posted in the wrong section im really sorry!



      Here is my full code for a better understanding:
      Code:
      using System;
      using System.Collections.Generic;
      using System.ComponentModel;
      using System.Data;
      using System.Drawing;
      using System.Linq;
      using System.Text;
      using System.Windows.Forms;
      
      using System.Diagnostics;
      using System.Runtime.InteropServices;
      using System.Globalization;
      using System.Threading;
      
      namespace vctrainer
      {
          public partial class Form1 : Form
          {
              #region Global variables
              Memory mymemory = new Memory();
              Process[] myProcess;
              bool IsGameAvailable = false;
      
              bool UnlimtedAmmo = false;
              string AmmoPointer = "004CF1AC";
              int[] AmmoOffset = {0x28};
              int AmmoToFill = 6;
      
              #endregion
      
              public Form1()
              {
      
                  InitializeComponent();
              }
      
              private void Form1_Load(object sender, EventArgs e)
              {
      
              }
      
              private void label1_Click(object sender, EventArgs e)
              {
      
              }
      
              private void timer1_Tick(object sender, EventArgs e)
              {
                  myProcess = Process.GetProcessesByName("ppj2dd");
                  if (myProcess.Length != 0)
                  {
                      IsGameAvailable = true;
                      status.Text = "Status: Yep, i got you!";
                      button1.Enabled = true;
                      button2.Enabled = true;
                  }
                  else
                  {
                      IsGameAvailable = false;
                      status.Text = "Status: Wut, i dont understand?";
                      button1.Enabled = false;
                      button2.Enabled = false;
                  }
              }
      
              private void button1_Click(object sender, EventArgs e)
              {
                  if (IsGameAvailable)
                  {
                      if (UnlimtedAmmo)
                      {
                          UnlimtedAmmo = true;
                          button1.Text = "1.OFF";
                      }
                      else if (!UnlimtedAmmo)
                      {
                          UnlimtedAmmo = true;
                          button1.Text = "1.ON";
                      }
                      
                  }
              }
      
              private void button2_Click(object sender, EventArgs e)
              {
              }
      
              private void UpdateCheatsTMR_Tick(object sender, EventArgs e)
              {
                  
      
                  if (IsGameAvailable)
                  {
                      #region Unlimited ammo
                      if (UnlimtedAmmo)
                      {
                          mymemory.ReadProcess = myProcess[0];
                          mymemory.Open();
                          int pointerAdress = HexToDec(AmmoPointer);
                          int [] pointerOffset = AmmoOffset;
                          int bytesWritten;
                          byte[] valueToWrite = BitConverter.GetBytes(AmmoToFill);
                          String writtenAddress = mymemory.PointerWrite((IntPtr)pointerAdress, valueToWrite, pointerOffset, out bytesWritten);
                          mymemory.CloseHandle();
                      }
      
                  }
      
                  #endregion
              }
      
              private void status_Click(object sender, EventArgs e)
              {
      
              }
              public static int HexToDec(string Hex)
              {
                  MessageBox.Show("1");
                  return int.Parse(Hex, NumberStyles.HexNumber);
              }
              public static string HexToDec(int DEC)
              {
                  return DEC.ToString("X");
              }
          }
      }

      This trainer is a simple non-working trainer for an old offline game called virtual cop 2. I can find the process and check if it's running but im not able to get the cheats working.

    2. #2
      Coder
      Every life is just a complex
      C++ code.
       
      Coding
       
      TYPEX's Avatar
      Join Date
      Aug 2013
      Location
      127.0.0.1
      Posts
      105
      Thanks (-->)
      43
      Thanks (<--)
      13
      Dude, why haven't you renamed your buttons like fleep did, it's difficult to know which button is supposed to do what.

      And if that is the literal Full code of your project, then there are multiple mistakes.

      I've successfully done the trainer few months ago, so here's the code from my project: https://pastebin.com/HCF3DVB4 (link will die after 30 days)

      Or you can just download fleeps (don't know if he put it as download), but i have commented every part that I haven't understood before.

      1) At which part did you stuck?
      2) Are you getting multiple errors or is the program not running because of the HexToDec method?
      "So much work to do... so little time..."

      Need some help with a simple trainer.

      // Hacking With Style

      Need some help with a simple trainer.

    3. #3
      Newbie
      My world will soon turn into
      code
       
      Sneaky
       
      anton1453's Avatar
      Join Date
      Dec 2012
      Posts
      2
      Thanks (-->)
      0
      Thanks (<--)
      0
      Cheats'n'Trainers
      Quote Originally Posted by Ble3D View Post
      Dude, why haven't you renamed your buttons like fleep did, it's difficult to know which button is supposed to do what.

      And if that is the literal Full code of your project, then there are multiple mistakes.

      I've successfully done the trainer few months ago, so here's the code from my project: https://pastebin.com/HCF3DVB4 (link will die after 30 days)

      Or you can just download fleeps (don't know if he put it as download), but i have commented every part that I haven't understood before.

      1) At which part did you stuck?
      2) Are you getting multiple errors or is the program not running because of the HexToDec method?
      I get no errors at all, the hack does just not work.
      I have ofc not finished the tutorial yet since im stuck on this part of the tutorial and it is pretty obvious what button it should be.

      How ever thank you for the pastebin and the answer, ill check it out!

    Similar Game Hacker Threads

    1. [Help] Simple Wallhacking
      By monira02 in forum Hacking Help
      Replies: 6
      Last Post: 04-03-2016, 12:52 AM
    2. [Help] Simple BHOP script on CS:GO
      By Stressful in forum CS:GO Hacks
      Replies: 21
      Last Post: 01-02-2016, 07:51 PM
    3. [Help] simple triggerbot AutoIt
      By vertex1996 in forum Urban Terror Cheats
      Replies: 1
      Last Post: 07-28-2015, 04:12 PM
    4. Simple Reverse-Me
      By Solaire in forum Challenges
      Replies: 27
      Last Post: 02-03-2015, 06:28 AM
    5. [Trainer+Source]Bioshock Infinite +17 Trainer
      By Syperus in forum Other Game Hacks
      Replies: 14
      Last Post: 05-26-2013, 09:45 PM

    Tags for this Thread