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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Martaigne
Wanderer


Joined: 05 Jan 2002
Posts: 88
Location: Atlanta, GA

PostPosted: Fri Feb 26, 2010 11:14 pm   

class containing onconnect/ondisconnect disabling itself
 
I have a tiny tiny class that contains two events, one for onconnect, the other for ondisconnect. For some reason, every time I start CMUD, this class is disabled, no matter how many times I enable it. The whole purpose is to begin logging once connected to a mud, and it's not working. I've even selected 'enable class when connecting' but to no avail. Halp?

<class name="autolog" initenable="true" id="419">
<event event="onConnect" priority="4180" id="418">
<value>#LOG %time( yyyy-mm-dd).txt</value>
</event>
<event event="onDisconnect" priority="4200" id="420">
<value>#LOG </value>
</event>
</class>
Reply with quote
Martaigne
Wanderer


Joined: 05 Jan 2002
Posts: 88
Location: Atlanta, GA

PostPosted: Fri Feb 26, 2010 11:20 pm   
 
Hm, I seemed to have found half of the problem - this used to work as is, writing a log by default to the CMUD folder under My Documents. Now, after enabling it and reconnecting, it disables itself. If I enable it and try to reconnect, the disconnect event fires and tries to make me choose a log location. If I cancel, the class is disabled.

I deleted the ondisconnect event. The class still disables itself when connecting.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Feb 27, 2010 1:03 am   
 
Look at the class properties. There's an option that says something along the lines of disable class when connecting. Give that a click or two to make sure it's properly unchecked.

If that's not the problem, check for stuff that's using #T- Autolog.

Barring that, perhaps it's some sort of old leftover-from-zmud association with the word autolog (ie, a word you can't use because cmud does something internally with it).
_________________
EDIT: I didn't like my old signature
Reply with quote
Martaigne
Wanderer


Joined: 05 Jan 2002
Posts: 88
Location: Atlanta, GA

PostPosted: Sat Feb 27, 2010 4:33 am   
 
Yes, it's definitely not set to disable itself when connecting.

I'll be damned, I changed the name of the class and now it works fine. Thanks for the suggestion on the reserved name.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Mar 01, 2010 3:54 pm   
 
Yes, Autolog is the name of the class Cmud uses for your automatic login information--the triggers to send your name and password to the mud. Cmud automatically disables this class afterward.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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