View Single Post
Re: map scan for waypoints
Old
  (#6)
indrora
Member
 
Status: Offline
Posts: 2
Join Date: May 2008
Default Re: map scan for waypoints - 10-05-2008

Quote:
Originally Posted by KWo View Post
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.
  
Reply With Quote