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.
-
3cmSailorfuku
- Posts: 354
- Joined: Mon Jan 21, 2008 6:25 pm
#1
Post
by 3cmSailorfuku » Fri Mar 03, 2017 2:58 pm
I hope there are still people around.
Anyway, it seems getData() is lacking another parameter
Code: Select all
number|string memorychunk:getData(string type, number offset)
Code: Select all
local o_chat = process.readChunk(pHandle, 0x2089B520, 520000);
local s_chat = o_chat.getData("string", 0); -- Wrong number of parameters supplied to getData()
print(s_chat);
Edit: Figured it out. It needs it's own userdata, then the type, then a start offset, then an end offset. 4 parameters in total.
-
Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
#2
Post
by Administrator » Mon Mar 06, 2017 10:14 pm
I'm still around. I'll admit I haven't been working on MicroMacro so much lately. Largely in part to it not having any real projects to work towards, but also because I've got very little time to work on it.
I'm noticing that you used a dot ('.') in place of a semicolon (':') in your example. The difference is that the dot calls it as a function and expects the first parameter to be the object's pointer ('this' / 'self'), while the semicolon executes a method on an object (hence, no need to specify the object).
Who is online
Users browsing this forum: No registered users and 17 guests