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 


CE to C#

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

Joined: 02 Jan 2017
Posts: 12

PostPosted: Fri Apr 01, 2022 4:27 pm    Post subject: CE to C# Reply with quote

how can i do this in c# ?
Works great with cheat engine.

the aob I already do, but I don't understand the

Code:
jump:
jump1:



unknown.png
 Description:
 Filesize:  8.34 KB
 Viewed:  1755 Time(s)

unknown.png


Back to top
View user's profile Send private message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 510

PostPosted: Sat Apr 02, 2022 12:23 am    Post subject: Re: CE to C# Reply with quote

rajada1 wrote:
how can i do this in c# ?
Works great with cheat engine.

the aob I already do, but I don't understand the

Code:
jump:
jump1:

use google
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Apr 02, 2022 4:34 pm    Post subject: Reply with quote

There are JIT style libraries for injecting ASM with C# that you can use. Look into AsmJit or Fasm.NET and similar projects.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
rajada1
Newbie cheater
Reputation: 0

Joined: 02 Jan 2017
Posts: 12

PostPosted: Sun Apr 03, 2022 7:27 am    Post subject: Re: CE to C# Reply with quote

Frouk wrote:
rajada1 wrote:
how can i do this in c# ?
Works great with cheat engine.

the aob I already do, but I don't understand the

Code:
jump:
jump1:

use google


It's not a very smart answer to ask someone on a cheat forum who has an internet connection. search on google.
Do you really think I haven't done this already?
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 958

PostPosted: Sun Apr 03, 2022 11:00 am    Post subject: Reply with quote

I try explained by my understanding, but take it with a grain of salt as it may not completely correct.

CE address symbol is like a numeric variable / expression (it can be a single word or some complex expression).
It can by dynamic evaluated by a symbol handler or keep constant as defined, like registered by 'registerSymbol'.

Here, 'jump' is a symbol as result of aob if scan successful.
In the context of AA script 'jump' is 'local' to this script only.

Now 'jump' has a numerical value, then

jump: means the address at this numerical value.
It can be think as some kind of address marker,
since AA script basically an assembler, 'jump:' tell following assembler instruction will assemble at this address marker.

'jump1' is a label, it is a local symbol still without a value.

Analog to C#, both 'jump' and 'jump1' is local variable, like
... in a function block
int jump = AOBSCAN(...) ;
int jump1 = null ; /// or int jump1

In AA, if an address marker without a value (jump1) immeatedly following an other an address marker with a value (jump) , then jump1 will be assigned as jump.

It is just like
jump1 = jump
in C#.

The 'registerSymbol' make the symbol can be 'see' outside the AA script, like make it from 'local' to 'global'.

btw, assign symbols directly seems a legacy doing... it should be not necessary now, eg. dont' need another symbol
aobscan(jump1, ...)
registerSymbol(jump1)

_________________
- Retarded.
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