Question about pointer offsets

Discuss, ask for help, share ideas, give suggestions, read tutorials, and tell us about bugs you have found with MicroMacro in here.

Do not post RoM-Bot stuff here. There is a subforum for that.
Forum rules
This is a sub-forum for things specific to MicroMacro.

This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
Post Reply
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Question about pointer offsets

#1 Post by rock5 » Sun Jan 13, 2013 3:47 am

I noticed something that I don't understand. Maybe it's a bug.

If you have 1 offset for a pointer your write it like this

Code: Select all

memoryReadXXXPtr(proc, address, offset)
if you have more offsets you write it like this

Code: Select all

memoryReadXXXPtr(proc, address, {offset1,offset2})
I would expect that if I only have 1 offset this should still work

Code: Select all

memoryReadXXXPtr(proc, address, {offset})
But it doesn't. I get a value that doesn't seem to have anything to do with the values used.

Is this a bug?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Question about pointer offsets

#2 Post by Administrator » Sun Jan 13, 2013 12:16 pm

That does indeed seem to be a bug. I'll look into it.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Question about pointer offsets

#3 Post by Administrator » Sun Jan 13, 2013 1:44 pm

I think I fixed it. It was a pretty stupid mistake, but one that was easy to make (if that makes any sense). I've attached a copy for you to test.
Attachments
micromacro.zip
(760.95 KiB) Downloaded 145 times

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Question about pointer offsets

#4 Post by rock5 » Sun Jan 13, 2013 2:16 pm

Yep, passed initial tests.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests