So I have been looking into making my own bot for AoC. I have a lot of it planned out in my mind just having a hard time getting started. One of the main issues iIm having is that I need to get the coords to a variable that I can put into a formula. While using cheat engine I have found the variable locations but still haven't gotten that fully worked out. I asked my Data Structures teacher from last semester how to copy a float memory location with an offset to a variable and this is what he gave me to work with.
Assuming the address is in a pointer called ptr you can do the
following:
float * ptr = address;
float x;
memcpy (&x, ptr + offset, 4);
now using the format of a previous poster that has been posting memory locs quite frequently [01A9A108]+0x2C how exactly would I implement this. Is the bit of information my teacher gave me close? Any help would greatly be appreciated. I'm a Computer Science major and I am mainly trying to do this for learning purposes. I feel it would be a great accomplishment to make a working bot. Thanks in advance for any help!