.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Simple Pathfinding Idea
Old
  (#1)
Rifleman
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 128
Join Date: Sep 2004
Location: Mars
Default Simple Pathfinding Idea - 05-12-2004

I have an idea about pathfinding , lets say when a bot is killed , it find the nearest waypoint near him and raise the "danger" value of the waypoint . If bot killed somebody , he will decrease the "danger" value of the waypoint , then when we are finding the path , we use the "danger" value of each waypoint and generate a safest path to a target m well , ladies and gentleman , what do you think ?
  
Reply With Quote
Re: Simple Pathfinding Idea
Old
  (#2)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Simple Pathfinding Idea - 05-12-2004

already doing that even using that with the path finder of RB if i am not mistaken (or its changed... lol).

The problem is, how much do you increase/decrease and how do you let the pathfinder deal with it (good heuristic).


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Simple Pathfinding Idea
Old
  (#3)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Simple Pathfinding Idea - 05-12-2004

lol, you haven't invented hot water



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Simple Pathfinding Idea
Old
  (#4)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Simple Pathfinding Idea - 05-12-2004

already doing that as well ... for about 2 years of even more, I gotta look that up in old joebot's history

although I thought about also influencing other waypoints around, isnt expensive using vis tables and stuff ... but I guess, just the nearest waypoint is sufficient, after some time those other waypoints will be more "dangerous" as well


  
Reply With Quote
Re: Simple Pathfinding Idea
Old
  (#5)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Simple Pathfinding Idea - 05-12-2004

I don't do a nearest waypoint. I also do a radius (visible wpts to nearest) and make it circulair. So the nearest wpt has highest score, the more further away, the less danger score added... sort of smoothening it out


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Simple Pathfinding Idea
Old
  (#6)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Simple Pathfinding Idea - 05-12-2004

yes, I know, we once discussed that on IRC I think ... linear decrease versus hut function ( e^(-a x^2) )


  
Reply With Quote
Re: Simple Pathfinding Idea
Old
  (#7)
Rifleman
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 128
Join Date: Sep 2004
Location: Mars
Default Re: Simple Pathfinding Idea - 06-12-2004

Oh man , I just find out that , that kind of pathfinding is just like astar ...
  
Reply With Quote
Re: Simple Pathfinding Idea
Old
  (#8)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Simple Pathfinding Idea - 06-12-2004

well, that's no sort of pathfinding, that's just an some type of information which can be used for pathfinding. you can also use this data with other pathfinding algorithms.


  
Reply With Quote
Re: Simple Pathfinding Idea
Old
  (#9)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Simple Pathfinding Idea - 06-12-2004

yes. I also used some sort of 'been there' value. So, whenever a bot touches a waypoint, it was marked visited (got a score). So the more it got a score, the less it would be choosen to visit (read-> the path will be the next time a bit different). Resulting, hopefully, when a lot of bots visited one particular route various times, another alternative route was choosen. yet, this did not always work out well.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Simple Pathfinding Idea
Old
  (#10)
Rifleman
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 128
Join Date: Sep 2004
Location: Mars
Default Re: Simple Pathfinding Idea - 06-12-2004

I'm totaly a noob when comes to pathfinding , I was trying to write a simple pathfinder that will just take a random route to a waypoint , I cant even get it to work , it always return a NULL path , can any pathfinder GURUs here give me some help or some links about how to write a pathfinder (if there are any) :'(
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com