View Single Post
  #700  
Unread 02-03-2005, 04:09 PM
sunthas sunthas is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unrest
Posts: 306
Default

Quote:
Originally Posted by tonyis3l33t
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!
I use MS EXCEL.

FIND REPLACE "is " with ","
FIND REPLACE ". Y" with ","
this puts commas on both sides of the xyz.

Text to Columns with Text Delimiter ","

Sort by one of the 3: x,z, or y.
delete all lines that are not LOCs they should be stacked at the top of the excel file.
Sort by Column1 which should include a indexnumber put in by anything that goes into the log file. now your x,z,y are back in order if you care.

delete all columns that aren't x,z,y. Leaves you with 3 columns of coordinates. Then you can import them into any program.

I found a 3d program where you can rotate the map around in 3d, but I can't get the dots connected, so its just points, which isn't good enough, I'm not going to draw these 3d maps by hand