In the zip file there is a lua file with the following functions:
- generateAOBList()
- saveLocation(name)
- readLocation(name)
- destroyTableFiles()
- refreshTableFile(name)
- tableFileWriteBytes(file,bytes)
- createByteTableString(byteTable)
I commented the lua file so hopefully that is enough to get you going but here is a general description of the three functions you call:
generateAOBList()
This function is what normalizes the format of your AOB items, you will need to add in your own unique AOBs along with the symbol name you want for them. The formatting for each item has to be {AOB,'symbolName'}.
saveLocation(name)
This function take your symbol name and gets its location as getNameFromAddress(). It then reads 20 bytes from that location which is converted into a hex string. A table file is created with the same name as the symbol and the address and byte table string are saved to it.
readLocation(name)
This function opens the table file with the same name and reads out the address and byte table string. It then reads 20 bytes from the address and compares it with the saved byte table, if they are the same it registers the symbol at the saved address and returns true. You can use this in your enable as the method for determining whether you scan for the AOB or not.
See my Chronicon table for an example of how I use it.
Let me know what you think or if you have any questions on how to use it.