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 


show debug message

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

Joined: 28 Jun 2020
Posts: 29
Location: Italy

PostPosted: Sun Sep 27, 2020 6:37 am    Post subject: show debug message Reply with quote

Hi,

I have created with ms detours a dll with dll injection for a game that work perfectly.

I have used this code as "template" for another game (both are DRM free) but this time not work or this is my impression.

In short I have tried to call many function adresses (I have used IDA to find the functions) but never trigger.

Now I don' sure if is true that the functions will never called, or my code not work (I suspect the second ...).

I ask if is possible use Cheat Engine or other to add a sort or "Print Debug message".

For example add a message "test" when the function address: 0x043AA30 (sub_43AA30 IDA function name pseudocode) will call by the game.

Is possible do it or similar ?

Thanks !
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Sep 27, 2020 7:38 am    Post subject: Reply with quote

yes, look at https://forum.cheatengine.org/viewtopic.php?t=615359

Alternatively, you could use breakpoints and in the handler print out info, or even just write to a file
Or you could let your injected dll output something. E.g MessageBoxA(0,"It workes","Caption",0)

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

Joined: 28 Jun 2020
Posts: 29
Location: Italy

PostPosted: Sun Sep 27, 2020 8:38 am    Post subject: Reply with quote

Hi Dark byte,

Many thanks for your response !!

The idea of add breakpoints seem very interested and easy to do.

I have tried to find my assembly function with Cheat Engine.

First I have found the start (004F314A) and end (004F32B3) adress with IDA.

[/img]

After tried to found it with cheatengine:

But don't find the function.

How I can find the function with CheatEngine to add a breakpoint ?

Thanks !



assembly_code.png
 Description:
 Filesize:  222.82 KB
 Viewed:  2495 Time(s)

assembly_code.png



ida.png
 Description:
 Filesize:  164.95 KB
 Viewed:  2495 Time(s)

ida.png


Back to top
View user's profile Send private message
marco0999
Cheater
Reputation: 0

Joined: 28 Jun 2020
Posts: 29
Location: Italy

PostPosted: Mon Sep 28, 2020 2:44 am    Post subject: Reply with quote

update,

I have inserted this script:

Code:
debugProcess()  -- Attach Debugger to the process.
function debugger_onBreakpoint()

   print("hello hacking")


    return 0 --Break

end

debug_setBreakpoint(0x004F314A)  -- Address where to set breakpoint


after execute I see a read line at the address: 4F314A so I suppose the breakpoint was inserted.With this script what happen if the game go here ?

I see the message inside the game or the game will break ?

Thanks !

P.S. only to get sure can you confirm if the address "004F314A" is referred to assembly game exe offset (provided by IDA) or is a Physical Memory Adresses ?
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