Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Generated Trainer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
ExtraChewy
How do I cheat?
Reputation: 0

Joined: 06 Dec 2009
Posts: 1

PostPosted: Sun Dec 06, 2009 12:26 pm    Post subject: Cheat Engine Generated Trainer Reply with quote

I was wondering if it was possible to find the source code (in vB?) for one of these? I wanted to take a look inside a trainer I made myself to see how I can do it myself.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3321

PostPosted: Sun Dec 06, 2009 7:02 pm    Post subject: Reply with quote

I think it's Pascal (not VB).
Back to top
View user's profile Send private message
Kpoch
Grandmaster Cheater
Reputation: 0

Joined: 17 Apr 2005
Posts: 668
Location: Mexico Muy orgulloso

PostPosted: Wed Apr 07, 2010 10:26 am    Post subject: Reply with quote

CE trainer source code its on the main CE source code BUT for the non experienced coders its impossible to isolate the trainer code from the main code (due to the imports and blah blah blah) u get a BIG exe file if u dont know how to split the code
_________________
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Apr 07, 2010 10:28 am    Post subject: Reply with quote

lol nice bump..

Easiest way would be to produce it from scratch if you're using VB. Hook or bp on WriteProcessMemory() and get all the buffers + addresses
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Wed Apr 07, 2010 1:28 pm    Post subject: Reply with quote

the trainer source is in the "standalone\" folder
the trainer generator(the thing that appends the configuration data to the trainer) is in formMemoryModifier.pas

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Amok
Newbie cheater
Reputation: 0

Joined: 14 Jul 2008
Posts: 15

PostPosted: Thu Apr 15, 2010 2:24 pm    Post subject: Reply with quote

Yes i have a very old source programed in Delphi Wink
You can use on Delphi with Visual window or on Pascal command

Is my first trainer in Delphi for GTA for have unlimited Pizza lmao ^^

Code:
//----------------| DELPHI |-------------------
 unit main;

 interface

 uses
 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
 Dialogs, ExtCtrls, XPMan, ShellApi, StdCtrls;

 type
 TFmain = class(TForm)
 fond: TImage;
 Fermer: TImage;
 XPManifest: TXPManifest;
 email: TImage;
 Site: TImage;
 Infos: TEdit;
 Timer: TTimer;
 Timer1: TTimer;
 procedure FermerClick(Sender: TObject);
 procedure fondMouseDown(Sender: TObject; Button: TMouseButton;
 Shift: TShiftState; X, Y: Integer);
 procedure TimerTimer(Sender: TObject);
 procedure Timer1Timer(Sender: TObject);
 private
 { Déclarations privées }
 public
 { Déclarations publiques }
 end;

 var
 Fmain: TFmain;
 Scroll:Integer;
 Fentr : integer;
 PrcID : integer;
 ProID : integer;
 Opnpr : integer;
 Wrtpr : cardinal;
 Buf : pchar;
 NumberOfBytes : byte;
 PokeValue : dword;
 PokeAddress : dword;

 implementation

 {$R *.dfm}

 procedure TFmain.FermerClick(Sender: TObject);
 begin
 FMain.Close;
 end;

 procedure TFmain.fondMouseDown(Sender: TObject; Button: TMouseButton;
 Shift: TShiftState; X, Y: Integer);
 begin
 ReleaseCapture;
 FMain.Perform(WM_SYSCOMMAND, $F012, 0);
 end;





 procedure TFmain.TimerTimer(Sender: TObject);
 var
 I :Integer;
 S,ScrollText:String;
 Begin
 ScrollText:=' NOTE : Pressez F9 pendant le jeux pour Activer le Code. -=[ PizzaLand v1.0 ]=- By Am0...';
 Inc(Scroll);
 If Scroll>Length(ScrollText) then
 Scroll :=0;
 For I:=1 to Length(ScrollText) do
 S:=S+ScrollText[I+Scroll];
 Infos.Text := S;
 end;

 procedure TFmain.Timer1Timer(Sender: TObject);
 begin
 // Si l'utilisateur presse F9...
 if (GetAsyncKeyState(VK_F9) <> 0) then
 begin
 PokeAddress := $44BA14; // Adresse
 PokeValue := 9090; // Valeur à 'injecter'
 NumberOfBytes := 2; // Nombre de byte à écrire
 Fentr := FindWindow(nil,'GTA: Vice City'); // On cherche la fenêtre du jeu...
 PrcID := GetWindowThreadProcessId(Fentr,@ProID); // On cherche l'ID une fois que la fenêtre a été trouvée
 Opnpr := OpenProcess(PROCESS_ALL_ACCESS,False,ProID); // On ouvre le processus
 GetMem(Buf,1); // Pointeur...
 Buf^ := Chr(PokeValue); // La valeur à écrire
 WriteProcessMemory(Opnpr, ptr(PokeAddress),Buf,NumberOfBytes,Wrtpr); // On écrit la valeur @PokeAddress
 FreeMem(Buf); // On libère les ressources
 closehandle(Opnpr);
 end;

 end;

 end.
//----------------| DELPHI |-------------------
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites