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 


[C++] EndScene hook not working, Vtable hotpatch

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

Joined: 24 Dec 2014
Posts: 5

PostPosted: Wed Dec 24, 2014 6:11 pm    Post subject: [C++] EndScene hook not working, Vtable hotpatch Reply with quote

Update :

With the information dark byte gave, I was able to fix the issue.

For any person with the same issue, check to make sure you are initializing all items.


Last edited by barr on Mon Dec 29, 2014 10:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Dec 24, 2014 7:03 pm    Post subject: Reply with quote

Are you sure the address you're looking at is the address of of your dll's HookDraw function ?
It's more likely that the endscene pointer gets changed to somewhere else

_________________
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
barr
How do I cheat?
Reputation: 0

Joined: 24 Dec 2014
Posts: 5

PostPosted: Wed Dec 24, 2014 7:53 pm    Post subject: Reply with quote

Dark Byte wrote:
Are you sure the address you're looking at is the address of of your dll's HookDraw function ?
It's more likely that the endscene pointer gets changed to somewhere else


Hey Dark Byte,

Yeah, I'm pretty sure. I used reclass to check out the change, it points to my dll.

Heres a picture : puu(DOT)sh/dIjRQ/31a40deb8e(DOT)png
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Dec 24, 2014 8:18 pm    Post subject: Reply with quote

those screenshots do not show anything wrong
_________________
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
barr
How do I cheat?
Reputation: 0

Joined: 24 Dec 2014
Posts: 5

PostPosted: Wed Dec 24, 2014 8:42 pm    Post subject: Reply with quote

Dark Byte wrote:
those screenshots do not show anything wrong


I forgot to include the code that is actually there.

This is whats wrong :
puu(DOT)sh/dIn5r/570b45d7bf.png
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Dec 24, 2014 8:52 pm    Post subject: Reply with quote

There's nothing wrong with that
follow the jmp

it's normal visual studio code

_________________
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
barr
How do I cheat?
Reputation: 0

Joined: 24 Dec 2014
Posts: 5

PostPosted: Wed Dec 24, 2014 9:10 pm    Post subject: Reply with quote

Dark Byte wrote:
There's nothing wrong with that
follow the jmp

it's normal visual studio code


Ok, ive followed the jump, but this still doesn't explain why the code is not executing a draw or even the printing a statement to tell me its there.

Following the jump has put me in my dll.

puu(DOT)sh/dIovF/5b18c2c972.png

But it still wont execute a draw or message box, etc.

Any ideas?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Dec 24, 2014 9:49 pm    Post subject: Reply with quote

For one , DrawLine is never called (and if it would get called you'd crash because the line object is never created)


The only thing your code does extra is call printf, which may not print out anything because the game might not be a console application

_________________
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
barr
How do I cheat?
Reputation: 0

Joined: 24 Dec 2014
Posts: 5

PostPosted: Wed Dec 24, 2014 11:03 pm    Post subject: Reply with quote

Fixed.

Needed to create the device as Dark Byte had said.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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