Page 1 of 1

Making repair WP

Posted: Thu Jan 14, 2010 11:23 am
by PutteN
Hi,
I have try make some repair WP.
But i cant get it work :P
So whats wrong ?

Code: Select all

<waypoints>
	<!-- #  1 --><waypoint x="XX" z="XX">	</waypoint>
	<!-- #  2 --><waypoint x="XX" z="XX">	</waypoint>
	<!-- #  3 --><waypoint x="XX" z="XX">	</waypoint>

	<!-- # 25 --><waypoint x="-2836" z="9294">		player:merchant("XXX");
load_paths("back.xml")
	</waypoint>
</waypoints>
Thx in advance :D

Re: Making repair WP

Posted: Thu Jan 14, 2010 11:30 am
by Administrator
PutteN wrote: So whats wrong ?
I don't know. You tell me.

Re: Making repair WP

Posted: Thu Jan 14, 2010 12:34 pm
by PutteN
I will post the error massage later thx !
/PutteN

Re: Making repair WP

Posted: Thu Jan 14, 2010 2:16 pm
by arntom
your loadpath command is out of date, use:

Code: Select all

loadPaths("back.xml");

Re: Making repair WP

Posted: Thu Jan 14, 2010 3:12 pm
by PutteN
Thx i will give it a try :D
/PutteN

Re: Making repair WP

Posted: Thu Jan 14, 2010 5:06 pm
by PutteN
I have now try but cant get it work :P
WP

Code: Select all

<waypoints>
	<!-- #  1 --><waypoint x="-823" z="-5916">	</waypoint>
	<!-- #  2 --><waypoint x="-1072" z="-5903">	</waypoint>
	<!-- #  3 --><waypoint x="-1150" z="-5869">	</waypoint>
	<!-- #  4 --><waypoint x="-1223" z="-5779">	</waypoint>
	<!-- #  5 --><waypoint x="-1342" z="-5528">	</waypoint>
	<!-- #  6 --><waypoint x="-1430" z="-5107">	</waypoint>
	<!-- #  7 --><waypoint x="-1438" z="-4697">	</waypoint>
	<!-- #  8 --><waypoint x="-1340" z="-4346">	</waypoint>
	<!-- #  9 --><waypoint x="-1595" z="-4204">	</waypoint>
	<!-- # 10 --><waypoint x="-1788" z="-4128">	</waypoint>
	loadPaths("wolf/wolf.xml");
 </waypoint>
</waypoints>
Error

Code: Select all

Thu Jan 14 23:02:36 2010 : ...acro/micromacro/scripts/rom/classes/waypointlist.lua:21: XML Parse Error.
File: .../micromacro/scripts/rom/waypoints/Wolf/wolf-back.xml
Line: 12
Column: 32
Message: mismatched tag
Thu Jan 14 23:02:36 2010 : Execution error: Runtime error
Thu Jan 14 23:02:36 2010 : ...s\Putte\Downloads\micromacro\micromacro\lib\net.lua:4: attempt to call global 'registerKey' (a nil value)
My first repair script ;)
/PutteN

Re: Making repair WP

Posted: Thu Jan 14, 2010 9:08 pm
by Administrator
You didn't put the code inside the waypoint tag.

Re: Making repair WP

Posted: Fri Jan 15, 2010 5:47 am
by PutteN
Now i have done like this

Code: Select all

	<!-- # 22 --><waypoint x="xx" z="xx">	</waypoint>
	<!-- # 23 --><waypoint x="xx" z="xx">	</waypoint>
<waypoint>
loadpaths("xx/xx-RUN.xml")
	</waypoint>
And when it come to to #23 it got to #24 that have X-0 Y-0
Did i do wrong again :P?

/PutteN
(I have try read wiki but it had the old system)

Re: Making repair WP

Posted: Fri Jan 15, 2010 9:25 am
by arntom

Code: Select all

<!-- # 22 --><waypoint x="xx" z="xx">   </waypoint>
<!-- # 23 --><waypoint x="xx" z="xx">
	loadpaths("xx/xx-RUN.xml");
</waypoint>
<!-- # 24 --><waypoint x="xx" z="xx">   </waypoint>

Re: Making repair WP

Posted: Tue Jan 19, 2010 3:06 pm
by PutteN
I cant get it work >.<

Code: Select all

<waypoints>
	<!-- #  1 --><waypoint x="3384" z="5286">	</waypoint>
	<!-- #  2 --><waypoint x="3470" z="5649">	</waypoint>
	<!-- #  3 --><waypoint x="3636" z="5640">	</waypoint>
	<!-- #  4 --><waypoint x="3680" z="5527">	</waypoint>
	<!-- #  5 --><waypoint x="3773" z="5360">	</waypoint>
	<!-- #  6 --><waypoint x="3859" z="5225">	</waypoint>
	<!-- #  7 --><waypoint x="3855" z="5174">	</waypoint>
	<!-- #  8 --><waypoint x="3968" z="5327">	</waypoint>
	<!-- #  9 --><waypoint x="4062" z="5221">	</waypoint>
	<!-- # 10 --><waypoint x="4164" z="5039">	</waypoint>
	<!-- # 11 --><waypoint x="4420" z="5087">	</waypoint>
	<!-- # 12 --><waypoint x="4380" z="5217">	</waypoint>
	<!-- # 13 --><waypoint x="4137" z="5309">	</waypoint>
	<!-- # 14 --><waypoint x="4125" z="5423">	</waypoint>
	<!-- # 15 --><waypoint x="4015" z="5487">	</waypoint>
	<!-- # 16 --><waypoint x="3890" z="5490">	</waypoint>
	<!-- # 17 --><waypoint x="3796" z="5381">	</waypoint>
	<!-- # 18 --><waypoint x="3302" z="5304">
if( player.free_flag1 == true ) then 
		player.free_flag1 = false; 
		loadPaths("farm_npc.xml");
	end
</waypoint>
	<!-- # 19 --><waypoint x="3302" z="5304">  </waypoint>

</waypoints>
"[string " ..."]:2: attempt to call global 'loadpaths' (a nil value)"
Whats wrong >.<?

Re: Making repair WP

Posted: Wed Jan 20, 2010 12:02 pm
by raff
are you using the latest micromacro version or/and latest bot version?

Re: Making repair WP

Posted: Wed Jan 20, 2010 2:17 pm
by PutteN
Yes i do :)
I have really try to slove this myself but i cant xD

Re: Making repair WP

Posted: Wed Jan 20, 2010 6:21 pm
by Administrator
You had 'loadPaths' in the code example, but 'loadpaths' in the error you posted. Make up your mind. It also helps when you copy and paste the error from the log instead of typing it out yourself.

Re: Making repair WP

Posted: Thu Jan 21, 2010 12:45 pm
by PutteN
still this error

Code: Select all

Thu Jan 21 10:00:35 2010 : [string "	..."]:2: attempt to call global 'loadpaths' (a nil value)
Thu Jan 21 10:00:35 2010 : Execution error: Runtime error
Thu Jan 21 10:00:35 2010 : ...s\Puffen\Downloads\micromacro\micromacro\lib\net.lua:4: attempt to call global 'registerKey' (a nil value)
Thu Jan 21 10:03:49 2010 : Executing script 'bot.lua'
I have use many bots but this time i dont have any clue...
/Patrik

Re: Making repair WP

Posted: Thu Jan 21, 2010 5:22 pm
by Administrator
The function is loadPaths(), not loadpaths(). Yes, there is a difference.