.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Ideas (http://forums.bots-united.com/forumdisplay.php?f=50)
-   -   map scan for waypoints (http://forums.bots-united.com/showthread.php?t=6655)

MPNumB 21-02-2008 02:21

map scan for waypoints
 
Somewhere i soo, thet using no waypoints, only trace lines will give high CPU usage, but creating waypoints at large maps for some howers isn't so fun to.

I think it wold be good, to add some command (if no waypoints exit), to scan map with trace lines & automaticaly creating waypoints. :)

deelight 08-03-2008 10:54

Re: map scan for waypoints
 
nice idea...

the search for waypoints is just C R A P

KWo 08-03-2008 19:37

Re: map scan for waypoints
 
It has been discussed a lot of times. I don't have any good algorithm, how to scan the map automatically without necessity walking on it. Maybe You can ask somebody to tell me what is the format .nav files done by CZERO bots. Maybe it's more easy to convert such files, than just make covering the map by waypoint from scratch.

indrora 10-05-2008 09:50

Re: map scan for waypoints
 
first post with content!
i got miffed that a lot of my maps didnt have waypoints to them so i decided to start writing a hackishly done waypoint auditor. its here: http://sonof.bandit.name/files/WaypointAuditor.zip as WaypointAuditor.zip. its extremely hackish and VERY unpolished, but it works. you can write a server map rotation file from it. One thing i would SERIOUSLY suggest somebody do is do this tool from scratch (or i may do it i dunno) in something that doesnt take forever with loads of maps. what it does really is take and run through the directory that contains all your maps (GCFScape for the win) and says "does xxx.bsp have xxx.ext?" if so, cool. if not, boo. if xxx.ext exists, yay?
it color codes things too :3

it requires .NET 2.0 (included with Vista and most recent XP installs, but is availible from m$

KWo 10-05-2008 15:12

Re: map scan for waypoints
 
Is this closed source project or what? Can we see the sources of Your tool? How does it work? Can You write step by step the algorithm how does it work?

indrora 10-05-2008 21:44

Re: map scan for waypoints
 
Quote:

Originally Posted by KWo (Post 57961)
Is this closed source project or what? Can we see the sources of Your tool? How does it work? Can You write step by step the algorithm how does it work?

i've lost the source but the algorythm is simple:
  • make sure that we have a config file availible. if so, load its settings.
  • if the audit button is pressed, start audit process and pause main window
the audit process is:
  • fire up the audit window
  • make sure the map and waypoint locations are cool
  • get all maps
  • get all waypoints.
  • walk through all maps
  • ask each map "does map.ext exist?" (where that is the waypoint file)
  • if so, add to the "has" list
  • if no, add to the "nohas" list
  • walk through all waypoints
  • ask "does this map exist?"
  • if so, ignore
  • if not, add to the "orphan list"
  • list has with checkmarks
  • list nohas with x's
  • etc
i'm working on a C# version that will be totally open and backed up.

vktRus 21-02-2009 18:09

Re: map scan for waypoints
 
Excellent. And when that will happen?


All times are GMT +2. The time now is 00:54.

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