|
Forlarren Newbie
Joined: 02 May 2002 Posts: 4 Location: USA
|
Posted: Sun Mar 31, 2002 8:28 am
Pretending a log is from the mud |
I have a set of triggers that log all identified items.
I also have a log of all the time I've ever been on my current mud.
Right now, they total over 1 GB.
I want to tell zMUD to read in these logs, and pretend its coming from a mud, so the 5 triggers it takes to log identified objects can run and extract just identified objects.
Anyone have any ideas how to do this?
(logs were stripped of ansi color) |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sun Mar 31, 2002 9:44 am |
#FILE 2 logfilenamehere.txt
#VAR currentline 0
#ALARM *1 {#IF (@currentline <= %filesize(2)) {#SHOW %read(2,@currentline);#ADD currentline 1} {#echo done}}
That will hopefully read it fast but not too
fast for you to parse it all.
I suggest running it before you go to bed.
Ton Diening |
|
|
|
Forlarren Newbie
Joined: 02 May 2002 Posts: 4 Location: USA
|
Posted: Sun Mar 31, 2002 7:13 pm |
Thanks for the help.
In the end, I finished before you posted.. finished writing the triggers that is.
I ended up simply reading the whole thing at full speed.
Took maybe 1 hour or less to parse the whole thing. |
|
|
|
|
|