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 


How do I do a working Custom Call.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Sat Feb 06, 2016 4:32 pm    Post subject: How do I do a working Custom Call. Reply with quote

After writing 2 Input Fly Camera Mods. I have noticed That when I creat a call the damn thing sometimes breaks on the ret. I have experienced some odd behavior.

Not returning and falling through to the next line of code.

Unable to turn of the script.

I have tried alloc and register the entire called new memory.

Even tried using a separate script just for the call.

I am retarded or something.

_________________


Last edited by akumakuja28 on Sat Feb 06, 2016 9:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Feb 06, 2016 5:34 pm    Post subject: Reply with quote

Could you attach CT file?
_________________
Back to top
View user's profile Send private message MSN Messenger
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Sat Feb 06, 2016 5:51 pm    Post subject: Reply with quote

I think I still have a script stored in notepad++ for rise of the tomb raider.

Anyway tho. Could I bug you to write up an example of how a call is written in a script.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Feb 06, 2016 5:55 pm    Post subject: Reply with quote

Call what? Other original function from ROTTR? Your function?
_________________
Back to top
View user's profile Send private message MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Feb 06, 2016 7:07 pm    Post subject: Reply with quote

In order to call a function successfully, you have to satisfy all of the perameters of the stack. Depending on which calling convention is used, you may be responsible for cleaning up the stack.

If it's easier, you can see what is calling the function where your call resides, and just inject somewhere that will allow you to manipulate the path whenever you want.
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Sat Feb 06, 2016 7:17 pm    Post subject: Reply with quote

Thanks methos.

Code:


Faux injection


Alloc(call_math,100)
Registersymbol(call_math)


Label(code)
Label(return)
Label(call_math)



Code:
Movss xmm10,xmm12
Call call_math
Movss [rcx-random],xmm10
Call call_math
Movss [rax+stillrandom],xmm10
Jmp return

call_math:
Mulss xmm10,xmm10
Addss xmm10,xmm12
Ret






Is this the proper way to write a custom call
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Feb 06, 2016 7:47 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
Call what? Other original function from ROTTR? Your function?

akumakuja28 wrote:
Code:
Call call_math

call_math:
Mulss xmm10,xmm10
Addss xmm10,xmm12
Ret


So, your own function.



Make sure that your call_math is allocated near the same module.
That is:
Code:
alloc(newmem,2048,modulename)
alloc(call_math,2048,modulename)

_________________
Back to top
View user's profile Send private message MSN Messenger
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Sun Feb 07, 2016 1:00 pm    Post subject: Reply with quote

I was able to check this out again.

Apparently im retarded.


I was able to write a custom call in very easily. I think my issue with this was the auto labeling process cheat engine implements. I tried out the script I had stored and it was the same script that had the missing Slow_Down label.

So yeah.... Anyway thanks guy's.

_________________
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