View previous topic :: View next topic |
Author |
Message |
DarkDolphin Newbie cheater Reputation: 1
Joined: 30 Jan 2014 Posts: 22
|
Posted: Wed Dec 27, 2017 7:01 am Post subject: Explanation of a "g.exe+number" following alloc? |
|
|
In certain games when you go for Template --> AOB Injection, it would generate something like this:
Code: |
alloc(newmem,$1000)
|
While in other games it has +number that points to the aob location.
Code: |
alloc(newmem,$1000,"gamename.exe"+014A10)
|
If I remove this portion: ","gamename.exe"+014A10", the script may or may not crash the game.
Here are my questions:
1. What's causing the code to be different? Is it due to the 32bit and 64 bit application?
2. Why would an aob scan script require "gamename.exe"+number, since it scans for the aob anyway.
3. Would the aob script still work if the game gets an update and the +number changes while the function's aob remains the same?
|
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Wed Dec 27, 2017 10:03 am Post subject: |
|
|
the 3rd parameter is to give CE a hint that you want the jump be near to this address, yes sometimes CE auto-generate the 3rd parameter .. usually for large game executables as far as i noticed honestly.
removing it doesnt have to crash your game, but in some cases when the jump is very far here it might crash your game.
yes usually for 64 bit, remember you can add / remove it manually in every game whether its 32 / 64 bit.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Wed Dec 27, 2017 10:13 am Post subject: |
|
|
1: the 3th parameter determines the general location where in the memory to allocate the new block
if the distance between two locations is bigger than 2GB the jmp instruction will be 14 bytes long, which never happens in 32 bit, but can happen in 64 bit. and if you don't plan for that in your code (copy more of the original and have the jumpback 14 bytes+ after it) it will crash
2: it just needs a general location, you can also input just gamename.exe or anything else within a 2GB range. (also the aobscan result)
3: yes
_________________
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 |
|
|
DarkDolphin Newbie cheater Reputation: 1
Joined: 30 Jan 2014 Posts: 22
|
Posted: Wed Dec 27, 2017 11:03 am Post subject: |
|
|
Thanks for clarifying!
|
|
Back to top |
|
|
|