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 


Plugin type DisassemblerContext: Access Violation

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source -> Plugin development
View previous topic :: View next topic  
Author Message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Sun May 06, 2018 3:27 pm    Post subject: Plugin type DisassemblerContext: Access Violation Reply with quote

I am creating this type of plugin, but when I click with the button right button Disassembly happens this error: Access Violation
My code is the following:

_________________
...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sun May 06, 2018 3:29 pm    Post subject: Reply with quote

get the header file from github
or update your header file to match https://github.com/cheat-engine/cheat-engine/blob/master/Cheat%20Engine/plugin/cepluginsdk.h#L85

(switch callbackroutine with callbackroutineOnPopup )

_________________
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
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Sun May 06, 2018 4:08 pm    Post subject: Reply with quote

What a strange "callbackroutine" and "callbackroutineOnPopup", are in reverse order in this link.
I am using CE 6.7 and the sdk is apparently wrong.

Edit: Is there any form of plugin type that allows changing the opcode assembly description?

_________________
...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sun May 06, 2018 4:27 pm    Post subject: Reply with quote

this lua code does that
Code:

getDefaultDisassembler().OnPostDisassemble=function(disassembler,address, ldd, result, description)
  ldd.description='This does what '..ldd.opcode..' normally does'
  return result,ldd.description
end


(you can call lua code from your plugin as well. Check the github c example)

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source -> Plugin development 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