Page 1 of 1
error at the end of profile.xml, when using createpath
Posted: Wed Apr 06, 2011 5:19 pm
by j19861986
I got an error that gets an error at the end of my profile
I have Notepad++ and saw that it was
just at the end of my profile...
How do I fix this???
Re: error at the end of profile.xml, when using createpath
Posted: Wed Apr 06, 2011 6:09 pm
by rock5
</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.
Re: error at the end of profile.xml, when using createpath
Posted: Wed Apr 06, 2011 6:17 pm
by j19861986
Okay, found the error, thx for tip