Page 1 of 1

MM error when launching rombot

Posted: Wed Aug 20, 2014 12:01 am
by ZZZZZ
Not sure why i am getting this issue. I havn't edited any files. Started to get this error 2-3 days ago and it happens every time I run rombot now.

Code: Select all

RoM Bot Version 3.29, Revision 778ññññññññññññññññññññññññññññññññññññññññ
Press the (End) key to stop/pause the script.
You can resume with the (Delete) key.
The game client did not crash.
2014-08-20 14:59:25 - E:/micromacro/lib/mods/xml.lua:336: error closing parser:
no element found

Re: MM error when launching rombot

Posted: Wed Aug 20, 2014 12:11 am
by rock5
I'm not sure what the error means. I think it means it has some problem reading an xml file such as a waypoint file or profile. Does changing the waypoint file and profile help?

Re: MM error when launching rombot

Posted: Wed Aug 20, 2014 12:11 am
by lisa
check your profile.
Test by using a different profile or using the default.

Re: MM error when launching rombot

Posted: Wed Aug 20, 2014 12:46 am
by BlubBlab
I think your XML (waypoint or profile or database/*.xml ) closed not right. Funny I wrote something about it a few minutes ago and went through that file.

EDIT: Strange the doc says:
parser:close()
Closes the parser, freeing all memory used by it. A call to parser:close() without a previous call to parser:parse() could result in an error.

but the lua code made sure that never happens:

Code: Select all

local result, msg, line, col, pos;
	if( type(input) == "userdata" ) then
		-- Prase an already opened file that was opened with io.open()
		for l in input:lines() do
			result, msg, line, col, pos = p:parse(l);
			if( not result ) then
				break;
			end
			p:parse("\n");
		end

		if( result ) then
			p:close();
			--return callbacks.stack[1][1];
		else
How can "result" not be nil when the only way to be not nil is calling parse()
I would download a new copy of MM and Rombot.