Page 1 of 1

Return Path

Posted: Fri Nov 27, 2009 5:17 pm
by extremeuser
Just wondering, when I have the profile set to 'wander' I have still specified a return path, for some reason it doesn't use it. How exactly should the return path be typed in? I tried with the name of the file, then tried adding the .xml both don't work. Is this correct, eg doesn't use a return path if set to wander?

Re: Return Path

Posted: Fri Nov 27, 2009 5:31 pm
by Administrator
You're going to have to provide more information. Your profile would be a good start.

Re: Return Path

Posted: Fri Nov 27, 2009 5:33 pm
by extremeuser
I use default profile, then just add extra options and skills. I have set to 'wander', in return path line i put in my return path.

If I get stuck, die or whichever, the window says there is no specified return path

Re: Return Path

Posted: Sat Nov 28, 2009 11:08 am
by j_schlott
you could set up your profile with a path/returnpath:

Code: Select all

	<option name="WAYPOINTS"		value="botspot.xml" />
		<option name="RETURNPATH"		value="botspot_return.xml" />
		<option name="PATH_TYPE"		value="waypoints" />
also in your profile add this to your ONDEATH tags

Code: Select all

<onDeath>
	changeProfileOption("PATH_TYPE", value="waypoints");
	</onDeath>
the return path is normal path back to your spot
but inside the botspot.xml we will only need 1 waypoint, the location you want to start your wander:

Code: Select all

<waypoints>
	<!-- #  1 --><waypoint x="00000" z="00000">
		changeProfileOption("PATH_TYPE", value="wander");
	</waypoint>
</waypoints>
so you start bot itll run to your spot and start wander, on death itll change back to waypoints to return
not 100% this will work but its worth a try

Re: Return Path

Posted: Sat Nov 28, 2009 7:15 pm
by Administrator
This was a bit of a pain to debug, but I believe I've got it working. You should now be able to use wander mode with a return path. Also, RUN and TRAVEL type paths are working as they originally should (RUN ignores aggressive enemies, TRAVEL fights back). Update to SVN r407.

Re: Return Path

Posted: Mon Nov 30, 2009 6:20 am
by extremeuser
yeah I didn't think it be easier, do apologize for coming up with it :)