AOBscan question/help to just fetch an address?
Posted: Mon Feb 28, 2022 11:14 am
Heya, I'm not new to CE, but I'm completely useless when it comes to assembly/scripts, so I've got a question about AOBscan but no idea how I can even search for an answer if it was given in a different thread:
can AOBscan be used to simply fetch an address (of the first byte maybe) and register a name for it to be used as a base in the table?
Here's a visual:

scan for pattern, get address of first byte, set a name for it, and it's used in the group with +4+8+etc. children
Initially, I tried doing something like in this post, to get a mouseover pointer address and just work from there for quantities/item IDs etc., but I suck and every single thing that I found that reads that address will crash the game once activated, so I'm back to trying this.
I hoped the whole "code" part that messes with memory isn't needed, so I winged it and tried to do something simple, but...
My brain just doesn't work with code and I'm not looking to learn the intricacies of how such a thing can be accomplished, I just need a quick fix to automate the whole manual scanning part... can a kind soul please share a simple AOBscan code that does what I said and maybe can be changed simply by modifying the exe name and the pattern for other games? or is that not possible at all?
I'd love to not make a new thread for this and just find the answer, but I really don't know how to query the search engines in this case, and I can't figure it out myself. (heck I don't even know if this is the right forum to ask this question, apologies if it isn't)
Thank you.
can AOBscan be used to simply fetch an address (of the first byte maybe) and register a name for it to be used as a base in the table?
Here's a visual:

scan for pattern, get address of first byte, set a name for it, and it's used in the group with +4+8+etc. children
Initially, I tried doing something like in this post, to get a mouseover pointer address and just work from there for quantities/item IDs etc., but I suck and every single thing that I found that reads that address will crash the game once activated, so I'm back to trying this.
I hoped the whole "code" part that messes with memory isn't needed, so I winged it and tried to do something simple, but...
this evidently doesn't work
[ENABLE]
aobscanmodule(InventoryStart,eldenring.exe,73 00 00 B0 73 00 00 40) // should be unique
label(Inv_Start)
registersymbol(Inv_Start)
Inv_Start:
dq 0
[DISABLE]
unregistersymbol(Inv_Start)
I'd love to not make a new thread for this and just find the answer, but I really don't know how to query the search engines in this case, and I can't figure it out myself. (heck I don't even know if this is the right forum to ask this question, apologies if it isn't)
Thank you.