Playing with the MM2 code

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.
Message
Author
User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: Playing with the MM2 code

#21 Post by Administrator » Fri Dec 12, 2014 2:18 am

One of these days I want to dig through this and make sure I at least get the 64-bit stuff taken care of. I've just been so busy with other things. Make sure to not let me forget.

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Playing with the MM2 code

#22 Post by BlubBlab » Fri Dec 12, 2014 8:18 pm

I could give you are recipe:

Copy most of the memory stuff from me to your project, than replace all those 'unsigned int' you used for strings and similar stuff with 'size_t'. Today I realized that LUA still use 32-bit for unsigned thanks to this configuration:

Code: Select all

#define LUA_INTEGER	ptrdiff_t

/*
@@ LUA_UNSIGNED is the integral type used by lua_pushunsigned/lua_tounsigned.
** It must have at least 32 bits.
*/
#define LUA_UNSIGNED	unsigned LUA_INT32
that make a lot more sense:

Code: Select all

#define LUA_UNSIGNED unsigned LUA_INTEGER
EDIT: That was the luaconf.h in which you can setup what has which type.
I think the hardest part is to make the mingw compiler to run and compile the other stuff.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests