| View previous topic :: View next topic |
| Author |
Message |
barr How do I cheat?
Reputation: 0
Joined: 24 Dec 2014 Posts: 5
|
Posted: Wed Dec 24, 2014 6:11 pm Post subject: [C++] EndScene hook not working, Vtable hotpatch |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25821 Location: The netherlands
|
Posted: Wed Dec 24, 2014 7:03 pm Post subject: |
|
|
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 |
|
 |
barr How do I cheat?
Reputation: 0
Joined: 24 Dec 2014 Posts: 5
|
Posted: Wed Dec 24, 2014 7:53 pm Post subject: |
|
|
| 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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25821 Location: The netherlands
|
Posted: Wed Dec 24, 2014 8:18 pm Post subject: |
|
|
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 |
|
 |
barr How do I cheat?
Reputation: 0
Joined: 24 Dec 2014 Posts: 5
|
Posted: Wed Dec 24, 2014 8:42 pm Post subject: |
|
|
| 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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25821 Location: The netherlands
|
Posted: Wed Dec 24, 2014 8:52 pm Post subject: |
|
|
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 |
|
 |
barr How do I cheat?
Reputation: 0
Joined: 24 Dec 2014 Posts: 5
|
Posted: Wed Dec 24, 2014 9:10 pm Post subject: |
|
|
| 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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25821 Location: The netherlands
|
Posted: Wed Dec 24, 2014 9:49 pm Post subject: |
|
|
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 |
|
 |
barr How do I cheat?
Reputation: 0
Joined: 24 Dec 2014 Posts: 5
|
Posted: Wed Dec 24, 2014 11:03 pm Post subject: |
|
|
Fixed.
Needed to create the device as Dark Byte had said.
|
|
| Back to top |
|
 |
|