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
Corwin
Newbie


Joined: 02 May 2002
Posts: 0

PostPosted: Sat Mar 30, 2002 5:31 am   

Simultaneous Scripting
 
Why don't any of the available mud clients support running two or more scripts at the same time?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Mar 30, 2002 8:05 am   
 
quote:

Why don't any of the available mud clients support running two or more scripts at the same time?



ZMud can run up to 3 different script files all at once--DEFAULT.MUD, MyInheritedSettings.MUD, and MySettings.MUD.

Now, that's obviously not what you asked. But I think your problem requires a solution involving rewriting significant portions of the codebase to handle process threading--ZMud and most/all mud clients do not handle this and from what I can tell it's rather tricky business. Even if he had the time, it's doubtful Zugg would be willing to rewrite that much code.

li'l shmoe of Dragon's Gate MUD
Reply with quote
Corwin
Newbie


Joined: 02 May 2002
Posts: 0

PostPosted: Sat Mar 30, 2002 10:54 am   
 
I don't quite understand. You're saying Zmud can run up to 3 different script files all at once but it isn't what I'm looking for? Are you saying that these are not "real" scripts that you could execute from the command line one after another?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Mar 30, 2002 10:05 pm   
 
If you are asking if zMud is multi-threaded
I believe the answer is no.

Ton Diening
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Mar 31, 2002 1:32 am   
 
What do YOU mean by two or more scripts?

zMUD can run many "scripts" simultaneously, depending on how you define the term. Those scripts are contained in the 3 files which Matt mentioned, but each file can contain many scripts. To answer your question in any meaningful way, we'd have to know WHAT IT IS THAT YOU WANT TO DO.

LightBulb
All scripts untested unless otherwise noted
Reply with quote
Corwin
Newbie


Joined: 02 May 2002
Posts: 0

PostPosted: Sun Mar 31, 2002 11:01 am   
 
I meant I wanted to have a script waiting during roundtime of some action and have the other script running to catch things that the first one couldn't as a result of waiting. Zugg actually emailed me and clarified everything...it turns out Zmud is capable of running as many scripts as you have triggers...the catch is NONE of those scripts could work together if one was waiting for something, at least that's how I understood it. Fortunately, there are ways to work around this according to him but, being the novice I am at the moment, I have no idea how that's going to work. He mentioned something about #ALARMS and "other Zmud features" so let the research begin ;).
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sun Mar 31, 2002 6:02 pm   
 
Indeed you want to use #ALARM for that
kind of concept.

Search out roundtime and you'll find
things on that topic in these forums.

Ton Diening
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