Aobscan and writeBytes
Posted: Sat Aug 03, 2019 3:44 am
So, I wanted to create a script that writes to addresses near an AOBScan signature. Here's my AOBScan Code:
Let's say I want to write the address that is 0x6C bytes away from this signature. How would I go about doing that? I tried through all of these ways, but they don't work for me:
The EnemyData address would need to be stored as a global variable, as this will be subsequently accessed by several different functions.
Code: Select all
[ENABLE]
aobscan(EnemyData, 80 00 03 40 00 00 00 01 80 4A BD DC 80 83 36 08 80 4A 86 98 00 00 00 01 80 4A BD DC 80 83 36 18 80 00 C6 28 00 00 00 00 00 00 00 02 80 83 36 38 80 1F C5 4C 00 00 00 00 00 00 00 00 00 00 00 00 80 4A 86 CC)
label(_EnemyData)
registersymbol(_EnemyData)
EnemyData:
_EnemyData:
[DISABLE]
unregistersymbol(_EnemyData)
Code: Select all
writeBytes(_EnemyData+6C,01,01)
writeBytes("_EnemyData+6C",01,01)
writeBytes(EnemyData+6C,01,01)
writeBytes("EnemyData+6C",01,01)