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 


Can't Create Trainer with my custom CE

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
cereal1
Cheater
Reputation: 0

Joined: 29 May 2007
Posts: 27

PostPosted: Mon Jul 21, 2008 1:17 pm    Post subject: Can't Create Trainer with my custom CE Reply with quote

I compiled an undetected CE 5.4 and everything works on it except when I click on "Generate Trainer" to make my trainer.

I get an error "Access violation at address 004DA641 in module 'Ekztal.exe". Read of address 00000000."

As far as I know I've created all the appropriate dll's and exe's, but apparently I'm wrong.

Any ideas for me?
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: Mon Jul 21, 2008 5:39 pm    Post subject: Reply with quote

make the standalone a autocreated form. (prioject->options->forms)
_________________
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
cereal1
Cheater
Reputation: 0

Joined: 29 May 2007
Posts: 27

PostPosted: Tue Jul 22, 2008 7:02 am    Post subject: Reply with quote

StandAlone is already listed as an autocreate form
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: Tue Jul 22, 2008 10:50 am    Post subject: Reply with quote

uncomment the code in trainer.rc if you commented that out
If you deleted it, this is the code:
Code:

//first compile the standalone project to generate the needed trainer.exe
//it is recommended to compress the standalone before release so the generated
//trainers don't become so big
TRAINER CEINCEXE "trainerwithassembler.exe"


And make sure you have compiled trainerwithassembler.dpr in the standalone folder before building (Also, you may want to make the standalone undetected as well)

_________________
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
cereal1
Cheater
Reputation: 0

Joined: 29 May 2007
Posts: 27

PostPosted: Thu Jul 24, 2008 2:08 pm    Post subject: Off-base Reply with quote

Okay, I hate to derail this thread, but how does CE write memory to process like WoW.exe which are protected? I can't get a process handle for it.

I've done:
Code:
OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES or TOKEN_QUERY, hToken);
LookupPrivilegeValue(NIL, SE_DEBUG_NAME, tp.Privileges[0].LUID);
tp.PrivilegeCount := 1;
tp.Privileges[0].LUID := LUID;
tp.Privileges[0].Attributes := (SE_PRIVILEGE_ENABLED);
dwretlen:=0;
AdjustTokenPrivileges(hToken, FALSE, tp, sizeof(tp), tpPrev, dwretlen);
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Thu Jul 24, 2008 2:58 pm    Post subject: Reply with quote

OMG dude. x0r already said: Warden. And dude that code just changes your privileges so you can use PROCESS_ALL_ACCESS (which you don't even need). CE also uses WPM
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Thu Jul 24, 2008 9:54 pm    Post subject: Reply with quote

Cheat Engine uses a driver that is basically a replica of the kernel, except with only functions used by Cheat Engine (e.g. ZwWriteProcessMemory, ZwOpenProcess, etc).

You could either try to read the driver's source and understand it, or just compile your own and use that, with credits to DB for the idea and the code and all of that.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
cereal1
Cheater
Reputation: 0

Joined: 29 May 2007
Posts: 27

PostPosted: Thu Jul 24, 2008 10:45 pm    Post subject: Reply with quote

oib111 wrote:
OMG dude. x0r already said: Warden, And dude that code just changes your privileges so you can use PROCESS_ALL_ACCESS (which you don't even need). CE also uses WPM


I'm sorry, you're a bit confused, I never asked about why wow.exe was protected. I asked how to write its memory. Simmer down.
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