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 


Witcher 3 debug console global_game pointer

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

Joined: 31 May 2016
Posts: 4

PostPosted: Tue May 31, 2016 4:31 pm    Post subject: Witcher 3 debug console global_game pointer Reply with quote

Hello,

A new witcher 3 patch was released and once again messed up the debug console. I've been trying to resolve the issue now for a while, but can't seem to get anywhere.

I've figured out that it's the global_game pointer that does not point anywhere anymore with it's current AOB.

What the mod currently does is:

Code:

  global_game = hook::pattern("48 8B 05 ? ? ? ? 48 8D 4C 24 48").count(1).get(0).extract<CGame**>(3);


So as you can see it reads the AOB and then converts it to a CGame double pointer. The AOB is not valid in this new update.

If anyone know anything about this or can give me advice on how i should approach this problem, then please tell me. I am new to reverse engineering and assembly, so there's a lot of things that i don't understand.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue May 31, 2016 5:43 pm    Post subject: Reply with quote

Perhaps I misunderstood. If all you're after is the debug console, that's in my table.
I didn't need to update it with this new patch. Maybe this AOB is better:
48 89 05 ? ? ? ? EB 07 48 89 35 ? ? ? ? 48
Back to top
View user's profile Send private message
Merg
How do I cheat?
Reputation: 0

Joined: 31 May 2016
Posts: 4

PostPosted: Tue May 31, 2016 5:57 pm    Post subject: Reply with quote

You understood it correctly. Since the debug console is written in native C++ and relies on hooks to the game engine, it needs the global game pointer to listen to inputs so that ir can pass valid parameters to the function which enables the debug console.

You probably can't just inject this like you do in CE, it has to run side by side with the game. Rolling Eyes
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue May 31, 2016 7:12 pm    Post subject: Reply with quote

I remember they started adding more stuff to that addon besides the console.
However, all of the objects and functions related to the debug console are in my table.
If "global_game" is the parameter you pass to the function, then that AOB I posted should work fine.
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 Gamehacking 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