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 


Change RIP in dvbm molde debugger.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
vitdor
Newbie cheater
Reputation: 0

Joined: 08 Feb 2018
Posts: 18

PostPosted: Sat Oct 08, 2022 6:42 am    Post subject: Change RIP in dvbm molde debugger. Reply with quote

Faced with the fact that I can not change the rip if the dbvm debug mode is enabled.
For example:
debug_setBreakpoint(getAddress("test.exe+2CAEE"), 1, bptExecute, function() RIP = getAddress("TestEp") end)
The breakpoint hits, but the RIP doesn't change.
The same in kernel mod debug works well.
Where to look for an answer?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

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

PostPosted: Sat Oct 08, 2022 7:03 am    Post subject: Reply with quote

weird. try dbvm_changeregonbp(dbk_getPhysicalAddress( getAddress("test.exe+2CAEE"), {newRIP=getAddress("TestEp")})
_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
vitdor
Newbie cheater
Reputation: 0

Joined: 08 Feb 2018
Posts: 18

PostPosted: Sat Oct 08, 2022 8:14 am    Post subject: Reply with quote

Dark Byte wrote:
weird. try dbvm_changeregonbp(dbk_getPhysicalAddress( getAddress("test.exe+2CAEE"), {newRIP=getAddress("TestEp")})


For some reason it didn't work for me. Nothing just happens.
I decided to try another way

address=getAddress('test.exe+2CAEE')
PA=dbk_getPhysicalAddress(address)
dbvm_cloak_active(PA, address)

But here the script gives an error
attempt to call nil value (global dbvm_cloack_activate)
Maybe I'm missing something, which is simple and obvious to everyone except me))

PS
Thank you for putting my thoughts in the right direction. It's really all banal. It is enough to carefully study the celua.txt file, it will be correct like this:
dbvm_cloak_activate(PA, address)

This post caused my error
https://forum.cheatengine.org/viewtopic.php?p=5755040#5755040

And as an alternative, that's how it all worked too:

local address=getAddress('test.exe+2CAEE')
local PA=dbk_getPhysicalAddress(address)
dbvm_changeregonbp(PA, {newRIP=getAddress("TestEp")})

Thank you very much Dark Byte!
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 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