Return Path
-
- Posts: 57
- Joined: Wed Jul 01, 2009 12:52 am
Return Path
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?
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Return Path
You're going to have to provide more information. Your profile would be a good start.
-
- Posts: 57
- Joined: Wed Jul 01, 2009 12:52 am
Re: Return Path
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
If I get stuck, die or whichever, the window says there is no specified return path
Re: Return Path
you could set up your profile with a path/returnpath:
also in your profile add this to your ONDEATH tags
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:
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
Code: Select all
<option name="WAYPOINTS" value="botspot.xml" />
<option name="RETURNPATH" value="botspot_return.xml" />
<option name="PATH_TYPE" value="waypoints" />
Code: Select all
<onDeath>
changeProfileOption("PATH_TYPE", value="waypoints");
</onDeath>
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>
not 100% this will work but its worth a try
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Return Path
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.
-
- Posts: 57
- Joined: Wed Jul 01, 2009 12:52 am
Re: Return Path
yeah I didn't think it be easier, do apologize for coming up with it
Who is online
Users browsing this forum: Bing [Bot] and 8 guests