fenix01 / cheatengine-library

Cheat Engine Library is based on CheatEngine a debugger and coding environment particularly aimed at games, but can also be used for other purposes like debugging applications and used in schools for teaching how computers work
259 stars 79 forks source link

How to use Array of byte option? #14

Open ZeroizeHD opened 7 years ago

ZeroizeHD commented 7 years ago

Hello! I am a beginner developer interested in your source. but, I understand only about half of your lib. I am using CheatEngine's Array of bytes (scan type: Search for this array) I want to use the feature. but, you could not find it in your example. I think use iProcessAddress, it's right?

NothingFaceX commented 5 years ago

Hi , ZeroizeHD Developer left the library as he said , But I tell you how to do it and for everybody need to do it.

to Search an Byte Array in C# you need to :

1 . Set TVariableType to TVariableType.vtByteArray

2 . In iFirstScan use your byte array in a String like this :

 var patter_array =  "54 48 49 53 20 49 53 20 41 20 54 45 53 54 20 41 52 52 41 59"

3 . Don't forget to set Hexadecimal Parameter to true in iFirstScan.

Now it will just scan byte array in memory like Cheat Engine.

Have Fun :)