 |
Martaigne Wanderer
Joined: 05 Jan 2002 Posts: 88 Location: Atlanta, GA
|
Posted: 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> |
|
|
 |
Martaigne Wanderer
Joined: 05 Jan 2002 Posts: 88 Location: Atlanta, GA
|
Posted: 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. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
 |
Martaigne Wanderer
Joined: 05 Jan 2002 Posts: 88 Location: Atlanta, GA
|
Posted: 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. |
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
 |
|
|