| View previous topic :: View next topic |
| Author |
Message |
akumakuja28 Master Cheater
Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Sat Feb 06, 2016 4:32 pm Post subject: How do I do a working Custom Call. |
|
|
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Feb 06, 2016 5:34 pm Post subject: |
|
|
Could you attach CT file?
_________________
|
|
| Back to top |
|
 |
akumakuja28 Master Cheater
Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Sat Feb 06, 2016 5:51 pm Post subject: |
|
|
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Feb 06, 2016 5:55 pm Post subject: |
|
|
Call what? Other original function from ROTTR? Your function?
_________________
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Feb 06, 2016 7:07 pm Post subject: |
|
|
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 |
|
 |
akumakuja28 Master Cheater
Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Sat Feb 06, 2016 7:17 pm Post subject: |
|
|
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Feb 06, 2016 7:47 pm Post subject: |
|
|
| 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 |
|
 |
akumakuja28 Master Cheater
Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Sun Feb 07, 2016 1:00 pm Post subject: |
|
|
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 |
|
 |
|