View Single Post
  #696  
Unread 02-03-2005, 05:36 AM
tonyis3l33t's Avatar
tonyis3l33t tonyis3l33t is offline
a hedgehog
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 854
Default

parse with any text program that supports find/replace with regular expressions:

find all your location lines
.* Your location is .* Your orientation is .*[.00]

strip down everthing except xyz:

FIND:
.* Your location is
^^^REPLACE WITH BACKSPACE (make sure you copy the space after "is"!)
FIND:
[.] Your orientation.*
^^^REPLACE WITH BACKSPACE

works with editplus 2 for sure... i think microsoft word supports regular expressions, maybe notepad too.

Why do you care?? maybe you want to import x,y,z coords into a 3d program like sunthas did, but cant find "good parsing program".

Regular expression support is all you need with this little post!

going to post one later that you will parse everything except the xyz and what you say in a certain channel in game. This way you can:
run to a spot,
hit /loc,
say what it found at the loc in that certain channel.
parse the document with those values
have a list of xyz coordinates with the description underneath them!
__________________
Nagafen (Evil) - Climax, Goshawk