.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Waypointing - more easy - HOW? (http://forums.bots-united.com/showthread.php?t=3737)

The Storm 15-03-2005 16:50

Waypointing - more easy - HOW?
 
Hi all,
Well I still don't understand some thinks in the bot coding so I want yours help.
Now I want to make the waypointing in EPB more easy.
If you can explain me how can I add the some functions like more easy path waypoint add. Something like this in PBmm. If you can explain me how to do that ? If I sucsesfull add this function in EPB I think that the waypointers will be happy. :)

Cpl. Shrike 16-03-2005 10:58

Re: Waypointing - more easy - HOW?
 
You could try adding paths between waypoints like int the HPB code.

First scan for the nearest waypoint to the player store the wpt location.
Then player moves to other location.
At new location scan for nearest wpt.
Create a path between the 2 locations. or store the 2 wypoint numbers as path numbers.

If i remebered correctly podbot did manual path creating by console.

@$3.1415rin 16-03-2005 11:23

Re: Waypointing - more easy - HOW?
 
dunno what podbot and it's clones have implemented yet, but "autowaypointing" is also nice, you just run around on the map and waypoints and paths will be created automatically. just use trace_hull stuff for the paths, maybe write a nicer getReachable function, and you're done ...
maybe take a look at the joebot xp sources or stefan's realbot sources, they are also doing autowaypointing, with the difference that the bots can use it instantly without having to create floyd tables.

The Storm 16-03-2005 14:54

Re: Waypointing - more easy - HOW?
 
The autowaypointing is already added in PodBot from the earlier versions.
I ask for other think. When I want to add path between two waypoints I must tape some commands in the console :
path waypoint add.
But if you look in PODbot mm you will see new function. When you want to add path between two waypoint you must only aim the waypoint that you want and after that to use the PodBot mm waypoint menu and the path will be added from the current waypoint to the waypoint that you are aim.
If you have any ideas for this please post ?

Pierre-Marie Baty 16-03-2005 15:07

Re: Waypointing - more easy - HOW?
 
Well, it's exactly like what Shrike says, except that:

1- you don't check the destination waypoint when the player has moved but when he pressed a key in the menu

2- you don't check the destination waypoint by cycling through them and selecting the nearest one, but by cycling through them and selecting the one for which the angles to the player are the closest to the player's view angles.

The Storm 16-03-2005 16:00

Re: Waypointing - more easy - HOW?
 
Ok thanks you guys. I will try to make it.

MarD 18-03-2005 20:20

Re: Waypointing - more easy - HOW?
 
Heyyo,

Yeah, just look how HPBbot does it. It's not as complex as the podbot mm system, but I can use it pretty darn fast. With it I can whip up good RCbot waypoints in no time. the classic PODbot waypoint editor was pretty slow for adding/removing pathwaypoints, and you had to remember numbers.. which yes, sometimes i forget. I bet i have short term memrory probs, lol...


All times are GMT +2. The time now is 23:19.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.