Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Forlarren
Newbie


Joined: 02 May 2002
Posts: 4
Location: USA

PostPosted: 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)
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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
Reply with quote
Forlarren
Newbie


Joined: 02 May 2002
Posts: 4
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net