Page 1 of 1

Error when switching paths

Posted: Mon Aug 03, 2009 4:15 pm
by CrazyGuy
I get an error when i try to load another path

Code: Select all

	<waypoint x="-3463" z="-34534">
		if( player.Level > 15 ) then
		  load_paths("travel1");
		end;
	</waypoint>

which gives me the error:

Code: Select all

[string "..."]:4: attempt to call global 'load_paths' (a nil value)
i have a path called travel1.xml in the waypoints folder so not sure why it says its a nil value

Re: Error when switching paths

Posted: Mon Aug 03, 2009 6:01 pm
by d003232
CrazyGuy wrote:which gives me the error:

Code: Select all

[string "..."]:4: attempt to call global 'load_paths' (a nil value)
i have a path called travel1.xml in the waypoints folder so not sure why it says its a nil value
You don't have the function 'load_paths()'. Means you have the wrong bot version. Just download it here or make a SVN update.

Re: Error when switching paths

Posted: Mon Aug 03, 2009 9:27 pm
by Administrator
The function was added after revision 107, so the only way to get it is off of SVN.