Page 1 of 2

Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 10:36 am
by lalaxy
Hi!

I have this error many times what ive posted below...
Any solution for this ?

5:27 pm - not enough memory
AL lib: dsound.c:314: Device init failed: 0x80070008

Many thx

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 11:20 am
by rock5
The bot doesn't check memory usage so it's not rombot. I don't know if the error could be from micromacro. Administrator would have to answer that.

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 11:37 am
by Administrator
Can you provide your log.txt file?

I see that there's a number of other posts related to memory issues. Those, as far as I can tell, have been restricted to MM1.02 but fixed in 1.03. Can you try upgrading from here?

If, for any reason, it cannot allocate more memory, that could cause OAL to also fail to create a device, which I suspect is the case here.

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 12:05 pm
by lalaxy
Heya!

Oc i, attach my log.txt if it can help...Here , or direcly to some e-mail address ?

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 12:13 pm
by Administrator
You can attach it here or email to the address listed at the bottom of the homepage.

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 12:23 pm
by lalaxy
Sent via private message :)

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 12:33 pm
by Administrator
Looks like this issue is due to not being able to find the window, which causes it to loop and continually call findWindowProc() (Internal function only; not exported as a Lua glue) which had a memory leak that was patched in 1.03.

For simplicity sake, I'm attaching a working copy of MicroMacro 1.03b2. Remember to overwrite all files when upgrading.

Now, the next question is, why does the RoM bot not find the window properly?

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 1:04 pm
by lalaxy
Ure the experts :) Anything i can help or attach anymore, please write, and ill do it...

Thy for the help :)

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 1:33 pm
by Administrator
Finally done patching RoM. I was able to run the RoMbot without any issues. Once you upgrade MM to 1.03, run it and once it begins moving the character around (or whatever you have it set to do) you can then pause/stop it. Check the log.txt file and see if it mentions anything about findWindowList() returning 0 results. Do you see anything?

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 1:38 pm
by rock5
Finally a properly labeled beta. :D

There is a mistake in lib.lua.
if fw ~= getHwnd() and ( ah == 0 or fw ~= ah ) and (__targetWindow and __targetWindow ~= fw) then
  • check = false;
end
What this does is it doesn't check the key presses unless __targetWindow has a value and it's not fw. So that means if targetWindow is not set then it will always check the key presses. That means Ctrl-L will stop the script no matter what window is forward.

I think it should be

Code: Select all

	if fw ~= getHwnd() and ( ah == 0 or fw ~= ah ) and (__targetWindow == nil or __targetWindow ~= fw) then
		check = false;
	end
So it doesn't do the check if __targetWindow isn't set or, if it is, it doesn't equal fw. I tested it. It seemed to work correctly. I also tried adding

Code: Select all

targetWindow(getWin())
to getpos.lua to give it a test run. It worked as expected. I could use Ctrl-L even when the client was active even though getpos doesn't attach to it.

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 1:47 pm
by Administrator
You have a good point that, perhaps, CTRL+L shouldn't be checked globally but instead contained only to the parent MicroMacro window and attached/targetted window(s). However, shouldn't the start/stop hotkeys remain global (unless specified otherwise)?

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 2:11 pm
by rock5
Why would you want the bot to start/stop when using the End/Delete keys in another application?

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 3:21 pm
by BlubBlab
My input:
Thats sure not but how about the desktop when you didn't focused the game neither the bot and watching the bot

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 3:35 pm
by rock5
BlubBlab wrote:My input:
Thats sure not but how about the desktop when you didn't focused the game neither the bot and watching the bot
If you are sitting there watching it you can have one or the other focused or you can quickly click one of them and press the keys.

But the main purpose of the bot is that it should be able to run in the background while you do other things. You wouldn't want that while you are working on something else, such as posting a message on the forum, that the bot pauses because you pressed End to go to the end of the line and you character dies because it stops fighting.

Then of course if you have more than one bot running you wont be able to stop only one of them without all the bots stopping.

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 3:59 pm
by BlubBlab
Okay good point^^

Re: Not enough memory error since new patch...

Posted: Fri Sep 13, 2013 9:50 pm
by lalaxy
Additional user information...1.03 b2 what U have uploaded, working since 7 hours without any error...Seems to be very good...Thy for help again :)

Re: Not enough memory error since new patch...

Posted: Sat Sep 14, 2013 2:36 am
by Pofatlan
Hi!

Thanks for very fast help. I have the same error a problem. I launch 3 farmer bot, now testing the new version... :)

Re: Not enough memory error since new patch...

Posted: Sat Sep 14, 2013 3:25 am
by Pofatlan
If 3 bot in the background running , and I change one bot its will be active window and I press CTRL+L all bot stoping excecution... it's wrong. It would be good if you can control micromacro window separately. Thanks a lot forward.

Re: Not enough memory error since new patch...

Posted: Sat Sep 14, 2013 3:29 am
by rock5
Pofatlan wrote:If 3 bot in the background running , and I change one bot its will be active window and I press CTRL+L all bot stoping excecution... it's wrong. It would be good if you can control micromacro window separately. Thanks a lot forward.
This is the fix until Admin adds it.
http://www.solarstrike.net/phpBB3/viewt ... 547#p52547

Re: Not enough memory error since new patch...

Posted: Sat Sep 14, 2013 3:57 am
by Pofatlan
Thanks rock5!

I was distrait. :) :) I modified lib.lua and micromacro work correct. :D