Suggestion and a Question

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
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Suggestion and a Question

#1 Post by BlubBlab » Sun Aug 04, 2013 10:00 am

I looked into possible of 64-bit MicroMacro because of dependences.
I did find out that at least theoretically I can solve it with the exception of the sound library OpenALU.
It's development ended 2009 by creative labs, but I found another http://www.libsdl.org/index.php changing the 4 files shouldn't be that much work.

The other Question was is what does MM use only the Lua VM or the LuaJit?
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

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

Re: Suggestion and a Question

#2 Post by Administrator » Sun Aug 04, 2013 2:51 pm

Lua is, at the time being, 32-bit only. As that is core dependency, it cannot be replaced. That is what prevents a 64-bit MicroMacro.

Is there really any need for a 64-bit copy? Short of some issues interfacing with 64-bit memory space, there's really no downside to running it in 32-bit mode.

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

Re: Suggestion and a Question

#3 Post by BlubBlab » Sun Aug 04, 2013 9:39 pm

Sry I only do that because I did get a littel bit bored^^ I hope you don't mind if I look in it deeper.
Lua exists for 64-bit(x64) that I can tell http://sourceforge.net/projects/luabina ... s/Dynamic/

"necessaries" aren't really their for 64-bit now, perhaps in a few years when the next windows is x64 only.
At the moment I'm thinking about speed, true changing to x64 make it only about 20% faster, really interesting is the LuaJit.

I read article about it, the luaVM is already fast in compare to other VMs, the mind bugging think about the jit is the math operations are 3x faster then with a program written in C, which is an achievement of the fact that the jit is written in ASM http://luajit.org/performance_x86.html the only little problem is, it seems not support Lua to the newest version.
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

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

Re: Suggestion and a Question

#4 Post by Administrator » Sun Aug 04, 2013 10:38 pm

No, I don't mind. Last I looked into it was about a year ago and Lua didn't support 64-bit at the time. From my understanding, it could be compiled as 64-bit, but wasn't truly compatible with it (I don't remember the details on why). I may look into this again soon.

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

Re: Suggestion and a Question

#5 Post by BlubBlab » Wed Aug 07, 2013 12:56 pm

I did make a little progress since last time(libnet and expat compiled) but I have strange dependency problems with the Luaexpat library
"undefined reference" a lot(Lua and Luaexpert functions) I did include basically everything, first i tried VC Studio then MinGW both the same problem. Any idear? xD
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

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

Re: Suggestion and a Question

#6 Post by Administrator » Wed Aug 07, 2013 2:08 pm

LuaExpat has been dropped as a dependency. It hasn't been updated in a long, long time and is no longer compatible with the newest version of Lua. Instead, just use the compiled lxp.dll that is provided as a plugin.

My link order is:
lua52
gdi32
psapi
net
ws2_32
Netapi32
alut
OpenAL32

You really will only need libnet (somewhat deprecated; you can probably get by without this if you want to comment out all the networking functions) and OpenAL.

That being said, VS is a terrible compiler and IDE. It does not use standard C/C++ code, but instead Microsoft's own "standard" which is often broken and incompatible. You might be able to get it to work, but you might also have to modify a few lines.

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

Re: Suggestion and a Question

#7 Post by BlubBlab » Thu Aug 08, 2013 5:40 am

I will try even I have the feel x86 Code loading with an x64 program will be a bad idea, I will see perhaps It is wrapped or I can do something about it with the compiler.
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 0 guests