error at the end of profile.xml, when using createpath

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
j19861986
Posts: 37
Joined: Sun Jan 16, 2011 1:01 am

error at the end of profile.xml, when using createpath

#1 Post by j19861986 » Wed Apr 06, 2011 5:19 pm

I got an error that gets an error at the end of my profile
I have Notepad++ and saw that it was

Code: Select all

</profile>
just at the end of my profile...
How do I fix this???
Attachments
Just Random Name.xml
Line 200 is </profile>, right???
(8.63 KiB) Downloaded 159 times
look
look

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: error at the end of profile.xml, when using createpath

#2 Post by rock5 » Wed Apr 06, 2011 6:09 pm

</profile> is fine.

That error can be caused by 1 of 2 things.
1. There is a malformed tag from when you edited the profile or,
2. You used the '<' symbol in some of your lua code.

Short answers:
1. Tags are the labels found in "<>" brackets. Find the ones you broke when editing the file and fix it. Look at a good profile like "default" for comparison.
2. Anywhere in your code where you have something like "if small < big" or "if small <= big" change it to "if big > small" and "if big >= small". The error in this case is that in xml "<" looks like the beginning of a tag.

Basic description of xml tags:
There are 'open' and 'close' tags in xml (or maybe you could call them 'start' and 'end' tags). An open tag usually looks like this <word> and a closed tag usually looks like this </word>. So for example, the whole profile is enclosed in <profile> ... </profile> tags and the options are enclosed in <options> ... </options> tags. Sometimes it's more convenirnt to have the open and close tags and what it enclosed, on one line. In that case it is writen like this <tagword options /> . Note the "/" at the end of the line. eg.

Code: Select all

		<skill name="PRIEST_REGENERATE"    		hotkey="MACRO" priority="110"  hpper="80"/>
or

Code: Select all

		<option name="MAX_TARGET_DIST"		value="200" />
So to avoid that error just make sure all your tags follow the tag rules ie. "<word> ... </word>" or "<word options />" and you don't use any "<" in your lua code.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

j19861986
Posts: 37
Joined: Sun Jan 16, 2011 1:01 am

Re: error at the end of profile.xml, when using createpath

#3 Post by j19861986 » Wed Apr 06, 2011 6:17 pm

Okay, found the error, thx for tip

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest